/* ═══════════════════════════════════════════════════════════
   SOFT TRADING — Premium Fintech Interface Styles
   ═══════════════════════════════════════════════════════════ */

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

:root {
    --bg-primary: #050a14;
    --bg-secondary: #0a1628;
    --bg-card: #0c1a2e;
    --bg-surface: #111d32;
    --bg-elevated: #162540;

    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --teal-300: #5eead4;
    --teal-glow: rgba(20, 184, 166, 0.25);
    --teal-glow-strong: rgba(20, 184, 166, 0.45);

    --text-primary: #e8edf4;
    --text-secondary: #94a3b8;
    --text-muted: #5a6b82;
    --text-accent: var(--teal-400);

    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-light: rgba(148, 163, 184, 0.12);
    --border-teal: rgba(20, 184, 166, 0.2);

    --green: #22c55e;
    --red: #ef4444;
    --amber: #f59e0b;
    --blue: #3b82f6;

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-height: 72px;
}

/* ── Light Mode Override ──────────────────────────── */
body.light-mode {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-surface: #eef1f5;
    --bg-elevated: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-subtle: rgba(15, 23, 42, 0.06);
    --border-light: rgba(15, 23, 42, 0.1);
    --border-teal: rgba(13, 148, 136, 0.25);

    --teal-glow: rgba(13, 148, 136, 0.12);
    --teal-glow-strong: rgba(13, 148, 136, 0.25);
}

body.light-mode .hero-canvas {
    opacity: 0.35;
}

body.light-mode .hero-glow {
    opacity: 0.35;
    background: radial-gradient(circle, rgba(13,148,136,0.28) 0%, transparent 70%);
}

body.light-mode .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* ── Hero 3D background — light theme harmonization ─────
   The trading chart is an inherently dark photographic asset that
   can't harmonize with a white surface, so in light mode we hide it
   entirely and let the existing canvas particles + radial glow +
   grid carry the ambience. The shine layer becomes a soft teal
   tint, and the dark vignette is swapped for a white feather so
   the hero reads as bright and clean instead of pasted-on. */
body.light-mode .hero-bg-image {
    opacity: 0;
    animation: none;
}

body.light-mode .hero-bg-shine {
    mix-blend-mode: normal;
    opacity: 0.55;
    background: radial-gradient(
        ellipse 60% 45% at var(--shine-x, 30%) var(--shine-y, 40%),
        rgba(45, 212, 191, 0.18) 0%,
        rgba(20, 184, 166, 0.08) 35%,
        transparent 70%
    );
}

body.light-mode .hero-bg-vignette {
    background:
        radial-gradient(ellipse 100% 80% at 50% 35%, transparent 0%, rgba(245, 247, 250, 0.5) 70%, rgba(245, 247, 250, 0.92) 100%),
        linear-gradient(180deg, rgba(245, 247, 250, 0.35) 0%, rgba(245, 247, 250, 0) 30%, rgba(245, 247, 250, 0) 70%, rgba(245, 247, 250, 0.96) 100%);
}

body.light-mode .nav-inner {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

body.light-mode .nav.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

body.light-mode .nav-link:hover {
    background: rgba(15, 23, 42, 0.05);
}

body.light-mode .float-panel {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

body.light-mode .float-panel:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1), 0 0 24px rgba(13,148,136,0.1);
}

body.light-mode .ticker-bar {
    background: rgba(255, 255, 255, 0.6);
}

body.light-mode .feature-card,
body.light-mode .perf-card,
body.light-mode .trust-card,
body.light-mode .product-card,
body.light-mode .testimonial-card,
body.light-mode .faq-item {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

body.light-mode .platform-screen {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
}

body.light-mode .screen-header {
    background: rgba(0,0,0,0.03);
}

body.light-mode .screen-sidebar {
    background: rgba(0,0,0,0.02);
}

body.light-mode .screen-panel {
    background: rgba(0,0,0,0.02);
}

body.light-mode .cta-inner {
    box-shadow: 0 24px 80px rgba(0,0,0,0.06);
}

body.light-mode .hero-metrics-bar {
    background: rgba(255, 255, 255, 0.6);
}

body.light-mode .mobile-menu {
    background: rgba(255, 255, 255, 0.96);
}

body.light-mode .mobile-link {
    color: var(--text-secondary);
}

body.light-mode .product-buy-card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

body.light-mode .btn-ghost {
    background: rgba(15, 23, 42, 0.03);
}

/* ── Logo Glow (Dark mode only) ───────────────────── */
.nav-logo-img {
    transition: filter 0.5s var(--ease-out-expo);
}

/* ── Theme & Language Toggle Buttons ──────────────── */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    flex-shrink: 0;
    padding: 0;
}

.toggle-btn:hover {
    background: rgba(148, 163, 184, 0.14);
    color: var(--text-primary);
}

.toggle-btn svg {
    width: 16px;
    height: 16px;
}

.lang-btn {
    width: auto;
    padding: 0 12px;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    gap: 4px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.teal { color: var(--teal-400); }

/* ── Navigation ────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    transition: all 0.5s var(--ease-out-expo);
}

.nav.scrolled {
    padding: 8px 24px;
}

.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 10px 10px 10px 24px;
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.nav.scrolled .nav-inner {
    background: rgba(10, 22, 40, 0.85);
    border-color: var(--border-light);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.35s var(--ease-out-expo);
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(148, 163, 184, 0.08);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--teal-500);
    padding: 10px 20px;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--teal-400);
    box-shadow: 0 0 24px var(--teal-glow);
    transform: translateY(-1px);
}

.nav-cta:active {
    transform: scale(0.97);
}

.nav-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(5, 10, 20, 0.15);
    transition: transform 0.35s var(--ease-out-expo);
}

.nav-cta:hover .nav-cta-icon {
    transform: translate(2px, -1px);
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    z-index: 110;
}

.nav-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s var(--ease-out-expo);
    transform-origin: center;
}

.nav-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* ── Mobile Menu ───────────────────────────────────── */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(5, 10, 20, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 12px 24px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }

.mobile-link:hover {
    color: var(--teal-400);
}

.mobile-cta-link {
    color: var(--teal-400);
    margin-top: 16px;
}

/* ── Hero Section ──────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-height) + 40px) 24px 0;
    overflow: hidden;
    /* 3D viewport for the animated chart backdrop */
    perspective: 1600px;
    perspective-origin: 50% 45%;
}

/* ── 3D animated trading-chart background ──────────────
   A perspective-rotated plane carrying the chart image, with a
   slow float animation and mouse-parallax tilt driven by JS via
   the --mx/--my CSS variables. Sits behind the canvas particles
   and below the radial glow for layered depth. */
