/* ============================================
   BetFlowBot Landing Page — v5
   Pure CSS — zero dependencies
   Senior UI rewrite
   ============================================ */

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

:root {
    --primary: #6C3AED;
    --primary-dark: #5B21B6;
    --primary-light: #8B5CF6;
    --accent: #10B981;
    --accent-dark: #059669;
    --bg: #0A0A0F;
    --bg-card: #13131D;
    --bg-card-hover: #1A1A28;
    --surface: #1E1E2E;
    --text: #E5E5ED;
    --text-muted: #8888A0;
    --text-heading: #FFFFFF;
    --border: #252538;
    --border-light: #30304A;
    --red: #EF4444;
    --green: #10B981;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --max-width: 1200px;
    --glow-purple: 0 0 80px rgba(108, 58, 237, 0.25), 0 0 160px rgba(108, 58, 237, 0.1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 { color: var(--text-heading); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; text-align: center; }
h3 { font-size: 1.35rem; font-weight: 700; }

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-top: 16px;
    margin-bottom: 56px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108,58,237,0.4); }
.btn-secondary {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    padding: 12px 26px;
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 12px 26px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-xl { padding: 20px 44px; font-size: 1.15rem; border-radius: 14px; }

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: rgba(10,10,15,0.8);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border); }
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--text-heading); display: flex; align-items: center; gap: 6px; }
.logo:hover { color: var(--text-heading); }
.logo-icon { font-size: 1.6rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text-heading); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ============================================
   HERO — cinematic style
   ============================================ */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}
/* Ambient glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(108,58,237,0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(108,58,237,0.12);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    border: 1px solid rgba(108,58,237,0.25);
}
.hero-content { max-width: 780px; }
.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 24px;
    max-width: 560px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}
.hero-sub strong { color: var(--text); }
.hero-ctas { margin-top: 36px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }
.hero-social-proof {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.proof-avatars { display: flex; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; color: var(--primary-light);
    margin-right: -10px;
}

/* Hero Screenshot — large, perspective, glow */
.hero-visual {
    width: 100%;
    max-width: 1100px;
    margin-top: 64px;
    perspective: 1200px;
}
.dashboard-mockup {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow:
        0 20px 80px rgba(108, 58, 237, 0.2),
        0 8px 32px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transform: rotateX(2deg);
    transition: transform 0.5s ease;
}
.dashboard-mockup:hover {
    transform: rotateX(0deg) scale(1.01);
}
.dashboard-mockup .screenshot-img {
    width: 100%;
    display: block;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* Legacy mockup elements (hidden since we use screenshot) */
.mockup-bar, .mockup-body, .mockup-stat, .mockup-chart, .chart-bar { display: none; }

/* ============================================
   LIVE MARKETS
   ============================================ */
.live-markets { padding: 100px 0; }
.markets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 0;
}
.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.market-card:hover { border-color: var(--primary-light); transform: translateY(-3px); }
.market-cat {
    display: inline-block;
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--primary-light); background: rgba(108,58,237,0.12);
    padding: 3px 10px; border-radius: 4px; margin-bottom: 12px;
}
.market-card h3 { font-size: 0.95rem; color: var(--text-heading); margin-bottom: 14px; line-height: 1.4; min-height: 2.6em; }
.market-prices { display: flex; gap: 8px; margin-bottom: 10px; }
.price-yes, .price-no { font-size: 0.82rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.price-yes { color: var(--green); background: rgba(16,185,129,0.1); }
.price-no { color: var(--red); background: rgba(239,68,68,0.1); }
.market-vol { font-size: 0.75rem; color: var(--text-muted); }
.markets-disclaimer { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 20px; }

/* ============================================
   PROBLEM
   ============================================ */
.problem { padding: 100px 0; background: var(--bg-card); }
.problem h2 { margin-bottom: 56px; }
.problem-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px; max-width: 720px; margin: 0 auto;
}
.problem-card {
    display: flex; align-items: flex-start; gap: 14px; padding: 22px;
    background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border);
}
.problem-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.problem-card p { color: var(--text-muted); }
.problem-card strong { color: var(--text); }
.problem-conclusion { text-align: center; margin-top: 48px; font-size: 1.2rem; color: var(--text-muted); }
.problem-conclusion strong { color: var(--text-heading); }

/* ============================================
   SOLUTION (pillars)
   ============================================ */
.solution { padding: 100px 0; }
.solution-header { text-align: center; margin-bottom: 64px; }
.solution-header p { margin-top: 12px; color: var(--text-muted); font-size: 1.1rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
    text-align: center; padding: 44px 28px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); transition: all 0.3s;
}
.pillar:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(108,58,237,0.12); }
.pillar-icon { font-size: 2.5rem; margin-bottom: 20px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================
   FEATURES — alternating showcase blocks
   ============================================ */
.features { padding: 100px 0; background: var(--bg-card); }
.features h2 { margin-bottom: 8px; }

.feature-showcase {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: center;
    margin: 5rem 0;
}
.feature-showcase.reverse { grid-template-columns: 7fr 5fr; }
.feature-showcase.reverse .feature-text { order: 2; }
.feature-showcase.reverse .feature-image { order: 1; }

.feature-tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--primary-light); background: rgba(108,58,237,0.12);
    padding: 5px 14px; border-radius: 6px; margin-bottom: 16px;
}
.feature-text h3 {
    font-size: 1.75rem; color: var(--text-heading);
    margin-bottom: 16px; line-height: 1.25;
}
.feature-text p {
    color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; font-size: 1.02rem;
}
.feature-list { list-style: none; padding: 0; }
.feature-list li {
    padding: 6px 0; color: var(--text); font-size: 0.95rem;
}
.feature-list li::before {
    content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 10px;
}
.feature-image {
    position: relative;
}
.feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feature-image img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow-purple);
}

