/**
 * CFIN Landing Page - Premium Dark Theme
 * Matching Project Amber's design language
 * VERSION: 76 - Unified card hover effects, added reduced-motion support (2026-02-12)
 */

/* Utility: CSP-safe hidden class (inline style="display:none" unreliable with nonce-matched CSS) */
.u-hidden {
    display: none !important;
}

/* Skip-link: hidden off-screen, visible only on keyboard focus */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
}
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 18px;
    background: var(--bg-panel, #2c2c2e);
    color: var(--text-main, #fff);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ============================================================================
   CSS Variables - Dark Mode (Default)
   Colors match theme.css for unified palette.
   Layout tokens (radius, shadow) are landing-specific.
   ============================================================================ */
:root {
    /* Colors — synced with theme.css */
    --bg-main: rgb(28, 28, 30);
    --bg-panel: rgb(44, 44, 46);
    --bg-elevated: rgb(50, 50, 52);
    --bg-card: rgba(44, 44, 46, 0.95);
    --bg-hover: rgb(58, 58, 60);

    --text-main: rgb(255, 255, 255);
    --text-sub: rgb(152, 152, 157);
    --text-secondary: rgb(152, 152, 157);
    --text-dim: rgb(99, 99, 102);

    --profit: rgb(52, 199, 89);
    --profit-bg: rgba(52, 199, 89, 0.15);
    --profit-bg-light: rgba(52, 199, 89, 0.08);
    --loss: rgb(255, 69, 58);
    --loss-bg: rgba(255, 69, 58, 0.15);
    --accent: rgb(10, 132, 255);
    --accent-bg: rgba(10, 132, 255, 0.15);
    --accent-bg-light: rgba(10, 132, 255, 0.08);
    --purple: rgb(191, 90, 242);
    --purple-bg: rgba(191, 90, 242, 0.15);
    --teal: rgb(90, 200, 250);
    --teal-bg: rgba(90, 200, 250, 0.15);
    --teal-bg-light: rgba(90, 200, 250, 0.08);
    --orange: rgb(255, 149, 0);
    --orange-bg: rgba(255, 149, 0, 0.15);
    --orange-bg-light: rgba(255, 149, 0, 0.08);
    --orange-border: rgba(255, 149, 0, 0.2);
    --amber: rgb(255, 159, 10);
    --amber-bg: rgba(255, 159, 10, 0.15);
    --amber-gradient: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);

    --border: rgba(99, 99, 102, 0.3);
    --border-light: rgba(255, 255, 255, 0.1);

    /* Layout — landing-specific (rounder, softer than app) */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 100px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(52, 199, 89, 0.3);

    --transition-fast: 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

    /* ---- Glass Effect ---- */
    --glass-bg: rgba(44, 44, 46, 0.68);
    --glass-blur: 20px;
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.03);
}

/* ============================================================================
   Light Mode Variables — colors synced with theme.css
   ============================================================================ */
:root.light {
    --bg-main: rgb(255, 255, 255);
    --bg-panel: rgb(242, 242, 247);
    --bg-elevated: rgb(229, 229, 234);
    --bg-card: rgba(242, 242, 247, 0.95);
    --bg-hover: rgb(229, 229, 234);

    --text-main: rgb(0, 0, 0);
    --text-sub: rgb(142, 142, 147);
    --text-secondary: rgb(142, 142, 147);
    --text-dim: rgb(174, 174, 178);

    --profit: rgb(40, 167, 69);
    --profit-bg: rgba(40, 167, 69, 0.1);
    --profit-bg-light: rgba(40, 167, 69, 0.06);
    --loss: rgb(220, 53, 45);
    --loss-bg: rgba(220, 53, 45, 0.1);
    --accent: rgb(24, 111, 216);
    --accent-bg: rgba(24, 111, 216, 0.1);
    --accent-bg-light: rgba(24, 111, 216, 0.06);
    --purple: rgb(147, 72, 192);
    --purple-bg: rgba(147, 72, 192, 0.1);
    --teal: rgb(58, 163, 206);
    --teal-bg: rgba(58, 163, 206, 0.1);
    --teal-bg-light: rgba(58, 163, 206, 0.06);
    --orange: rgb(218, 128, 0);
    --orange-bg: rgba(218, 128, 0, 0.1);
    --orange-bg-light: rgba(218, 128, 0, 0.06);
    --orange-border: rgba(218, 128, 0, 0.15);

    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.08);

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 60px rgba(52, 199, 89, 0.2);

    /* ---- Glass Effect (Light) ---- */
    --glass-bg: rgba(255, 255, 255, 0.68);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
}

/* Light mode via media query (fallback when JS unavailable) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-main: rgb(255, 255, 255);
        --bg-panel: rgb(242, 242, 247);
        --bg-elevated: rgb(229, 229, 234);
        --bg-card: rgba(242, 242, 247, 0.95);
        --bg-hover: rgb(229, 229, 234);
        --text-main: rgb(0, 0, 0);
        --text-sub: rgb(142, 142, 147);
        --text-secondary: rgb(142, 142, 147);
        --text-dim: rgb(174, 174, 178);
        --profit: rgb(40, 167, 69);
        --profit-bg: rgba(40, 167, 69, 0.1);
        --profit-bg-light: rgba(40, 167, 69, 0.06);
        --loss: rgb(220, 53, 45);
        --loss-bg: rgba(220, 53, 45, 0.1);
        --accent: rgb(24, 111, 216);
        --accent-bg: rgba(24, 111, 216, 0.1);
        --accent-bg-light: rgba(24, 111, 216, 0.06);
        --purple: rgb(147, 72, 192);
        --purple-bg: rgba(147, 72, 192, 0.1);
        --teal: rgb(58, 163, 206);
        --teal-bg: rgba(58, 163, 206, 0.1);
        --teal-bg-light: rgba(58, 163, 206, 0.06);
        --orange: rgb(218, 128, 0);
        --orange-bg: rgba(218, 128, 0, 0.1);
        --orange-bg-light: rgba(218, 128, 0, 0.06);
        --orange-border: rgba(218, 128, 0, 0.15);
        --border: rgba(0, 0, 0, 0.1);
        --border-light: rgba(0, 0, 0, 0.08);
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
        --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
        --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
        --shadow-glow: 0 0 60px rgba(52, 199, 89, 0.2);

        /* ---- Glass Effect (Light) ---- */
        --glass-bg: rgba(255, 255, 255, 0.68);
        --glass-border: rgba(0, 0, 0, 0.08);
        --glass-highlight: rgba(255, 255, 255, 0.5);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            inset 0 -1px 0 rgba(255, 255, 255, 0.3),
            inset 0 0 20px rgba(255, 255, 255, 0.15);
        --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 1),
            inset 0 -1px 0 rgba(255, 255, 255, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* fallback for older mobile browsers */
    overflow-x: clip;   /* modern: prevents horizontal scroll without creating scroll container */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip; /* clip, not hidden — hidden creates scroll container that can break mobile scrolling */
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 800px 600px at 10% 15%, rgba(10, 132, 255, 0.18), transparent 70%),
        radial-gradient(ellipse 700px 500px at 85% 8%, rgba(191, 90, 242, 0.15), transparent 70%),
        radial-gradient(ellipse 600px 500px at 70% 75%, rgba(52, 199, 89, 0.12), transparent 70%),
        radial-gradient(ellipse 700px 400px at 25% 65%, rgba(90, 200, 250, 0.10), transparent 70%);
}

:root.light body::before {
    background:
        radial-gradient(ellipse 800px 600px at 10% 15%, rgba(10, 132, 255, 0.10), transparent 70%),
        radial-gradient(ellipse 700px 500px at 85% 8%, rgba(191, 90, 242, 0.08), transparent 70%),
        radial-gradient(ellipse 600px 500px at 70% 75%, rgba(52, 199, 89, 0.06), transparent 70%),
        radial-gradient(ellipse 700px 400px at 25% 65%, rgba(90, 200, 250, 0.05), transparent 70%);
}

/* Glass Effect — Unified landing card styling */
.floating-card,
.stat-card,
.chart-preview,
.daily-returns-chart,
.monthly-returns-chart,
.tech-card,
.pricing-calculator,
.pricing-features .feature-card,
.visual-card,
.service-card,
.dashboard-feature,
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

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

/* Global focus-visible for keyboard accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================================
   Background Effects
   ============================================================================ */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.3) 0%, transparent 70%);
    bottom: 20%;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(191, 90, 242, 0.25) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ============================================================================
   Navigation
   ============================================================================ */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    transition: var(--transition);
}

.nav-header.scrolled {
    /* Solid opaque background — no backdrop-filter to avoid per-frame reblur on scroll */
    background: rgba(28, 28, 30, 0.95);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text {
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--profit));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.nav-logo:hover .logo-text {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--profit);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

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


