:root {
    color-scheme: dark;
    --bg: #090b10;
    --surface: #111520;
    --surface-2: #171d2c;
    --border: rgba(255, 255, 255, 0.09);
    --text: #f8fafc;
    --muted: #94a3b8;
    --body: #cbd5e1;
    --accent: #e50914;
    --accent-hover: #f6121d;
    --cta: #16a34a;
    --cta-hover: #22c55e;
    --ok: #22c55e;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}

a:focus,
button:focus {
    outline: 2px solid #86efac;
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 11, 16, 0.92);
    background: rgba(9, 11, 16, 0.84);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.brand-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

.nav-cta.is-locked {
    background: #334155;
    color: #cbd5e1;
    cursor: not-allowed;
}

.hero-section {
    position: relative;
    min-height: 580px;
    min-height: min(82vh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 20px 80px;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(9, 11, 16, 0.72) 0%, rgba(9, 11, 16, 0.56) 45%, #090b10 100%),
        radial-gradient(circle at 50% 35%, rgba(229, 9, 20, 0.18), transparent 62%),
        url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(17, 21, 32, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
}

h1 {
    font-size: 2.75rem;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.hero-sub {
    font-size: 1.12rem;
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: #e2e8f0;
    max-width: 620px;
    margin: 0 auto 26px;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.quality-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.q-pill {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(17, 21, 32, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
}

.q-pill-hot {
    border-color: rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.captcha-slot {
    display: flex;
    justify-content: center;
    min-height: 78px;
    margin-bottom: 16px;
}

.dual-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.or-divider {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.status-slot {
    min-height: 20px;
    margin-top: 14px;
}

.status-msg {
    display: inline-block;
    font-size: 0.88rem;
    padding: 4px 14px;
    border-radius: 20px;
}

.status-msg.verifying {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.status-msg.ok {
    color: #86efac;
    background: rgba(22, 163, 74, 0.18);
}

.status-msg.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 15px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cta), #15803d);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    animation: pulseGlow 2.2s infinite;
    transition: background 0.15s, transform 0.12s;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(22, 163, 74, 0.42); }
    50% { box-shadow: 0 12px 42px rgba(34, 197, 94, 0.72); }
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cta-hover), #16a34a);
    transform: translateY(-1px);
}

.btn-primary.is-locked {
    background: #1e2434;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
    animation: none;
    cursor: not-allowed;
}

.btn-primary.is-locked:hover {
    background: #1e2434;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 12px;
    background: rgba(17, 21, 32, 0.85);
    color: var(--text);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.section {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.section-head {
    max-width: 680px;
    margin-bottom: 32px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

h2 {
    font-size: 1.8rem;
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 12px;
}

h3 {
    font-size: 1.06rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.prose p,
p.prose {
    color: var(--body);
    font-size: 0.98rem;
    margin-bottom: 16px;
}

.prose p:last-child,
p.prose:last-child {
    margin-bottom: 0;
}

/* Flexbox fallbacks for Chrome 50; upgraded to CSS Grid via @supports below */
.grid-3,
.grid-2,
.faq-list {
    display: flex;
    flex-wrap: wrap;
    margin: -9px;
}

.grid-3 > .card-tile {
    width: calc(33.333% - 18px);
    margin: 9px;
}

.grid-2 > .browser-card,
.faq-list > .faq-item {
    width: calc(50% - 18px);
    margin: 9px;
}

@supports (display: grid) {
    .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin: 0;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        margin: 0;
    }

    .faq-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 0;
    }

    .grid-3 > .card-tile,
    .grid-2 > .browser-card,
    .faq-list > .faq-item {
        width: auto;
        margin: 0;
    }
}

.card-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.card-tile p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.endpoints {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.endpoint-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--body);
}

.endpoint-pill code {
    color: #86efac;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.browser-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}

.browser-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.browser-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.browser-icon img {
    width: 28px;
    height: 28px;
    display: block;
}

.browser-title h3 {
    margin-bottom: 2px;
}

.browser-title span {
    font-size: 0.82rem;
    color: var(--muted);
}

.steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steps li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--body);
}

.steps li::before {
    content: counter(step);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
}

.faq-item p {
    color: var(--muted);
    font-size: 0.93rem;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.16), rgba(17, 21, 32, 0.95));
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
}

.cta-banner p {
    color: var(--body);
    max-width: 560px;
    margin: 0 auto 24px;
}

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
}

.hidden {
    display: none;
}

/* Flexbox gap spacing fallback for browsers lacking flex gap (e.g. Chrome 50) */
@supports not (gap: 1px) {
    .brand-name { margin-left: 10px; }
    .nav-links a + a { margin-left: 24px; }
    .hero-badge-dot { margin-right: 8px; }
    .q-pill { margin: 5px; }
    .hero-meta span { margin: 4px 12px; }
    .endpoint-pill { margin: 6px; }
    .endpoint-pill code { margin-left: 8px; }
    .browser-title { margin-left: 14px; }
    .steps li + li { margin-top: 10px; }
    .steps li::before { margin-right: 10px; }
}

@media (max-width: 900px) {
    .grid-3 > .card-tile {
        width: calc(50% - 18px);
    }

    @supports (display: grid) {
        .grid-3 {
            grid-template-columns: repeat(2, 1fr);
        }
        .grid-3 > .card-tile {
            width: auto;
        }
    }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    h1 {
        font-size: 2.1rem;
    }

    .grid-3 > .card-tile,
    .grid-2 > .browser-card,
    .faq-list > .faq-item {
        width: calc(100% - 18px);
    }

    @supports (display: grid) {
        .grid-3,
        .grid-2,
        .faq-list {
            grid-template-columns: 1fr;
        }
        .grid-3 > .card-tile,
        .grid-2 > .browser-card,
        .faq-list > .faq-item {
            width: auto;
        }
    }

    .hero-section {
        min-height: auto;
        padding: 56px 16px 64px;
    }

    .section {
        padding: 44px 0;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn-primary {
        animation: none;
        transition: none;
    }
}