.hero-bg-3d {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transform-style: preserve-3d;
    /* JS sets these on mousemove. Defaults centre the plane. */
    --mx: 0;
    --my: 0;
}

.hero-bg-stage {
    position: absolute;
    inset: -8% -6%;
    transform-style: preserve-3d;
    transform:
        rotateX(calc(var(--my) * -6deg))
        rotateY(calc(var(--mx) * 9deg))
        translateZ(0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero-chart.jpg');
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    /* Lift the chart slightly forward so the parallax has depth */
    transform: translateZ(60px);
    /* Saturation + slight blue cast tied to the brand teal palette */
    filter: saturate(1.15) contrast(1.05) brightness(0.85) hue-rotate(-6deg);
    opacity: 0.55;
    animation: heroBgFloat 18s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Soft moving "shine" pass across the chart for life */
.hero-bg-shine {
    position: absolute;
    inset: -20%;
    background: radial-gradient(
        ellipse 50% 35% at var(--shine-x, 30%) var(--shine-y, 40%),
        rgba(45, 212, 191, 0.18) 0%,
        rgba(20, 184, 166, 0.08) 35%,
        transparent 70%
    );
    transform: translateZ(120px);
    mix-blend-mode: screen;
    animation: heroBgShine 14s ease-in-out infinite;
    will-change: transform, opacity;
}

/* Radial vignette + bottom fade so text stays readable everywhere */
.hero-bg-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% 35%, transparent 0%, rgba(2, 6, 23, 0.55) 70%, rgba(2, 6, 23, 0.85) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0) 30%, rgba(2, 6, 23, 0) 70%, rgba(2, 6, 23, 0.9) 100%);
    pointer-events: none;
}

@keyframes heroBgFloat {
    0%, 100% {
        transform: translateZ(60px) scale(1.02) translate(0, 0);
        opacity: 0.55;
    }
    50% {
        transform: translateZ(85px) scale(1.06) translate(-1.5%, -1%);
        opacity: 0.65;
    }
}

@keyframes heroBgShine {
    0%, 100% { --shine-x: 25%; --shine-y: 35%; opacity: 0.9; }
    50%      { --shine-x: 70%; --shine-y: 55%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-stage { transition: none; transform: none; }
    .hero-bg-image,
    .hero-bg-shine { animation: none; }
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Particles on top of the chart but with reduced presence so the
       photographic backdrop reads as the dominant element */
    opacity: 0.45;
    mix-blend-mode: screen;
}

.hero-glow {
    position: absolute;
    top: 15%;
    right: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    animation: heroGlowPulse 8s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal-400);
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.15);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
    animation: badgePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--teal-glow);
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Liquid Morphing Text ──────────────────────────── */
.morph-filters {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.hero-morph {
    position: relative;
    display: inline-block;
    vertical-align: top;
    line-height: 1.05;
    /* Liquid blob effect: blur + alpha threshold */
    filter: url(#hero-morph-threshold) blur(0.45px);
    will-change: filter;
    /* Single-line guarantee — never let a long word wrap mid-morph */
    white-space: nowrap;
    /* Horizontal breathing room so glyph edges + blur don't get clipped */
    padding: 0 0.15em;
}

.hero-morph-sizer {
    display: inline-block;
    visibility: hidden;
    pointer-events: none;
    color: transparent;
    white-space: nowrap;
}

.hero-morph-text {
    position: absolute;
    /* Match the sizer's padded box exactly */
    inset: 0 0.15em;
    display: inline-block;
    /* Center each morphing word within the reserved sizer width so shorter
       words don't snap-jump to the left as the index advances. */
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    will-change: filter, opacity;
    pointer-events: none;
}

body.light-mode .hero-morph-text {
    background: linear-gradient(135deg, var(--teal-500, #14b8a6), var(--teal-400, #2dd4bf));
    -webkit-background-clip: text;
    background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
    .hero-morph {
        filter: none;
    }
    .hero-morph-text {
        will-change: auto;
    }
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-primary {
    background: var(--teal-500);
    color: var(--bg-primary);
    box-shadow: 0 0 0 1px rgba(20,184,166,0.3), 0 4px 16px rgba(20,184,166,0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.btn-primary:hover {
    background: var(--teal-400);
    box-shadow: 0 0 0 1px var(--teal-400), 0 8px 32px var(--teal-glow);
    transform: translateY(-2px);
}

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

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(5, 10, 20, 0.15);
    transition: transform 0.35s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
    transform: translate(2px, -2px);
}

.btn-ghost {
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    background: rgba(148, 163, 184, 0.04);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
    transform: translateY(-2px);
}

.btn-ghost:active {
    transform: scale(0.98);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15.5px;
}

/* ── Hero Floating Dashboard ───────────────────────── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.hero-dashboard {
    position: relative;
    width: 100%;
    height: 460px;
    perspective: 1000px;
}

.float-panel {
    position: absolute;
    background: rgba(12, 26, 46, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.float-panel:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 0 24px var(--teal-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: var(--border-teal);
}

.panel-signal {
    top: 20px;
    left: 10%;
    width: 200px;
    animation: panelFloat1 6s ease-in-out infinite;
    z-index: 3;
}

.panel-pnl {
    top: 60px;
    right: 5%;
    width: 220px;
    animation: panelFloat2 7s ease-in-out infinite;
    z-index: 2;
}

.panel-chart {
    bottom: 60px;
    left: 5%;
    width: 240px;
    animation: panelFloat3 8s ease-in-out infinite;
    z-index: 4;
}

.panel-metrics {
    bottom: 40px;
    right: 15%;
    width: 180px;
    animation: panelFloat4 6.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes panelFloat1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes panelFloat2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.3deg); }
}
@keyframes panelFloat3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(0.4deg); }
}
@keyframes panelFloat4 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.panel-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.panel-dot.blue { background: var(--blue); box-shadow: 0 0 8px rgba(59,130,246,0.4); }
.panel-dot.teal { background: var(--teal-400); box-shadow: 0 0 8px var(--teal-glow); }
.panel-dot.amber { background: var(--amber); box-shadow: 0 0 8px rgba(245,158,11,0.4); }

.panel-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.panel-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
}

.panel-pair {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.panel-direction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.panel-direction.up {
    color: var(--green);
    background: rgba(34, 197, 94, 0.1);
}

.panel-conf {
    font-size: 12px;
    color: var(--text-muted);
}

.panel-amount {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.panel-amount.positive { color: var(--green); }
.panel-amount.negative { color: var(--red); }

.panel-change {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.panel-bar {
    height: 3px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.panel-bar-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, var(--teal-500), var(--green));
    border-radius: 4px;
    animation: barPulse 3s ease-in-out infinite;
}

@keyframes barPulse {
    0%, 100% { width: 68%; }
    50% { width: 74%; }
}

.mini-chart {
    width: 100%;
    height: 50px;
    margin: 4px 0;
}

.chart-line-svg {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 2s var(--ease-out-expo) forwards;
}

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

.panel-price {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-cents {
    font-size: 13px;
    color: var(--text-muted);
}

.risk-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gauge-svg {
    width: 80px;
    height: 44px;
}

.gauge-fill {
    animation: gaugeDraw 1.5s var(--ease-out-expo) forwards;
    stroke-dashoffset: 100;
}

@keyframes gaugeDraw {
    to { stroke-dashoffset: 35; }
}

.gauge-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

/* ── Hero Metrics Bar ──────────────────────────────── */
.hero-metrics-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding: 24px 40px;
    background: rgba(12, 26, 46, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.hero-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-metric-value {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-metric-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-metric-divider {
    width: 1px;
    height: 36px;
    background: var(--border-light);
}

/* ── Ticker Bar ────────────────────────────────────── */
.ticker-bar {
    position: relative;
    z-index: 2;
    background: rgba(12, 26, 46, 0.5);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    animation: tickerScroll 40s linear infinite;
    width: fit-content;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-group {
    display: flex;
    gap: 48px;
    padding-right: 48px;
    flex-shrink: 0;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 13px;
}

.ticker-symbol {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-secondary);
}

.ticker-price {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--text-primary);
}

.ticker-change {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}

.ticker-change.up { color: var(--green); }
.ticker-change.down { color: var(--red); }
.ticker-price.up { color: var(--text-primary); }
.ticker-price.down { color: var(--text-primary); }

/* ── Section Base ──────────────────────────────────── */
.section {
    padding: 120px 0;
    position: relative;
}

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

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal-400);
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.12);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Features Section ──────────────────────────────── */
.features {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px 32px;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20,184,166,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.feature-card:hover {
    border-color: var(--border-teal);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2), 0 0 32px rgba(20,184,166,0.08);
}

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

.feature-icon-wrap {
    position: relative;
    margin-bottom: 24px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.15);
    color: var(--teal-400);
}

.feature-glow {
    position: absolute;
    top: 50%;
    left: 28px;
    width: 60px;
    height: 60px;
    background: var(--teal-glow);
    border-radius: 50%;
    filter: blur(24px);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
}

.feature-card:hover .feature-glow {
    opacity: 0.5;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--teal-400);
    background: rgba(20, 184, 166, 0.08);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(20, 184, 166, 0.1);
}

/* ── Platform Section ──────────────────────────────── */
.platform {
    background: var(--bg-secondary);
    overflow: hidden;
}

.platform-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
}

.platform-content {
    max-width: 480px;
}

.platform-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
}

.platform-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.12);
    color: var(--teal-400);
}