.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--profit);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--profit-bg);
    border: 1px solid var(--profit-bg);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--profit);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--profit-bg);
    border-color: var(--profit);
    transform: translateY(-2px);
}

.nav-cta svg {
    transition: var(--transition);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

/* Hamburger menu button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Animate to X when open */
.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 80px;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--profit-bg);
    border: 1px solid var(--profit-bg);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--profit);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--profit);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}


.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--accent), var(--profit));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.hero-title:hover .gradient-text {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--profit) 0%, var(--profit-hover, rgb(47, 184, 102)) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.4);
    position: relative;
    overflow: hidden;
}

/* Shine sweep on hover */
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    border-radius: inherit;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 199, 89, 0.5);
}

.btn-primary svg {
    transition: var(--transition);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* Floating Cards */
.hero-cards {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 510px;
    margin-bottom: 80px;
    perspective: 1000px;
}

.floating-card {
    position: absolute;
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.floating-card:hover {
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(52, 199, 89, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}

.floating-card:hover .card-glow {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    font-feature-settings: 'tnum' 1;
}

.card-value.profit { color: var(--profit); }
.card-value.loss { color: var(--loss); }

.card-period {
    font-size: 13px;
    color: var(--text-sub);
}

/* Desktop: 7 cards scattered floating layout
   Row 1 (top ~0-40px): card-1 left, card-6 center, card-2 right
   Row 2 (mid ~175-200px): card-7 left, card-5 right
   Row 3 (bot ~335-350px): card-3 left, card-4 right */
.card-1 {
    top: 10px;
    left: 5%;
    animation: floatCard1 8s ease-in-out infinite;
}

.card-2 {
    top: 35px;
    right: 5%;
    animation: floatCard2 9s ease-in-out infinite;
}

.card-3 {
    top: 335px;
    left: 28%;
    animation: floatCard3 7s ease-in-out infinite;
}

.card-4 {
    top: 350px;
    right: 40%;
    animation: floatCard4 8.5s ease-in-out infinite;
}

.card-5 {
    top: 200px;
    right: 18%;
    animation: floatCard5 7.5s ease-in-out infinite;
}

.card-6 {
    top: 0px;
    left: 37%;
    animation: floatCard6 8.2s ease-in-out infinite;
}

.card-7 {
    top: 175px;
    left: 18%;
    animation: floatCard7 7.8s ease-in-out infinite;
}
/* Left-side cards: tilt right edge toward viewer (negative rotateY) */
@keyframes floatCard1 {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-8px) rotateX(7deg) rotateY(-7deg); }
}

/* Right-side cards: tilt left edge toward viewer (positive rotateY) */
@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(5deg); }
    50% { transform: translateY(-10px) rotateX(7deg) rotateY(7deg); }
}

/* Left-side card */
@keyframes floatCard3 {
    0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-4deg); }
    50% { transform: translateY(-7px) rotateX(6deg) rotateY(-6deg); }
}

/* Right-side card */
@keyframes floatCard4 {
    0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(4deg); }
    50% { transform: translateY(-9px) rotateX(6deg) rotateY(6deg); }
}

/* Center-right card (Today's Return) */
@keyframes floatCard5 {
    0%, 100% { transform: translateY(0) rotateX(3deg) rotateY(-3deg); }
    50% { transform: translateY(-8px) rotateX(5deg) rotateY(-5deg); }
}

/* Center-left card (Profitable Months) */
@keyframes floatCard6 {
    0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-3deg); }
    50% { transform: translateY(-7px) rotateX(6deg) rotateY(-5deg); }
}

/* Left card (The Vault - Secured Today) */
@keyframes floatCard7 {
    0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-3deg); }
    50% { transform: translateY(-8px) rotateX(6deg) rotateY(-5deg); }
}

/* Mobile floating animation - subtle breathing effect */
@keyframes floatMobile {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 12px;
    animation: fadeInUp 1s ease-out 1s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--profit), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Shared keyframes (landing-page versions) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradientShiftSlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bannerSlideUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes valueFlash {
    0% { transform: scale(1); }
    30% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes valueFlashProfit {
    0% { background-color: transparent; transform: scale(1); }
    30% { background-color: rgba(52, 199, 89, 0.12); transform: scale(1.02); }
    100% { background-color: transparent; transform: scale(1); }
}

@keyframes valueFlashLoss {
    0% { background-color: transparent; transform: scale(1); }
    30% { background-color: rgba(255, 69, 58, 0.1); transform: scale(1.02); }
    100% { background-color: transparent; transform: scale(1); }
}

/* ============================================================================
   Sections
   ============================================================================ */
.section {
    padding: 120px 40px;
    position: relative;
    z-index: 2;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--profit-bg) 0%, var(--teal-bg) 100%);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--profit);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================================================
   Stats Grid
   ============================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.stat-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-hover);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    flex-shrink: 0;
}

.stat-icon.profit-bg { background: var(--profit-bg); color: var(--profit); }
.stat-icon.accent-bg { background: var(--accent-bg); color: var(--accent); }
.stat-icon.purple-bg { background: var(--purple-bg); color: var(--purple); }
.stat-icon.teal-bg { background: var(--teal-bg); color: var(--teal); }



.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-feature-settings: 'tnum' 1;
}

.stat-value.profit { color: var(--profit); }

.stat-label {
    font-size: 14px;
    color: var(--text-sub);
}

/* ============================================================================
   Chart Preview
   ============================================================================ */
.chart-preview {
    border-radius: var(--radius-xl);
    padding: 32px;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.chart-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.chart-subtitle {
    font-size: 13px;
    color: var(--text-dim);
}

.chart-balance {
    font-size: 24px;
    font-weight: 700;
    color: var(--profit);
}

.chart-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 8px;
}

.chart-metric {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-metric-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chart-metric-label {
    font-size: 13px;
    color: var(--text-sub);
}

.chart-metric-value {
    font-size: 16px;
    font-weight: 700;
    font-feature-settings: 'tnum' 1;
}

.chart-metric-value.muted {
    color: var(--text-sub);
    font-size: 14px;
}

.chart-live {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--profit);
    background: var(--profit-bg);
    padding: 4px 10px;
    border-radius: var(--radius);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--profit);
    border-radius: 50%;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--profit);
    opacity: 0;
    animation: livePulse 2s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes livePulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0; transform: scale(2.5); }
}

.chart-container {
    display: flex;
    gap: 12px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    padding: 4px 0;
    min-width: 50px;
    text-align: right;
}

.chart-visual {
    position: relative;
    flex: 1;
    height: 180px;
}

.chart-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.grid-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light) 10%, var(--border-light) 90%, transparent);
    opacity: 0.5;
}

.equity-line {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Chart animations start paused — triggered by .chart-animate from IntersectionObserver */
.equity-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 2.5s ease-out forwards;
    animation-play-state: paused;
}

.equity-area {
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.8s forwards;
    animation-play-state: paused;
}

.equity-dot {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2.2s forwards, glowPulse 2s ease-in-out 2.7s infinite;
    animation-play-state: paused;
}

.safeguard-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 2.5s ease-out 0.3s forwards;
    animation-play-state: paused;
}

.safeguard-dot {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 2.4s forwards;
    animation-play-state: paused;
}

/* Play chart animations when scrolled into view */
.chart-animate .equity-path,
.chart-animate .equity-area,
.chart-animate .equity-dot,
.chart-animate .safeguard-path,
.chart-animate .safeguard-dot {
    animation-play-state: running;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Bar chart entrance animations — bars grow from 0 with stagger, triggered by .chart-animate */

.daily-bar .bar-value,
.daily-bar .bar-label,
.monthly-bar .bar-value,
.monthly-bar .bar-label {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.chart-animate .daily-bar .bar-value,
.chart-animate .daily-bar .bar-label,
.chart-animate .monthly-bar .bar-value,
.chart-animate .monthly-bar .bar-label {
    opacity: 1;
    transform: translateY(0);
}

.chart-legend-inline {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-dim);
}

.legend-item-inline {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot-inline {
    display: inline-block;
    width: 10px;
    height: 2px;
    border-radius: 1px;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0 62px;
    font-size: 11px;
    color: var(--text-dim);
}

/* ============================================================================
   Monthly Returns Chart
   ============================================================================ */
/* Daily Returns Chart (same style as monthly) */
.daily-returns-chart {
    margin-top: 56px;
    border-radius: var(--radius-xl);
    padding: 24px;
}

.daily-returns-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0;
    border-bottom: none;
}

.daily-bars-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    gap: 8px;
    padding: 0 4px;
}

.daily-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 60px;
}

