/* WhatBot Landing Page — Premium Dark Theme */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #06060b;
    --bg-card: #0d0d14;
    --bg-elevated: #13131e;
    --border: #1a1a2e;
    --text: #e8e8f0;
    --text-dim: #6b6b80;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.15);
    --accent-glow-strong: rgba(139, 92, 246, 0.35);
    --green: #34d399;
    --cyan: #22d3ee;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ─── Animated Background ────────────────────────── */

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    animation: float 12s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.15);
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(34, 211, 238, 0.08);
    bottom: -100px;
    left: -100px;
    animation-delay: -6s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -20px);
    }
}

/* ─── Nav ────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(6, 6, 11, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    text-decoration: none;
}

.nav-logo svg {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* ─── Hero ───────────────────────────────────────── */

.hero {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--accent-light);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-sub strong {
    color: var(--text);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--accent-glow-strong);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--text-dim);
    text-decoration: none;
    padding: 16px 24px;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 13px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── App Mockup ─────────────────────────────────── */

.hero-visual {
    position: relative;
}

.app-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px var(--accent-glow);
    animation: mockup-float 6s ease-in-out infinite;
}

@keyframes mockup-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.app-titlebar {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.app-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #f87171;
}

.dot.yellow {
    background: #fbbf24;
}

.dot.green {
    background: #34d399;
}

.app-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
}

.app-body {
    padding: 20px;
}

.app-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.app-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 16px;
}

.app-feature-title {
    font-weight: 700;
    font-size: 15px;
}

.app-feature-sub {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.toggle-mock {
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.3s;
}

.toggle-mock.on {
    background: var(--accent);
}

.toggle-knob {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle-mock.on .toggle-knob {
    transform: translateX(20px);
}

.app-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.app-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-light);
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
}

.app-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 13px;
    animation: feed-in 0.3s ease;
}

.feed-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.feed-check {
    margin-left: auto;
}

@keyframes feed-in {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating cards */
.floating-card {
    position: absolute;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: float-card 5s ease-in-out infinite;
    z-index: 10;
    white-space: nowrap;
}

.card-1 {
    top: -10px;
    right: -30px;
    animation-delay: -1s;
}

.card-2 {
    bottom: 40px;
    left: -40px;
    animation-delay: -3s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ─── Social Proof ───────────────────────────────── */

.social-proof {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.proof-text {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--text-dim);
}

.proof-stat span {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Section Headers ────────────────────────────── */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-badge {
    display: inline-block;
    background: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--accent-light);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 16px;
}

/* ─── Features ───────────────────────────────────── */

.features {
    position: relative;
    z-index: 1;
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

/* ─── How It Works ───────────────────────────────── */

.how-it-works {
    position: relative;
    z-index: 1;
    padding: 100px 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: center;
}

.step {
    flex: 1;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-dim);
    font-size: 14px;
}

.step-arrow {
    font-size: 24px;
    color: var(--accent);
    margin-top: 50px;
    flex-shrink: 0;
}

/* ─── Download ───────────────────────────────────── */

.download {
    position: relative;
    z-index: 1;
    padding: 80px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.download-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
    pointer-events: none;
}

.download-icon {
    font-size: 48px;
    margin-bottom: 16px;
    position: relative;
}

.download-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.download-card>p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 28px;
    position: relative;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s;
    box-shadow: 0 4px 30px var(--accent-glow-strong);
    position: relative;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 50px var(--accent-glow-strong);
}

.download-meta {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-dim);
    position: relative;
}

/* ─── Waitlist ───────────────────────────────────── */

.waitlist {
    position: relative;
    z-index: 1;
    padding: 80px 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.waitlist-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.waitlist h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.waitlist p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 24px;
}

.waitlist-form {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 14px;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #6d28d9);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.waitlist-fine {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 12px;
}

/* ─── FAQ ────────────────────────────────────────── */

.faq {
    position: relative;
    z-index: 1;
    padding: 100px 32px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-q::after {
    content: '+';
    font-size: 20px;
    color: var(--accent);
    transition: transform 0.2s;
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 24px 18px;
}

.faq-a p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
}

/* ─── Footer ─────────────────────────────────────── */

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 40px 32px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.footer-brand svg {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 12px;
}

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        gap: 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .proof-stats {
        gap: 32px;
    }

    .floating-card {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-menu {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .proof-stats {
        flex-direction: column;
        gap: 20px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 28px;
    }
}