﻿/* ========== CSS Variables ========== */
:root {
    --color-bg: #090a0b;
    --color-bg-elevated: #0e0f11;
    --color-bg-card: #1c1e21;
    --color-border: #26282c;
    --color-border-light: rgba(255, 255, 255, 0.12);
    
    --color-text: #eceee8;
    --color-text-secondary: #c4c9c0;
    --color-text-muted: #8f9583;
    
    --color-primary: #7C9177;
    --color-primary-light: #8fa98a;
    --color-primary-dark: #7a9470;
    --color-primary-glow: rgba(124, 145, 119, 0.3);
    
    --color-success: #10b981;
    --color-danger: #ef4444;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ── Scroll Progress Bar ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light));
    z-index: 10001;
    width: 0%;
    transition: width 50ms linear;
    box-shadow: 0 0 8px var(--color-primary-glow);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Gradient Text ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(141, 168, 133, 0.35);
    position: relative;
}

.btn-primary:hover {
    background: var(--color-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(141, 168, 133, 0.45);
}

.btn-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid var(--color-primary);
    opacity: 0;
    animation: btnPulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes btnPulseRing {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 0; }
}

.btn-glow {
    animation: btnGlowPulse 2.5s ease-in-out infinite;
}

@keyframes btnGlowPulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(141, 168, 133, 0.35); }
    50%      { box-shadow: 0 4px 28px rgba(141, 168, 133, 0.6); }
}

.btn-shimmer {
    overflow: hidden;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: btnShimmerSweep 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes btnShimmerSweep {
    0%   { transform: translateX(-100%); }
    60%  { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.btn-ghost {
    background: transparent;
    color: var(--color-text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-back {
    background: rgba(141, 168, 133, 0.1);
    color: var(--color-primary, #8DA885);
    border: 1px solid rgba(141, 168, 133, 0.25);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}
.btn-back:hover {
    background: rgba(141, 168, 133, 0.2);
    border-color: var(--color-primary, #8DA885);
    color: var(--color-primary-light, #a3bf9b);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(12, 12, 13, 0.85);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(141, 168, 133, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--color-primary);
    font-size: 28px;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── User avatar nav widget ─────────────────────────────────────────────── */
.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C9177, #536950);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    border: 2px solid rgba(124, 145, 119,0.35);
    transition: border-color 0.2s;
}

.nav-user:hover .nav-avatar {
    border-color: rgba(124, 145, 119,0.8);
}

.nav-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0f1a0f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 6px;
    min-width: 160px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.nav-user.open .nav-user-dropdown {
    display: block;
}

.nav-user-dropdown a,
.nav-user-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted, #a1a1aa);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-user-dropdown a:hover,
.nav-user-dropdown button:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.nav-user-dropdown .dropdown-signout {
    color: #f87171;
    margin-top: 2px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 9px;
}

.nav-user-dropdown .dropdown-signout:hover {
    background: rgba(248,113,113,0.1);
    color: #f87171;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    padding: 0;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateX(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: var(--color-text);
    text-decoration: none;
}

.mobile-menu-brand span { color: var(--color-primary); }

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 24px;
    flex: 1;
    gap: 4px;
}

body.menu-open { overflow: hidden; }

.mobile-link {
    font-size: 20px;
    font-weight: 600;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
    display: block;
}

.mobile-link:hover {
    color: var(--color-text);
    padding-left: 8px;
}

.mobile-link:last-child { border-bottom: none; }

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #000000;
}

.hero-bg-logo {
    position: absolute;
    bottom: -20px;
    left: -30px;
    width: 280px;
    height: auto;
    opacity: 0.55;
    filter: grayscale(20%);
    mix-blend-mode: normal;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    z-index: 2;
    pointer-events: none;
    user-select: none;
}

/* Liquid orbs floating upward - positioned behind glass */
.liquid-orb {
    position: absolute;
    width: var(--size);
    height: var(--size);
    left: var(--left);
    bottom: -300px;
    background: radial-gradient(circle at 30% 30%, rgba(163, 191, 155, 0.6), rgba(141, 168, 133, 0.3), transparent 70%);
    border-radius: 60% 40% 50% 50% / 50% 45% 55% 50%;
    filter: blur(30px);
    opacity: 0.7;
    animation: 
        floatUp var(--duration) linear infinite,
        morphBlob 8s ease-in-out infinite,
        fadeInOut var(--duration) ease-in-out infinite;
    animation-delay: var(--delay), var(--delay), var(--delay);
    z-index: 1;
}

.liquid-orb::before {
    content: '';
    position: absolute;
    inset: 15%;
    background: radial-gradient(circle at 40% 40%, rgba(179, 209, 171, 0.7), rgba(141, 168, 133, 0.2), transparent 60%);
    border-radius: 45% 55% 40% 60% / 55% 40% 60% 45%;
    animation: morphBlob 6s ease-in-out infinite reverse;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0);
        bottom: -300px;
    }
    10% {
        transform: translateY(-10vh) translateX(10px);
    }
    25% {
        transform: translateY(-30vh) translateX(-15px);
    }
    50% {
        transform: translateY(-60vh) translateX(20px);
    }
    75% {
        transform: translateY(-90vh) translateX(-10px);
    }
    100% {
        transform: translateY(-120vh) translateX(15px);
        bottom: 100%;
    }
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 60% 40% 50% 50% / 50% 45% 55% 50%;
    }
    25% {
        border-radius: 45% 55% 60% 40% / 55% 50% 45% 50%;
    }
    50% {
        border-radius: 50% 50% 40% 60% / 40% 60% 55% 45%;
    }
    75% {
        border-radius: 55% 45% 50% 50% / 60% 40% 50% 55%;
    }
}

@keyframes fadeInOut {
    0%, 5% {
        opacity: 0;
    }
    15%, 85% {
        opacity: 0.7;
    }
    95%, 100% {
        opacity: 0;
    }
}

/* Liquid glass overlay on top */
.glass-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.glass-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 35%);
}

/* Subtle liquid distortion effect */
.glass-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='liquid'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='2' result='noise'/%3E%3CfeDisplacementMap in='SourceGraphic' in2='noise' scale='10'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='transparent'/%3E%3C/svg%3E");
    opacity: 0.3;
    mix-blend-mode: soft-light;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 60px);
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 14px;
    background: rgba(9, 10, 11, 0.55);
    border: 1px solid rgba(124, 145, 119, 0.16);
    border-left: 2px solid rgba(124, 145, 119, 0.75);
    border-radius: 4px;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.badge-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    font-family: var(--font-mono);
}

.badge-divider {
    width: 1px;
    height: 12px;
    background: rgba(124, 145, 119, 0.25);
    flex-shrink: 0;
}

.badge-platform {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-family: var(--font-mono);
}

.hero-title {
    font-size: clamp(28px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ── Boot Sequence (mobile-only hero replacement for subtitle) ── */
.boot-seq {
    display: none;
}
.boot-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    opacity: 0;
    animation: bootFadeIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: calc(var(--i) * 0.5s + 0.3s);
}
.boot-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 3px;
}
.boot-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(141, 168, 133, 0.7), 0 0 18px rgba(141, 168, 133, 0.25);
    flex-shrink: 0;
}
.boot-dot--final {
    animation: bootDotPulse 2.5s ease-in-out infinite;
    animation-delay: 1.8s;
}
.boot-line {
    width: 1px;
    flex: 1;
    min-height: 44px;
    background: linear-gradient(to bottom, rgba(141, 168, 133, 0.7), rgba(141, 168, 133, 0.08));
    box-shadow: 0 0 5px rgba(141, 168, 133, 0.3);
    transform-origin: top center;
    transform: scaleY(0);
    animation: bootLineDraw 0.35s ease-out both;
    animation-delay: calc(var(--i) * 0.5s + 0.62s);
}
.boot-step--last .boot-line {
    display: none;
}
.boot-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 20px;
}
.boot-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 1px;
}
.boot-title {
    font-size: 17px;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: -0.2px;
    line-height: 1.2;
}
.boot-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}
.boot-title--shimmer {
    background: linear-gradient(
        90deg,
        #a8a8a8 0%,
        #f0f0f0 28%,
        #ffffff 50%,
        #f0f0f0 72%,
        #a0a0a0 100%
    );
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bootShimmer 5s linear infinite;
    animation-delay: 1.6s;
}
@keyframes bootFadeIn {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes bootLineDraw {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
@keyframes bootShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
@keyframes bootDotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(141, 168, 133, 0.7), 0 0 18px rgba(141, 168, 133, 0.25); }
    50%       { box-shadow: 0 0 16px rgba(141, 168, 133, 1), 0 0 36px rgba(141, 168, 133, 0.55); }
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-cta-solo {
    min-width: 260px;
    justify-content: center;
    padding-left: 40px;
    padding-right: 40px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    overflow: visible;
}

/* ---- 3D App Preview ---- */
.hero-app-3d {
    perspective: 1300px;
    perspective-origin: 40% 30%;
    position: relative;
    /* Prevent the rotated child from exceeding container width */
    overflow: visible;
}

.hero-app-inner {
    transform: perspective(1300px) rotateY(-16deg) rotateX(5deg);
    transform-origin: top center;
    transform-style: preserve-3d;
    position: relative;
    max-height: 480px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    pointer-events: none;
    user-select: none;
    box-shadow:
        -24px 32px 80px rgba(0, 0, 0, 0.65),
        0 50px 100px -20px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 100px rgba(141, 168, 133, 0.1);
    will-change: transform;
}

/* Scale the demo content down slightly inside the hero so it renders crisper */
.hero-app-inner .demo-window {
    font-size: 13px;
    min-width: 0;
}
.hero-app-inner .demo-stat-value { font-size: 12px; }
.hero-app-inner .demo-brand-name { font-size: 10px; }
.hero-app-inner .demo-brand-sub  { font-size: 7px; }

/* Glare — top-left highlight simulating screen reflection */
.hero-app-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        130deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 25%,
        transparent 55%
    );
    pointer-events: none;
    z-index: 10;
    border-radius: var(--radius-lg);
}

/* Fade — bottom edge dissolves into hero background */
.hero-app-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(9, 10, 11, 0.97) 90%);
    pointer-events: none;
    z-index: 11;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.dashboard-card {
    background: rgba(28, 28, 31, 0.8);
    border: 1px solid rgba(141, 168, 133, 0.12);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 80px rgba(141, 168, 133, 0.08);
    backdrop-filter: blur(10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}

.card-dots {
    display: flex;
    gap: 6px;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border-light);
}