.daily-bar .bar-wrapper {
    width: 100%;
    height: 105px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.daily-bar .bar {
    width: 100%;
    max-width: 40px;
    border-radius: 6px 6px 3px 3px;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition), height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.daily-bar .bar.neutral {
    background: linear-gradient(180deg, rgba(174, 174, 178, 0.3) 0%, rgba(142, 142, 147, 0.12) 100%);
    border: 1px solid rgba(174, 174, 178, 0.2);
    box-shadow: 0 2px 8px rgba(142, 142, 147, 0.1);
}

.daily-bar .bar.profit {
    background: linear-gradient(180deg, rgba(52, 199, 89, 0.35) 0%, rgba(52, 199, 89, 0.1) 100%);
    border: 1px solid rgba(52, 199, 89, 0.18);
    box-shadow: 0 2px 12px rgba(52, 199, 89, 0.1);
}

.daily-bar .bar.loss {
    background: linear-gradient(180deg, rgba(255, 69, 58, 0.35) 0%, rgba(255, 69, 58, 0.1) 100%);
    border: 1px solid rgba(255, 69, 58, 0.18);
    box-shadow: 0 2px 12px rgba(255, 69, 58, 0.1);
}

.daily-bar:hover .bar.profit {
    background: linear-gradient(180deg, rgba(52, 199, 89, 0.45) 0%, rgba(52, 199, 89, 0.15) 100%);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
    transform: scaleY(1.02);
}

.daily-bar:hover .bar.loss {
    background: linear-gradient(180deg, rgba(255, 69, 58, 0.45) 0%, rgba(255, 69, 58, 0.15) 100%);
    box-shadow: 0 4px 16px rgba(255, 69, 58, 0.15);
    transform: scaleY(1.02);
}

.daily-bar .bar-value {
    font-size: 12px;
    font-weight: 700;
    font-feature-settings: 'tnum' 1;
}

.daily-bar .bar-value.profit {
    color: var(--profit);
}

.daily-bar .bar-value.loss {
    color: var(--loss);
}

.daily-bar .bar-value.muted {
    color: var(--text-sub);
    opacity: 0.4;
}

.daily-bar .bar-label {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.daily-bar.current .bar-label {
    color: var(--text-main);
}

.monthly-returns-chart {
    margin-top: 18px;
    border-radius: var(--radius-xl);
    padding: 24px;
}

.monthly-returns-chart .chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0;
    border-bottom: none;
}

.avg-return-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--profit-bg);
    border: 1px solid var(--profit-bg);
    border-radius: var(--radius-pill);
}

.avg-return-badge .avg-label {
    font-size: 12px;
    color: var(--text-sub);
}

.avg-return-badge .avg-value {
    font-size: 16px;
    font-weight: 700;
}

.avg-return-badge .avg-value.profit {
    color: var(--profit);
}

.avg-return-badge .avg-value.loss {
    color: var(--loss);
}

.avg-return-badge .avg-value.muted {
    color: var(--text-sub);
    opacity: 0.6;
}

.monthly-bars-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 170px;
    gap: 12px;
    padding: 0 10px;
}

.monthly-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 80px;
}

.monthly-bar .bar-wrapper {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.monthly-bar .bar {
    width: 100%;
    max-width: 50px;
    border-radius: 8px 8px 4px 4px;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition), height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.monthly-bar .bar.neutral {
    background: linear-gradient(180deg, rgba(174, 174, 178, 0.3) 0%, rgba(142, 142, 147, 0.12) 100%);
    border: 1px solid rgba(174, 174, 178, 0.2);
    box-shadow: 0 2px 8px rgba(142, 142, 147, 0.1);
}

.monthly-bar .bar.profit {
    background: linear-gradient(180deg, rgba(52, 199, 89, 0.35) 0%, rgba(52, 199, 89, 0.1) 100%);
    border: 1px solid rgba(52, 199, 89, 0.18);
    box-shadow: 0 2px 12px rgba(52, 199, 89, 0.1);
}

.monthly-bar .bar.loss {
    background: linear-gradient(180deg, rgba(255, 69, 58, 0.35) 0%, rgba(255, 69, 58, 0.1) 100%);
    border: 1px solid rgba(255, 69, 58, 0.18);
    box-shadow: 0 2px 12px rgba(255, 69, 58, 0.1);
}

.monthly-bar:hover .bar.profit {
    background: linear-gradient(180deg, rgba(52, 199, 89, 0.45) 0%, rgba(52, 199, 89, 0.15) 100%);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
    transform: scaleY(1.02);
}

.monthly-bar:hover .bar.loss {
    background: linear-gradient(180deg, rgba(255, 69, 58, 0.45) 0%, rgba(255, 69, 58, 0.15) 100%);
    box-shadow: 0 4px 16px rgba(255, 69, 58, 0.15);
    transform: scaleY(1.02);
}

.monthly-bar .bar-value {
    font-size: 14px;
    font-weight: 700;
    font-feature-settings: 'tnum' 1;
}

.monthly-bar .bar-value.profit {
    color: var(--profit);
}

.monthly-bar .bar-value.loss {
    color: var(--loss);
}

.monthly-bar .bar-value.muted {
    color: var(--text-sub);
    opacity: 0.4;
}

.monthly-bar .bar-label {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.monthly-bar.current .bar-label {
    color: var(--text-main);
}

.monthly-bar.current .bar.profit,
.daily-bar.current .bar.profit {
    background: linear-gradient(180deg, rgba(52, 199, 89, 0.45) 0%, rgba(52, 199, 89, 0.15) 100%);
    border-color: rgba(52, 199, 89, 0.3);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
}

.monthly-bar.current .bar.loss,
.daily-bar.current .bar.loss {
    background: linear-gradient(180deg, rgba(255, 69, 58, 0.45) 0%, rgba(255, 69, 58, 0.15) 100%);
    border-color: rgba(255, 69, 58, 0.3);
    box-shadow: 0 4px 16px rgba(255, 69, 58, 0.15);
}

.current-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--profit) 0%, var(--teal) 100%);
    border-radius: var(--radius-xs);
    font-size: 9px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
}


/* pulseGlow keyframes removed — were unused dead code causing unnecessary CSS parse overhead */

/* Responsive adjustments for monthly chart */
@media (max-width: 768px) {
    .monthly-bars-container {
        height: 175px;
    }

    .monthly-bar .bar-wrapper {
        height: 120px;
    }

    .monthly-bar .bar-value {
        font-size: 12px;
    }

    .monthly-bar .bar-label {
        font-size: 11px;
    }

    .avg-return-badge {
        padding: 6px 12px;
    }

    .avg-return-badge .avg-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .monthly-bars-container {
        gap: 8px;
        padding: 0;
    }

    .monthly-bar .bar {
        max-width: 40px;
    }

    .current-tag {
        display: none;
    }
}

/* Responsive adjustments for daily chart */
@media (max-width: 768px) {
    .daily-bars-container {
        height: 145px;
        gap: 4px;
    }

    .daily-bar .bar-wrapper {
        height: 100px;
    }

    .daily-bar .bar-value {
        font-size: 10px;
    }

    .daily-bar .bar-label {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .daily-bars-container {
        gap: 3px;
        padding: 0;
    }

    .daily-bar .bar {
        max-width: 30px;
    }
}

/* ============================================================================
   Technology Grid
   ============================================================================ */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    transform-style: preserve-3d;
}

.tech-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-hover);
}

.tech-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--profit-bg), var(--accent-bg));
    border-radius: var(--radius);
    margin-bottom: 20px;
    color: var(--profit);
}

.tech-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ============================================================================
   Pricing Section
   ============================================================================ */
.pricing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

/* --- Glassmorphism Calculator Card --- */
.pricing-calculator {
    position: relative;
    border-radius: var(--radius-xl);
    padding: 40px;
    overflow: hidden;
}

/* Gradient border glow */
.pricing-calculator::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(52, 199, 89, 0.3) 0%,
        rgba(52, 199, 89, 0.05) 40%,
        rgba(255, 255, 255, 0.06) 60%,
        rgba(52, 199, 89, 0.2) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.calculator-glow {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.calculator-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.calculator-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.calculator-header p {
    font-size: 14px;
    color: var(--text-sub);
}

.calculator-body {
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.slider-container {
    margin-bottom: 32px;
}

.slider-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.slider-value-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.slider-value-display .currency {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-sub);
}

.slider-input {
    width: 140px;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    text-align: center;
    -moz-appearance: textfield;
    transition: border-color 0.2s ease;
}

.slider-input:focus {
    outline: none;
    border-bottom-color: rgba(52, 199, 89, 0.4);
}

.slider-input::-webkit-outer-spin-button,
.slider-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* --- Slider with Track Fill --- */
.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    background: linear-gradient(
        to right,
        rgb(52, 199, 89) 0%,
        rgb(52, 199, 89) var(--slider-progress, 47%),
        rgba(255, 255, 255, 0.08) var(--slider-progress, 47%)
    );
    transition: height 0.15s ease;
}

