/* ═══════════════════════════════════════
   LANDING PAGE STYLES
   Scope: .landing-page
   Responsive: 1440px → 1100px → 768px → 480px
═══════════════════════════════════════ */

/* ── Page Base ───────────────────────── */
html:has(.landing-page),
body.landing-page {
    height: auto;
    overflow-y: auto;
}

.landing-page {
    background-color: #05080c;
    color: #c9d1d9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.border-top { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.text-center { text-align: center; }

/* ── Navbar ──────────────────────────── */
.landing-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 8, 12, 0.95);
    backdrop-filter: blur(8px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 60px;
}

.landing-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.landing-page terminal-header { display: flex; align-items: center; height: 100%; }
.landing-page terminal-header .topbar { background: transparent; border-bottom: none; height: auto; padding: 0; }
.landing-page terminal-header .status-indicator { display: none !important; }

@media (min-width: 769px) {
    .landing-page terminal-header .topbar-right { display: none !important; }
}

.landing-nav-links { display: flex; align-items: center; gap: 20px; }

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: #f8fafc; }

.launch-btn {
    font-size: 13px;
    padding: 0 16px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(180deg, #10B981 0%, #059669 100%);
    color: #020617;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}
.launch-btn:hover {
    background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.launch-btn:active { transform: translateY(1px); }

/* ── Hero ────────────────────────────── */
.landing-hero {
    padding: 140px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 32px;
}

.live-dot {
    width: 6px; height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10B981;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin: 0 0 20px 0;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: #94a3b8;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    height: 42px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    white-space: nowrap;
}
.cta-btn.primary { background: #fff; color: #000; border: 1px solid #fff; }
.cta-btn.primary:hover { background: #e6e6e6; }
.cta-btn.neutral { background: transparent; color: #c9d1d9; border: 1px solid rgba(255, 255, 255, 0.15); }
.cta-btn.neutral:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* ── Section Headers ─────────────────── */
.landing-section { padding: 80px 0; }
.landing-page .section-header { text-align: center; margin-bottom: 56px; }
.landing-page .section-header h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
}
.landing-page .section-header p {
    color: #94a3b8;
    font-size: clamp(15px, 2vw, 17px);
    margin: 0 auto;
    max-width: 560px;
    line-height: 1.6;
}

/* ── Feature Rows ────────────────────── */
.feature-rows { display: flex; flex-direction: column; gap: 80px; }

.feature-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding: 64px 0;
}
.feature-showcase + .feature-showcase {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero showcase — slightly larger */
.feature-showcase.stacked { padding: 80px 0 64px; }

.feature-text { max-width: 760px; display: flex; flex-direction: column; align-items: center; }

.feature-badge {
    display: inline-block;
    color: #10B981;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.feature-text h3 {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.feature-text p {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0 0 20px;
}

.feature-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; color: #c9d1d9; font-size: 14px; font-weight: 500; }
.feature-list li svg { width: 16px; height: 16px; color: #10B981; flex-shrink: 0; }
.feature-list.horizontal {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 20px;
}
.feature-list.horizontal li { white-space: nowrap; margin-bottom: 0; }

/* Large screenshot container */
.feature-visual-large {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0d0f14;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
    overflow: hidden;
    position: relative;
}

/* Screenshot — natural size */
.terminal-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Vertically stacked screenshots (Research & Filings) */
.screenshot-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.screenshot-stack .terminal-screenshot {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.screenshot-stack .terminal-screenshot:last-child {
    border-bottom: none;
}

/* ── Why Us Section ──────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.2s;
}
.why-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.why-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.why-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
    line-height: 1.35;
}

.why-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* ── Blog Section ────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.blog-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}
.blog-card:hover { border-color: rgba(255, 255, 255, 0.12); }

.blog-card-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    margin: 0;
    line-height: 1.4;
}

.blog-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

.blog-link {
    font-size: 13px;
    color: #10B981;
    text-decoration: none;
    font-weight: 500;
}
.blog-link:hover { text-decoration: underline; }

.blog-coming-note {
    text-align: center;
    font-size: 14px;
    color: #64748b;
}
.blog-coming-note a { color: #10B981; text-decoration: none; }
.blog-coming-note a:hover { text-decoration: underline; }

/* ── CTA Section ─────────────────────── */
.landing-cta {
    padding: 80px 0 100px;
    background: radial-gradient(ellipse at top center, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}
.landing-cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    line-height: 1.15;
}
.landing-cta p {
    font-size: 16px;
    color: #94a3b8;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Responsive: 1100px (Tablets) ──── */
@media (max-width: 1100px) {
    .landing-container { padding: 0 20px; }
    .why-grid { gap: 16px; }
    .blog-grid { gap: 16px; }
}

/* ── Responsive: 768px (Tablets / Small) ── */
@media (max-width: 768px) {
    .landing-container { padding: 0 16px; }

    /* Nav */
    .landing-nav-links { gap: 14px; }
    .nav-link { font-size: 12px; }

    /* Hero */
    .landing-hero { padding: 120px 0 56px; }
    .hero-subtitle { margin-bottom: 28px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .cta-btn { width: 100%; max-width: 280px; justify-content: center; }

    /* Features */
    .landing-section { padding: 56px 0; }
    .feature-rows { gap: 48px; }
    .feature-showcase { gap: 24px; padding: 48px 0; }
    .feature-text { max-width: 100%; }
    .feature-list { align-items: center; }
    .feature-visual-large { max-width: 100%; }

    /* Stacked features */
    .feature-showcase.stacked { padding: 56px 0 48px; }
    .feature-list.horizontal { flex-direction: column; gap: 10px; align-items: center; }

    /* Why Us */
    .why-grid { grid-template-columns: repeat(2, 1fr); }

    /* Blog */
    .blog-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

    /* CTA */
    .landing-cta { padding: 56px 0 72px; }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        padding: 8px;
        background: none;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
    }
    .hamburger {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 1px;
        transition: all 0.2s ease;
        transform-origin: center;
    }
    .mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn[aria-expanded="true"] .hamburger:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Dropdown */
    .landing-nav-links {
        position: fixed;
        top: 60px;
        left: 50%;
        width: min(100vw, 1100px);
        transform: translateX(-50%) translateY(-8px);
        background: var(--bg-surface);
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        overflow-y: auto;
        z-index: 300;
        max-height: calc(100vh - 60px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .landing-nav-links.open {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .landing-nav-links .nav-link {
        font-size: 15px;
        padding: 13px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 0;
    }
    .landing-nav-links .nav-link:last-of-type {
        border-bottom: none;
    }

    .landing-nav-links .launch-btn {
        width: calc(100% - 48px);
        margin: 12px 24px;
        justify-content: center;
        height: 44px;
        font-size: 14px;
        border-radius: var(--radius-md);
    }

    /* Hide user name on mobile */
    .landing-page terminal-header .user-name {
        display: none !important;
    }

    /* Footer responsive */
    .landing-footer .landing-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding-bottom: 8px;
    }
    .footer-brand { align-items: center; }
    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* ── Responsive: 480px (Mobile) ────── */
@media (max-width: 480px) {
    .landing-container { padding: 0 12px; }

    /* Nav */
    .landing-nav { height: 52px; }
    .landing-nav-container { padding: 0 12px; }
    .landing-nav-links { gap: 10px; }
    .nav-link { font-size: 11px; }
    .launch-btn { font-size: 12px; padding: 0 12px; height: 32px; }

    /* Hero */
    .landing-hero { padding: 100px 0 40px; }
    .hero-badge { font-size: 9px; padding: 3px 8px; margin-bottom: 24px; }
    .hero-subtitle { margin-bottom: 24px; }

    /* Features */
    .landing-section { padding: 40px 0; }
    .feature-rows { gap: 40px; }
    .section-header { margin-bottom: 36px; }

    /* Why Us */
    .why-grid { grid-template-columns: 1fr; }
    .why-card { padding: 20px; }

    /* Blog */
    .blog-card { padding: 20px; }

    /* CTA */
    .landing-cta { padding: 40px 0 56px; }

    /* Footer tight spacing */
    .landing-footer { padding: 28px 0 !important; }
    .footer-links { gap: 8px !important; }
}

/* ── Mobile menu button: hidden on desktop ── */
@media (min-width: 769px) {
    .mobile-menu-btn { display: none !important; }
}
