/* ================================================================
   Ultimate Trading Bot — Shared Stylesheet
   ZeDigital Brand + Trading Bot Amber Theme
   ================================================================ */

/* ── CSS Custom Properties ──────────────────────────────────────── */
:root {
    --bg-navy: #111827;
    --bg-surface: #0D1117;
    --bg-card: #151C28;
    --bg-card-alt: #1A2233;
    --accent-amber: #F59E0B;
    --accent-amber-dark: #D97706;
    --accent-green: #10B981;
    --accent-red: #EF4444;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --text-primary: #E5E7EB;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --text-dim: #4B5563;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.10);
    --amber-glow: rgba(245, 158, 11, 0.15);
    --amber-glow-strong: rgba(245, 158, 11, 0.35);
    --glass-bg: rgba(21, 28, 40, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Code', monospace;
    --nav-height: 56px;
    --max-width: 1400px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: rgba(245, 158, 11, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(245, 158, 11, 0.4); }

/* ── Navigation ─────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    height: var(--nav-height);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.nav-logo svg {
    width: 28px;
    height: 28px;
    color: var(--accent-amber);
}

.nav-logo span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-amber);
    letter-spacing: -0.01em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-amber);
}

.nav-cta {
    display: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
    border-radius: 1px;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-menu-inner {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-inner a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.mobile-menu-inner a:hover {
    color: var(--accent-amber);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .hamburger { display: none; }
}

/* ── Ticker Tape ────────────────────────────────────────────────── */
.ticker-wrap {
    overflow: hidden;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 40s linear infinite;
    padding: 0.5rem 0;
}

.ticker-track:hover {
    animation-play-state: paused;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.75rem;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.ticker-sep {
    padding: 0 0.25rem;
    color: var(--text-dim);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-dark));
    color: var(--bg-navy);
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-cta:hover {
    box-shadow: 0 0 30px var(--amber-glow-strong);
    transform: translateY(-2px);
}

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

.btn-cta-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-secondary:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.btn-ghost:hover {
    gap: 0.625rem;
}

/* ── Cards & Panels ─────────────────────────────────────────────── */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: all var(--transition-base);
}

.glass-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: rgba(245, 158, 11, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-card .icon-wrap svg {
    width: 24px;
    height: 24px;
}

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-highlight {
    border: 2px solid var(--accent-amber);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
    position: relative;
}

.pricing-highlight::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-amber);
    color: var(--bg-navy);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 14px;
    border-radius: 9999px;
    letter-spacing: 0.05em;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    padding: 0.25rem;
}

.pricing-toggle-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pricing-toggle-btn.active {
    background: var(--accent-amber);
    color: var(--bg-navy);
}

.price-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.375rem 0;
}

.feature-check svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.feature-check.disabled {
    color: var(--text-dim);
}

.feature-check.disabled svg {
    opacity: 0.3;
}

/* ── FAQ Accordion ──────────────────────────────────────────────── */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(245, 158, 11, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-amber);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent-amber);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* ── Risk Disclaimer ────────────────────────────────────────────── */
.risk-box {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-amber);
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    border-right: 1px solid rgba(245, 158, 11, 0.15);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
}

/* ── Trust Bar / Badges ─────────────────────────────────────────── */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.12);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-amber);
    white-space: nowrap;
}

.trust-badge svg {
    width: 16px;
    height: 16px;
}

/* ── Payment Cards ──────────────────────────────────────────────── */
.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
    border-radius: 1rem;
    padding: 1.25rem;
}

.payment-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
    background: var(--bg-card-alt);
}

/* ── Scroll Reveal ──────────────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ── Section Utilities ──────────────────────────────────────────── */
.section-dark { background: var(--bg-navy); }
.section-darker { background: var(--bg-surface); }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Chart / Trading UI ─────────────────────────────────────────── */
.chart-tooltip {
    pointer-events: none;
    position: absolute;
    background: var(--bg-card-alt);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.15s;
}

.chart-tooltip.visible { opacity: 1; }

.grid-line {
    stroke: var(--border-subtle);
    stroke-dasharray: 4 4;
}

.equity-line {
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.4));
}

.sparkline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-base);
    border-radius: 0.75rem;
    padding: 1rem;
}

.sparkline-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

/* ── Candlestick Chart (CSS) ────────────────────────────────────── */
.candle-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 200px;
    padding: 1rem 0;
}

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

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