.card-dots span:first-child { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #febc2e; }
.card-dots span:last-child { background: #28c840; }

.card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    flex: 1;
    text-align: center;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-success);
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.live-pulse {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.card-body {
    padding: 20px;
}

.chart-container {
    margin-bottom: 20px;
}

.chart-line {
    height: 120px;
    position: relative;
}

.chart-line svg {
    width: 100%;
    height: 100%;
}

.chart-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.chart-area {
    opacity: 0;
    animation: fadeIn 0.5s ease 1.5s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.trade-log {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trade-item {
    display: grid;
    grid-template-columns: 70px 60px 40px 90px 70px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
}

.trade-time {
    color: var(--color-text-muted);
}

.trade-action {
    font-weight: 700;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-align: center;
}

.action-long {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.action-short {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-danger);
}

.trade-pair {
    color: var(--color-text);
    font-weight: 600;
}

.trade-price {
    color: var(--color-text-secondary);
    text-align: right;
}

.trade-pnl {
    text-align: right;
    font-weight: 600;
}

.pnl-positive {
    color: var(--color-success);
}

.floating-card {
    position: absolute;
    background: rgba(28, 28, 31, 0.85);
    border: 1px solid rgba(141, 168, 133, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: 
        0 10px 30px -10px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    backdrop-filter: blur(12px);
}

.card-pnl {
    top: -30px;
    right: -20px;
    animation: float 3s ease-in-out infinite;
}

.card-winrate {
    bottom: 40px;
    left: -30px;
    animation: float 3s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.floating-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.floating-change {
    font-size: 12px;
    color: var(--color-success);
    font-weight: 600;
}

.winrate-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.winrate-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 2px;
    transition: width 1s ease;
}

/* ========== Risk Banner ========== */
.risk-banner {
    padding: 20px 0;
    background: rgba(141, 168, 133, 0.05);
    border-top: 1px solid rgba(141, 168, 133, 0.1);
    border-bottom: 1px solid rgba(141, 168, 133, 0.1);
}

.risk-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.risk-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.risk-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.risk-text strong {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .risk-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .risk-icon {
        margin: 0 auto;
    }
}

/* ========== Logo Strip ========== */
.logo-strip {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    overflow: hidden;
}

.strip-label {
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.logo-scroll {
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.logo-track {
    display: flex;
    gap: 64px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.firm-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.firm-logo:hover {
    opacity: 1;
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(13px, 1.4vw, 17px);
    color: var(--color-text-secondary);
}

/* ========== Features Section ========== */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(28, 28, 31, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    border-color: rgba(141, 168, 133, 0.2);
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px -15px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(141, 168, 133, 0.1) inset;
}

.feature-card.featured {
    border-color: rgba(141, 168, 133, 0.25);
    background: linear-gradient(145deg, rgba(28, 28, 31, 0.8) 0%, rgba(141, 168, 133, 0.04) 100%);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(141, 168, 133, 0.1);
    border: 1px solid rgba(141, 168, 133, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.highlight-stat {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
}

.highlight-text {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ========== How It Works - Advanced Design ========== */
/* ========== How It Works – Redesign ========== */
.how-it-works {
    padding: 120px 0;
    background: var(--color-bg-elevated);
    position: relative;
    overflow: hidden;
}

.hiw-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.85;
    z-index: 0;
}

/* ── Apple-style liquid glass ──────────────────────────────────────
   Sits directly on top of the canvas (z-index 0, below container z-1).
   Recipe: near-transparent body + ultra-light frost blur + single
   crisp specular rim along the top edge. No heavy tints, no swooping
   animations — just clean frosted glass. */
.hiw-glass {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;

    /* Very light frost — just enough to soften the raw canvas pixels */
    backdrop-filter: blur(8px) saturate(1.6) brightness(1.04);
    -webkit-backdrop-filter: blur(8px) saturate(1.6) brightness(1.04);

    /* Almost-invisible glass body tint */
    background: rgba(255, 255, 255, 0.028);

    /* Single-pixel specular rim at the top, nothing else */
    box-shadow:
        inset 0  1px 0 rgba(255, 255, 255, 0.13),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

/* Stationary top-edge specular highlight — the "light catching the rim" */
.hiw-glass::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.00)  0%,
        rgba(255,255,255,0.22) 20%,
        rgba(124, 145, 119,0.30) 50%,
        rgba(255,255,255,0.22) 80%,
        rgba(255,255,255,0.00) 100%
    );
}

/* Very slow, barely-visible specular sheen that drifts once across */
.hiw-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        118deg,
        rgba(255,255,255,0.000)  0%,
        rgba(255,255,255,0.045) 45%,
        rgba(124, 145, 119,0.055) 55%,
        rgba(255,255,255,0.000) 100%
    );
    transform: translateX(-100%);
    animation: hiwGlassSpecular 16s cubic-bezier(0.4,0,0.6,1) infinite;
    will-change: transform;
}

@keyframes hiwGlassSpecular {
    0%   { transform: translateX(-110%); }
    40%  { transform: translateX( 110%); }
    100% { transform: translateX( 110%); }
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

/* Background switcher */


.how-it-works::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.how-it-works::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 900px; height: 500px;
    background: radial-gradient(ellipse, rgba(124, 145, 119,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Flex row: card | sep | card | sep | card */
.hiw-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* Arrow connector between cards */
.hiw-sep {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 90px;
    gap: 5px;
    color: rgba(124, 145, 119,0.28);
}

.hiw-sep-line {
    width: 1px;
    height: 16px;
    background: linear-gradient(to bottom, transparent, rgba(124, 145, 119,0.25), transparent);
}

.hiw-sep-arrow {
    color: rgba(124, 145, 119,0.35);
}

/* Card */
.hiw-card {
    flex: 1;
    min-width: 0;
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hiw-card:hover {
    border-color: rgba(124, 145, 119,0.2);
    box-shadow:
        0 32px 72px -20px rgba(0,0,0,0.6),
        0 0 0 1px rgba(124, 145, 119,0.07) inset,
        0 0 60px -10px rgba(124, 145, 119,0.07);
    transform: translateY(-5px);
}

/* Large faded step number sitting behind card body */
.hiw-bg-num {
    position: absolute;
    bottom: 44px;
    right: -10px;
    font-size: 128px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255,255,255,0.018);
    user-select: none;
    pointer-events: none;
    letter-spacing: -4px;
    font-variant-numeric: tabular-nums;
}

/* ---- Mini app preview panel ---- */
.hiw-preview {
    background: #090a0b;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 15px 16px;
    font-family: var(--font-mono);
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.hiw-prev-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hiw-prev-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
}

.hiw-dot-pulse {
    animation: hiwPulse 1.6s ease-in-out infinite;
}

@keyframes hiwPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 5px rgba(52,211,153,0); }
}

.hiw-prev-ttl {
    font-size: 10px;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
    flex: 1;
}

.hiw-prev-live {
    font-size: 9px;
    font-weight: 700;
    color: #34d399;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Purchase preview */
.hiw-purch-check {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    margin-bottom: 10px;
}

.hiw-purch-product {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.hiw-purch-license {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 7px;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.hiw-purch-llabel {
    display: block;
    font-size: 9px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

.hiw-purch-lval {
    font-size: 11px;
    color: var(--color-primary-light);
    letter-spacing: 1.5px;
}

.hiw-purch-sent {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: auto;
}

/* Connect preview */
.hiw-conn-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin-bottom: 10px;
}

.hiw-conn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hiw-conn-lbl {
    font-size: 10px;
    color: var(--color-text-muted);
}

.hiw-conn-val {
    font-size: 10px;
    color: var(--color-text-secondary);
}

.hiw-val-live  { color: #34d399; }
.hiw-val-green { color: #7C9177; }

.hiw-conn-enc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--color-text-muted);
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

/* Trade preview */
.hiw-trade-pos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.hiw-trade-dir {
    font-size: 11px;
    font-weight: 600;
    color: #7C9177;
}

.hiw-trade-price {
    font-size: 10px;
    color: var(--color-text-muted);
}

.hiw-trade-pnl {
    font-size: 26px;
    font-weight: 700;
    color: #7C9177;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1;
}

.hiw-trade-stats {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.hiw-trade-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hiw-tstat-l {
    font-size: 10px;
    color: var(--color-text-muted);
}

.hiw-tstat-v {
    font-size: 10px;
    color: var(--color-text-secondary);
}

/* Card text body */
.hiw-body {
    padding: 22px 24px 28px;
    position: relative;
    z-index: 1;
}

.hiw-step-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-primary);
    background: rgba(124, 145, 119,0.1);
    border: 1px solid rgba(124, 145, 119,0.18);
    padding: 4px 13px;
    border-radius: 100px;
    margin-bottom: 13px;
    letter-spacing: 0.5px;
}

.hiw-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 9px;
    line-height: 1.25;
}

.hiw-desc {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.hiw-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hiw-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 5px 11px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: all 0.2s ease;
}

.hiw-card:hover .hiw-tag {
    background: rgba(124, 145, 119,0.08);
    border-color: rgba(124, 145, 119,0.15);
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hiw-wrap {
        flex-direction: column;
        max-width: 520px;
        margin: 0 auto;
    }

    .hiw-sep {
        flex-direction: row;
        width: 100%;
        padding-top: 0;
        height: 32px;
        justify-content: center;
    }

    .hiw-sep-line {
        width: 30px;
        height: 1px;
    }

    .hiw-sep-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .how-it-works {
        padding: 48px 0 60px;
    }
    .hiw-wrap {
        max-width: 100%;
    }
    .hiw-sep {
        height: 22px;
    }
    .hiw-preview {
        min-height: unset;
        padding: 12px 14px;
    }
    .hiw-prev-bar {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .hiw-purch-check {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        margin-bottom: 7px;
    }
    .hiw-purch-product {
        font-size: 11.5px;
        margin-bottom: 7px;
    }
    .hiw-purch-license {
        padding: 6px 9px;
        margin-bottom: 7px;
    }
    .hiw-purch-lval {
        font-size: 10px;
        letter-spacing: 0.8px;
    }
    .hiw-conn-rows {
        gap: 6px;
    }
    .hiw-trade-pnl {
        font-size: 20px;
    }
    .hiw-body {
        padding: 16px 16px 20px;
    }
    .hiw-step-pill {
        font-size: 10px;
        padding: 3px 11px;
        margin-bottom: 9px;
    }
    .hiw-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .hiw-desc {
        font-size: 12.5px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    .hiw-tag {
        font-size: 9px;
        padding: 4px 9px;
    }
    .hiw-bg-num {
        font-size: 90px;
    }
}

/* ========== System Requirements ========== */
.sys-req {
    padding: 100px 0;
    position: relative;
}

.sysreq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 52px;
}

.sysreq-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 240px;
    background: radial-gradient(ellipse at 50% 0%, #161818 0%, #000 80%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 32px 26px 28px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

/* subtle inner top highlight */
.sysreq-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
}

.sysreq-card:hover {
    border-color: rgba(124, 145, 119, 0.5);
    box-shadow: 0 0 0 1px rgba(124, 145, 119, 0.14),
                0 0 36px rgba(124, 145, 119, 0.12),
                inset 0 1px 0 rgba(124, 145, 119, 0.08);
    transform: translateY(-4px);
}

.sysreq-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sysreq-chevron {
    display: none;
    color: #7C9177;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sysreq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #7C9177;
    filter: drop-shadow(0 0 10px rgba(124, 145, 119, 0.55));
}

.sysreq-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.sysreq-sub {
    font-size: 13.5px;
    color: #9ca3a0;
    line-height: 1.7;
}

.sysreq-sub a {
    color: #7C9177;
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 145, 119, 0.35);
    transition: border-color 0.2s, color 0.2s;
}

.sysreq-sub a:hover {
    color: #b8cab0;
    border-color: #7C9177;
}

@media (max-width: 900px) {
    .sysreq-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 0;
    }
}

@media (max-width: 540px) {
    .sys-req {
        padding: 60px 0;
    }
    .sysreq-grid {
        margin-top: 32px;
        gap: 10px;
        flex-direction: column;
    }
    .sysreq-card {
        flex: 0 0 100%;
        padding: 16px 18px;
        cursor: pointer;
        transform: none !important;
    }
    .sysreq-card-header {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        user-select: none;
    }
    .sysreq-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .sysreq-title {
        flex: 1;
        margin-bottom: 0;
        text-align: left;
        font-size: 15px;
    }
    .sysreq-chevron {
        display: block;
    }
    .sysreq-card.open .sysreq-chevron {
        transform: rotate(180deg);
    }
    .sysreq-body {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.28s ease, margin-top 0.3s ease, padding-top 0.3s ease;
    }
    .sysreq-card.open .sysreq-body {
        max-height: 200px;
        opacity: 1;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .sysreq-card.open {
        border-color: rgba(124, 145, 119, 0.38);
        box-shadow: 0 0 0 1px rgba(124, 145, 119, 0.1),
                    0 0 20px rgba(124, 145, 119, 0.08);
    }
    .sysreq-sub {
        font-size: 13px;
    }
}

/* ========== Beta Early Access Section ========== */
.beta-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 145, 119,0.04) 50%, transparent 100%);
}

.beta-card {
    position: relative;
    background: #0e0f11;
    border: 1px solid #7C9177;
    border-radius: 24px;
    padding: 52px 52px;
    display: flex;
    gap: 64px;
    align-items: center;
    overflow: hidden;
}

.beta-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(124, 145, 119,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Left: copy */
.beta-content { flex: 1; min-width: 0; }

.beta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 145, 119,0.12);
    border: 1px solid rgba(124, 145, 119,0.3);
    color: #7C9177;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.beta-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7C9177;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.3); }
}

.beta-title {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.beta-title-accent { color: #7C9177; }

.beta-sub {
    font-size: 16px;
    color: #9ca3a0;
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 480px;
}

.beta-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.beta-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #c4c9c0;
}

.beta-perks li svg { color: #7C9177; flex-shrink: 0; }

/* Right: counter + CTA */
.beta-cta-panel {
    flex-shrink: 0;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.beta-counter-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.beta-progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}

.beta-ring-svg {
    transform: rotate(-90deg);
    overflow: visible;
}

.beta-ring-track {
    fill: none;
    stroke: #26282c;
    stroke-width: 6;
}

.beta-ring-fill {
    fill: none;
    stroke: #7C9177;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.beta-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.beta-ring-num {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    font-family: var(--font-mono);
}

.beta-ring-sub {
    font-size: 10px;
    color: #8f9583;
    font-weight: 500;
    margin-top: 2px;
}

.beta-counter-text { text-align: center; }

.beta-counter-title {
    font-size: 14px;
    font-weight: 600;
    color: #eceee8;
    margin: 0 0 4px;
    line-height: 1.4;
}

.beta-counter-sub {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

.beta-btn {
    width: 100%;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.beta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.beta-btn--full {
    background: #26282c !important;
    color: #6b7280 !important;
    border-color: #26282c !important;
}

.beta-fine {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.nav-link--beta {
    color: #7C9177 !important;
    font-weight: 600;
}

.mobile-link--beta {
    color: #7C9177 !important;
    font-weight: 700;
    border-bottom-color: rgba(124, 145, 119, 0.15) !important;
}

/* Mobile menu — logged-in user block */
.mobile-user-block {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background 0.15s;
}

.mobile-user-block:hover { background: rgba(255,255,255,0.05); }

.mobile-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C9177, #4e6b49);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(124, 145, 119,0.3);
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.mobile-user-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-sub {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 1px;
}

.mobile-user-arrow {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Desktop nav user pill */
.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    background: rgba(124, 145, 119,0.08);
    border: 1px solid rgba(124, 145, 119,0.2);
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.nav-user-pill:hover { background: rgba(124, 145, 119,0.14); }

.nav-user-pill-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C9177, #4e6b49);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.nav-user-pill-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 860px) {
    .beta-card {
        flex-direction: column;
        padding: 36px 28px;
        gap: 36px;
    }
    .beta-cta-panel {
        width: 100%;
    }
    .beta-counter-wrap {
        flex-direction: row;
        gap: 20px;
    }
    .beta-counter-text { text-align: left; }
    .beta-title { font-size: 28px; }
}

@media (max-width: 480px) {
    .beta-title { font-size: 24px; }
    .beta-card  { padding: 28px 20px; }
}

/* ========== Pricing ========== */
.pricing {
    padding: 100px 0 120px;
    background: var(--color-bg);
    position: relative;
}

/* Pricing grid — two cards */
.pr-grid {
    display: flex;
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
    align-items: flex-start;
}

.pr-card {
    flex: 1;
    background: #0e0f11;
    border: 1px solid rgba(124, 145, 119, 0.18);
    border-radius: 22px;
    padding: 36px 32px 28px;
    text-align: center;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 40px 80px -20px rgba(0,0,0,0.7),
        0 0 80px -20px rgba(124, 145, 119,0.08);
    position: relative;
}

.pr-card--featured {
    border-color: rgba(124, 145, 119, 0.35);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 40px 80px -20px rgba(0,0,0,0.7),
        0 0 100px -20px rgba(124, 145, 119,0.16);
}

.pr-card--renew {
    border-color: rgba(255,255,255,0.08);
}

/* Subtle top glow line */
.pr-card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 145, 119,0.5), transparent);
    border-radius: 1px;
}

/* Badge */
.pr-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(135deg, #7C9177, #8fa98a);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.pr-badge--renew {
    background: linear-gradient(135deg, #4a5568, #718096);
    color: #e2e8f0;
}

/* Product name */
.pr-head {
    margin-bottom: 24px;
}

.pr-name {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 20%, #8fa98a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 6px;
}

.pr-desc {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Price tiles row */
.pr-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px 16px;
    margin-bottom: 20px;
}

/* Single price display */
.pr-price-single {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px 16px;
    margin-bottom: 20px;
}

.pr-tile {
    flex: 1;
    text-align: center;
}

.pr-tile-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    margin-top: 8px;
}

.pr-tile-was {
    font-size: 11px;
    color: rgba(143,149,131,0.5);
    margin-bottom: 4px;
}

.pr-tile-was s {
    text-decoration-color: rgba(143,149,131,0.4);
}

.pr-tile-amount {
    font-size: 36px;
    font-weight: 900;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
}

.pr-cur {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 4px;
}

.pr-mo {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    align-self: flex-end;
    margin-bottom: 4px;
}

.pr-tile-save {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #34d399;
    background: rgba(52,211,153,0.1);
    border: 1px solid rgba(52,211,153,0.18);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.2px;
    margin-bottom: 4px;
}

/* Requires note */
.pr-requires {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(143,149,131,0.65);
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.pr-requires svg {
    flex-shrink: 0;
}

.pr-plus {
    font-size: 18px;
    font-weight: 300;
    color: rgba(124, 145, 119,0.4);
    flex-shrink: 0;
    padding: 0 4px;
}

/* CTA */
.pr-cta {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 22px;
}

/* Disabled purchase buttons — sales paused */
.pr-cta-disabled {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 22px;
    background: rgba(100, 100, 100, 0.15);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: not-allowed;
    pointer-events: none;
    text-align: center;
}

/* Secondary button (ghost-green) */
.btn-secondary {
    background: rgba(124, 145, 119, 0.1);
    color: #7C9177;
    border: 1px solid rgba(124, 145, 119, 0.3);
}

.btn-secondary:hover {
    background: rgba(124, 145, 119, 0.18);
    border-color: rgba(124, 145, 119, 0.5);
    transform: translateY(-1px);
}

/* Features compact grid */
.pr-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.pr-feat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--color-text-secondary);
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: left;
}

.pr-feat svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Guarantee */
.pr-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-muted);
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.pr-guarantee svg {
    color: #34d399;
    flex-shrink: 0;
}

.pr-guar-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(143,149,131,0.4);
}

/* Disclaimer */
.pr-disclaimer {
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 10px;
}

.pr-disc-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 auto;
    opacity: 0.65;
    transition: opacity 0.15s ease;
    font-family: var(--font-sans);
}

.pr-disc-toggle:hover { opacity: 1; }

.pr-disc-chevron {
    transition: transform 0.22s ease;
    margin-left: 1px;
}

.pr-disclaimer.open .pr-disc-chevron {
    transform: rotate(180deg);
}

.pr-disc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    font-size: 10px;
    color: rgba(143,149,131,0.55);
    line-height: 1.65;
    text-align: center;
    margin-top: 0;
}

.pr-disclaimer.open .pr-disc-body {
    max-height: 120px;
    opacity: 1;
    margin-top: 10px;
}

@media (max-width: 820px) {
    .pr-grid {
        flex-direction: column;
        max-width: 540px;
    }
    .pr-card {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .pr-card {
        padding: 28px 20px 22px;
    }
    .pr-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Section Reveal Animation ========== */
.section-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
                transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.section-reveal-delay-1 { transition-delay: 0.1s; }
.section-reveal-delay-2 { transition-delay: 0.2s; }
.section-reveal-delay-3 { transition-delay: 0.3s; }
.section-reveal-delay-4 { transition-delay: 0.4s; }
.section-reveal-delay-5 { transition-delay: 0.5s; }

/* ========== FAQ ========== */
.faq {
    padding: 100px 0;
    background: var(--color-bg);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 18px;
    overflow: hidden;
}

.faq-item {
    background: rgba(255,255,255,0.025);
    border-right: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
    position: relative;
}

/* Remove right border on even items (right column) */
.faq-item:nth-child(even)  { border-right: none; }
/* Remove bottom border on last two items */
.faq-item:nth-last-child(-n+2) { border-bottom: none; }

.faq-item.active {
    background: rgba(124, 145, 119,0.055);
}

/* Sage green left accent on active */
.faq-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--color-primary);
    border-radius: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 28px 24px;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-text);
    transition: color 0.15s;
}

.faq-question:hover { color: var(--color-primary); }
.faq-item.active .faq-question { color: var(--color-primary); }

.faq-num {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: rgba(124, 145, 119,0.40);
    padding-top: 3px;
    flex-shrink: 0;
    letter-spacing: 0.05em;
    transition: color 0.15s;
}

.faq-item.active .faq-num { color: var(--color-primary); }

.faq-q-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

.faq-toggle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
    margin-top: 1px;
    transition: color 0.15s, transform 0.25s;
}