.price-slider:hover {
    height: 8px;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgb(52, 199, 89) 0%, #30B350 100%);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3),
                0 0 16px rgba(52, 199, 89, 0.2);
    transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(52, 199, 89, 0.5),
                0 0 24px rgba(52, 199, 89, 0.3);
}

.price-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(52, 199, 89, 0.4);
}

.price-slider::-moz-range-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    border: none;
}

.price-slider::-moz-range-progress {
    height: 6px;
    background: rgb(52, 199, 89);
    border-radius: 3px;
}

.price-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgb(52, 199, 89) 0%, #30B350 100%);
    border-radius: 50%;
    border: none;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3),
                0 0 16px rgba(52, 199, 89, 0.2);
}

.slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

.size-presets {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.size-preset {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.size-preset:hover,
.size-preset.active {
    border-color: var(--profit);
    color: var(--profit);
    background: var(--profit-bg);
}

/* --- Result Panel with Frosted Glass --- */
.price-result {
    background: rgba(44, 44, 46, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Green accent line at top */
.price-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(52, 199, 89, 0.7),
        rgba(52, 199, 89, 0.05)
    );
    pointer-events: none;
}

.price-breakdown {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.breakdown-label {
    font-size: 14px;
    color: var(--text-sub);
}

.breakdown-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.breakdown-value.profit {
    color: var(--profit);
}

.price-total {
    text-align: center;
}

.total-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.total-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.amount-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--profit);
}

.amount-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--profit);
    line-height: 1;
    text-shadow: 0 0 30px rgba(52, 199, 89, 0.3),
                 0 0 60px rgba(52, 199, 89, 0.1);
}

.amount-period {
    font-size: 16px;
    color: var(--text-sub);
}

/* --- Price Note Badge --- */
.price-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    background: rgba(52, 199, 89, 0.05);
    border-radius: var(--radius-sm, 6px);
    padding: 10px 14px;
    border-left: 2px solid rgba(52, 199, 89, 0.3);
}

.price-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--profit);
    opacity: 0.7;
}

.calculator-cta {
    width: 100%;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Pricing Features */
.pricing-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pricing-features .feature-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.pricing-features .feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow-hover);
}

.pricing-features .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.pricing-features .feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pricing-features .feature-card p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* ============================================================================
   About Section
   ============================================================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .section-tag {
    margin-bottom: 16px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-desc {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-main);
}

.feature svg {
    color: var(--profit);
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    animation: floatCard2 8s ease-in-out infinite;
    will-change: transform;
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, rgba(191, 90, 242, 0.1) 40%, transparent 60%);
    pointer-events: none;
}

.visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.visual-label {
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
}

/* ============================================================================
   Project Amber Branding - Animated Gradient (matches trade.cfin.be nav)
   ============================================================================ */

/* Animated gradient keyframes — gradientShiftSlow canonical in theme.css */

@keyframes gradientShiftFast {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Project Amber text - animated gradient */
.project-amber-text {
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.project-amber-text:hover {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

/* Large PA logo box */
.logo-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 32px rgba(10, 132, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
}

.visual-card:hover .logo-large {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 12px 40px rgba(10, 132, 255, 0.4), 0 0 0 2px rgba(191, 90, 242, 0.3);
}

/* Amber label under logo */
.visual-label.amber-label {
    background: linear-gradient(90deg, var(--accent), var(--purple), var(--accent));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.3px;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.visual-card:hover .visual-label.amber-label {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

/* Section title with Project Amber class */
.section-title.project-amber-text {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1.5px;
}

/* CFIN brand text - green/teal animated gradient */
.cfin-text {
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--profit));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.cfin-text:hover {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

/* ============================================================================
   CTA Section
   ============================================================================ */
.cta-section {
    text-align: center;
    padding: 100px 40px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 32px;
}

/* ============================================================================
   Waitlist Form (inside CTA)
   ============================================================================ */
.waitlist-form {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.waitlist-text {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 14px;
}

.waitlist-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.waitlist-email {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-email::placeholder {
    color: var(--text-sub);
    opacity: 0.6;
}

.waitlist-email:focus {
    border-color: var(--profit);
    box-shadow: 0 0 0 3px var(--profit-bg);
}

.waitlist-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--profit);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.waitlist-btn:hover {
    background: var(--profit-hover, rgb(47, 184, 102));
    transform: translateY(-1px);
}

.waitlist-btn:active {
    transform: translateY(0);
}

.waitlist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.waitlist-success {
    font-size: 15px;
    color: var(--profit);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.waitlist-success svg {
    color: var(--profit);
    flex-shrink: 0;
}

/* Waitlist responsive: stack on mobile */
@media (max-width: 480px) {
    .waitlist-input-group {
        flex-direction: column;
    }

    .waitlist-email {
        width: 100%;
    }

    .waitlist-btn {
        width: 100%;
    }
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-light);
    padding: 60px 40px 40px;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--profit), var(--teal), var(--profit));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShiftSlow 4s ease-in-out infinite;
}

.footer-logo:hover {
    animation: gradientShiftFast 1s ease infinite;
    filter: brightness(1.1);
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-sub);
    margin-top: 8px;
}

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

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--text-main);
}

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

.footer-copyright {
    font-size: 13px;
    color: var(--text-sub);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-dim);
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ============================================================================
   Integrated Services Section
   ============================================================================ */
.footer-services {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.services-header {
    text-align: center;
    margin-bottom: 36px;
}

.services-tag {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--profit-bg) 0%, var(--teal-bg) 100%);
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
    color: var(--profit);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.services-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

/* Inverse pyramid rows */
.services-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.services-row:last-child {
    margin-bottom: 0;
}

.services-row .service-card {
    flex: 0 1 auto;
    min-width: 130px;
}

/* Individual service card */
.service-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    transition: transform var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--profit-bg) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.service-card:hover,
.service-card.animate-in:hover {
    transform: translateY(-2px) !important;
    border-color: var(--profit);
    box-shadow: 0 4px 20px rgba(52, 199, 89, 0.15), 0 0 0 1px rgba(52, 199, 89, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: var(--text-main);
}

.service-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
    transition: color var(--transition-fast);
}

.service-card:hover .service-name {
    color: var(--text-main);
}

/* Scroll reveal for service cards is handled by .scroll-hidden-service class
   (added by JS). No default opacity:0 here — prevents invisible cards when
   JS is delayed or prefers-reduced-motion is active. */

/* Responsive */
@media (max-width: 768px) {
    .services-row {
        gap: 8px;
        margin-bottom: 8px;
    }

    .services-row .service-card {
        min-width: 110px;
    }

    .service-card {
        padding: 8px 10px;
        gap: 8px;
    }

    .service-icon {
        width: 18px;
        height: 18px;
    }

    .service-name {
        font-size: 11px;
    }

    .services-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .services-row .service-card {
        min-width: 100px;
    }
}

/* Social Links & Payment Methods Row */
.footer-social-payments {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    gap: 40px;
}

.footer-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--bg-panel);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* Payment Methods */
.footer-payments {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.payment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.payment-icon:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.payment-icon svg {
    border-radius: var(--radius-xs);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .footer-social-payments {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-socials,
    .footer-payments {
        align-items: center;
    }

    .payment-icons {
        justify-content: center;
    }
}

/* Currency Selector in Footer */
.footer-currency {
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-label {
    font-size: 12px;
    color: var(--text-dim);
}

.currency-selector {
    position: relative;
}

.currency-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.currency-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border);
}

.currency-symbol {
    font-weight: 600;
    color: var(--accent);
}

.currency-code {
    font-weight: 500;
}

.currency-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition-fast);
    z-index: 100;
}

.currency-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.currency-dropdown button:first-child {
    border-radius: 7px 7px 0 0;
}

.currency-dropdown button:last-child {
    border-radius: 0 0 7px 7px;
}

.currency-dropdown button:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.currency-dropdown button.active {
    background: var(--profit-bg);
    color: var(--accent);
    font-weight: 500;
}

/* ============================================================================
   Product Screenshots - Browser Frames
   ============================================================================ */
.screenshot-float {
    max-width: 1000px;
    margin: 0 auto;
}

