:root {
    --bg-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --accent: #0071e3;
    --success: #34c759;
    --danger: #d70015;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(0, 113, 227, 0.045) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(315deg, rgba(233, 64, 87, 0.04) 0%, rgba(255, 255, 255, 0) 38%),
        var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

.mesh-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 0;
}

.logo svg {
    color: var(--text-primary);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-wrapper {
    margin-bottom: 2rem;
    font: inherit;
}

.hero-text {
    display: block;
    font-size: 6rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.05;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #a200ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    padding-bottom: 0.2em; /* prevent clipping */
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.description {
    font-size: 1.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subscribe-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 57px;
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.subscribe-form:focus-within {
    border-color: rgba(0, 113, 227, 0.34);
    box-shadow: 0 12px 42px rgba(0, 113, 227, 0.11);
    background: rgba(255, 255, 255, 0.92);
}

.email-input {
    width: 17rem;
    min-width: 0;
    height: 49px;
    padding: 0 0.45rem 0 1.25rem;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 1.05rem;
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.email-input:disabled {
    cursor: wait;
    opacity: 0.68;
}

.request-access,
.coming-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.8rem;
    border-radius: 980px;
    min-height: 49px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.request-access {
    font-family: inherit;
    cursor: pointer;
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(29, 29, 31, 0.16);
}

.request-access::after {
    content: "->";
    transform: translateX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.request-access:hover {
    transform: translateY(-2px);
    background: #000000;
    border-color: #000000;
    box-shadow: 0 18px 48px rgba(29, 29, 31, 0.22);
}

.request-access:disabled {
    cursor: wait;
    transform: none;
    opacity: 0.72;
}

.request-access:disabled::after {
    content: "";
}

.request-access:hover::after {
    transform: translateX(3px);
}

.request-access:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.32);
    outline-offset: 4px;
}

.coming-soon {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
    cursor: default;
}

.subscribe-status {
    min-height: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.subscribe-status[data-state="success"] {
    color: var(--success);
}

.subscribe-status[data-state="error"] {
    color: var(--danger);
}

.coming-soon:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #34c759;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #34c759;
    opacity: 0;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

footer {
    width: 100%;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Entrance Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.6s; }

@media (max-width: 760px) {
    .container {
        padding: 1.5rem;
    }

    main {
        padding: 3rem 0;
    }

    .hero-text {
        font-size: 3.65rem;
    }

    .description {
        font-size: 1.3rem;
        max-width: 34rem;
    }
}

@media (max-width: 430px) {
    .hero-text {
        font-size: 3rem;
    }

    .description {
        font-size: 1.2rem;
    }

    .actions {
        width: 100%;
    }

    .subscribe-form {
        width: 100%;
        max-width: 320px;
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.45rem;
        border-radius: 28px;
    }

    .email-input {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .request-access,
    .coming-soon {
        width: min(100%, 246px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