.faq-toggle svg { width: 16px; height: 16px; }

/* Plus → X on open */
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 28px 26px 54px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
    margin: 0;
}

/* ========== CTA Section ========== */
.cta {
    padding: 100px 0;
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 21, 23, 0.95) 0%, rgba(28, 30, 33, 0.9) 100%);
    border: 1px solid rgba(141, 168, 133, 0.2);
    border-radius: var(--radius-xl);
    padding: 80px 64px;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(141, 168, 133, 0.05) inset,
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 120px -30px rgba(141, 168, 133, 0.12);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(141, 168, 133, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.cta-card-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.35;
}
.cta-card-glow--left {
    background: radial-gradient(circle, rgba(141, 168, 133, 0.25) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}
.cta-card-glow--right {
    background: radial-gradient(circle, rgba(88, 101, 242, 0.2) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* Badge */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(141, 168, 133, 0.1);
    border: 1px solid rgba(141, 168, 133, 0.25);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 28px;
}
.cta-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px var(--color-accent);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.cta-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.cta-title-accent {
    background: linear-gradient(135deg, #7a9675 0%, #a8c4a3 50%, #7a9675 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 17px;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 0 auto 44px;
    line-height: 1.65;
}

/* Stats row */
.cta-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 0;
    max-width: 480px;
    margin: 0 auto 48px;
}
.cta-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.cta-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.cta-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cta-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Discord button */
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #5865F2;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 24px;
    height: 48px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
    white-space: nowrap;
}
.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(88, 101, 242, 0.5);
    color: #fff;
    text-decoration: none;
}
.btn-discord:active {
    transform: translateY(0);
}