/* Overlapping browser frame stacks */
.screenshot-stack {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Front: relative position so it provides container height */
.screenshot-stack .stack-front {
    position: relative;
    width: 85%;
    z-index: 2;
}

/* Back: absolute, staggered behind — clearly visible peeking out */
.screenshot-stack .stack-back {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 85%;
    z-index: 1;
    opacity: 0.6;
}

/* About section: back peeks out on the left — push it further out */
.about-visual .screenshot-stack .stack-back {
    right: auto;
    left: -70px;
    top: -50px;
    opacity: 0.85;
}

.about-visual .screenshot-stack .stack-front {
    margin-left: auto;
}

/* Mobile: show only the front screenshot (hide the back one) */
@media (max-width: 768px) {
    .screenshot-stack {
        position: relative;
        height: auto;
    }
    .screenshot-stack .stack-back {
        display: none;
    }
    .screenshot-stack .stack-front {
        position: relative;
        width: 100%;
        transform: none;
    }
}

.browser-frame {
    background: rgba(30, 30, 32, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(10, 132, 255, 0.06);
    transition: box-shadow 0.4s ease, transform 0.5s ease-out, border-color 0.4s ease;
}

.browser-frame:hover {
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(10, 132, 255, 0.15),
        0 0 120px rgba(10, 132, 255, 0.08);
    border-color: rgba(10, 132, 255, 0.2);
}

.browser-frame.tilt-right {
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.browser-frame.tilt-left {
    transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
}

.browser-chrome {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.browser-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    z-index: 1;
}

.browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dots .dot.red { background: #ff5f57; }
.browser-dots .dot.yellow { background: #febc2e; }
.browser-dots .dot.green { background: #28c840; }

/* Safari-style centered address bar */
.browser-url-bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    min-width: 220px;
}

.browser-url-bar svg {
    color: var(--text-dim);
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.browser-url-bar span {
    font-size: 12px;
    color: var(--text-sub);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.browser-content {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1440 / 860;
    background: var(--bg-main);
}

.browser-content .showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

/* Dark/light mode screenshot switching */
.browser-content .showcase-dark,
.browser-content .showcase-light,
.mt5-content .showcase-dark,
.mt5-content .showcase-light {
    width: 100%;
    height: 100%;
}

.browser-content .showcase-light,
.mt5-content .showcase-light { display: none; }

:root.light .browser-content .showcase-dark,
:root.light .mt5-content .showcase-dark { display: none; }
:root.light .browser-content .showcase-light,
:root.light .mt5-content .showcase-light { display: block; }

@media (prefers-color-scheme: light) {
    :root:not(.dark) .browser-content .showcase-dark,
    :root:not(.dark) .mt5-content .showcase-dark { display: none; }
    :root:not(.dark) .browser-content .showcase-light,
    :root:not(.dark) .mt5-content .showcase-light { display: block; }
}

/* Placeholder until real screenshots are added */
.screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    gap: 16px;
    color: var(--text-dim);
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 59px, rgba(255,255,255,0.02) 59px, rgba(255,255,255,0.02) 60px, transparent 60px),
        linear-gradient(0deg, transparent 59px, rgba(255,255,255,0.02) 59px, rgba(255,255,255,0.02) 60px, transparent 60px);
    background-size: 60px 60px;
}

.screenshot-placeholder svg {
    opacity: 0.2;
}

.screenshot-placeholder span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.5;
}

/* Caption below browser frame */
.screenshot-caption {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.screenshot-caption svg {
    color: var(--profit);
    flex-shrink: 0;
}

/* --- Dashboard Showcase Section --- */
.dashboard-screenshot {
    margin: 0 auto 48px;
}

.dashboard-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.dashboard-feature:hover {
    border-color: var(--glass-border);
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
}

.dashboard-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.dashboard-feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-feature-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.dashboard-feature-text span {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}

/* --- Technology Section Infrastructure Block --- */
.tech-infra {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 64px;
}

.tech-infra-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-infra-text .section-tag {
    align-self: flex-start;
}

.tech-infra-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.tech-infra-desc {
    font-size: 16px;
    color: var(--text-sub);
    line-height: 1.7;
}

.tech-infra-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.tech-infra-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-main);
    font-weight: 500;
}

.tech-infra-feature svg {
    color: var(--profit);
    flex-shrink: 0;
}

.tech-infra-screenshot .mt5-frame {
    max-width: 320px;
    margin-left: auto;
}

.tech-infra-screenshot .screenshot-float {
    display: flex;
    justify-content: flex-end;
    padding-right: 10px; /* Prevent tilt clipping at right edge */
}

.tech-infra-screenshot .mt5-content {
    max-height: 360px;
    overflow: hidden;
}

.tech-infra-screenshot .mt5-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================================
   MetaTrader 5 Desktop Window Frame
   ============================================================================ */
.mt5-frame {
    background: #1e1e1e;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(10, 132, 255, 0.06);
    transition: box-shadow 0.4s ease, transform 0.5s ease-out, border-color 0.4s ease;
}

.mt5-frame:hover {
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(10, 132, 255, 0.15),
        0 0 120px rgba(10, 132, 255, 0.08);
    border-color: rgba(10, 132, 255, 0.2);
}

.mt5-frame.tilt-left {
    transform: perspective(1200px) rotateY(3deg) rotateX(1.5deg);
}

.mt5-frame.tilt-right {
    transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
}

.mt5-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(180deg, #2d2d30 0%, #252527 100%);
    border-bottom: 1px solid var(--border-light);
}

.mt5-titlebar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.mt5-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}

.mt5-title {
    font-size: 11px;
    color: var(--text-sub);
    font-family: 'Segoe UI', -apple-system, 'Inter', sans-serif;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mt5-window-controls {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.mt5-btn {
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border-radius: 0;
}

.mt5-close {
    border-radius: 0 6px 0 0;
}

.mt5-toolbar {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    background: #2d2d30;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.mt5-toolbar-group {
    display: flex;
    gap: 2px;
}

.mt5-toolbar-item {
    font-size: 11px;
    color: var(--text-dim);
    padding: 3px 8px;
    font-family: 'Segoe UI', -apple-system, 'Inter', sans-serif;
}

.mt5-content {
    position: relative;
    overflow: hidden;
    background: #1a1a1d;
}

.mt5-content .showcase-img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- About Section Screenshot (replaces PA placeholder) --- */
.about-visual .browser-frame {
    width: 100%;
    max-width: 440px;
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 1024px) {
    .hero-cards {
        height: 480px;
        margin-bottom: 80px;
    }

    .floating-card {
        padding: 18px 24px;
    }

    .card-value {
        font-size: 28px;
    }

    .card-label {
        font-size: 11px;
    }

    .card-period {
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-card {
        padding: 20px;
        gap: 14px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-value {
        font-size: 24px;
    }

    /* Scattered floating layout - explicit positions (all use top, never bottom) */
    .card-1 { left: 10%; right: auto; top: 10px; }
    .card-2 { left: auto; right: 10%; top: 45px; }
    .card-3 { left: 25%; right: auto; top: 290px; }
    .card-4 { left: auto; right: 42%; top: 305px; }
    .card-5 { left: auto; right: 28%; top: 160px; }
    .card-6 { left: 34%; right: auto; top: 10px; }
    .card-7 { left: 22%; right: auto; top: 158px; }
    .pricing-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-features {
        grid-template-columns: 1fr 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        order: -1;
    }

    .visual-card {
        width: 250px;
        height: 250px;
    }

    .tech-infra {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .browser-frame.tilt-right,
    .browser-frame.tilt-left,
    .mt5-frame.tilt-left {
        transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
    }

    .about-visual .browser-frame {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-header {
        padding: 16px 20px;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        z-index: 999;
    }

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

    .nav-link {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-cta {
        padding: 8px 14px;
        font-size: 13px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-cards {
        height: 420px;
        margin-bottom: 70px;
    }

    /* Tablet: Scale down slightly, keep floating effect */
    .floating-card {
        padding: 12px 16px;
    }

    .card-glow {
        width: 70px;
        height: 70px;
    }

    .card-value {
        font-size: 24px;
    }

    .card-label {
        font-size: 9px;
    }

    .card-period {
        font-size: 10px;
    }

    /* Scattered layout - spread out to prevent overlap (all use top) */
    .card-1 { left: 5%; right: auto; top: 0; }
    .card-2 { left: auto; right: 5%; top: 15px; }
    .card-3 { left: 20%; right: auto; top: 260px; }
    .card-4 { left: auto; right: 40%; top: 275px; }
    .card-5 { left: auto; right: 24%; top: 145px; }
    .card-6 { left: 30%; right: auto; top: 0px; }
    .card-7 { left: 20%; right: auto; top: 138px; }
    .section {
        padding: 80px 20px;
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }

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

    /* Stats grid - 2 columns on tablet/mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 14px;
        gap: 10px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Chart cards - reduce padding on tablet */
    .chart-preview {
        padding: 24px;
    }

    .chart-header {
        margin-bottom: 16px;
    }

    .chart-balance {
        font-size: 20px;
    }

    .chart-metric-value {
        font-size: 14px;
    }

    .daily-returns-chart {
        margin-top: 38px;
        padding: 24px;
    }

    .monthly-returns-chart {
        margin-top: 14px;
        padding: 24px;
    }

    /* Tech grid - 2 columns on tablet/mobile */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .tech-card {
        padding: 20px;
    }

    .pricing-features {
        /* Keep 2 columns on mobile for better use of space */
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pricing-features .feature-card {
        padding: 16px;
    }

    .pricing-calculator {
        padding: 28px;
    }

    .amount-value {
        font-size: 36px;
    }

    .price-slider::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }

    .price-slider::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }

    /* Remove all perspective tilts on mobile for clean flat look */
    .browser-frame.tilt-right,
    .browser-frame.tilt-left,
    .mt5-frame.tilt-left,
    .mt5-frame.tilt-right {
        transform: none;
    }
}

@media (max-width: 480px) {
    .pricing-calculator {
        padding: 24px;
    }

    .slider-input {
        font-size: 28px;
    }

    .price-slider {
        height: 8px;
    }

    .price-slider::-webkit-slider-thumb {
        width: 36px;
        height: 36px;
    }

    .price-slider::-moz-range-thumb {
        width: 36px;
        height: 36px;
    }

    .amount-value {
        font-size: 36px;
    }

    /* Mobile: Smaller but still maintains floating theme */
    .hero-cards {
        position: relative;
        width: 100%;
        height: 410px;
        perspective: 800px;
        margin-top: 16px;
        margin-bottom: 70px;
    }

    .floating-card {
        padding: 10px 14px;
    }

    .card-glow {
        width: 60px;
        height: 60px;
        opacity: 0.4;
    }

    .card-value {
        font-size: 20px;
    }

    .card-label {
        font-size: 9px;
    }

    .card-period {
        font-size: 9px;
    }

    /* Scattered layout - maintains desktop pattern scaled down */
    /* Zigzag: left-right alternating rows */
    .card-1 {
        left: 3%;
        right: auto;
        top: 0;
    }

    .card-2 {
        left: auto;
        right: 3%;
        top: 10px;
    }

    .card-3 {
        left: 0%;
        right: auto;
        top: 125px;
    }

    .card-4 {
        left: auto;
        right: 0%;
        top: 135px;
    }

    .card-5 {
        left: auto;
        right: 12%;
        top: 245px;
    }

    .card-6 {
        left: 3%;
        right: auto;
        top: 255px;
    }

    .card-7 {
        left: 28%;
        right: auto;
        top: 355px;
    }


    /* Stats grid - 2 columns on mobile, last card centered */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 32px;
    }

    .stat-card {
        flex-direction: column;
        padding: 14px;
        text-align: center;
        gap: 10px;
    }




    .stat-icon {
        width: 44px;
        height: 44px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Equity chart - compact mobile layout */
    .chart-preview {
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .chart-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .chart-header-right {
        flex-direction: row-reverse;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .chart-title {
        font-size: 15px;
    }

    .chart-subtitle {
        font-size: 11px;
    }

    .chart-balance {
        font-size: 18px;
    }

    .chart-metrics {
        gap: 16px;
    }

    .chart-metric-label {
        font-size: 11px;
    }

    .chart-metric-value {
        font-size: 13px;
    }

    .chart-live {
        font-size: 10px;
        padding: 3px 8px;
    }

    .chart-container {
        gap: 6px;
    }

    .chart-y-axis {
        min-width: 36px;
        font-size: 9px;
    }

    .chart-visual {
        height: 140px;
    }

    .chart-x-axis {
        padding: 8px 0 0 42px;
        font-size: 9px;
    }

    /* Daily & Monthly returns - compact mobile layout */
    .daily-returns-chart {
        margin-top: 28px;
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .monthly-returns-chart {
        margin-top: 10px;
        padding: 16px;
        border-radius: var(--radius-lg);
    }

    .daily-returns-chart .chart-header,
    .monthly-returns-chart .chart-header {
        flex-direction: row;
        align-items: center;
        margin-bottom: 12px;
    }

    .daily-returns-chart .chart-title,
    .monthly-returns-chart .chart-title {
        font-size: 15px;
    }

    .daily-returns-chart .chart-subtitle,
    .monthly-returns-chart .chart-subtitle {
        font-size: 11px;
    }

    .avg-return-badge {
        padding: 4px 10px;
    }

    .avg-return-badge .avg-label {
        font-size: 10px;
    }

    .avg-return-badge .avg-value {
        font-size: 13px;
    }

    .monthly-bars-container {
        height: 130px;
    }

    .monthly-bar .bar-wrapper {
        height: 90px;
    }

    .monthly-bar .bar-value {
        font-size: 11px;
    }

    .monthly-bar .bar-label {
        font-size: 9px;
    }

    /* Performance section spacing */
    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Tech grid - 2 columns on mobile */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tech-card {
        padding: 16px;
    }

    .tech-icon {
        width: 40px;
        height: 40px;
    }

    .tech-icon svg {
        width: 24px;
        height: 24px;
    }

    .tech-title {
        font-size: 14px;
    }

    .tech-desc {
        font-size: 12px;
    }

    /* Pricing features - 2 columns on small mobile */
    .pricing-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pricing-features .feature-card {
        padding: 12px;
    }

    .pricing-features .feature-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .pricing-features .feature-card h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .pricing-features .feature-card p {
        font-size: 11px;
        line-height: 1.4;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .scroll-indicator {
        display: flex !important;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        align-items: center;
        gap: 8px;
        z-index: 10;
    }

    .scroll-indicator .scroll-line {
        height: 30px;
    }

    .scroll-indicator span {
        font-size: 10px;
    }
}

/* ============================================================================
   Parallax & 3D Effect Classes (controlled via JS)
   ============================================================================ */
[data-parallax] {
    transition: transform 0.1s linear;
}

[data-parallax-3d] {
    transition: transform var(--transition-fast);
    transform-style: preserve-3d;
}

/* ============================================================================
   FAQ Section - Premium Design
   ============================================================================ */
.faq-section {
    padding: 140px 40px;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.faq-section::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: faq-pulse 8s ease-in-out infinite;
    will-change: transform, opacity;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(90, 200, 250, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes faq-pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.05); }
}

.section-header-centered {
    text-align: center;
    margin-bottom: 20px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 70px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    align-items: start; /* Prevent items from stretching to match row height */
}

.faq-item {
    -webkit-tap-highlight-color: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    transform-style: preserve-3d;
    position: relative;
}

/* Hover glow effect */
.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(52, 199, 89, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    border-color: var(--glass-border);
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-hover);
}

.faq-item.active {
    border-color: var(--profit);
    box-shadow:
        var(--shadow-xl),
        0 0 60px rgba(52, 199, 89, 0.2);
    background: linear-gradient(135deg,
        var(--bg-elevated) 0%,
        rgba(52, 199, 89, 0.05) 100%
    );
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    -webkit-tap-highlight-color: transparent;
    gap: 18px;
    padding: 28px 32px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    background: transparent;
}

.faq-question-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(52, 199, 89, 0.2) 0%,
        rgba(90, 200, 250, 0.15) 100%
    );
    border-radius: var(--radius);
    color: var(--profit);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.1);
}

.faq-item:hover .faq-question-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.2);
}

.faq-item.active .faq-question-icon {
    background: linear-gradient(135deg, var(--profit) 0%, var(--teal) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.4);
}

.faq-question-text {
    flex: 1;
    padding-top: 8px;
    letter-spacing: -0.01em;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s ease;
    color: var(--text-dim);
    transition: var(--transition);
    margin-top: 9px;
}

.faq-item:hover .faq-icon {
    color: var(--text-sub);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--profit);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Safari fallback: grid-template-rows animation is unreliable in Safari < 17.2 */
@supports not (transition: grid-template-rows 0.4s) {
    .faq-answer {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .faq-item.active .faq-answer {
        max-height: 500px;
    }
}

.faq-answer > div {
    overflow: hidden;
    min-height: 0;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    padding: 0 32px 0 92px;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.01em;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-content {
    padding-top: 8px;
    padding-bottom: 28px;
}

.faq-answer-content a {
    color: var(--profit);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.faq-answer-content a:hover {
    border-bottom-color: var(--profit);
}

.faq-answer-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* FAQ CTA Box */
.faq-cta {
    text-align: center;
    margin-top: 80px;
    padding: 50px 40px;
    background: linear-gradient(135deg,
        var(--bg-card) 0%,
        rgba(52, 199, 89, 0.05) 100%
    );
    border: 1px solid var(--profit-bg);
    border-radius: var(--radius-xl);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(52, 199, 89, 0.5) 50%,
        transparent 100%
    );
}

.faq-cta-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-sub) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-cta-text {
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.faq-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--profit) 0%, var(--teal) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
}

.faq-cta-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(52, 199, 89, 0.4);
}

.faq-cta-link svg {
    transition: transform var(--transition);
}

.faq-cta-link:hover svg {
    transform: translateX(4px);
}

.faq-contact-link {
    background: transparent;
    color: var(--profit);
    border: 1px solid var(--profit);
    box-shadow: none;
    margin-left: 12px;
}

.faq-contact-link:hover {
    background: var(--profit-bg);
    box-shadow: none;
}

/* FAQ Responsive */
@media (max-width: 1024px) {
    .faq-grid {
        gap: 20px;
        max-width: 900px;
    }
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 80px 28px;
    }

    .faq-section::before {
        width: 400px;
        height: 400px;
    }

    .faq-grid {
        margin-top: 50px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-question {
        padding: 20px 18px;
        font-size: 14px;
        gap: 14px;
    }

    .faq-question-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: var(--radius);
    }

    .faq-question-icon svg {
        width: 16px;
        height: 16px;
    }

    .faq-question-text {
        padding-top: 6px;
    }

    .faq-answer-content {
        padding: 0 18px 0 68px;
        font-size: 13px;
        line-height: 1.8;
    }

    .faq-item.active .faq-answer-content {
        padding-bottom: 22px;
    }

    .faq-cta {
        padding: 32px 24px;
        margin-top: 50px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-cta-title {
        font-size: 18px;
    }

    .faq-cta-text {
        font-size: 14px;
    }

    .faq-cta-link {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .faq-contact-link {
        margin-left: 0;
        margin-top: 12px;
    }

    .browser-frame.tilt-right,
    .browser-frame.tilt-left,
    .mt5-frame.tilt-left {
        transform: none;
    }

    .browser-chrome {
        padding: 10px 14px;
    }

    .browser-dots .dot {
        width: 9px;
        height: 9px;
    }

    .browser-url-bar {
        padding: 5px 10px;
    }

    .browser-url-bar span {
        font-size: 11px;
    }

    .performance-screenshot {
        margin: 32px auto 28px;
    }

    .tech-infra {
        gap: 32px;
        margin-top: 40px;
    }

    .tech-infra-title {
        font-size: 19px;
    }

    .screenshot-caption {
        font-size: 13px;
    }

    .dashboard-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-feature {
        padding: 18px;
    }

    .mt5-titlebar {
        padding: 6px 10px;
    }

    .mt5-title {
        font-size: 11px;
    }

    .mt5-toolbar {
        padding: 3px 8px;
    }

    .mt5-toolbar-item {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* ============================================================================
   Light Mode Specific Overrides
   ============================================================================ */
:root.light .gradient-orb {
    opacity: 0.85;
}

:root.light .orb-1 {
    background: radial-gradient(circle, rgba(52, 199, 89, 0.6) 0%, transparent 70%);
}

:root.light .orb-2 {
    background: radial-gradient(circle, rgba(10, 132, 255, 0.55) 0%, transparent 70%);
}

:root.light .orb-3 {
    background: radial-gradient(circle, rgba(191, 90, 242, 0.5) 0%, transparent 70%);
}

:root.light .grid-overlay {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

:root.light .nav-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
}

/* Mobile nav uses CSS variables — light/dark handled automatically */

:root.light .pricing-calculator::before {
    background: linear-gradient(
        135deg,
        rgba(40, 167, 69, 0.2) 0%,
        rgba(40, 167, 69, 0.03) 40%,
        rgba(0, 0, 0, 0.03) 60%,
        rgba(40, 167, 69, 0.15) 100%
    );
}

:root.light .calculator-glow {
    background: radial-gradient(circle, rgba(40, 167, 69, 0.08) 0%, transparent 70%);
}

:root.light .price-slider {
    background: linear-gradient(
        to right,
        rgb(40, 167, 69) 0%,
        rgb(40, 167, 69) var(--slider-progress, 47%),
        rgba(0, 0, 0, 0.06) var(--slider-progress, 47%)
    );
}

:root.light .price-note {
    background: rgba(40, 167, 69, 0.04);
    border-left-color: rgba(40, 167, 69, 0.2);
}

:root.light .amount-value {
    text-shadow: 0 0 30px rgba(40, 167, 69, 0.15),
                 0 0 60px rgba(40, 167, 69, 0.05);
}


:root.light .faq-item.active {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(52, 199, 89, 0.08) 100%
    );
}

:root.light .faq-cta {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(52, 199, 89, 0.08) 100%
    );
}

:root.light .browser-frame {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 80px rgba(10, 132, 255, 0.05);
}

:root.light .browser-chrome {
    background: rgba(236, 236, 238, 0.95);
    border-bottom: 1px solid var(--border);
}

:root.light .browser-url-bar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* MT5 Window - Light Mode */
:root.light .mt5-frame {
    background: #f0f0f0;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 80px rgba(10, 132, 255, 0.05);
}

:root.light .mt5-frame:hover {
    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.18),
        0 0 60px rgba(10, 132, 255, 0.1),
        0 0 120px rgba(10, 132, 255, 0.05);
    border-color: rgba(10, 132, 255, 0.15);
}

:root.light .mt5-titlebar {
    background: linear-gradient(180deg, #e8e8e8 0%, #dcdcdc 100%);
    border-bottom: 1px solid var(--border);
}

:root.light .mt5-icon {
    color: var(--accent);
}

:root.light .mt5-toolbar {
    background: #e4e4e4;
    border-bottom: 1px solid var(--border);
}

/* .mt5-toolbar-item uses var(--text-dim) — auto-switches */

:root.light .mt5-content {
    background: #f5f5f5;
}

:root.light .screenshot-placeholder {
    background: linear-gradient(135deg, rgba(242, 242, 247, 0.8) 0%, rgba(229, 229, 234, 0.6) 100%);
}

:root.light .screenshot-placeholder::before {
    background:
        linear-gradient(90deg, transparent 59px, rgba(0,0,0,0.03) 59px, rgba(0,0,0,0.03) 60px, transparent 60px),
        linear-gradient(0deg, transparent 59px, rgba(0,0,0,0.03) 59px, rgba(0,0,0,0.03) 60px, transparent 60px);
    background-size: 60px 60px;
}


:root.light .footer {
    background: rgba(242, 242, 247, 0.95);
    border-top: 1px solid var(--border);
}

:root.light .price-result {
    background: rgba(242, 242, 247, 0.7);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

:root.light .btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}


:root.light .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ============================================================================
   No Data / Loading States
   ============================================================================ */
.muted {
    color: var(--text-dim);
    opacity: 0.6;
}

.no-data-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    color: var(--text-dim);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

.chart-metric-value.muted {
    color: var(--text-sub);
    font-size: 14px;
}

.avg-badge.muted {
    background: var(--bg-elevated);
    color: var(--text-dim);
}

.performance-badge.muted {
    background: var(--bg-elevated);
    color: var(--text-dim);
}

/* ============================================================================
   Beta Banner (self-contained — landing.html does NOT load theme.css)
   ============================================================================ */
.beta-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--profit), var(--accent));
    color: white;
    padding: 8px 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    animation: bannerSlideUp 0.5s ease forwards;
    animation-delay: 0.5s;
}

.beta-banner a {
    color: white;
    text-decoration: underline;
}

.beta-banner a:hover {
    opacity: 0.9;
}

.beta-icon {
    font-size: 14px;
}

body:has(.beta-banner) {
    padding-bottom: 36px;
}

/* ============================================================================
   Scroll Reveal Animation Classes (used by landing.js IntersectionObserver)
   ============================================================================ */

/* Elements that fade + slide up (no parallax conflict) */
/* Hardcoded durations for Safari — var() in transition shorthand can fail */
.scroll-hidden {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-hidden.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Elements with data-parallax: only fade, parallax controls transform */
.scroll-hidden-fade {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-hidden-fade.animate-in {
    opacity: 1;
}

/* Service cards: fade + slide with extra hover transitions */
.scroll-hidden-service {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.15s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.15s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-hidden-service.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Legacy class kept for any direct usage */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================================
   Value Flash — Subtle pulse when counter values finish animating
   ============================================================================ */
.value-updated {
    animation: valueFlash 0.5s ease;
    border-radius: var(--radius-xs);
}

.value-updated.profit,
.profit .value-updated {
    animation-name: valueFlashProfit;
    animation-duration: 0.7s;
}

.value-updated.loss,
.loss .value-updated {
    animation-name: valueFlashLoss;
    animation-duration: 0.7s;
}

.reduced-motion * {
    animation: none !important;
    transition: none !important;
}

/* ============================================================================
   Reduced Motion - Accessibility
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .gradient-orb,
    .floating-card,
    .scroll-indicator-dot,
    .faq-item::before {
        animation: none !important;
    }

    .beta-banner {
        opacity: 1 !important;
        animation: none !important;
    }

    .stat-card,
    .tech-card,
    .pricing-features .feature-card,
    .faq-item,
    .faq-question-icon,
    .faq-icon,
    .btn-primary,
    .btn-secondary,
    .nav-cta,
    .nav-link,
    .service-card,
    .social-link,
    .payment-icon,
    .visual-card .logo-large {
        transition: none !important;
    }

    /* Ensure scroll-hidden elements are visible when animations disabled */
    .service-card,
    .scroll-hidden,
    .scroll-hidden-fade,
    .scroll-hidden-service {
        opacity: 1 !important;
        transform: none !important;
    }

    .stat-card:hover,
    .tech-card:hover,
    .pricing-features .feature-card:hover,
    .faq-item:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .browser-frame,
    .browser-frame:hover,
    .browser-frame.tilt-right,
    .browser-frame.tilt-right:hover,
    .browser-frame.tilt-left,
    .browser-frame.tilt-left:hover,
    .mt5-frame,
    .mt5-frame:hover,
    .mt5-frame.tilt-left,
    .mt5-frame.tilt-left:hover {
        transform: none !important;
    }

    .nav-logo:hover .logo-text,
    .hero-title:hover .gradient-text,
    .project-amber-text:hover,
    .cfin-text:hover,
    .footer-logo:hover,
    .visual-card:hover .visual-label.amber-label {
        animation: none !important;
    }

    .btn-primary::after {
        transition: none !important;
    }

    .pricing-calculator,
    .price-slider,
    .price-slider::-webkit-slider-thumb,
    .price-slider::-moz-range-thumb,
    .slider-input,
    .breakdown-value {
        transition: none !important;
    }

    .amount-value {
        text-shadow: none !important;
    }
}


/* ============================================================================
   AI CHAT WIDGET (www.cfin.be - green accent)
   ============================================================================ */

.ai-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--profit, rgb(52, 199, 89));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.4);
    z-index: 9998;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ai-chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(52, 199, 89, 0.5);
}

.ai-chat-bubble.hidden { display: none; }

.ai-chat-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 400px;
    max-height: 600px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: aiChatSlideUp 0.25s ease-out;
}

.ai-chat-panel.hidden { display: none; }

@keyframes aiChatSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--profit, rgb(52, 199, 89));
    color: #fff;
    flex-shrink: 0;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ai-chat-header-title { font-size: 14px; font-weight: 600; }
