/* ============================================================
   DYLD Vantage — Brochure Landing
   Aesthetic: Cinematic dark financial terminal meets editorial
   ============================================================ */

/* --- Scroll Reveal --- */
.reveal, .stagger-child {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible, .stagger-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero --- */
.hero-bg {
    position: relative;
    background: #060710;
    overflow: hidden;
}
html:not(.dark) .hero-bg {
    background: linear-gradient(180deg, #f0f1ff 0%, #f8fafc 100%);
}

/* Animated gradient orb behind hero */
.hero-glow-orb {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, rgba(99,102,241,0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
html:not(.dark) .hero-glow-orb {
    background: radial-gradient(ellipse, rgba(99,102,241,0.10) 0%, rgba(99,102,241,0.02) 40%, transparent 70%);
}

/* Subtle noise texture overlay */
.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    pointer-events: none;
    z-index: 1;
}
html:not(.dark) .noise-overlay { opacity: 0.4; }

/* Fine grid overlay */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 1;
}
html:not(.dark) .grid-overlay {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

/* Typography & gradient-text → moved to app.css (shared design system) */
.gradient-text-warm {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Cards --- */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0), rgba(99,102,241,0.3), rgba(99,102,241,0), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}
.feature-card:hover::before {
    opacity: 1;
}

html:not(.dark) .feature-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
html:not(.dark) .feature-card:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.08);
}

/* Icon container */
.icon-frame {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
}
html:not(.dark) .icon-frame {
    background: rgba(99, 102, 241, 0.06);
}

/* --- Stat pill --- */
.stat-block {
    text-align: center;
    padding: 20px 16px;
}
.stat-block:last-child { border-right: none; }
html:not(.dark) .stat-block { border-color: rgba(0,0,0,0.08); }

.stat-number {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

/* --- Navbar --- */
.navbar-transparent { background: transparent; }
.navbar-solid {
    background: rgba(6, 7, 16, 0.8);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
html:not(.dark) .navbar-solid {
    background: rgba(248, 250, 252, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* --- Browser mockup --- */
.browser-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
html:not(.dark) .browser-frame {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}
.browser-bar {
    background: #111318;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 7px;
}
html:not(.dark) .browser-bar { background: #e8eaed; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.screenshot-placeholder {
    background: linear-gradient(170deg, #0a0b10 0%, #10112a 40%, #0d0e18 100%);
    min-height: 360px;
}
html:not(.dark) .screenshot-placeholder {
    background: linear-gradient(170deg, #f8fafc 0%, #eef1ff 40%, #f8fafc 100%);
}

/* --- Pricing --- */
.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s;
}
.pricing-card-featured {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.08);
}
html:not(.dark) .pricing-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}
html:not(.dark) .pricing-card-featured {
    border-color: #6366f1;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.06);
}

/* --- FAQ --- */
.faq-item summary {
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .chevron-icon { transform: rotate(180deg); }
.chevron-icon { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: border-color 0.3s;
}
.faq-item:hover, .faq-item[open] {
    border-color: rgba(99, 102, 241, 0.15);
}
html:not(.dark) .faq-item {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.06);
}

/* --- Section divider --- */
.section-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,0.15), transparent);
}

/* --- Tag --- */
.tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.625rem;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
}
html:not(.dark) .tag {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.45);
}

/* --- CTA button --- */
.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: #6366f1;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
    position: relative;
    overflow: hidden;
}
.cta-primary:hover {
    background: #4f46e5;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.7);
    font-family: 'Sora', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 12px;
    transition: all 0.3s;
}
.cta-secondary:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}
html:not(.dark) .cta-secondary {
    border-color: rgba(0,0,0,0.12);
    color: #4b5563;
}
html:not(.dark) .cta-secondary:hover {
    border-color: #6366f1;
    color: #4f46e5;
}

/* --- Keyword pill --- */
.keyword-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: #818cf8;
    letter-spacing: 0.02em;
}
html:not(.dark) .keyword-pill {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

/* --- Tab --- */
.tab-btn-active {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}
html:not(.dark) .tab-btn-active {
    background: #eef2ff !important;
    color: #4f46e5 !important;
}

/* --- Smooth scroll --- */
html { scroll-behavior: smooth; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .reveal, .stagger-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .navbar-solid { backdrop-filter: none; -webkit-backdrop-filter: none; }
    html { scroll-behavior: auto; }
    .hero-glow-orb { display: none; }
}