.cta-guarantee {
    font-size: 13px;
    color: var(--color-text-muted);
}

.cta-risk {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 10px;
    font-style: italic;
    opacity: 0.65;
}

/* ========== App Demo Section ========== */
.app-demo {
    padding: 100px 0;
    background: var(--color-bg);
}

.demo-wrapper {
    margin-top: 56px;
}

/* Browser-chrome window frame */
/* ========== App Demo Window ========== */
.demo-window {
    background: #090a0b;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 100px rgba(141, 168, 133, 0.06);
}

/* Titlebar */
.demo-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #0a0b0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 52px;
    gap: 10px;
}

.demo-tl-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.demo-brand-group {
    display: flex;
    align-items: center;
    gap: 7px;
}

.demo-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.demo-brand-name {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-text);
    line-height: 1.3;
}

.demo-brand-sub {
    font-size: 7.5px;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 3px;
}

.demo-tl-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 5px 11px;
    max-width: 400px;
}

.demo-combine-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.demo-combine-chip > svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.demo-combine-info {
    min-width: 0;
}

.demo-combine-name {
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-combine-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #34d399;
    margin-top: 1px;
}

.demo-conn-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

.demo-acct-num {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.demo-combine-balance {
    text-align: right;
    flex-shrink: 0;
}

.demo-combine-amount {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-text);
    line-height: 1.3;
}

.demo-combine-delta {
    font-size: 9px;
    color: #7C9177;
    font-family: var(--font-mono);
    line-height: 1;
}

/* ---- Account Dropdown ---- */
#demoAcctDropdownRoot {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 440px;
}

.demo-acct-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-align: left;
}
.demo-acct-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.13);
}
.demo-acct-btn.open {
    background: rgba(255,255,255,0.07);
    border-color: rgba(124, 145, 119,0.35);
}

.demo-acct-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(124, 145, 119,0.12);
    border: 1px solid rgba(124, 145, 119,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #7C9177;
}

.demo-acct-info {
    flex: 1;
    min-width: 0;
}

.demo-acct-type-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1px;
}

.demo-acct-type-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.demo-acct-name {
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.demo-acct-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #34d399;
    margin-top: 1px;
}
.demo-acct-conn { color: #34d399; }

.demo-acct-balance-col {
    text-align: right;
    flex-shrink: 0;
}

.demo-acct-chevron {
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.demo-acct-chevron.open {
    transform: rotate(180deg);
}

/* Dropdown panel */
.demo-acct-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    background: #111214;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
    overflow: hidden;
}
.demo-acct-dropdown.open {
    display: block;
    animation: ddFadeIn 0.15s ease;
}
@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-acct-dd-header {
    padding: 9px 14px 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.demo-acct-dd-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
}

/* Each account row */
.demo-acct-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
}
.demo-acct-dd-item:hover {
    background: rgba(255,255,255,0.04);
}
.demo-acct-dd-item.selected {
    background: rgba(124, 145, 119,0.1);
}

.demo-dd-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.demo-dd-icon.combine  { background: rgba(124, 145, 119,0.12); }
.demo-dd-icon.express  { background: rgba(251,191,36,0.12); }
.demo-dd-icon.funded   { background: rgba(52,211,153,0.12); }
.demo-dd-icon.practice { background: rgba(107,138,154,0.12); }

.demo-dd-info { flex: 1; min-width: 0; }

.demo-dd-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1px;
}
.demo-dd-label.combine  { color: #7C9177; }
.demo-dd-label.express  { color: #fbbf24; }
.demo-dd-label.funded   { color: #34d399; }
.demo-dd-label.practice { color: #6B8A9A; }

.demo-dd-name {
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-dd-meta {
    font-size: 9px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    margin-top: 1px;
}

.demo-dd-right {
    text-align: right;
    flex-shrink: 0;
}

.demo-dd-bal {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-text);
}

.demo-dd-pnl {
    font-size: 9px;
    font-family: var(--font-mono);
}
.demo-dd-pnl.pos { color: #7C9177; }
.demo-dd-pnl.neg { color: #fb7185; }

.demo-dd-check {
    color: #7C9177;
    flex-shrink: 0;
}

.demo-acct-dd-footer {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 8px 14px;
}

.demo-acct-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #fb7185;
    font-size: 10px;
    cursor: pointer;
    padding: 0;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.demo-acct-logout-btn:hover { opacity: 1; }

/* ---- Demo Toast Notifications ---- */
.demo-toast-stack {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 300;
    display: flex;
    flex-direction: column-reverse;
    gap: 7px;
    pointer-events: none;
    width: 270px;
}

.demo-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #1a1c20;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.55);
    pointer-events: all;
    animation: demoToastIn 0.25s cubic-bezier(0.16,1,0.3,1);
    transition: opacity 0.3s, transform 0.3s;
}
.demo-toast.hiding {
    opacity: 0;
    transform: translateX(18px);
}

@keyframes demoToastIn {
    from { opacity: 0; transform: translateX(18px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0)     scale(1); }
}

.demo-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.demo-toast-icon.success { background: rgba(16,185,129,0.15); }
.demo-toast-icon.info    { background: rgba(59,130,246,0.15); }
.demo-toast-icon.warn    { background: rgba(251,191,36,0.13); }

.demo-toast-body { flex: 1; min-width: 0; }

.demo-toast-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: 2px;
}

.demo-toast-sub {
    font-size: 10px;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0 0 10px 10px;
    animation: demoToastBar linear forwards;
}
.demo-toast-bar.success { background: #10b981; }
.demo-toast-bar.info    { background: #3b82f6; }
@keyframes demoToastBar {
    from { width: 100%; }
    to   { width: 0%; }
}

.demo-tl-right {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.demo-standby-btn {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.15s;
}

.demo-standby-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
}

.demo-settings-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.demo-settings-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
}

/* Demo body */
.demo-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Scanning bar */
.demo-scan-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(33, 35, 39, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.demo-scan-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
    animation: pulse 1.5s infinite;
}

.demo-scan-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
}

.demo-scan-price {
    color: var(--color-primary);
    font-weight: 600;
}

/* Stats Row */
.demo-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.demo-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 13px;
    background: #0e0f11;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.demo-stat-info {
    min-width: 0;
}

.demo-stat-label {
    font-size: 9px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.demo-stat-value {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-text);
    transition: color 0.3s;
    white-space: nowrap;
}

.demo-stat-sub {
    font-size: 9px;
    color: var(--color-text-muted);
    margin-top: 2px;
    font-family: var(--font-mono);
}

.demo-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 6px;
}

.demo-stat-icon svg {
    width: 15px;
    height: 15px;
}

.demo-icon-wallet,
.demo-icon-pnl,
.demo-icon-pos,
.demo-icon-conn   { background: rgba(124, 145, 119, 0.1); color: #7C9177; }

.demo-conn-good  { color: #34d399 !important; }
.demo-pnl-pos    { color: #7C9177 !important; }
.demo-pnl-neg    { color: #fb7185 !important; }
.demo-pnl-zero   { color: var(--color-text-muted) !important; }

/* Main grid */
.demo-main-grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 8px;
}

.demo-panel {
    background: #0e0f11;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.demo-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-panel-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.demo-panel-badge {
    font-size: 9px;
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 7px;
    border-radius: 4px;
}

/* Chart */
.demo-chart-wrap {
    position: relative;
    padding: 8px 4px 4px 4px;
    height: 280px;
}

.demo-canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    user-select: none;
}

.demo-price-overlay {
    position: absolute;
    top: 14px;
    right: 68px;
    text-align: right;
    pointer-events: none;
}

.demo-curr-price {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-text);
}

.demo-price-change {
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-success);
    transition: color 0.3s;
}

.demo-price-change.negative { color: var(--color-danger); }

/* Console inner */
.demo-console-inner {
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
}

/* Bot status row */
.demo-bot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(33, 35, 39, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.demo-bot-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.demo-micro-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-bot-state-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    transition: background 0.3s;
    position: relative;
}

.demo-state-dot.running {
    background: #10b981;
    animation: pulse 1s infinite;
}

.demo-state-dot.running::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    animation: stateDotWave 1.6s ease-out infinite;
    pointer-events: none;
}

@keyframes stateDotWave {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.demo-state-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.demo-bot-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-live-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.demo-live-pill-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 1.5s infinite;
}

.demo-live-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 3px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

/* Action row */
.demo-action-row {
    display: flex;
    gap: 6px;
}

.demo-action-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    padding: 8px 10px;
    font-size: 10px;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    outline: none;
    cursor: not-allowed;
    min-width: 0;
}