.platform-feature strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.platform-feature span {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Platform Screen Mockup ────────────────────────── */
.platform-visual {
    position: relative;
}

.platform-screen {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.platform-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 120px;
    background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.3;
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-subtle);
}

.screen-dots {
    display: flex;
    gap: 6px;
}

.screen-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.15);
}

.screen-dots span:first-child { background: #ef4444; }
.screen-dots span:nth-child(2) { background: #f59e0b; }
.screen-dots span:last-child { background: #22c55e; }

.screen-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.screen-body {
    display: grid;
    grid-template-columns: 48px 1fr 200px;
    min-height: 320px;
}

/* Image-only variant: drops the mock UI and shows a real terminal screenshot */
.screen-body--image {
    display: block;
    min-height: 0;
    padding: 0;
    background: #000;
    line-height: 0;
}
.screen-body--image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.platform-screen--image {
    /* Lift the chart slightly more than the original mock — image carries the weight */
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(20, 184, 166, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.light-mode .screen-body--image {
    background: #0d1117;
}

.screen-sidebar {
    background: rgba(0,0,0,0.15);
    border-right: 1px solid var(--border-subtle);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sb-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.sb-item.active {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-400);
}

.sb-item:hover {
    color: var(--text-secondary);
}

.screen-main {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
}

.screen-chart-area {
    flex: 1;
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.screen-chart-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sch-pair {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sch-tf {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(148,163,184,0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.screen-candles {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding-top: 8px;
}

.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.candle-wick {
    width: 1px;
    background: var(--text-muted);
    opacity: 0.4;
}

.candle-body {
    width: 6px;
    border-radius: 1px;
    min-height: 4px;
}

.candle-body.green { background: var(--green); box-shadow: 0 0 4px rgba(34,197,94,0.3); }
.candle-body.red { background: var(--red); box-shadow: 0 0 4px rgba(239,68,68,0.3); }

.screen-orders {
    padding: 12px 16px;
}

.so-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.so-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
}

.so-pair {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.so-side {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.so-side.buy { color: var(--green); background: rgba(34,197,94,0.1); }
.so-side.sell { color: var(--red); background: rgba(239,68,68,0.1); }

.so-pnl {
    font-family: var(--font-mono);
    font-weight: 600;
}

.so-pnl.positive { color: var(--green); }
.so-pnl.negative { color: var(--red); }

.screen-panel {
    padding: 16px;
    background: rgba(0,0,0,0.1);
}

.sp-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sp-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.sp-value {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.sp-buttons {
    display: flex;
    gap: 6px;
    margin: 14px 0;
}

.sp-btn {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.sp-btn.buy {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.sp-btn.sell {
    background: rgba(239, 68, 68, 0.12);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.sp-btn:hover {
    transform: translateY(-1px);
}

.sp-btn.buy:hover { box-shadow: 0 4px 16px rgba(34,197,94,0.15); }
.sp-btn.sell:hover { box-shadow: 0 4px 16px rgba(239,68,68,0.15); }

/* ── Performance Section ───────────────────────────── */
.performance {
    background: var(--bg-primary);
    position: relative;
}

.performance::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(20,184,166,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.perf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.perf-card {
    position: relative;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px 28px 36px;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}

.perf-card:hover {
    border-color: var(--border-teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 0 24px rgba(20,184,166,0.06);
}

.perf-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-400), transparent);
    transition: width 0.8s var(--ease-out-expo);
}

.perf-card:hover .perf-line {
    width: 80%;
}

.perf-value {
    font-family: var(--font-mono);
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.perf-label {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.perf-sublabel {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ── About Section ─────────────────────────────────── */
.about {
    background: var(--bg-secondary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-desc {
    text-align: left;
    margin: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
}

.trust-card:hover {
    border-color: var(--border-teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.trust-number {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--teal-400);
    margin-bottom: 6px;
}

.trust-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Featured Products Section ─────────────────────── */
.products-preview {
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 32px 28px;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20,184,166,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.product-card:hover {
    border-color: var(--border-teal);
    transform: translateY(-6px);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.25), 0 0 32px rgba(20,184,166,0.08);
}

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

/* Optional thumbnail at top of card — only present when thumbnail_url is set */
.product-card.has-image {
    padding-top: 0;
}
.product-card-image {
    margin: -1px -28px 24px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out-expo, ease);
}
.product-card.has-image:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--teal-400);
    background: rgba(20,184,166,0.1);
    border: 1px solid rgba(20,184,166,0.15);
    padding: 4px 10px;
    border-radius: 100px;
}

.product-card-category {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.product-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex: 1;
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.product-tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(148,163,184,0.06);
    border: 1px solid var(--border-subtle);
    padding: 3px 10px;
    border-radius: 6px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.product-price {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--teal-400);
}

.product-price-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal-400);
    transition: gap 0.3s var(--ease-out-expo);
}

.product-card-link:hover { gap: 10px; }

/* ── Expandable Card System ──────────────────────── */
.expand-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
body.light-mode .expand-overlay {
    background: rgba(255, 255, 255, 0.5);
}
.expand-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.expand-container {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.expand-container.active {
    pointer-events: auto;
}

.expand-card {
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 0 60px rgba(20, 184, 166, 0.08);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
body.light-mode .expand-card {
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.expand-container.active .expand-card {
    transform: scale(1);
    opacity: 1;
}

.expand-card-header {
    position: relative;
    padding: 48px 40px 32px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(13, 148, 136, 0.03) 50%, transparent 100%);
    border-bottom: 1px solid var(--border-subtle);
}
.expand-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06), transparent 70%);
    pointer-events: none;
}

.expand-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    flex-shrink: 0;
}
.expand-close:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    transform: rotate(90deg);
}
.expand-close svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.expand-container.active .expand-close svg {
    transform: rotate(45deg);
}

.expand-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-400);
    margin-bottom: 12px;
}

/* Cover image inside the expanded card view (between header and body) */
.expand-card-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
}
.expand-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hero image on the standalone product detail page */
.product-detail-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    margin: 24px 0 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.product-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.expand-card-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.expand-card-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px 40px 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.expand-card-body::-webkit-scrollbar { display: none; }

.expand-card-body > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.expand-container.active .expand-card-body > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.15s; }
.expand-container.active .expand-card-body > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.2s; }
.expand-container.active .expand-card-body > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.25s; }
.expand-container.active .expand-card-body > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.expand-container.active .expand-card-body > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.35s; }
.expand-container.active .expand-card-body > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.4s; }

.expand-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ── Rich-text rendering (admin-authored HTML) ───────
   Applies to descriptions rendered through richHtml().
   Keeps bold/underline/lists readable inside the same
   typography scale as surrounding body copy. */
.rich-content b,
.rich-content strong { font-weight: 700; color: var(--text-primary); }
.rich-content u { text-decoration: underline; text-underline-offset: 3px; }
.rich-content ul,
.rich-content ol {
    padding-left: 22px;
    margin: 10px 0 14px;
}
.rich-content ul { list-style: disc; }
.rich-content ol { list-style: decimal; }
.rich-content li {
    margin: 4px 0;
    padding-left: 4px;
}
.rich-content li::marker { color: var(--teal-400, var(--teal, #2dd4bf)); }
.rich-content p { margin: 0 0 12px; }
.rich-content p:last-child { margin-bottom: 0; }

.expand-section-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.expand-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 28px;
    padding: 0;
}
.expand-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}
.expand-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal-400);
    flex-shrink: 0;
    margin-top: 7px;
}

.expand-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.expand-tags-row .product-tag {
    font-size: 11px;
    padding: 4px 12px;
}

.expand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 40px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.expand-price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.expand-price-block .product-price {
    font-size: 28px;
}

.expand-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    background: var(--teal-500);
    color: var(--bg-primary);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    text-decoration: none;
}
.expand-buy-btn:hover {
    background: var(--teal-400);
    box-shadow: 0 8px 28px var(--teal-glow);
    transform: translateY(-2px);
}

/* Expand trigger on cards */
.product-card { cursor: pointer; }

.product-expand-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.product-expand-btn:hover {
    color: var(--teal-400);
    border-color: var(--teal-400);
}

@media (max-width: 768px) {
    .expand-container { padding: 12px; }
    .expand-card { max-height: 95vh; border-radius: 20px; }
    .expand-card-header { padding: 36px 24px 24px; }
    .expand-card-body { padding: 24px; }
    .expand-footer { padding: 20px 24px; flex-direction: column; align-items: stretch; text-align: center; }
    .expand-buy-btn { justify-content: center; }
    .expand-close { top: 12px; right: 12px; width: 36px; height: 36px; }
}

.products-cta {
    text-align: center;
}

/* ── Testimonials Section ──────────────────────────── */
.testimonials-section {
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 32px 28px;
    transition: all 0.5s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--border-teal);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.testimonial-quote {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex: 1;
    font-style: italic;
}

.testimonial-quote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1;
    color: var(--teal-500);
    display: block;
    margin-bottom: 8px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.testimonial-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ── FAQ Section ───────────────────────────────────── */
.faq-section {
    background: var(--bg-secondary);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: start;
}

.faq-header .section-title {
    text-align: left;
}

.faq-header .section-desc {
    text-align: left;
    margin: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item.open {
    border-color: var(--border-teal);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover { color: var(--teal-400); }

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(148,163,184,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-out-expo), background 0.3s;
    font-size: 14px;
    color: var(--text-muted);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: rgba(20,184,166,0.1);
    color: var(--teal-400);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ── Indicators Listing Page ───────────────────────── */
.page-hero {
    padding: calc(var(--nav-height) + 60px) 0 60px;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(20,184,166,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .section-title {
    position: relative;
    z-index: 1;
}

.page-hero .section-desc {
    position: relative;
    z-index: 1;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(148,163,184,0.06);
    border: 1px solid var(--border-subtle);
    padding: 8px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.filter-btn:hover {
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.filter-btn.active {
    color: var(--teal-400);
    background: rgba(20,184,166,0.08);
    border-color: rgba(20,184,166,0.2);
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.search-wrap {
    max-width: 400px;
    margin: 24px auto 0;
    position: relative;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--border-teal);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* ── Product Detail Page ───────────────────────────── */
.product-hero {
    padding: calc(var(--nav-height) + 48px) 0 48px;
    background: var(--bg-primary);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: color 0.3s;
}

.product-back:hover { color: var(--teal-400); }

.product-detail-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.product-detail-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.product-detail-section {
    margin-bottom: 36px;
}

.product-detail-section h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.product-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.product-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
    flex-shrink: 0;
    margin-top: 7px;
}

.product-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.product-buy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.product-buy-price {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    color: var(--teal-400);
    margin-bottom: 4px;
}

.product-buy-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.product-buy-price--empty {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
}
.product-buy-model-tag {
    display: inline-block;
    margin-bottom: 24px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--teal-400) 35%, transparent);
    background: color-mix(in srgb, var(--teal-400) 10%, transparent);
    color: var(--teal-400);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.product-buy-model-tag--sub {
    border-color: color-mix(in srgb, var(--blue-400, #6aa6ff) 35%, transparent);
    background: color-mix(in srgb, var(--blue-400, #6aa6ff) 10%, transparent);
    color: var(--blue-400, #6aa6ff);
}
.product-price-soon {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.product-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    background: var(--teal-500);
    color: var(--bg-primary);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    margin-bottom: 16px;
}

.product-buy-btn:hover {
    background: var(--teal-400);
    box-shadow: 0 8px 32px var(--teal-glow);
    transform: translateY(-2px);
}

.product-buy-btn:active { transform: scale(0.98); }

/* ── Secondary Trial CTA (sidebar + card) ───────────── */
.product-trial-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    margin-bottom: 16px;
    text-decoration: none;
}
.product-trial-btn:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
    transform: translateY(-2px);
}
.product-trial-btn:active { transform: scale(0.98); }
.product-trial-btn .trial-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--teal-500);
    color: var(--bg-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

/* ── Product card CTA row (trial + subscribe) ───────── */
.product-card-ctas {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.product-card-ctas .product-card-cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    white-space: nowrap;
    line-height: 1.1;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-primary);
}
.product-card-ctas .product-card-cta:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
    transform: translateY(-1px);
}
.product-card-ctas .product-card-cta--solid {
    background: var(--teal-500);
    color: var(--bg-primary);
    border-color: transparent;
}
.product-card-ctas .product-card-cta--solid:hover {
    background: var(--teal-400);
    color: var(--bg-primary);
    box-shadow: 0 6px 20px var(--teal-glow);
}

/* ── Expand-card CTA row ─────────────────────────── */
.expand-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.expand-cta-row .expand-buy-btn,
.expand-cta-row .expand-trial-btn {
    flex: 1;
    min-width: 160px;
}
.expand-trial-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}
.expand-trial-btn:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
    transform: translateY(-1px);
}

/* ── Trial page product context box ──────────────── */
.trial-product {
    padding: 20px 22px;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: var(--bg-elevated);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.trial-product-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.trial-product-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}
.trial-product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13.5px;
    color: var(--text-secondary);
}
.trial-product-price {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ── Trial page perks list ───────────────────────── */
.trial-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 24px;
    padding: 18px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: color-mix(in srgb, var(--teal-500) 4%, transparent);
}
.trial-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.trial-perk svg {
    flex-shrink: 0;
    color: var(--teal-400);
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.product-meta-key {
    color: var(--text-muted);
}

.product-meta-val {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ── CTA Section ───────────────────────────────────── */
.cta-section {
    background: var(--bg-primary);
    overflow: hidden;
    position: relative;
}

.cta-bg-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cta-svg {
    width: 100%;
    height: 100%;
}

.cta-line {
    animation: ctaLineMove 12s ease-in-out infinite;
}

.cta-line-2 { animation-delay: -4s; }
.cta-line-3 { animation-delay: -8s; }

@keyframes ctaLineMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 80px 60px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.3;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.cta-desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Buy / Platform Choice Page ───────────────────── */
.buy-product {
    max-width: 720px;
    margin: 0 auto 36px;
    padding: 22px 26px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: var(--bg-elevated);
    text-align: center;
}
.buy-product-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.buy-product-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 6px;
}
.buy-product-price-amt {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--teal-400);
}
.buy-product-price-label {
    font-size: 13px;
    color: var(--text-muted);
}
.buy-product-model {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--teal-400) 35%, transparent);
    background: color-mix(in srgb, var(--teal-400) 10%, transparent);
    color: var(--teal-400);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.buy-product-model:empty { display: none; }

.buy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}
@media (max-width: 820px) {
    .buy-grid { grid-template-columns: 1fr; max-width: 480px; }
}

.buy-card {
    position: relative;
    padding: 32px 28px 28px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), border-color 0.4s ease;
    --mx: 50%;
    --my: 50%;
}
.buy-card.revealed { opacity: 1; transform: translateY(0); }
.buy-card:hover { border-color: var(--teal-400); }

.buy-card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--teal-400) 14%, transparent), transparent 60%);
}
.buy-card:hover .buy-card-glow { opacity: 1; }