.ai-chat-header-status { font-size: 11px; opacity: 0.85; }
.ai-chat-header-actions { display: flex; gap: 4px; }

.ai-chat-header-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast), background var(--transition-fast);
}

.ai-chat-header-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 200px;
    max-height: 380px;
    scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: var(--radius-xs); }

.ai-chat-message { display: flex; max-width: 85%; }
.ai-chat-message-user { align-self: flex-end; }
.ai-chat-message-assistant { align-self: flex-start; }

.ai-chat-message-content {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}

.ai-chat-message-user .ai-chat-message-content {
    background: var(--profit, rgb(52, 199, 89));
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-chat-message-assistant .ai-chat-message-content {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
}

.ai-chat-message-content code {
    background: var(--bg-elevated);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    font-size: 12px;
}

.ai-chat-message-content strong { font-weight: 600; }

.ai-chat-bullet {
    display: block;
    padding-left: 12px;
    position: relative;
}

.ai-chat-bullet::before {
    content: "\2022";
    position: absolute;
    left: 0;
}

.ai-chat-message-system {
    align-self: center;
    font-size: 11px;
    color: var(--text-sub);
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: var(--radius);
    text-align: center;
}

.ai-chat-typing {
    padding: 8px 16px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.ai-chat-typing.hidden { display: none; }

.ai-chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-sub);
    animation: aiTypingDot 1.2s ease-in-out infinite;
}

.ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiTypingDot {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

.ai-chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-panel);
}

.ai-chat-input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.4;
    resize: none;
    max-height: 120px;
    outline: none;
    transition: border-color var(--transition-fast);
    font-family: inherit;
}

.ai-chat-input:focus {
    border-color: var(--profit, rgb(52, 199, 89));
}

.ai-chat-input::placeholder { color: var(--text-sub); }

.ai-chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--profit, rgb(52, 199, 89));
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast), opacity var(--transition-fast);
}

.ai-chat-send-btn:hover { background: rgb(42, 180, 75); }
.ai-chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ai-chat-footer {
    padding: 8px 16px 10px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.ai-chat-footer-link {
    font-size: 11px;
    color: var(--text-sub);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ai-chat-footer-link:hover { color: var(--profit, rgb(52, 199, 89)); }

@media (max-width: 480px) {
    .ai-chat-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 16px 16px 0 0;
    }

    .ai-chat-messages {
        max-height: calc(100vh - 200px);
        max-height: calc(100dvh - 200px);
    }

    .ai-chat-bubble {
        bottom: 16px;
        right: 16px;
    }
}

/* Light mode AI chat handled by CSS variables */

/* ============================================================================
   Mobile Sticky CTA — visible on small screens when hero CTA scrolls away
   ============================================================================ */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta,
    .mobile-sticky-cta.visible {
        display: none !important;
    }

    .sticky-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, var(--profit) 0%, var(--teal) 100%);
        color: white;
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 15px;
        text-decoration: none;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================================================
   Live Trades Section - Inline section with MT5-style window frame
   ============================================================================ */