.candle-body {
    width: 60%;
    min-width: 4px;
    max-width: 12px;
    border-radius: 1px;
}

.candle-green .candle-body { background: var(--accent-green); }
.candle-green .candle-wick { background: var(--accent-green); }
.candle-red .candle-body { background: var(--accent-red); }
.candle-red .candle-wick { background: var(--accent-red); }

/* ── Demo Animations ────────────────────────────────────────────── */
.demo-step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.demo-step.active {
    opacity: 1;
    transform: translateY(0);
}

.demo-step.completed {
    opacity: 0.5;
    transform: scale(0.98);
}

.signal-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.5rem;
    color: var(--accent-green);
    font-weight: 700;
    font-size: 0.8125rem;
    animation: signalPulse 1.5s ease infinite;
}

.signal-sell {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.5rem;
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.8125rem;
    animation: signalPulse 1.5s ease infinite;
}

@keyframes signalPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 20px 4px rgba(16, 185, 129, 0.15); }
}

/* ── Counter Animation ──────────────────────────────────────────── */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ── Pulse Dot ──────────────────────────────────────────────────── */
.pulse-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Tables ─────────────────────────────────────────────────────── */
.terminal-table {
    font-variant-numeric: tabular-nums;
    width: 100%;
}

.terminal-table th {
    background: var(--bg-surface);
    position: sticky;
    top: 0;
    z-index: 2;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.terminal-table td {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
}

.terminal-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-table tr:hover {
    background: rgba(245, 158, 11, 0.03);
}

/* ── Feature Matrix ─────────────────────────────────────────────── */
.feature-matrix {
    width: 100%;
    border-collapse: collapse;
}

.feature-matrix th,
.feature-matrix td {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.875rem;
}

.feature-matrix th {
    background: var(--bg-surface);
    color: var(--text-primary);
    font-weight: 700;
    position: sticky;
    top: 0;
}

.feature-matrix td:first-child {
    text-align: left;
    color: var(--text-secondary);
}

.feature-matrix .check { color: var(--accent-green); }
.feature-matrix .cross { color: var(--text-dim); }

/* ── Architecture Diagram ───────────────────────────────────────── */
.arch-flow {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.arch-node {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 140px;
}

.arch-node h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-bottom: 0.25rem;
}

.arch-node p {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.arch-arrow {
    flex-shrink: 0;
    color: var(--accent-amber);
    font-size: 1.25rem;
    padding: 0 0.5rem;
}

/* ── Legal Pages ────────────────────────────────────────────────── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-amber);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.375rem;
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 2rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-navy);
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-amber);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--accent-amber);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ── Demo Page ──────────────────────────────────────────────────── */
.demo-timeline {
    position: relative;
    padding-left: 3rem;
}

.demo-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

.demo-timeline-step {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.demo-timeline-step.active {
    opacity: 1;
    transform: translateX(0);
}

.demo-timeline-step::before {
    content: attr(data-step);
    position: absolute;
    left: -3rem;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--bg-card);
    border: 2px solid var(--accent-amber);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-amber);
    z-index: 1;
}

.demo-timeline-step.active::before {
    background: var(--accent-amber);
    color: var(--bg-navy);
}

.demo-screen {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1.5rem;
    min-height: 120px;
}

/* Demo candlestick animation */
@keyframes candleGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.candle-animate .candle-body {
    transform-origin: bottom;
    animation: candleGrow 0.4s ease forwards;
}

.candle-animate:nth-child(1) .candle-body { animation-delay: 0s; }
.candle-animate:nth-child(2) .candle-body { animation-delay: 0.1s; }
.candle-animate:nth-child(3) .candle-body { animation-delay: 0.2s; }
.candle-animate:nth-child(4) .candle-body { animation-delay: 0.3s; }
.candle-animate:nth-child(5) .candle-body { animation-delay: 0.4s; }
.candle-animate:nth-child(6) .candle-body { animation-delay: 0.5s; }
.candle-animate:nth-child(7) .candle-body { animation-delay: 0.6s; }
.candle-animate:nth-child(8) .candle-body { animation-delay: 0.7s; }
.candle-animate:nth-child(9) .candle-body { animation-delay: 0.8s; }
.candle-animate:nth-child(10) .candle-body { animation-delay: 0.9s; }
.candle-animate:nth-child(11) .candle-body { animation-delay: 1.0s; }
.candle-animate:nth-child(12) .candle-body { animation-delay: 1.1s; }

/* SVG line draw animation */
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.line-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease forwards;
}