.demo-action-input::placeholder {
    color: var(--color-text-muted);
    font-style: italic;
}

.demo-flatten-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.5);
    font-family: var(--font-sans);
    white-space: nowrap;
}

.demo-flatten-btn:hover {
    background: rgba(244, 63, 94, 0.1);
    transform: translateY(-1px);
}

/* TEST TRADE box */
.demo-test-box {
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.demo-test-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-test-header svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.demo-test-long-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #f59e0b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.demo-test-long-btn:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.demo-test-long-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contracts */
.demo-contracts-box {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-contracts-row {
    display: flex;
    gap: 7px;
    align-items: center;
}

.demo-contracts-select {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text);
    font-family: var(--font-sans);
    outline: none;
    cursor: pointer;
}

.demo-contracts-select option {
    background: #1c1c1f;
    color: var(--color-text);
}

.demo-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    background: var(--color-success);
    border: none;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s;
    white-space: nowrap;
}

.demo-apply-btn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.demo-contracts-hint {
    font-size: 9px;
    color: var(--color-primary);
    font-style: italic;
}

/* Bottom grid */
.demo-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.demo-bottom-panel {
    background: #141416;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    min-height: 70px;
}

.demo-bottom-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.demo-empty-state {
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 10px 0;
    font-style: italic;
}

/* Position item */
.demo-pos-item {
    display: grid;
    grid-template-columns: 38px 1fr 78px 28px 68px;
    gap: 5px;
    align-items: center;
    padding: 7px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    animation: demoSlideIn 0.3s ease;
}

.demo-pos-dir {
    font-weight: 700;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 3px;
    text-align: center;
}

.demo-pos-long  { background: rgba(124, 145, 119, 0.2); color: #7C9177; }
.demo-pos-short { background: rgba(251, 113, 133, 0.18); color: #fb7185; }
.demo-pos-symbol { color: var(--color-text); font-weight: 600; }
.demo-pos-entry  { color: var(--color-text-secondary); }
.demo-pos-qty    { color: var(--color-text-muted); text-align: right; }
.demo-pos-pnl    { text-align: right; font-weight: 700; }
.demo-pos-pnl.pos { color: #7C9177; }
.demo-pos-pnl.neg { color: #fb7185; }
.demo-pos-pnl.pending { color: var(--color-text-muted); font-style: italic; }

/* Trade item */
.demo-trade-item {
    display: grid;
    grid-template-columns: 38px 34px 1fr 66px;
    gap: 5px;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 10px;
    margin-bottom: 4px;
    animation: demoSlideIn 0.3s ease;
}

.demo-trade-time  { color: var(--color-text-muted); }
.demo-trade-dir   { font-weight: 700; font-size: 8px; padding: 2px 4px; border-radius: 3px; text-align: center; }
.demo-trade-entry { color: var(--color-text-secondary); }
.demo-trade-pnl   { text-align: right; font-weight: 700; }
.demo-trade-pnl.pos { color: #7C9177; }
.demo-trade-pnl.neg { color: #fb7185; }

@keyframes demoSlideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Footer note */
.demo-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
}

.demo-footer-note strong { color: var(--color-text-secondary); }

@media (max-width: 600px) {
    .demo-footer-note {
        align-items: flex-start;
        text-align: left;
        font-size: 11.5px;
        gap: 6px;
        margin-top: 12px;
        line-height: 1.5;
    }
    .demo-footer-note svg {
        margin-top: 1px;
        width: 13px;
        height: 13px;
    }
}

/* ---- Start Bot / Stop Bot btn grid ---- */
.demo-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.demo-start-bot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, opacity 0.15s;
    border: none;
    background: #212327;
    color: rgba(255,255,255,0.3);
    cursor: not-allowed;
}

.demo-start-bot-btn:not(:disabled) {
    background: #059669;
    color: #fff;
    cursor: pointer;
}

.demo-start-bot-btn:not(:disabled):hover {
    background: #047857;
}

.demo-start-bot-btn.stopping {
    background: #d82626;
    color: #fff;
    cursor: pointer;
}

.demo-start-bot-btn.stopping:hover {
    background: #b91c1c;
}

/* ---- Settings Panel Overlay ---- */
/* NOTE: Replaced by production-match overlay below.
   Keep position:relative on demo-window for absolute positioning context. */
.demo-window {
    position: relative;
}

/* Legacy overlay class renamed to avoid conflict */
.demo-settings-overlay-legacy {
    position: absolute;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.demo-settings-overlay-legacy.sp-open {
    opacity: 1;
    pointer-events: all;
}

.demo-settings-overlay-legacy.sp-open .demo-settings-panel {
    right: 0;
}

/* Panel header */
.demo-sp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

.demo-sp-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-sp-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(124, 145, 119,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C9177;
    flex-shrink: 0;
}

.demo-sp-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.demo-sp-sub {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 1px;
}

.demo-sp-close {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.demo-sp-close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
}

/* Panel scrollable body */
.demo-sp-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.demo-sp-body::-webkit-scrollbar { width: 4px; }
.demo-sp-body::-webkit-scrollbar-track { background: transparent; }
.demo-sp-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Section heading */
.demo-sp-section-hd {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

/* Card containers inside sections */
.demo-sp-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 12px;
}

/* TopstepX account row */
.demo-sp-account-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-sp-user-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
    flex-shrink: 0;
}

.demo-sp-account-info { flex: 1; min-width: 0; }

.demo-sp-email {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-sp-conn-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #4ade80;
    margin-top: 2px;
}

.demo-sp-conn-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

.demo-sp-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 10px 0;
}

.demo-sp-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 500;
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
}

.demo-sp-logout-btn:hover { background: rgba(239,68,68,0.08); }

/* Discord section */
.demo-sp-desc {
    font-size: 10px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 0 10px;
}

.demo-sp-field-label {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.demo-sp-input {
    width: 100%;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    font-size: 11px;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.demo-sp-input::placeholder { color: rgba(255,255,255,0.2); }
.demo-sp-input:focus { border-color: rgba(88,101,242,0.5); }

.demo-sp-row-btns {
    display: flex;
    gap: 6px;
}

.demo-sp-save-btn, .demo-sp-test-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
    transition: background 0.15s;
}

.demo-sp-save-btn {
    color: #7a9675;
    border-color: rgba(141,168,133,0.25);
    background: transparent;
}
.demo-sp-save-btn:hover { background: rgba(141,168,133,0.1); }

.demo-sp-test-btn {
    color: #818cf8;
    border-color: rgba(88,101,242,0.25);
    background: transparent;
}
.demo-sp-test-btn:hover { background: rgba(88,101,242,0.1); }

/* Primary Trading Account */
.demo-sp-select {
    width: 100%;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    font-size: 11px;
    outline: none;
    cursor: pointer;
    margin-bottom: 6px;
}

.demo-sp-selected-note {
    font-size: 10px;
    color: var(--color-text-muted);
}

.demo-sp-selected-note span { color: var(--color-text); }

/* Connection Status */
.demo-sp-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.demo-sp-status-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.demo-sp-status-val {
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-sp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-sp-dot-green { background: #4ade80; }

.demo-sp-dot-pulse {
    animation: spDotPulse 1.8s ease-in-out infinite;
}

@keyframes spDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.demo-sp-val-green {
    font-size: 11px;
    color: #4ade80;
}

/* ---- Strategy Monitor ---- */
.demo-strategy-monitor {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.demo-sm-card {
    background: #0e0f11;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 10px 13px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.demo-sm-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-sm-value {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-text);
    line-height: 1.2;
}

.demo-sm-sub {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--color-text-muted);
}

.demo-sm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-top: 2px;
}

.demo-sm-badge.bullish {
    background: rgba(52,211,153,0.12);
    color: #34d399;
    border: 1px solid rgba(52,211,153,0.25);
}

.demo-sm-badge.bearish {
    background: rgba(251,113,133,0.12);
    color: #fb7185;
    border: 1px solid rgba(251,113,133,0.25);
}

.demo-signal-strength {
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    margin-top: 2px;
}

.demo-signal-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease, background 0.5s ease;
}

/* ---- Market Session Status Bar ---- */
.demo-session-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.demo-session-bar.open {
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.25);
    color: #34d399;
}

.demo-session-bar.closed {
    background: rgba(251,113,133,0.08);
    border: 1px solid rgba(251,113,133,0.25);
    color: #fb7185;
}

.demo-session-countdown {
    font-family: var(--font-mono);
    font-size: 9px;
    opacity: 0.7;
}

/* ---- Market Status (Kill-Switch) Banner ---- */
.demo-market-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.demo-market-banner.safe {
    display: none;
}

.demo-market-banner.no-entry {
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.25);
    color: #fbbf24;
}

.demo-market-banner.locked {
    background: rgba(251,113,133,0.08);
    border: 1px solid rgba(251,113,133,0.25);
    color: #fb7185;
}

/* ---- Filter Badge indicators (in console) ---- */
.demo-filter-badges {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
}

.demo-filter-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid;
}

.demo-filter-badge.active {
    background: rgba(124,145,119,0.12);
    border-color: rgba(124,145,119,0.3);
    color: #7C9177;
}

.demo-filter-badge.inactive {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.08);
    color: var(--color-text-muted);
}

/* Responsive additions for new components */
@media (max-width: 1100px) {
    .demo-strategy-monitor { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .demo-strategy-monitor { grid-template-columns: 1fr 1fr; gap: 6px; }
    .demo-sm-value { font-size: 14px; }
}

@media (max-width: 480px) {
    .demo-strategy-monitor { grid-template-columns: 1fr; }
    .demo-session-bar { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* ── Settings Panel — Production-Match Overlay ── */

.demo-settings-overlay {
    position: absolute;
    inset: 0;
    z-index: 150;
    display: none;
    background: #0e0f11;
    overflow: hidden;
}

.demo-settings-overlay svg {
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
}

.demo-settings-overlay.sp-open {
    display: flex;
}

/* Sidebar */
.demo-sp-sidebar {
    width: 224px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.015);
    padding: 24px 12px;
    gap: 4px;
    overflow: hidden;
}

.demo-sp-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    margin-bottom: 20px;
}

.demo-sp-sidebar-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(148,166,133,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-sp-sidebar-icon svg {
    width: 14px;
    height: 14px;
    color: #94A685;
}

.demo-sp-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.demo-sp-sidebar-sub {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.demo-sp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    background: none;
    text-align: left;
    font-family: var(--font-sans);
    color: var(--color-text-muted);
}

.demo-sp-nav-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--color-text);
}