.buy-card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--teal-500);
    color: var(--bg-primary);
    font-weight: 700;
}
.buy-card--mt4 { border-color: color-mix(in srgb, var(--teal-400) 35%, var(--border-light)); }

.buy-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--teal-400) 10%, transparent);
    color: var(--teal-400);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.buy-card--tv .buy-card-icon {
    background: color-mix(in srgb, #28a8e9 14%, transparent);
    color: #28a8e9;
}

.buy-card-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.15;
}
.buy-card-desc {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 20px;
}

.buy-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.buy-card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.buy-card-features li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--teal-400);
}
.buy-card-features code {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--teal-400) 10%, transparent);
    color: var(--teal-300, var(--teal-400));
}

.buy-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-primary);
}
.buy-card-cta:hover {
    border-color: var(--teal-400);
    color: var(--teal-400);
    transform: translateY(-2px);
}
.buy-card-cta--primary {
    background: var(--teal-500);
    color: var(--bg-primary);
    border-color: transparent;
}
.buy-card-cta--primary:hover {
    background: var(--teal-400);
    color: var(--bg-primary);
    box-shadow: 0 10px 30px var(--teal-glow);
}
.buy-card-cta--disabled {
    opacity: 0.55;
    pointer-events: none;
}
.buy-card-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.buy-back-row {
    text-align: center;
    margin-top: 40px;
}
.buy-back-link {
    font-size: 13.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.buy-back-link:hover { color: var(--teal-400); }

/* ── Trial "Buy Now" inline CTA ──────────────────── */
.trial-buynow {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--teal-500) 3%, transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.trial-buynow-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.45;
}
.trial-buynow-text strong { color: var(--text-primary); }
.trial-buynow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 12px;
    background: var(--teal-500);
    color: var(--bg-primary);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    flex-shrink: 0;
}
.trial-buynow-btn:hover {
    background: var(--teal-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--teal-glow);
}

