/* ===========================
   AntiDoomScroll — Styles
   =========================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --green: #00E676;
    --green-dim: rgba(0, 230, 118, 0.15);
    --gold: #FFD700;
    --gold-dim: rgba(255, 215, 0, 0.15);
    --red: #FF4444;
    --red-dim: rgba(255, 68, 68, 0.12);
    --white: #FFFFFF;
    --gray: #9CA3AF;
    --gray-light: #6B7280;
    --border: rgba(255, 255, 255, 0.08);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --max-width: 1120px;
    --nav-height: 72px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}


/* ---------- Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }


/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--green);
    color: #000;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.35);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.highlight-green {
    color: var(--green);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-cta-note {
    font-size: 0.85rem;
    color: var(--gray-light);
}


/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: var(--green);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: 12px;
}


/* ---------- Phone Mockup ---------- */
.hero-phone {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    background: #1a1a1a;
    border-radius: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    position: relative;
    box-shadow:
        0 0 60px rgba(0, 230, 118, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.5);
    animation: phoneFloat 4s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: #0a0a0a;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 12px;
}

.phone-screen {
    background: var(--bg);
    border-radius: 20px;
    padding: 16px;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.screen-title {
    font-weight: 600;
    font-size: 0.8rem;
}

.screen-pot {
    font-size: 0.75rem;
    color: var(--gold);
}

.screen-pot strong {
    font-family: var(--font-mono);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lb-row {
    display: grid;
    grid-template-columns: 20px 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.lb-winner {
    background: var(--green-dim);
}

.lb-loser {
    background: var(--red-dim);
}

.lb-rank {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--gray);
    font-size: 0.7rem;
}

.lb-name {
    font-weight: 600;
}

.lb-time {
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.lb-status {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
}

.status-win {
    color: var(--green);
}

.status-lose {
    color: var(--red);
}

.screen-goal {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray);
}

.hero-proof {
    max-width: var(--max-width);
    margin: 48px auto 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray);
}

.proof-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}


/* ---------- Section Shared ---------- */
.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    margin-bottom: 12px;
}

.section-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}


/* ---------- Problem Section ---------- */
.problem {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--green);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.problem-copy {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 640px;
    margin-bottom: 32px;
}

.problem-copy strong {
    color: var(--white);
}

.quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--gray);
    border-left: 3px solid var(--green);
    padding-left: 20px;
    max-width: 600px;
}

.quote cite {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-top: 8px;
}


/* ---------- How It Works ---------- */
.how-it-works {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.step-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-4px);
}

.step-icon {
    margin-bottom: 16px;
}

.step-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 12px;
    opacity: 0.6;
}

.step-card h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

.steps-tagline {
    text-align: center;
    font-size: 1.15rem;
    color: var(--gray);
}

.steps-tagline em {
    color: var(--gold);
}


/* ---------- Stakes ---------- */
.stakes {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.stakes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stakes-text .section-headline {
    margin-bottom: 20px;
}

.stakes-text p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 24px;
}

.stakes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.stakes-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--gray);
}

.stakes-list li svg {
    flex-shrink: 0;
}

.stakes .quote {
    border-left-color: var(--gold);
}


/* Web Diagram Visual */
.web-diagram {
    max-width: 420px;
    margin: 0 auto;
}

.web-diagram svg {
    width: 100%;
    height: auto;
}

.web-line-bg {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

.web-flow-line {
    stroke-width: 1.5;
    stroke-dasharray: 6 5;
}

.web-flow-line.flow-to-center {
    stroke: #FF4444;
    animation: dashFlowIn 1.2s linear infinite;
}

.web-flow-line.flow-from-center {
    stroke: #00E676;
    animation: dashFlowOut 1.2s linear infinite;
}

@keyframes dashFlowIn {
    to { stroke-dashoffset: -11; }
}

@keyframes dashFlowOut {
    to { stroke-dashoffset: 11; }
}

.center-ring {
    animation: ringRotate 20s linear infinite;
    transform-origin: 220px 216px;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.web-node {
    transition: filter 0.3s ease;
}


/* ---------- Doomscroll Stats ---------- */
.doom-stats {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg) 0%, #0d0d0d 100%);
}

.doom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.doom-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.doom-card:hover {
    border-color: rgba(255, 68, 68, 0.3);
    transform: translateY(-4px);
}

.doom-number {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
    line-height: 1.2;
}

.doom-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}


/* ---------- Quotes Section ---------- */
.quotes-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.quote-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.quote-card:hover {
    border-color: rgba(0, 230, 118, 0.2);
    transform: translateY(-4px);
}

.quote-card p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--white);
}

.quote-card cite {
    font-size: 0.85rem;
    color: var(--gray-light);
    font-style: normal;
}


/* ---------- Mission Banner ---------- */
.mission {
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.mission::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.mission-headline {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 700px;
    margin: 0 auto 20px;
}

.mission-sub {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 36px;
}


/* ---------- Waitlist ---------- */
.waitlist {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.waitlist-sub {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 32px;
}

.waitlist-form {
    max-width: 480px;
    margin: 0 auto 16px;
}

.form-group {
    display: flex;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    transition: border-color 0.3s ease;
}

.form-group:focus-within {
    border-color: rgba(0, 230, 118, 0.4);
}

.form-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 16px;
}

.form-group input::placeholder {
    color: var(--gray-light);
}

.form-group .btn {
    flex-shrink: 0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.form-note {
    font-size: 0.8rem;
    color: var(--gray-light);
    margin-top: 12px;
}

.waitlist-success {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.waitlist-success svg {
    margin: 0 auto 16px;
}

.waitlist-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--green);
}

.waitlist-success p {
    color: var(--gray);
}

.share-section {
    margin-top: 40px;
}

.share-section p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--gray);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


/* ---------- FAQ ---------- */
.faq {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--green);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}


/* ---------- Footer ---------- */
.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-top: 10px;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--gray);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-light);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--gray-light);
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--gray);
}


/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .stakes-grid {
        gap: 40px;
    }

    .doom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-phone {
        order: -1;
    }

    .phone-mockup {
        width: 260px;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .stakes-grid {
        grid-template-columns: 1fr;
    }

    .stakes-visual {
        order: -1;
    }

    .doom-grid {
        grid-template-columns: 1fr;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group .btn {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    .hero-headline {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 240px;
    }
}