/* AI Highlight Block */
.ai-highlight {
    margin: 5rem 0;
    padding: 2px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
}
.ai-highlight-inner {
    background: var(--bg-card);
    border-radius: calc(var(--radius-xl) - 1px);
    padding: 3.5rem 2rem;
    text-align: center;
}
.ai-highlight h3 { font-size: 1.75rem; margin-bottom: 16px; }
.ai-highlight p {
    color: var(--text-muted); max-width: 680px;
    margin: 0 auto 2rem; line-height: 1.7; font-size: 1.05rem;
}
.ai-highlight p strong { color: var(--primary-light); }
.ai-stats { display: flex; justify-content: center; gap: 4rem; }
.ai-stat { display: flex; flex-direction: column; align-items: center; }
.ai-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-heading); }
.ai-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.features-cta { text-align: center; margin-top: 4rem; }
.features-cta-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 10px; }
.screenshot-img {
    width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow);
}

/* ============================================
   RISK MANAGEMENT
   ============================================ */
.risk-management { padding: 100px 0; }
.risk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.risk-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.3s, transform 0.3s;
}
.risk-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.risk-icon { font-size: 2rem; margin-bottom: 16px; }
.risk-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}
.risk-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.risk-card strong { color: var(--text); }
.risk-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm);
}
.risk-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.risk-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}
@media (max-width: 1024px) {
    .risk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .risk-grid { grid-template-columns: 1fr; }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { padding: 100px 0; }
.how-it-works h2 { margin-bottom: 8px; }
.steps { display: flex; align-items: center; justify-content: center; gap: 24px; }
.step {
    text-align: center; padding: 44px 32px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); flex: 1; max-width: 300px;
}
.step-number {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }
.step-arrow { font-size: 1.5rem; color: var(--text-muted); }
.steps-note { text-align: center; margin-top: 36px; color: var(--text-muted); font-size: 1.05rem; }
.steps-note strong { color: var(--accent); }

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 100px 0; background: var(--bg-card); }
.pricing h2 { margin-bottom: 8px; }
.pricing-cards {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 28px; max-width: 780px; margin: 0 auto;
}
.pricing-card {
    padding: 44px 36px; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); position: relative; display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 48px rgba(108,58,237,0.15); }
.pricing-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    padding: 5px 22px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.pricing-header { margin-bottom: 28px; }
.pricing-header h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price-value { font-size: 2.5rem; font-weight: 800; color: var(--text-heading); }
.price-period { color: var(--text-muted); font-size: 1rem; }
.price-alt { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.pricing-features { list-style: none; flex-grow: 1; margin-bottom: 28px; }
.pricing-features li {
    padding: 10px 0; padding-left: 28px; position: relative;
    font-size: 0.95rem; border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.included::before { content: '\2713'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pricing-features li.excluded { color: var(--text-muted); opacity: 0.5; }
.pricing-features li.excluded::before { content: '\2717'; position: absolute; left: 0; color: var(--red); opacity: 0.5; }
.pricing-note { text-align: center; margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 100px 0; }
.faq h2 { margin-bottom: 56px; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%; text-align: left; padding: 22px 0; background: none;
    border: none; color: var(--text-heading); font-size: 1.05rem;
    font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; transition: color 0.2s;
}
.faq-question:hover { color: var(--primary-light); }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.active .faq-question::after { content: '\2212'; color: var(--primary-light); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 20px; }
.faq-answer p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }
.faq-answer strong { color: var(--text); }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 120px 0; text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(108,58,237,0.06) 100%);
}
.final-cta h2 { max-width: 680px; margin: 0 auto 20px; }
.final-cta p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 36px; }
.cta-note { display: block; margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 60px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 0.9rem; }
.footer-powered { margin-top: 8px; font-size: 0.8rem; color: var(--primary-light); opacity: 0.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 0.9rem; color: var(--text-heading); margin-bottom: 4px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-bio { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; line-height: 1.4; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ============================================
   DISCLAIMER
   ============================================ */
.disclaimer { padding: 24px 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.disclaimer p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; text-align: center; max-width: 800px; margin: 0 auto; }
.disclaimer a { color: var(--primary-light); }
.disclaimer strong { color: var(--text); }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 16px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    transform: translateY(0); transition: transform 0.4s ease;
}
.cookie-banner.hidden { transform: translateY(100%); pointer-events: none; }
.cookie-content {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.cookie-content p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.cookie-content a { color: var(--primary-light); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-showcase,
    .feature-showcase.reverse { grid-template-columns: 1fr; gap: 2.5rem; }
    .feature-showcase.reverse .feature-text { order: 1; }
    .feature-showcase.reverse .feature-image { order: 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--bg);
        padding: 24px; border-bottom: 1px solid var(--border); gap: 16px;
    }
    .hero { padding: 120px 0 60px; }
    .hero-visual { margin-top: 40px; }
    .dashboard-mockup { transform: none; border-radius: var(--radius-lg); }
    .hero-ctas { flex-direction: column; }
    .problem-grid { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: 1fr; }
    .markets-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .step { max-width: 100%; }
    .pricing-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-text h3 { font-size: 1.4rem; }
    .ai-stats { flex-direction: column; gap: 1.5rem; }
    .ai-highlight-inner { padding: 2rem 1.5rem; }
    .cookie-content { flex-direction: column; text-align: center; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