/* ── Telegram Channel Widget ─────────────────────────
   Persistent bottom-right widget injected by telegram-popup.js
   on every public page. A pulsing bubble sits above a collapsible
   callout card that auto-opens on first visit of the session. */
.tg-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}
.tg-widget .tg-bubble,
.tg-widget .tg-card {
    pointer-events: auto;
}

.tg-bubble {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #28a8e9 0%, #0088cc 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.45), 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}
.tg-bubble svg {
    position: relative;
    z-index: 2;
    transform: translate(-1px, 1px);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.tg-bubble:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 38px rgba(0, 136, 204, 0.6), 0 6px 18px rgba(0, 0, 0, 0.3);
}
.tg-bubble:active { transform: scale(0.96); }

.tg-bubble-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #28a8e9;
    opacity: 0.45;
    animation: tgPulse 2.2s ease-out infinite;
    z-index: 1;
}
@keyframes tgPulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.6); opacity: 0;   }
    100% { transform: scale(1.6); opacity: 0;   }
}

.tg-card {
    width: 300px;
    max-width: calc(100vw - 44px);
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: var(--bg-elevated, #131821);
    border: 1px solid var(--border-light, rgba(255,255,255,0.12));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 8px 20px rgba(0, 136, 204, 0.12);
    position: relative;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    pointer-events: none !important;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
    overflow: hidden;
}
.tg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(40, 168, 233, 0.15), transparent 60%);
    pointer-events: none;
}
.tg-widget.tg-open .tg-card {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto !important;
}