.demo-sp-nav-item.active {
    background: rgba(148,166,133,0.12);
    border-color: rgba(148,166,133,0.2);
    color: var(--color-text);
}

.demo-sp-nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    transition: color 0.15s;
}

.demo-sp-nav-item:hover .demo-sp-nav-icon {
    color: var(--color-text);
}

.demo-sp-nav-item.active .demo-sp-nav-icon {
    color: #94A685;
}

.demo-sp-nav-label {
    flex: 1;
}

.demo-sp-nav-chevron {
    width: 12px;
    height: 12px;
    color: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* Main content */
.demo-sp-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px 40px;
}

.demo-sp-content::-webkit-scrollbar { width: 4px; }
.demo-sp-content::-webkit-scrollbar-track { background: transparent; }
.demo-sp-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.demo-sp-section-h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 24px;
}

.demo-sp-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 20px;
}

.demo-sp-card-space {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Logout button */
.demo-sp-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font-sans);
}

.demo-sp-logout-btn:hover {
    background: rgba(239,68,68,0.08);
}

/* Divider */
.demo-sp-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
}

/* Confirm box */
.demo-sp-confirm-box {
    background: rgba(251,113,133,0.05);
    border: 1px solid rgba(251,113,133,0.15);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
}

.demo-sp-confirm-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.demo-sp-confirm-btns {
    display: flex;
    gap: 8px;
}

/* Account row */
.demo-sp-account-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.demo-sp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(52,211,153,0.08);
    border: 1px solid rgba(52,211,153,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-sp-avatar svg {
    width: 20px;
    height: 20px;
    color: #34d399;
}

.demo-sp-email {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-sp-conn-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.demo-sp-conn-row .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
}

.demo-sp-conn-row .label {
    font-size: 12px;
    color: #34d399;
}

/* Description text */
.demo-sp-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Input fields */
.demo-sp-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    font-family: var(--font-sans);
    transition: border-color 0.15s;
}

.demo-sp-input::placeholder {
    color: rgba(255,255,255,0.25);
}

.demo-sp-input:focus {
    border-color: rgba(148,166,133,0.5);
}

.demo-sp-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.demo-sp-label-sub {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Status rows */
.demo-sp-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.demo-sp-status-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.demo-sp-status-val-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-sp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-sp-dot-green {
    background: #34d399;
}

.demo-sp-dot-amber {
    background: #fbbf24;
}

.demo-sp-dot-pulse {
    animation: spPulse 1.8s ease-in-out infinite;
}

@keyframes spPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.demo-sp-status-text {
    font-size: 14px;
    font-weight: 500;
    color: #34d399;
}

/* Select dropdown */
.demo-sp-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.demo-sp-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #94A685;
    border: 1px solid rgba(148,166,133,0.18);
    transition: background 0.15s;
    font-family: var(--font-sans);
}

.demo-sp-btn-primary:hover {
    background: rgba(148,166,133,0.08);
}

.demo-sp-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.demo-sp-btn-primary.saved {
    color: #34d399;
    border-color: rgba(52,211,153,0.18);
    background: rgba(52,211,153,0.08);
}

.demo-sp-btn-rose {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(239,68,68,0.12);
    color: #fb7185;
    border: 1px solid rgba(239,68,68,0.28);
    transition: background 0.15s;
    font-family: var(--font-sans);
}

.demo-sp-btn-rose:hover {
    background: rgba(239,68,68,0.2);
}

.demo-sp-btn-discord {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: #5865F2;
    border: 1px solid rgba(88,101,242,0.18);
    transition: background 0.15s;
    font-family: var(--font-sans);
}

.demo-sp-btn-discord:hover {
    background: rgba(88,101,242,0.08);
}

.demo-sp-btn-discord:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* License status */
.demo-sp-lic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.demo-sp-lic-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

.demo-sp-lic-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Developer console */
.demo-sp-console {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
    min-height: 80px;
    max-height: 160px;
    overflow-y: auto;
    line-height: 1.6;
}

.demo-sp-divider-h {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 0;
}

.demo-sp-section-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .demo-sp-sidebar { width: 180px; }
    .demo-sp-content { padding: 20px; }
}

@media (max-width: 480px) {
    .demo-settings-overlay { flex-direction: column; }
    .demo-sp-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 12px; gap: 4px; }
    .demo-sp-sidebar-header { display: none; }
    .demo-sp-content { padding: 16px; }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .demo-tl-center { max-width: 320px; }
    .demo-combine-name { font-size: 9px; }
}

@media (max-width: 1100px) {
    .demo-main-grid { grid-template-columns: 1fr; }
    .demo-chart-wrap { height: 230px; }
}

@media (max-width: 900px) {
    .demo-tl-center { display: none; }
}

@media (max-width: 768px) {
    .demo-stats-row { grid-template-columns: repeat(2, 1fr); }
    .demo-chart-wrap { height: 190px; }
    .demo-stat-value { font-size: 12px; }
    .demo-bottom-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .demo-body { padding: 6px; }
    .demo-stat-card { padding: 8px 9px; }
    .demo-stat-icon { display: none; }
    .demo-stat-value { font-size: 11px; }
    .demo-tl-left .demo-brand-group { display: none; }
}



/* ── Strategy Profiles (Demo Settings) ── */

/* Simple mode toggle */
.demo-strategy-simple, .demo-strategy-advanced {
    width: 100%;
}

/* 2x2 preset card grid */
.demo-preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.demo-preset-card {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-preset-card:hover {
    transform: scale(1.015);
}

.demo-preset-card.active-preset {
    box-shadow: 0 0 20px rgba(52,211,153,0.12), 0 0 0 2px rgba(52,211,153,0.4);
}

.demo-preset-active-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 10;
    background: #10b981;
    font-size: 9px;
    font-weight: 700;
    color: #000;
    padding: 2px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.demo-preset-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.demo-preset-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.demo-preset-risk {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid;
    flex-shrink: 0;
}

.demo-preset-risk.emerald { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.25); color: #34d399; }
.demo-preset-risk.amber { background: rgba(251,191,36,0.08); border-color: rgba(251,191,36,0.25); color: #fbbf24; }
.demo-preset-risk.rose { background: rgba(251,113,133,0.08); border-color: rgba(251,113,133,0.25); color: #fb7185; }
.demo-preset-risk.violet { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.25); color: #a78bfa; }

.demo-preset-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 6px;
}

.demo-preset-desc {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.demo-preset-scores {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    margin-top: 2px;
}

.demo-preset-score-win { font-weight: 700; color: #34d399; }
.demo-preset-score-loss { font-weight: 700; color: #fb7185; }

.demo-preset-btn {
    width: 100%;
    border-radius: 12px;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.demo-preset-btn.emerald { background: #059669; color: #000; }
.demo-preset-btn.emerald:hover { background: #047857; }
.demo-preset-btn.amber { background: #d97706; color: #000; }
.demo-preset-btn.amber:hover { background: #b45309; }
.demo-preset-btn.rose { background: #dc2626; color: #fff; }
.demo-preset-btn.rose:hover { background: #b91c1c; }
.demo-preset-btn.violet { background: #7c3aed; color: #fff; }
.demo-preset-btn.violet:hover { background: #6d28d9; }

.demo-preset-active-label {
    width: 100%;
    border-radius: 12px;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: default;
}

/* Simple mode toggle link */
.demo-preset-toggle {
    display: flex;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.demo-preset-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    color: var(--color-text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-sans);
}

.demo-preset-toggle-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-text);
    border-color: rgba(255,255,255,0.15);
}

/* Advanced mode layout */
.demo-adv-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-adv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-adv-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-adv-header-icon {
    width: 32px; height: 32px;
    border-radius: 10px;
    background: rgba(139,92,246,0.1);
    border: 1px solid rgba(139,92,246,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.demo-adv-header-title {
    font-size: 13px;
    font-weight: 700;
}

.demo-adv-header-sub {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 1px;
}

.demo-adv-back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    color: var(--color-text-muted);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.demo-adv-back-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-text);
}

/* Master presets in advanced mode */
.demo-adv-master-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-adv-master-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.15s;
}

.demo-adv-master-item:hover {
    transform: translateY(-1px);
}

.demo-adv-master-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.demo-adv-master-name {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 1px;
}

.demo-adv-master-desc {
    font-size: 9px;
    color: var(--color-text-muted);
}

.demo-adv-master-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid;
}

.demo-adv-master-scores {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 9px;
}

.demo-adv-master-info {
    flex: 1;
    min-width: 0;
}

.demo-adv-master-clone {
    padding: 5px 10px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid;
    background: rgba(0,0,0,0.2);
    transition: all 0.15s;
    font-family: var(--font-sans);
}

.demo-adv-master-clone:hover {
    background: rgba(0,0,0,0.35);
}

/* Profile list */
.demo-adv-profiles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-adv-profile-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.015);
    cursor: pointer;
    transition: all 0.15s;
}

.demo-adv-profile-item:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
}

.demo-adv-profile-item.active-prof {
    background: rgba(148,166,133,0.08);
    border-color: rgba(148,166,133,0.3);
}

.demo-adv-profile-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #7C9177;
    flex-shrink: 0;
}

.demo-adv-profile-name {
    font-size: 12px;
    font-weight: 600;
    flex: 1;
}

.demo-adv-profile-tags {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: var(--color-text-muted);
}

/* Editor panel in advanced mode */
.demo-adv-editor {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.015);
    overflow: hidden;
}

.demo-adv-editor-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.demo-adv-editor-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.demo-adv-name-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--color-text);
    font-size: 13px;
    outline: none;
    font-family: var(--font-sans);
}

.demo-adv-name-input:focus {
    border-color: rgba(148,166,133,0.5);
}

.demo-adv-section-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.demo-adv-slider-row {
    display: flex;
    gap: 12px;
}

.demo-adv-slider-group {
    flex: 1;
}

.demo-adv-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.demo-adv-slider-value {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.demo-adv-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    outline: none;
}

.demo-adv-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #7C9177;
    cursor: pointer;
}

.demo-adv-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.demo-adv-filter-icon {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

.demo-adv-filter-label {
    flex: 1;
    font-size: 11px;
}

.demo-adv-filter-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.demo-adv-filter-toggle {
    width: 28px;
    height: 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    flex-shrink: 0;
}

.demo-adv-filter-toggle.on { background: #7C9177; }
.demo-adv-filter-toggle.off { background: rgba(255,255,255,0.1); }

.demo-adv-filter-toggle::after {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}

.demo-adv-filter-toggle.on::after { transform: translateX(12px); }
.demo-adv-filter-toggle.off::after { transform: translateX(2px); }

.demo-adv-save-btn {
    width: 100%;
    padding: 8px 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

.demo-adv-save-btn.saveable {
    background: #7C9177;
    color: #fff;
}

.demo-adv-save-btn.saveable:hover {
    background: #8A9F85;
}

.demo-adv-save-btn.disabled {
    background: rgba(255,255,255,0.04);
    color: var(--color-text-muted);
    cursor: default;
}

.demo-adv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    color: var(--color-text-muted);
    gap: 8px;
    font-size: 12px;
    min-height: 200px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    background: rgba(255,255,255,0.01);
}

/* ========== Footer ========== */
.footer {
    padding: 72px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: var(--color-bg);
}

/* Top section: brand | nav columns | socials */
.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.32);
    margin: 0;
}

/* Nav columns sit side-by-side inside one grid cell */
.footer-nav {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    font-family: var(--font-mono);
    margin: 0 0 4px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.52);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--color-primary); }