/* Profit counter */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profit-animate {
    animation: countUp 0.5s ease forwards;
}

/* Demo notification */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-animate {
    animation: slideInRight 0.4s ease forwards;
}

/* Demo replay button */
.demo-replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-amber);
    border-radius: 0.75rem;
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.demo-replay-btn:hover {
    background: var(--accent-amber);
    color: var(--bg-navy);
}

/* ── Progress bar for demo ──────────────────────────────────────── */
.demo-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-surface);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.demo-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-green));
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ── Scroll Progress Bar ───────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-amber), var(--accent-amber-dark));
    z-index: 9999;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px var(--amber-glow-strong);
}

/* ── Hero Gradient Blobs ───────────────────────────────────────── */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    animation: blobShift 12s ease-in-out infinite alternate;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent 70%);
    top: -200px;
    right: -100px;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.8), rgba(59, 130, 246, 0.15) 60%, transparent 80%);
    bottom: -150px;
    left: -100px;
    animation-delay: -6s;
}

.hero-blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
    top: 40%;
    left: 30%;
    animation-delay: -3s;
}

@keyframes blobShift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ── Nav Scroll Effect ─────────────────────────────────────────── */
.site-nav {
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-nav.nav-scrolled {
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(245, 158, 11, 0.05);
    border-bottom-color: rgba(245, 158, 11, 0.08);
}

/* ── Nav Link Hover Underline ──────────────────────────────────── */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-amber);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ── Enhanced Button Micro-interactions ────────────────────────── */
.btn-cta {
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-cta:hover::before {
    opacity: 1;
}

.btn-cta:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 0 15px var(--amber-glow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

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

/* ── Enhanced Card Hover Lift ──────────────────────────────────── */
.feature-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feature-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(245, 158, 11, 0.06);
}

.pricing-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pricing-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(245, 158, 11, 0.05);
}

.pricing-highlight {
    box-shadow:
        0 0 40px rgba(245, 158, 11, 0.08),
        0 0 80px rgba(245, 158, 11, 0.04);
}

.pricing-highlight:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(245, 158, 11, 0.12),
        0 0 120px rgba(245, 158, 11, 0.06);
    transform: translateY(-6px);
}

/* ── Candlestick Glow Effects ──────────────────────────────────── */
.candle-green .candle-body {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.candle-red .candle-body {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* ── Section Dividers ──────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.15), transparent);
    border: none;
    margin: 0;
}

/* ── Testimonial Cards ─────────────────────────────────────────── */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 3rem;
    color: var(--accent-amber);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: rgba(245, 158, 11, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

/* ── Floating Chart Animation ──────────────────────────────────── */
.hero-chart-float {
    animation: chartFloat 6s ease-in-out infinite;
}

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

/* ── Ticker Enhancement ────────────────────────────────────────── */
.ticker-track {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.ticker-wrap {
    position: relative;
}

.ticker-wrap::before,
.ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-surface), transparent);
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-surface), transparent);
}

/* ── Scroll Reveal Stagger ─────────────────────────────────────── */
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }
.fade-in-delay-6 { transition-delay: 0.6s; }

/* ── More from ZeDigital Grid ──────────────────────────────────── */
.zedigital-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .zedigital-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .zedigital-products {
        grid-template-columns: repeat(5, 1fr);
    }
}

.zedigital-products a {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
    text-align: center;
    border: 1px solid transparent;
}

.zedigital-products a:hover {
    color: var(--accent-amber);
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.1);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .section-header h2 { font-size: 1.5rem; }
    .section-header p { font-size: 0.8125rem; }
    .price-value { font-size: 2rem; }
    .risk-box { padding: 1rem 1.25rem; }
    .legal-content h1 { font-size: 1.5rem; }
    .legal-content h2 { font-size: 1.125rem; }
    .arch-flow { flex-direction: column; align-items: stretch; }
    .arch-arrow { transform: rotate(90deg); text-align: center; padding: 0.25rem 0; }
}

@media (max-width: 768px) {
    .feature-matrix { font-size: 0.75rem; }
    .feature-matrix th, .feature-matrix td { padding: 0.5rem; }
}