.tg-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted, #8a93a6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.tg-card-close:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-subtle, rgba(255,255,255,0.08));
    color: var(--text-primary, #e8ecf2);
}

.tg-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
}
.tg-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #28a8e9 0%, #0088cc 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.35);
}
.tg-card-icon svg { transform: translate(-1px, 1px); }
.tg-card-text { min-width: 0; }
.tg-card-title {
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #e8ecf2);
    line-height: 1.2;
    margin-bottom: 3px;
}
.tg-card-sub {
    font-size: 12.5px;
    color: var(--text-muted, #8a93a6);
    line-height: 1.4;
}

.tg-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #28a8e9 0%, #0088cc 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
}
.tg-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 136, 204, 0.45);
    filter: brightness(1.05);
}
.tg-card-btn:active { transform: scale(0.98); }

.tg-card-handle {
    text-align: center;
    margin-top: 10px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11.5px;
    color: var(--text-muted, #8a93a6);
    letter-spacing: 0.02em;
}

/* Light mode tweaks */
body.light-mode .tg-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Mobile: shrink bubble + card, snug to the edge */
@media (max-width: 640px) {
    .tg-widget {
        right: 14px;
        bottom: 14px;
        gap: 10px;
    }
    .tg-bubble {
        width: 52px;
        height: 52px;
    }
    .tg-card {
        width: 280px;
        padding: 16px;
    }
}

/* ── Footer ────────────────────────────────────────── */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 72px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 80px;
    margin-bottom: 56px;
}

.footer-logo {
    height: 38px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

/* Contact email rendered directly under the footer brand. The same
   address is also linked as the "Contact" item in the Company column,
   but a visible mailto here gives clients a one-tap path to reach us. */
.footer-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--teal-400, var(--teal, #2dd4bf));
    text-decoration: none;
    background: color-mix(in srgb, var(--teal-400, #2dd4bf) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--teal-400, #2dd4bf) 22%, transparent);
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-email::before {
    content: '';
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='m3 7 9 6 9-6'/></svg>") center/contain no-repeat;
}
.footer-email:hover {
    background: color-mix(in srgb, var(--teal-400, #2dd4bf) 16%, transparent);
    border-color: color-mix(in srgb, var(--teal-400, #2dd4bf) 40%, transparent);
    transform: translateY(-1px);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.footer-link {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 5px 0;
    transition: color 0.3s var(--ease-out-expo);
}

.footer-link:hover {
    color: var(--teal-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s var(--ease-out-expo);
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ── Scroll Reveal Animations ──────────────────────── */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-reveal="up"] {
    transform: translateY(40px);
}

[data-reveal="left"] {
    transform: translateX(-40px);
}

[data-reveal="right"] {
    transform: translateX(40px);
}

[data-reveal="scale"] {
    transform: scale(0.95);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* ── Luminous Background Lines ─────────────────────── */
.bg-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,0.08), transparent);
    pointer-events: none;
    animation: bgLineMove 20s linear infinite;
}

@keyframes bgLineMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .feature-wide {
        grid-column: span 1;
    }

    .platform-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .platform-content {
        max-width: 100%;
        text-align: center;
    }

    .platform-content .section-title {
        text-align: center;
    }

    .platform-content .section-desc {
        margin: 0 auto;
        text-align: center;
    }

    .platform-features {
        max-width: 480px;
        margin: 36px auto 0;
    }

    .perf-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content {
        text-align: center;
    }

    .about-content .section-title,
    .about-content .section-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .faq-header {
        text-align: center;
    }

    .faq-header .section-title,
    .faq-header .section-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .indicators-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-sidebar {
        position: static;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .nav-inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-logo-img {
        height: 36px;
    }

    .nav-controls {
        gap: 4px;
        margin-left: auto;
    }

    .toggle-btn {
        width: 32px;
        height: 32px;
    }

    .lang-btn {
        padding: 0 8px;
        font-size: 10px;
    }

    .nav-menu-btn {
        padding: 8px;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 24px);
    }

    .hero-title {
        font-size: clamp(36px, 9vw, 52px);
    }

    .hero-metrics-bar {
        flex-direction: column;
        gap: 20px;
        padding: 28px 24px;
    }

    .hero-metric-divider {
        width: 60px;
        height: 1px;
    }

    .section {
        padding: 80px 0;
    }

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

    .screen-body {
        grid-template-columns: 1fr;
    }

    .screen-sidebar {
        display: none;
    }

    .screen-panel {
        display: none;
    }

    .perf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .perf-card {
        padding: 28px 16px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .indicators-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-inner {
        padding: 48px 24px;
        border-radius: 24px;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .perf-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ── Selection ─────────────────────────────────────── */
::selection {
    background: rgba(20, 184, 166, 0.25);
    color: var(--text-primary);
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   BOOKING PAGE — Premium Aurora Form
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────── */
.bk-hero {
    position: relative;
    padding: 140px 0 60px;
    overflow: hidden;
}

.bk-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.bk-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.bk-hero-orb-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 65%);
    top: -120px;
    left: -100px;
    animation: bkOrbDrift 18s ease-in-out infinite;
}

.bk-hero-orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(45,212,191,0.14), transparent 65%);
    top: 40px;
    right: -80px;
    animation: bkOrbDrift 22s ease-in-out infinite reverse;
}

@keyframes bkOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, -30px) scale(1.08); }
}

body.light-mode .bk-hero-orb-1 {
    background: radial-gradient(circle, rgba(20,184,166,0.22), transparent 65%);
}

body.light-mode .bk-hero-orb-2 {
    background: radial-gradient(circle, rgba(45,212,191,0.18), transparent 65%);
}

/* ── Section ────────────────────────────────────────── */
.bk-section {
    padding: 24px 0 100px;
    position: relative;
}

/* ── Card ───────────────────────────────────────────── */
.bk-card {
    --mx: 50%;
    --my: 50%;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(180deg, rgba(20,30,48,0.6), rgba(10,15,28,0.7));
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 28px;
    padding: 56px 48px 48px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 24px 80px -20px rgba(0,0,0,0.6),
        0 0 0 1px rgba(20,184,166,0.04) inset;
    overflow: hidden;
    animation: bkCardIn 0.8s var(--ease-out-expo) both;
}

body.light-mode .bk-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(248,250,252,0.7));
    border-color: rgba(15,23,42,0.08);
    box-shadow:
        0 24px 80px -20px rgba(15,23,42,0.18),
        0 0 0 1px rgba(20,184,166,0.04) inset;
}

@keyframes bkCardIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* aurora top-edge */
.bk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20,184,166,0.6), rgba(45,212,191,0.4), transparent);
    background-size: 200% 100%;
    animation: bkAurora 6s linear infinite;
}