/* Socials column */
.footer-social-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    color: rgba(255,255,255,0.45);
    transition: all 0.15s;
}

.social-link:hover {
    background: rgba(124, 145, 119,0.10);
    border-color: rgba(124, 145, 119,0.30);
    color: var(--color-primary);
}

.social-link svg { width: 16px; height: 16px; }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 24px 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.25);
    margin: 0;
}

.footer-copy a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-copy a:hover { color: var(--color-primary); }

.footer-disclaimer {
    font-size: 11px;
    color: rgba(255,255,255,0.15);
    max-width: 760px;
    line-height: 1.6;
    margin: 0;
}

/* ================================================================
   DEMO HINT POPUP
   ================================================================ */
.demo-hint {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #141618;
    border: 1px solid rgba(124, 145, 119, 0.25);
    border-radius: 18px;
    padding: 16px 40px 16px 16px;
    max-width: 320px;
    box-shadow:
        0 0 0 1px rgba(124, 145, 119, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(124, 145, 119, 0.06);
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.demo-hint.hint-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.demo-hint.hint-dismiss {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
}

/* Subtle top-left glow streak */
.demo-hint-glow {
    position: absolute;
    top: -40px;
    left: -20px;
    width: 160px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(124, 145, 119, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* Avatar */
.demo-hint-avatar {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124, 145, 119, 0.2) 0%, rgba(124, 145, 119, 0.08) 100%);
    border: 1px solid rgba(124, 145, 119, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-hint-avatar-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 0;
}

.demo-hint-pulse {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    border: 2px solid #141618;
}

.demo-hint-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.35);
    animation: hintPulseRing 1.8s ease-out infinite;
}

@keyframes hintPulseRing {
    0%   { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.9); opacity: 0; }
}

/* Body */
.demo-hint-body {
    flex: 1;
    min-width: 0;
}

.demo-hint-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-hint-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 4px;
    padding: 1px 5px;
}

/* Typing dots */
.demo-hint-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 18px;
}

.demo-hint-typing span {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.4;
    animation: hintDot 1.2s ease-in-out infinite;
}

.demo-hint-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-hint-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes hintDot {
    0%, 80%, 100% { transform: scale(1);   opacity: 0.4; }
    40%            { transform: scale(1.4); opacity: 1;   }
}

.demo-hint-typing.hint-hidden { display: none; }

/* Typed text */
.demo-hint-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-secondary, #c4c9c0);
    display: none;
}

.demo-hint-text.hint-visible { display: block; }

/* Cursor blink */
.demo-hint-cursor {
    display: inline-block;
    width: 1px;
    height: 13px;
    background: var(--color-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: hintCursorBlink 0.7s step-end infinite;
}

@keyframes hintCursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Close button */
.demo-hint-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #8f9583;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.demo-hint-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #eceee8;
}

/* Mobile: push to bottom-center */
@media (max-width: 540px) {
    .demo-hint {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* ================================================================
   RESPONSIVE SYSTEM — ordered largest → smallest
   Breakpoints: 1440 · 1180 · 1024 · 900 · 768 · 480 · 375
   ================================================================ */

/* ── Extra-large desktop (≥1440px) ── */
@media (min-width: 1440px) {
    .container {
        max-width: 1380px;
    }
    .hero-title {
        font-size: 72px;
    }
    .section-title {
        font-size: 48px;
    }
    .hero {
        padding: 160px 0 100px;
    }
}

/* ── Laptop / small desktop (≤1180px): tighten hero 2-col ── */
@media (max-width: 1180px) {
    .hero .container {
        gap: 40px;
    }
    .hero-title {
        font-size: 56px;
    }
    .hero-app-inner {
        max-height: 430px;
    }
    .fd-layout {
        grid-template-columns: 240px 1fr;
        gap: 36px;
    }
}

/* ── Tablet landscape / small laptop (≤1024px): collapse hero ── */
@media (max-width: 1024px) {
    .hero {
        padding: 110px 0 70px;
        min-height: auto;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }
    .hero-content {
        max-width: 640px;
        margin: 0 auto;
    }
    .hero-title {
        font-size: 50px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        gap: 36px;
    }
    .hero-visual {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    .hero-app-inner {
        transform: perspective(900px) rotateY(-10deg) rotateX(3deg);
        max-height: 400px;
    }
    .floating-card {
        display: none;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .section-title {
        font-size: 36px;
    }
    .section-subtitle {
        font-size: 15px;
    }
    .section-header {
        margin-bottom: 48px;
    }
    .how-it-works {
        padding: 80px 0;
    }
    .features-demo {
        padding: 80px 0;
    }
    .pricing {
        padding: 80px 0 100px;
    }
    .faq {
        padding: 80px 0;
    }
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
    .footer-social-col { align-items: flex-start; }
}

/* ── Tablet portrait (≤900px): mid-size refinements ── */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }
    .hero-title {
        font-size: 44px;
    }
    .hero-app-inner {
        max-height: 360px;
    }
    .section-title {
        font-size: 34px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .features-demo {
        padding: 70px 0;
    }
    .how-it-works {
        padding: 70px 0;
    }
    .faq {
        padding: 70px 0;
    }
    .pricing {
        padding: 70px 0 80px;
    }
}

/* ── Mobile (≤768px): full single-column layout ── */
@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    body {
        overflow-x: hidden;
    }
    .container {
        padding: 0 20px;
    }

    /* ── Hero ── */
    /* Hide 3D app preview on phones — keeps focus on copy & CTA */
    .hero-visual {
        display: none;
    }
    /* Remove the decorative bg logo to avoid overflow */
    .hero-bg-logo {
        display: none;
    }
    /* Kill all animated orbs on mobile — filter:blur()+animation = major GPU lag */
    .liquid-orb {
        display: none;
    }
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero {
        min-height: 100dvh;
        padding: 90px 0 48px;
        display: flex;
        align-items: center;
        box-sizing: border-box;
    }
    .badge {
        margin-bottom: 22px;
        justify-content: center;
    }
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
        line-height: 1.13;
        margin-bottom: 18px;
    }
    .hero-subtitle {
        display: none;
    }
    .boot-seq {
        display: flex;
        flex-direction: column;
        margin: 0 0 28px;
        text-align: left;
    }
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 36px;
    }
    .hero-cta-solo {
        min-width: unset;
        width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }
    /* Stats: clean 3-column row */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        text-align: center;
        justify-items: center;
    }
    .stat { text-align: center; }
    .stat-value { font-size: 22px; }
    .stat-label {
        font-size: 10px;
        letter-spacing: 0.3px;
        margin-top: 2px;
    }

    /* ── Sections ── */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .section-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    .section-subtitle { font-size: 14px; }
    .section-header {
        margin-bottom: 36px;
        padding: 0;
    }
    .how-it-works { padding: 60px 0; }
    .features-demo { padding: 60px 0; }
    .pricing      { padding: 60px 0 70px; }
    .faq          { padding: 60px 0; }

    /* ── Steps (How it Works) ── */
    .step {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .step-number { font-size: 36px; }

    /* ── CTA banner ── */
    .cta-card {
        padding: 48px 24px;
        border-radius: 18px;
    }
    .cta-title { font-size: 30px; }
    .cta-stats { max-width: 100%; }
    .cta-stat-value { font-size: 20px; }
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-buttons .btn { width: 100%; justify-content: center; }

    /* ── Footer ── */
    .footer { padding: 48px 0 0; }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .footer-nav { justify-content: center; }
    .footer-social-col { align-items: center; }

    /* ── FAQ ── */
    .faq-question { padding: 20px 18px; }
    .faq-grid { grid-template-columns: 1fr; }
    .faq-item:nth-child(even)           { border-right: none; }
    .faq-item:nth-last-child(-n+2)      { border-bottom: 1px solid rgba(255,255,255,0.06); }
    .faq-item:last-child                { border-bottom: none; }

    /* ── Mobile menu ── */
    .mobile-menu-actions {
        padding: 20px 24px 32px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: auto;
        border-top: 1px solid var(--color-border);
    }
    .mobile-login,
    .mobile-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px;
        font-size: 16px;
    }

    /* ── Pricing ── */
    .pr-card { max-width: 100%; }
}

/* ── Small phone (≤480px) ── */
@media (max-width: 480px) {
    .container     { padding: 0 16px; }
    .nav-container { padding: 0 16px; }
    .logo    { font-size: 19px; }
    .logo-img { height: 30px; }

    .hero {
        min-height: 100dvh;
        padding: 80px 0 40px;
    }
    .hero-title {
        font-size: 30px;
        letter-spacing: -0.5px;
    }
    .hero-subtitle {
        font-size: 14px;
        line-height: 1.65;
    }
    .hero-stats { gap: 8px; }
    .stat-value { font-size: 19px; }
    .stat-label { font-size: 9px; letter-spacing: 0; }

    .btn-lg { padding: 14px 20px; font-size: 14px; }

    .section-title    { font-size: 24px; }
    .section-subtitle { font-size: 13px; }

    .how-it-works { padding: 48px 0; }
    .features-demo { padding: 48px 0; }
    .pricing       { padding: 48px 0 56px; }
    .faq           { padding: 48px 0; }
    .logo-strip    { padding: 24px 0; }

    .footer        { padding: 36px 0 20px; }
    .footer-grid   { gap: 20px; }
    .footer-links a { font-size: 13px; }

    .faq-question  { padding: 16px 16px; font-size: 14px; }
    .faq-answer p  { padding: 0 16px 18px 40px; font-size: 13px; }

    .cta-card  { padding: 28px 16px; border-radius: 16px; }
    .cta-title { font-size: 22px; }
    .cta-stats { flex-direction: column; gap: 16px; padding: 20px; }
    .cta-stat-divider { width: 60px; height: 1px; }
    .btn-discord { width: 100%; justify-content: center; }

    .pr-card { padding: 24px 16px 20px; border-radius: 16px; }
}

