*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    background: #0a0f1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Header ── */
.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: inherit;
}

.logo svg {
    flex-shrink: 0;
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* ── Main ── */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(46, 144, 255, 0.08), transparent),
        linear-gradient(180deg, #0d1321 0%, #0a0f1a 100%);
}

.content {
    text-align: center;
    max-width: 540px;
    width: 100%;
}

/* Pulsing logo */
.pulse-logo {
    margin: 0 auto -2rem;
    animation: pulse-logo 2.4s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

/* Badge */
.badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2E90FF;
    background: rgba(46, 144, 255, 0.1);
    border: 1px solid rgba(46, 144, 255, 0.2);
    border-radius: 100px;
    padding: 0.3rem 0.85rem;
    margin-bottom: 1rem;
}

/* Typography */
h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

/* ── Signup Form ── */
.signup-form {
    max-width: 440px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 0.5rem;
}

.signup-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.signup-form input[type="email"]:focus {
    border-color: rgba(46, 144, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(46, 144, 255, 0.12);
}

.signup-form input[type="email"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signup-form button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: #2E90FF;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
    min-height: 2.75rem;
}

.signup-form button:hover:not(:disabled) {
    background: #1b7de8;
}

.signup-form button:active:not(:disabled) {
    background: #166fd0;
}

.signup-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Loading spinner animation */
.btn-loading svg {
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Form Messages ── */
.form-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
}

.form-message[hidden] {
    display: none;
}

.form-message--success {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.form-message--error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.15);
}

/* Compliance copy */
.compliance {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Brevo Embed Container ── */
.brevo-embed {
    max-width: 440px;
    margin: 0 auto;
}

/* ── Footer ── */
.footer {
    padding: 1.5rem 1.25rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.22);
}

/* ═══════════════════════════════════════════════════════
   Responsive — Scale up from mobile
   ═══════════════════════════════════════════════════════ */

/* Small phones (≤ 380px) */
@media (max-width: 380px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .signup-form button {
        width: 100%;
    }
}

/* Phones (381–480px) — form stacks */
@media (max-width: 480px) {
    h1 {
        font-size: 2.25rem;
    }

    .form-row {
        flex-direction: column;
    }

    .signup-form button {
        width: 100%;
    }
}

/* Tablet+ (641px+) */
@media (min-width: 641px) {
    h1 {
        font-size: 3.25rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .main {
        padding: 4rem 2rem;
    }
}

/* Desktop (961px+) */
@media (min-width: 961px) {
    h1 {
        font-size: 3.5rem;
    }

    .main {
        padding: 5rem 2rem;
    }
}