@keyframes bkAurora {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* mouse-tracking glow */
.bk-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(20,184,166,0.10), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: 28px;
}

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

/* ── Stepper ────────────────────────────────────────── */
.bk-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    user-select: none;
}

.bk-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: default;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.bk-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(148,163,184,0.06);
    border: 1.5px solid rgba(148,163,184,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s var(--ease-out-expo);
}

.bk-step-num {
    transition: opacity 0.3s, transform 0.3s;
}

.bk-step-check {
    position: absolute;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.4s var(--ease-out-expo);
}

.bk-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

/* active step */
.bk-step-active .bk-step-circle {
    background: rgba(20,184,166,0.12);
    border-color: var(--teal-400);
    color: var(--teal-400);
    box-shadow: 0 0 0 6px rgba(20,184,166,0.08), 0 0 24px rgba(20,184,166,0.2);
    transform: scale(1.08);
}

.bk-step-active .bk-step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* completed step */
.bk-step-done .bk-step-circle {
    background: var(--teal-400);
    border-color: var(--teal-400);
    color: white;
    cursor: pointer;
}

.bk-step-done .bk-step-num {
    opacity: 0;
    transform: scale(0.5);
}

.bk-step-done .bk-step-check {
    opacity: 1;
    transform: scale(1);
}

.bk-step-done .bk-step-label {
    color: var(--text-secondary);
}

.bk-step-done:hover .bk-step-circle {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(20,184,166,0.1);
}

/* connecting line */
.bk-step-line {
    width: 80px;
    height: 2px;
    background: rgba(148,163,184,0.12);
    border-radius: 2px;
    margin: 0 14px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.bk-step-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
    transition: width 0.6s var(--ease-out-expo);
    border-radius: 2px;
}

.bk-step-line-done {
    width: 100%;
}

/* ── Form Pane Transitions ──────────────────────────── */
.bk-form {
    position: relative;
    transition: opacity 0.4s, transform 0.4s;
}

.bk-form-hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.bk-pane {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.bk-pane-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: bkPaneIn 0.5s var(--ease-out-expo) both;
}

@keyframes bkPaneIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bk-pane-header {
    margin-bottom: 32px;
}

.bk-pane-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.bk-pane-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── Grid ───────────────────────────────────────────── */
.bk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    margin-bottom: 40px;
}

/* ── Floating Label Field ───────────────────────────── */
.bk-field {
    position: relative;
    display: block;
    cursor: text;
}

.bk-field-full {
    grid-column: 1 / -1;
    margin-bottom: 8px;
}

.bk-input {
    width: 100%;
    padding: 22px 0 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(148,163,184,0.2);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.bk-input::placeholder {
    color: transparent;
}

.bk-label {
    position: absolute;
    left: 0;
    top: 22px;
    font-size: 15px;
    color: var(--text-muted);
    pointer-events: none;
    transition: top 0.3s var(--ease-out-expo), font-size 0.3s var(--ease-out-expo), color 0.3s;
    transform-origin: left center;
}

.bk-label em {
    font-style: normal;
    color: var(--text-muted);
    font-size: 0.85em;
    margin-left: 4px;
}

.bk-input:focus ~ .bk-label,
.bk-input:not(:placeholder-shown) ~ .bk-label {
    top: 0;
    font-size: 11px;
    color: var(--teal-400);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.bk-input:not(:focus):not(:placeholder-shown) ~ .bk-label {
    color: var(--text-muted);
}

.bk-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-300));
    transition: width 0.4s var(--ease-out-expo);
    border-radius: 2px;
}

.bk-input:focus ~ .bk-line {
    width: 100%;
}

.bk-input-error {
    border-bottom-color: #ef4444 !important;
    animation: bkShake 0.4s;
}

.bk-input-error ~ .bk-label {
    color: #ef4444 !important;
}

@keyframes bkShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.bk-textarea {
    padding-top: 28px;
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.bk-date {
    cursor: pointer;
    color-scheme: dark;
}

body.light-mode .bk-date {
    color-scheme: light;
}

.bk-date::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.bk-date::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

body.light-mode .bk-date::-webkit-calendar-picker-indicator {
    filter: invert(0.3);
}

/* date input label always floats since it has a value */
.bk-date ~ .bk-label {
    top: 0;
    font-size: 11px;
    color: var(--teal-400);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.bk-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 32px;
    letter-spacing: 0.01em;
}

/* ── Schedule (date + slots) ────────────────────────── */
.bk-schedule {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bk-slots-wrap {
    margin-top: 8px;
}

.bk-slots-label {
    display: block;
    font-size: 11px;
    color: var(--teal-400);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}

.bk-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 4px;
    border-radius: 14px;
    transition: box-shadow 0.3s;
}

.bk-slots-error {
    box-shadow: 0 0 0 1px #ef4444, 0 0 0 4px rgba(239,68,68,0.15);
    animation: bkShake 0.4s;
}

.bk-slot {
    padding: 11px 12px;
    background: rgba(148,163,184,0.04);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.bk-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,184,166,0.2), rgba(45,212,191,0.1));
    opacity: 0;
    transition: opacity 0.25s;
}

.bk-slot span {
    position: relative;
    z-index: 1;
}