.live-trades-section {
    padding: 80px 40px;
    overflow: hidden;
}

.live-trades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 20px auto 0;
    align-items: start;
}

.live-trades-col {
    min-width: 0;
}

.live-trades-col:nth-child(2) {
    margin-top: 30px;
}

.live-trades-frame {
    width: 100%;
}

.live-trades-content {
    padding: 0;
}

.feed-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--profit);
    margin-right: 6px;
    vertical-align: middle;
    /* Safari-safe: hardcoded cubic-bezier, no var() */
    animation: feedDotPulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes feedDotPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 4px rgba(52, 199, 89, 0);
    }
}

.feed-items {
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(-8px);
    /* Safari-safe: hardcoded values */
    animation: feedItemSlideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.feed-item:last-child {
    border-bottom: none;
}

@keyframes feedItemSlideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feed-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.feed-symbol {
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
    white-space: nowrap;
    font-family: 'Segoe UI', -apple-system, 'Inter', sans-serif;
}

.feed-profit {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.feed-profit.win {
    color: var(--profit);
}

.feed-profit.loss {
    color: var(--loss);
}

.feed-volume {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
}

.feed-time {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Light mode: MT5 frame already handles background */
:root.light .live-trades-content {
    background: #f5f5f7;
}

/* Tablet: 2 columns, third wraps below */
@media (max-width: 1024px) {
    .live-trades-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .live-trades-col:nth-child(2) {
        margin-top: 0;
    }

    .live-trades-col:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .live-trades-section {
        padding: 60px 20px;
    }

    .live-trades-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Show only the first trade window on mobile */
    .live-trades-col:nth-child(2),
    .live-trades-col:nth-child(3) {
        display: none;
    }

    .live-trades-frame {
        max-width: 100%;
    }

    .live-trades-frame.tilt-left,
    .live-trades-frame.tilt-right {
        transform: none;
    }

    .feed-item {
        padding: 8px 10px;
        font-size: 12px;
    }

    .feed-symbol,
    .feed-profit {
        font-size: 12px;
    }

    .feed-volume {
        display: none;
    }
}

/* Reduced motion */
.reduced-motion .feed-item {
    opacity: 1;
    transform: none;
    animation: none;
}

.reduced-motion .feed-dot {
    animation: none;
}

/* ============================================================================
   Mobile Performance Optimizations
   ============================================================================ */
@media (max-width: 768px) {
    :root {
        --glass-blur: 0px;
    }

    /* Disable backdrop-filter on landing page glass elements */
    .glass-card,
    .price-result {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    /* Reduce box-shadows on landing cards */
    .feature-card,
    .step-card,
    .pricing-card,
    .testimonial-card,
    .stat-card,
    .glass-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    /* Remove hover transforms (no hover on touch) */
    .feature-card:hover,
    .step-card:hover,
    .testimonial-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    }

    /* Simplify card transitions */
    .feature-card,
    .step-card,
    .testimonial-card {
        transition: none;
    }
}

/* Light mode mobile overrides */
@media (max-width: 768px) {
    :root.light .price-result {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