/* ── Tiny phone (≤375px — iPhone SE, Galaxy A series) ── */
@media (max-width: 375px) {
    .container     { padding: 0 14px; }
    .nav-container { padding: 0 14px; }

    .hero {
        min-height: 100dvh;
        padding: 76px 0 36px;
    }
    .hero-title {
        font-size: 26px;
        letter-spacing: -0.3px;
    }
    .hero-subtitle { font-size: 13px; }
    .hero-stats    { gap: 6px; }

    .stat-value { font-size: 17px; }
    .stat-label { font-size: 9px; letter-spacing: 0; }

    .btn-lg { padding: 13px 16px; font-size: 13px; }

    .section-title { font-size: 22px; }

    .faq-question  { padding: 16px 14px; }
    .faq-answer p  { padding: 0 14px 16px 36px; }
}

/* ========== Features + Demo Combined Section ========== */
.features-demo {
    padding: 100px 0;
    position: relative;
}

.fd-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 52px;
    align-items: start;
    position: relative;
    margin-top: 64px;
}

/* On wide screens let the demo expand fully */
@media (min-width: 1600px) {
    .features-demo .container {
        max-width: 92vw;
        padding: 0 32px;
    }
    .fd-layout {
        gap: 64px;
    }
    .demo-main-grid {
        grid-template-columns: 1fr 340px;
    }
    .demo-chart-wrap {
        height: 320px;
    }
    .demo-body {
        padding: 12px;
        gap: 10px;
    }
    .demo-stat-card {
        padding: 14px 16px;
    }
    .demo-stat-value {
        font-size: 16px;
    }
    .demo-acct-name {
        font-size: 11px;
    }
    .demo-titlebar {
        padding: 12px 16px;
        min-height: 56px;
    }
    .demo-brand-logo {
        width: 46px;
        height: 46px;
    }
}

@media (min-width: 2000px) {
    .features-demo .container {
        max-width: 1800px;
    }
    .fd-layout {
        gap: 80px;
        grid-template-columns: minmax(280px, 380px) 1fr;
    }
    .demo-main-grid {
        grid-template-columns: 1fr 360px;
    }
    .demo-chart-wrap {
        height: 360px;
    }
    .demo-body {
        padding: 14px;
        gap: 12px;
    }
    .demo-stat-card {
        padding: 16px 18px;
    }
    .demo-stat-value {
        font-size: 17px;
    }
    .demo-bottom-panel {
        padding: 14px 16px;
    }
}

/* SVG connector overlay */
.fd-svg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.fd-conn-path {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    opacity: 0.35;
    stroke-linecap: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    transition: stroke-dashoffset 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fd-conn-path.fd-drawn {
    stroke-dashoffset: 0;
}

.fd-conn-dot {
    fill: var(--color-primary);
    opacity: 0.85;
    filter: drop-shadow(0 0 5px var(--color-primary));
}

.fd-conn-start-dot {
    fill: var(--color-primary);
    opacity: 0.5;
}

.fd-traveling-dot {
    fill: var(--color-primary-light);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px var(--color-primary-light));
}

/* Feature nodes column */
.fd-features-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.fd-node-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    background: rgba(14, 15, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    cursor: default;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.fd-node-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), rgba(124,145,119,0.15));
    border-radius: 0 2px 2px 0;
    opacity: 0.7;
}

.fd-node-card:hover,
.fd-node-card.fd-active {
    border-color: rgba(141, 168, 133, 0.3);
    background: rgba(14, 15, 17, 0.9);
    transform: translateY(-1px);
    box-shadow:
        0 4px 24px rgba(0,0,0,0.3),
        0 0 0 1px rgba(141, 168, 133, 0.06) inset,
        0 0 40px rgba(124,145,119,0.04);
}

.fd-node-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: rgba(124,145,119,0.08);
    border: 1px solid rgba(124,145,119,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    overflow: hidden;
}

.fd-node-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(124,145,119,0.15), transparent 70%);
    pointer-events: none;
}

.fd-node-card:hover .fd-node-icon,
.fd-node-card.fd-active .fd-node-icon {
    background: rgba(124,145,119,0.12);
    border-color: rgba(124,145,119,0.3);
    box-shadow: 0 0 20px rgba(124,145,119,0.12);
    transform: scale(1.03);
}

.fd-node-icon svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.fd-node-body {
    flex: 1;
    min-width: 0;
}

.fd-node-num {
    font-size: 8px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    margin-bottom: 2px;
    opacity: 0.5;
    text-transform: uppercase;
}

.fd-node-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.25;
}

.fd-node-desc {
    font-size: 11.5px;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.fd-node-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    min-width: 36px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: rgba(124,145,119,0.08);
    color: var(--color-primary);
    border: 1px solid rgba(124,145,119,0.15);
    flex-shrink: 0;
    align-self: center;
    letter-spacing: 0.02em;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}

.fd-node-card:hover .fd-node-badge {
    background: rgba(124,145,119,0.14);
    border-color: rgba(124,145,119,0.3);
    box-shadow: 0 0 12px rgba(124,145,119,0.08);
}

/* Demo column */
.fd-demo-col {
    position: relative;
    z-index: 2;
}

/* ========== Responsive: Features + Demo ========== */
@media (max-width: 1100px) {
    .fd-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .fd-svg-lines {
        display: none;
    }
    .fd-node-desc {
        -webkit-line-clamp: unset;
        overflow: visible;
        display: block;
    }
    .fd-features-col {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .fd-node-card:hover {
        transform: none;
    }
}

@media (max-width: 600px) {
    #demoChartCanvas {
        touch-action: pan-y;
        pointer-events: none;
    }
}

/* ── Mobile toggle button (hidden on desktop) ── */
.fd-toggle-btn {
    display: none;
}

@media (max-width: 600px) {
    /* Reorder: demo first, features below */
    .fd-layout {
        display: flex;
        flex-direction: column;
        margin-top: 28px;
    }
    .features-demo {
        padding: 48px 0 60px;
    }
    .fd-features-wrapper {
        order: 2;
    }
    .fd-demo-col {
        order: 1;
    }

    /* Toggle button */
    .fd-toggle-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 13px 16px;
        background: linear-gradient(135deg, rgba(124, 145, 119, 0.08) 0%, rgba(124, 145, 119, 0.04) 100%);
        border: 1px solid rgba(124, 145, 119, 0.25);
        border-radius: 12px;
        cursor: pointer;
        color: var(--color-text);
        font-family: var(--font-sans);
        transition: all 0.25s ease;
        position: relative;
        overflow: hidden;
        margin-bottom: 0;
    }
    .fd-toggle-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(124, 145, 119, 0.12), transparent);
        opacity: 0;
        transition: opacity 0.25s ease;
        border-radius: inherit;
    }
    .fd-toggle-btn:hover::before,
    .fd-toggle-btn.fd-toggle-open::before {
        opacity: 1;
    }
    .fd-toggle-btn:hover,
    .fd-toggle-btn.fd-toggle-open {
        border-color: rgba(124, 145, 119, 0.5);
        box-shadow: 0 0 20px rgba(124, 145, 119, 0.12), 0 0 0 1px rgba(124, 145, 119, 0.1) inset;
    }
    .fd-toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(124, 145, 119, 0.12);
        border: 1px solid rgba(124, 145, 119, 0.25);
        color: var(--color-primary);
        flex-shrink: 0;
        transition: all 0.25s ease;
    }
    .fd-toggle-btn.fd-toggle-open .fd-toggle-icon {
        background: rgba(124, 145, 119, 0.2);
        box-shadow: 0 0 10px rgba(124, 145, 119, 0.3);
    }
    .fd-toggle-label {
        font-size: 14px;
        font-weight: 700;
        color: var(--color-text);
        letter-spacing: -0.01em;
        flex: 1;
        text-align: left;
    }
    .fd-toggle-count {
        font-size: 10px;
        font-weight: 600;
        font-family: var(--font-mono);
        color: var(--color-primary);
        background: rgba(124, 145, 119, 0.1);
        border: 1px solid rgba(124, 145, 119, 0.2);
        padding: 2px 7px;
        border-radius: 20px;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
    .fd-toggle-chevron {
        color: var(--color-text-muted);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
        flex-shrink: 0;
    }
    .fd-toggle-btn.fd-toggle-open .fd-toggle-chevron {
        transform: rotate(180deg);
        color: var(--color-primary);
    }

    /* Collapsible features panel */
    .fd-features-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: 0;
    }
    .fd-features-col.fd-open-spacer {
        margin-top: 10px;
    }
    /* After open transition, add top margin via JS class */
    .fd-toggle-btn.fd-toggle-open + .fd-features-col {
        margin-top: 10px;
    }

    /* Card style on mobile */
    .fd-node-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 12px 10px;
    }
    .fd-node-icon {
        width: 30px;
        height: 30px;
    }
    .fd-node-icon svg {
        width: 14px;
        height: 14px;
    }
    .fd-node-title {
        font-size: 12px;
        margin-bottom: 0;
    }
    .fd-node-num {
        font-size: 8px;
        margin-bottom: 0;
    }
    .fd-node-desc {
        display: block;
        font-size: 10.5px;
        line-height: 1.4;
        overflow: visible;
    }
    .fd-node-badge {
        display: none;
    }
    .demo-desktop-only {
        display: none !important;
    }
    .demo-mobile-placeholder {
        display: flex !important;
    }
}

/* Demo desktop-only by default, shown on mobile via the override above */
.demo-mobile-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 24px;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    gap: 16px;
}

.demo-mobile-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(148,166,133,0.1);
    border: 1px solid rgba(148,166,133,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.demo-mobile-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.3;
}

.demo-mobile-sub {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 320px;
}

.demo-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(124,145,119,0.12);
    border: 1px solid rgba(124,145,119,0.25);
    color: var(--color-primary);
}

@media (max-width: 600px) {
    .demo-mobile-placeholder {
        padding: 40px 20px;
        gap: 12px;
    }
    .demo-mobile-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    .demo-mobile-title {
        font-size: 16px;
    }
    .demo-mobile-sub {
        font-size: 13px;
    }
}