.bk-slot:hover:not(:disabled):not(.bk-slot-active) {
    border-color: rgba(20,184,166,0.4);
    color: var(--teal-300);
    transform: translateY(-1px);
}

.bk-slot:hover::before {
    opacity: 0.4;
}

.bk-slot-active {
    background: var(--teal-500);
    border-color: var(--teal-400);
    color: white;
    box-shadow: 0 6px 20px -4px rgba(20,184,166,0.5), 0 0 0 1px rgba(20,184,166,0.3);
    transform: translateY(-1px);
}

.bk-slot-active::before {
    opacity: 0;
}

.bk-slot:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bk-tz {
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Actions ────────────────────────────────────────── */
.bk-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(148,163,184,0.08);
}

.bk-btn-back,
.bk-btn-next,
.bk-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    border: 1px solid transparent;
    text-decoration: none;
    letter-spacing: 0.005em;
    position: relative;
    overflow: hidden;
}

.bk-btn-back {
    background: transparent;
    color: var(--text-secondary);
    border-color: rgba(148,163,184,0.18);
}

.bk-btn-back:hover {
    color: var(--text-primary);
    border-color: rgba(148,163,184,0.35);
    transform: translateX(-2px);
}

.bk-btn-next {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    color: white;
    box-shadow: 0 6px 24px -6px rgba(20,184,166,0.5);
}

.bk-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 32px -8px rgba(20,184,166,0.7);
}

.bk-btn-next:hover svg {
    transform: translateX(3px);
}

.bk-btn-next svg,
.bk-btn-back svg {
    transition: transform 0.25s var(--ease-out-expo);
}

.bk-btn-back:hover svg {
    transform: translateX(-3px);
}

/* submit with morphing loader */
.bk-btn-submit {
    background: linear-gradient(135deg, var(--teal-500), var(--teal-400));
    color: white;
    box-shadow: 0 6px 24px -6px rgba(20,184,166,0.5);
    min-width: 180px;
    justify-content: center;
}

.bk-btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 32px -8px rgba(20,184,166,0.7);
}

.bk-btn-submit:disabled {
    cursor: wait;
}

.bk-btn-text,
.bk-btn-icon {
    transition: opacity 0.25s, transform 0.25s;
}

.bk-btn-loader {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: bkSpin 0.8s linear infinite;
}

.bk-btn-loading .bk-btn-text,
.bk-btn-loading .bk-btn-icon {
    opacity: 0;
    transform: scale(0.8);
}

.bk-btn-loading .bk-btn-loader {
    opacity: 1;
}

@keyframes bkSpin {
    to { transform: rotate(360deg); }
}

.bk-note {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Success State ──────────────────────────────────── */
.bk-success {
    display: none;
    text-align: center;
    padding: 32px 0 8px;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.bk-success-show {
    display: flex;
    animation: bkPaneIn 0.6s var(--ease-out-expo) both;
}

.bk-success-burst {
    position: absolute;
    top: 50px;
    left: 50%;
    width: 1px;
    height: 1px;
}

.bk-success-burst span {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-400);
    opacity: 0;
}

.bk-success-show .bk-success-burst span {
    animation: bkBurst 1.2s var(--ease-out-expo) 0.4s forwards;
}

.bk-success-burst span:nth-child(1) { --tx:  60px; --ty: -30px; background: var(--teal-300); }
.bk-success-burst span:nth-child(2) { --tx: -60px; --ty: -30px; background: var(--teal-400); }
.bk-success-burst span:nth-child(3) { --tx:  80px; --ty:  20px; background: var(--teal-500); }
.bk-success-burst span:nth-child(4) { --tx: -80px; --ty:  20px; background: var(--teal-300); }
.bk-success-burst span:nth-child(5) { --tx:   0px; --ty: -70px; background: var(--teal-400); }
.bk-success-burst span:nth-child(6) { --tx:  20px; --ty:  60px; background: var(--teal-500); }

@keyframes bkBurst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(calc(var(--tx) * 0.7), calc(var(--ty) * 0.7)) scale(1.4);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

.bk-success-check {
    color: var(--teal-400);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 24px rgba(20,184,166,0.4));
}

.bk-check-circle {
    stroke-dasharray: 183;
    stroke-dashoffset: 183;
}

.bk-check-mark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

.bk-success-show .bk-check-circle {
    animation: bkDrawCircle 0.7s var(--ease-out-expo) 0.1s forwards;
}

.bk-success-show .bk-check-mark {
    animation: bkDrawCheck 0.5s var(--ease-out-expo) 0.7s forwards;
}

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

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

.bk-success-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(10px);
}

.bk-success-show .bk-success-title {
    animation: bkFadeUp 0.5s var(--ease-out-expo) 0.5s forwards;
}

.bk-success-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 440px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
}

.bk-success-show .bk-success-desc {
    animation: bkFadeUp 0.5s var(--ease-out-expo) 0.65s forwards;
}

.bk-success-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
    padding: 16px 24px;
    background: rgba(20,184,166,0.06);
    border: 1px solid rgba(20,184,166,0.15);
    border-radius: 14px;
    opacity: 0;
    transform: translateY(10px);
}

.bk-success-show .bk-success-meta {
    animation: bkFadeUp 0.5s var(--ease-out-expo) 0.8s forwards;
}

.bk-success-meta-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-300);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
}

body.light-mode .bk-success-meta-row {
    color: var(--teal-600, #0d9488);
}

.bk-success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(10px);
}

.bk-success-show .bk-success-actions {
    animation: bkFadeUp 0.5s var(--ease-out-expo) 0.95s forwards;
}

.bk-success-back {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.25s;
    letter-spacing: 0.01em;
}

.bk-success-back:hover {
    color: var(--teal-400);
}

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

/* ── Mobile ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .bk-hero {
        padding: 110px 0 40px;
    }

    .bk-card {
        padding: 36px 22px 28px;
        border-radius: 22px;
    }

    .bk-stepper {
        margin-bottom: 36px;
    }

    .bk-step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .bk-step-label {
        font-size: 11px;
    }

    .bk-step-line {
        width: 32px;
        margin: 0 8px;
        margin-bottom: 24px;
    }

    .bk-pane-title {
        font-size: 19px;
    }

    .bk-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .bk-slots {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
    }

    .bk-slot {
        padding: 10px 6px;
        font-size: 12px;
    }

    .bk-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .bk-btn-back,
    .bk-btn-next,
    .bk-btn-submit {
        justify-content: center;
        width: 100%;
    }

    .bk-success-title {
        font-size: 24px;
    }

    .bk-success-meta {
        gap: 12px;
        padding: 14px 18px;
    }
}