/* ============================
   HOMEPAGE STYLES
   Extracted from index.html inline <style>
   ============================ */

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto !important; overflow-x: clip; }
body {
    background-color: #08090f;
    color: #e5e7eb;
}
::selection { background: rgba(124,106,239,0.2); color: #fff; }

/* Surfaces */
.surface { background: rgba(17,17,24,0.7); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.06); }
.surface-elevated { background: rgba(22,22,30,0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

/* Buttons */
.btn-gold {
    background: #7c6aef;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(124,106,239,0.15);
    transition: all 0.25s ease;
}
.btn-gold:hover {
    background: #6b59e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(124,106,239,0.25);
}
.btn-ghost {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s ease;
}
.btn-ghost:hover {
    border-color: rgba(124,106,239,0.25);
    background: rgba(124,106,239,0.03);
}

/* Phone */
.phone-frame {
    background: #111118;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 0 1px rgba(124,106,239,0.03), 0 32px 80px rgba(0,0,0,0.5);
    border-radius: 44px;
    padding: 10px;
}
.phone-screen { background: #000; border-radius: 36px; overflow: hidden; position: relative; }
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; background: #111118; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 10; }

/* Messages */
.msg-in { background: #1a1a22; border: 1px solid rgba(255,255,255,0.05); border-radius: 18px; border-top-left-radius: 4px; }
.msg-out { background: rgba(124,106,239,0.06); border: 1px solid rgba(124,106,239,0.12); border-radius: 18px; border-top-right-radius: 4px; }
.ticker-card { background: rgba(10,10,15,0.95); border: 1px solid rgba(124,106,239,0.12); border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.5); }

/* Grid bg */
.bg-grid {
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 72px 72px;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Status pulse */
.status-pulse { animation: sp 2.5s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes sp { 0%{box-shadow:0 0 0 0 rgba(124,106,239,0.4)} 70%{box-shadow:0 0 0 8px rgba(124,106,239,0)} 100%{box-shadow:0 0 0 0 rgba(124,106,239,0)} }

/* Chart draw */
.chart-path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: drawC 2.2s ease-out forwards; }
@keyframes drawC { to { stroke-dashoffset: 0; } }

/* Cursor blink */
.cursor-blink { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Nav */
.nav-blur { background: rgba(6,6,10,0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.04); }

/* ── Light mode: base ── */
html.light body { background: #f8f8f8 !important; color: #1a1a1a !important; }
html.light .bg-grid { background-image: none; }
html.light .nav-blur { background: rgba(248,248,248,0.5); }
html.light .nav-blur span, html.light .nav-blur a { color: #1a1a1a; }
html.light .nav-blur .text-gray-400 { color: #666 !important; }
html.light .btn-gold { background: #1a1a1a; color: #fff; box-shadow: none; }
html.light .btn-gold:hover { background: #333; }
html.light .btn-ghost { border-color: rgba(0,0,0,0.12); color: #333; background: transparent; }
html.light .btn-ghost:hover { border-color: rgba(0,0,0,0.25); background: rgba(0,0,0,0.03); }
html.light .surface, html.light .surface-elevated { background: #fff; border-color: rgba(0,0,0,0.06); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
html.light h1, html.light h2, html.light h3, html.light .text-gray-100, html.light .text-gray-200 { color: #1a1a1a !important; }
html.light #cta h2 { color: #1a1a1a !important; }
html.light #cta p { color: #666 !important; }
html.light .text-gray-400, html.light .text-gray-500, html.light .text-gray-600 { color: #666 !important; }
html.light .text-primary { color: #5b4bc7 !important; }
html.light .border-white\/\[0\.03\], html.light .border-white\/\[0\.04\], html.light .border-white\/\[0\.05\], html.light .border-white\/\[0\.06\] { border-color: rgba(0,0,0,0.06) !important; }
html.light .bg-white\/\[0\.01\], html.light .bg-white\/\[0\.02\], html.light .bg-white\/\[0\.03\] { background: rgba(0,0,0,0.015) !important; }
html.light footer { border-color: rgba(0,0,0,0.06) !important; }
html.light footer span, html.light footer a { color: #666 !important; }
html.light .phone-frame { background: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
html.light .nav-blur { border-bottom-color: rgba(0,0,0,0.06); }
html.light .back-to-top svg circle { stroke: rgba(0,0,0,0.08); }
html.light .back-to-top svg circle + circle { stroke: rgba(0,0,0,0.25); }
html.light .back-to-top svg:last-of-type { stroke: rgba(0,0,0,0.4); }
html.light .status-bar-top { background: rgba(248,248,248,0.95) !important; border-color: rgba(0,0,0,0.04) !important; }
html.light .status-bar-top span { color: #666 !important; }
html.light .status-bar-top .bg-primary { background: #5b4bc7 !important; }
html.light details { border-color: rgba(0,0,0,0.06) !important; }
html.light details div { color: #444 !important; }
html.light summary { color: #1a1a1a !important; }
html.light .reveal .text-primary, html.light .text-primary { color: #5b4bc7 !important; }
html.light p, html.light li { color: #444 !important; }
/* Keep carousel phones dark in light mode */
html.light .crsl-phone { background: #18181a; border-color: #333; box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.1); }
html.light .crsl-screen { background: #000; }
html.light .crsl-tag { color: #5b4bc7 !important; }
html.light .crsl-title { color: #1a1a1a !important; }
/* Keep hero iPhone dark */
html.light .iphone-frame-hero { background: #18181a; }
html.light .iphone-frame-hero .iphone-screen { background: #000; }
html.light .iphone-frame-hero .iphone-status-bar { color: #fff; }
html.light .iphone-frame-hero .iphone-icons { color: #fff; }
html.light .iphone-frame-hero .iphone-notch { background: #18181a; }
/* Fix feature cards in light */
html.light .font-mono { color: #444; }
html.light .text-emerald-400 { color: #059669 !important; }
html.light .text-red-400 { color: #dc2626 !important; }
html.light .text-amber-400 { color: #1aab85 !important; }

/* Theme toggle (btn variant) */
.theme-toggle-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: rgba(255,255,255,0.4);
    transition: all 0.2s ease;
}
.theme-toggle-btn:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
html.light .theme-toggle-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #666; }
html.light .theme-toggle-btn:hover { color: #1a1a1a; }
.theme-icon-moon { display: none; }
html.light .theme-icon-sun { display: none; }
html.light .theme-icon-moon { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c2c38; border-radius: 3px; }

/* ── Hero phone ── */
.hero-phone-wrap { display: flex; justify-content: center; }

/* ── Product pillar carousels: scale + center on small screens ── */
@media (max-width: 1023px) {
    #product .crsl-phone {
        width: 250px;
        height: 542px;
        border-radius: 36px;
    }
    #product .crsl-screen { border-radius: 33px; }
    #product .space-y-32 > div { gap: 2.5rem; }
    #product h3 { font-size: 1.75rem !important; }
    #product .carousel-section { display: flex; flex-direction: column; align-items: center; }
    #product .crsl-wrap { max-width: 320px; }
}
@media (max-width: 480px) {
    #product .crsl-phone {
        width: 230px;
        height: 500px;
        border-radius: 32px;
    }
    #product .crsl-screen { border-radius: 29px; }
    #product .crsl-title { font-size: 0.85rem; }
    #product .crsl-tag { font-size: 0.5rem; }
    #product h3 { font-size: 1.5rem !important; }
}

/* Global mobile overflow fix */
@media (max-width: 767px) {
    body { overflow-x: hidden; }
    .max-w-7xl, .max-w-5xl, .max-w-3xl { padding-left: 1rem; padding-right: 1rem; }
}

/* ── Crisp text in carousel phones ── */
#product .crsl-msg {
    font-size: 0.78rem !important;
    line-height: 1.4;
    font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.01em;
}
#product .crsl-app-nm {
    font-size: 0.75rem !important;
}
#product .crsl-status {
    font-size: 0.6rem !important;
}
#product .crsl-card-label {
    font-size: 0.65rem !important;
}
#product .crsl-stock-card .ticker {
    font-size: 0.7rem !important;
}
#product .crsl-stock-card .price {
    font-size: 0.75rem !important;
}
#product .crsl-stock-card .meta span {
    font-size: 0.6rem !important;
}
#product .crsl-stock-card .badge {
    font-size: 0.55rem !important;
}
#product .crsl-brief-regime {
    font-size: 0.6rem !important;
}
#product .crsl-brief-vix {
    font-size: 0.6rem !important;
}
#product .crsl-brief-ticker {
    font-size: 0.55rem !important;
}
#product .crsl-brief-ticker b {
    font-size: 0.6rem !important;
}
#product .crsl-brief-sectors {
    font-size: 0.6rem !important;
}
#product .crsl-danger-item {
    font-size: 0.6rem !important;
}
#product .crsl-danger-level {
    font-size: 1rem !important;
}
#product .crsl-pill {
    font-size: 0.6rem !important;
}
#product .crsl-earn-qtr,
#product .crsl-earn-pct,
#product .crsl-earn-streak,
#product .crsl-earn-rate {
    font-size: 0.6rem !important;
}
#product .crsl-heatmap .hn {
    font-size: 0.6rem !important;
}
#product .crsl-heatmap .hp {
    font-size: 0.55rem !important;
}
/* Sharper rendering */
#product .crsl-phone {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ── Hero section: responsive ── */
@media (max-width: 1023px) {
    .hero-section { padding-top: 7rem; padding-bottom: 2rem; }
    .hero-section h1 { font-size: 2.25rem !important; }
    .hero-section .max-w-xl { max-width: 100%; }
    .hero-phone-wrap { margin-top: 2rem; }
}
@media (max-width: 480px) {
    .hero-section { padding-top: 6rem; padding-bottom: 1.5rem; }
    .hero-section h1 { font-size: 1.875rem !important; }
    .hero-section p { font-size: 14px; }
    .hero-section .btn-gold,
    .hero-section .btn-ghost { font-size: 13px; padding: 0.7rem 1.25rem; }
}

/* Prevent overflow on mobile */
@media (max-width: 767px) {
    .hero-phone-wrap .iphone-frame-hero {
        width: 240px !important;
        height: 460px !important;
    }
}
@media (max-width: 380px) {
    .hero-phone-wrap .iphone-frame-hero {
        width: 220px !important;
        height: 420px !important;
    }
}

/* ═══ Hero Keyboard Demo ═══ */
.hero-slot .hero-txt{display:inline}
.hero-slot .hero-cur{display:inline-block;width:3px;height:0.75em;background:#7c6aef;vertical-align:text-bottom;margin-left:2px;animation:hero-blink 0.75s step-end infinite}
.hero-slot .hero-final{background:linear-gradient(135deg,#9b8aff,#34ebc2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
@keyframes hero-blink{50%{opacity:0}}

.hero-kb-wrap{width:100%;max-width:420px;margin:0 auto;opacity:0;transform:translateY(16px);transition:opacity 0.5s ease,transform 0.5s ease,filter 0.5s ease}
.hero-kb-wrap.vis{opacity:1;transform:none}
.hero-kb-wrap.popped{transform:translateY(-6px) scale(1.02);filter:drop-shadow(0 0 40px rgba(124,106,239,0.15))}
.hero-kb-wrap.collapse{opacity:0;transform:translateY(16px) scale(0.97);transition:opacity 0.4s ease,transform 0.4s ease,filter 0.3s ease;filter:none}

.hero-kb-bar{background:#1c1c1e;border-radius:20px;border:1.5px solid rgba(255,255,255,0.06);overflow:hidden;transition:border-color 0.4s,box-shadow 0.4s}
.hero-kb-wrap.popped .hero-kb-bar{border-color:rgba(124,106,239,0.3);box-shadow:0 0 0 4px rgba(124,106,239,0.06)}

.hero-kb-field{display:flex;align-items:center;padding:12px 16px;font-size:16px;color:#fff;min-height:48px;overflow:hidden}
.hero-kb-dollar{color:#7c6aef;font-weight:700;font-family:'JetBrains Mono',monospace;font-size:17px;opacity:0;transition:opacity 0.15s;margin-right:1px}
.hero-kb-dollar.vis{opacity:1}
.hero-kb-chars{font-family:'JetBrains Mono',monospace;font-weight:600;letter-spacing:0.03em;font-size:17px}
.hero-kb-cur{display:inline-block;width:2px;height:1.15em;background:#7c6aef;vertical-align:text-bottom;animation:hero-blink 0.75s step-end infinite}
.hero-kb-ph{color:rgba(255,255,255,0.2);font-size:14px;pointer-events:none;transition:opacity 0.2s}
.hero-kb-ph.gone{opacity:0;position:absolute}

.hero-kb-sug{display:flex;align-items:center;gap:6px;padding:0 12px;background:rgba(44,44,46,0.95);border-top:1px solid rgba(255,255,255,0.04);overflow-x:auto;max-height:0;opacity:0;transition:max-height 0.35s ease,opacity 0.3s ease,padding 0.35s ease;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x}
.hero-kb-sug.vis{max-height:52px;opacity:1;padding:8px 12px}
.hero-kb-sug::-webkit-scrollbar{display:none}
.hero-pill{padding:8px 16px;border-radius:12px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.07);font-size:13px;font-weight:600;white-space:nowrap;display:flex;align-items:center;gap:6px;color:rgba(255,255,255,0.4);position:relative;overflow:hidden;transition:all 0.2s ease;cursor:default}
.hero-pill .hico{font-size:14px;filter:grayscale(0.5);transition:filter 0.2s}
.hero-pill.hl{background:linear-gradient(135deg,rgba(124,106,239,0.22),rgba(45,212,168,0.08));border-color:rgba(124,106,239,0.45);color:#fff;box-shadow:0 0 16px rgba(124,106,239,0.15),0 0 0 1px rgba(124,106,239,0.1) inset;text-shadow:0 0 12px rgba(155,138,255,0.3)}
.hero-pill.hl .hico{filter:grayscale(0)}
.hero-pill.hl::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent);animation:hero-shimmer 0.7s ease forwards;pointer-events:none}
@keyframes hero-shimmer{to{left:100%}}
.hero-pill.tapped{transform:scale(0.9);background:linear-gradient(135deg,rgba(124,106,239,0.4),rgba(45,212,168,0.15));border-color:rgba(124,106,239,0.55);color:#fff;box-shadow:0 0 24px rgba(124,106,239,0.3)}

.hero-result{max-width:420px;width:100%;margin:8px auto 0;opacity:0;transform:translateY(10px);transition:opacity 0.4s ease,transform 0.4s ease}
.hero-result.vis{opacity:1;transform:none}
.hero-result.out{opacity:0;transform:translateY(-8px)}

/* Price card */
.hpc{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-radius:14px;background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.06)}
.hpc-left{display:flex;align-items:center;gap:12px}
.hpc-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,rgba(124,106,239,0.15),rgba(45,212,168,0.1));display:flex;align-items:center;justify-content:center;font-family:'JetBrains Mono',monospace;font-weight:700;font-size:13px;color:#9b8aff}
.hpc-sym{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:16px}
.hpc-name{font-size:11px;color:rgba(255,255,255,0.3);margin-top:2px}
.hpc-right{text-align:right}
.hpc-price{font-family:'JetBrains Mono',monospace;font-weight:700;font-size:20px}
.hpc-ch{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:600;margin-top:2px}
.hpc-ch.up{color:#34C759}.hpc-ch.down{color:#FF3B30}

/* Chart card */
.hcc{padding:16px 20px 14px;border-radius:14px;background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.06)}
.hcc-hdr{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:4px}
.hcc-hdr-left{display:flex;align-items:center;gap:10px}
.hcc-sym{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:15px}
.hcc-pr{font-family:'JetBrains Mono',monospace;font-size:18px;font-weight:700;letter-spacing:-0.02em}
.hcc-ch{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:600;margin-left:6px}
.hcc-ch.up{color:#34C759}.hcc-ch.down{color:#FF3B30}
.hcc-range{font-size:10px;color:rgba(255,255,255,0.25);display:flex;gap:2px;margin-top:3px}
.hcc-range span{padding:3px 7px;border-radius:5px;cursor:default}.hcc-range .active{background:rgba(124,106,239,0.15);color:#9b8aff}
.hcc-body{position:relative;margin-top:8px}
.hcc-yaxis{position:absolute;top:0;right:0;height:100%;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none;z-index:1}
.hcc-yl{font-family:'JetBrains Mono',monospace;font-size:8px;color:rgba(255,255,255,0.15);text-align:right;line-height:1}
.hcc-svg{width:100%;display:block}
.hcc-grid{stroke:rgba(255,255,255,0.03);stroke-width:0.5}
.hcc-vol{opacity:0;animation:hcc-fi 0.5s ease 0.4s forwards}
.hcc-line{stroke-dasharray:600;stroke-dashoffset:600;animation:hcc-draw 1.2s ease-out forwards}
.hcc-fill{opacity:0;animation:hcc-fi 0.5s ease 0.7s forwards}
@keyframes hcc-draw{to{stroke-dashoffset:0}}
@keyframes hcc-fi{to{opacity:1}}
.hcc-dot{opacity:0;animation:hcc-dot-in 0.3s ease 1s forwards}
.hcc-dot-glow{opacity:0;animation:hcc-glow 2s ease-in-out 1.2s infinite}
@keyframes hcc-dot-in{to{opacity:1}}
@keyframes hcc-glow{0%,100%{opacity:0;r:6}50%{opacity:0.4;r:10}}
.hcc-footer{display:flex;justify-content:space-between;align-items:center;margin-top:6px;font-size:10px;color:rgba(255,255,255,0.15)}
.hcc-footer .green{color:#34C759;font-weight:600}
.hcc-ohlc{display:flex;gap:12px;font-family:'JetBrains Mono',monospace;font-size:9px;color:rgba(255,255,255,0.2)}
.hcc-ohlc span{display:flex;gap:3px}.hcc-ohlc b{color:rgba(255,255,255,0.4);font-weight:600}

/* Keygent card */
.hkg{border-radius:14px;background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.06);text-align:left;overflow:hidden}
.hkg-hdr{padding:12px 16px 10px;border-bottom:1px solid rgba(255,255,255,0.04)}
.hkg-top{display:flex;justify-content:space-between;align-items:flex-start}
.hkg-sym{font-family:'Space Grotesk',sans-serif;font-size:17px;font-weight:700;color:#fff}
.hkg-co{font-size:11px;color:rgba(255,255,255,0.35);margin-top:1px}
.hkg-price{font-family:'JetBrains Mono',monospace;font-size:18px;font-weight:700;color:#fff;text-align:right}
.hkg-sig{display:flex;align-items:center;gap:8px;padding:8px 16px;background:rgba(255,255,255,0.015);border-bottom:1px solid rgba(255,255,255,0.04)}
.hkg-badge{padding:3px 8px;border-radius:5px;font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.05em;background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.4)}
.hkg-sc{font-family:'JetBrains Mono',monospace;font-size:10px;color:rgba(255,255,255,0.3)}
.hkg-cf{font-size:10px;color:rgba(255,255,255,0.3);margin-left:auto}
.hkg-ag{padding:8px 16px 10px}
.hkg-ag-t{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.08em;color:rgba(255,255,255,0.25);margin-bottom:6px}
.hkg-ar{display:flex;align-items:center;padding:4px 0;border-bottom:1px solid rgba(255,255,255,0.03)}
.hkg-ar:last-child{border:none}
.hkg-an{font-size:12px;font-weight:500;color:rgba(255,255,255,0.7);width:90px}
.hkg-as{font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:600;width:60px}
.hkg-as.buy{color:#34C759}.hkg-as.hold{color:rgba(255,255,255,0.4)}.hkg-as.bearish{color:#FF3B30}.hkg-as.neutral{color:rgba(255,255,255,0.4)}
.hkg-ac{font-size:10px;color:rgba(255,255,255,0.3);width:36px;text-align:right}
.hkg-ab{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,0.06);margin:0 8px;overflow:hidden}
.hkg-abf{height:100%;border-radius:2px;transition:width 0.8s ease}
.hkg-abf.buy{background:#34C759}.hkg-abf.hold{background:rgba(255,255,255,0.2)}.hkg-abf.bearish{background:#FF3B30}.hkg-abf.neutral{background:rgba(255,255,255,0.15)}
.hkg-qt{padding:10px 16px;border-top:1px solid rgba(255,255,255,0.04)}
.hkg-qh{font-size:13px;font-weight:600;color:#fff;margin-bottom:6px;display:flex;align-items:center;gap:5px}
.hkg-qi{font-size:11px;line-height:1.5;color:rgba(255,255,255,0.45);margin-bottom:4px;padding-left:12px;position:relative}
.hkg-qi::before{content:'';position:absolute;left:0;top:7px;width:4px;height:4px;border-radius:50%}
.hkg-qi.bull::before{background:#34C759}.hkg-qi.bear::before{background:#FF3B30}
.hkg-qi.verdict{padding-left:0;font-weight:500;color:rgba(255,255,255,0.6);font-style:italic;margin-top:6px}.hkg-qi.verdict::before{display:none}
.hkg-m{padding:8px 16px 10px;border-top:1px solid rgba(255,255,255,0.04);display:flex;flex-wrap:wrap}
.hkg-mi{width:33.33%;padding:4px;text-align:center}
.hkg-mv{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:600;color:#fff}
.hkg-ml{font-size:9px;color:rgba(255,255,255,0.25);margin-top:1px}
.hkg-mv.green{color:#34C759}.hkg-mv.red{color:#FF3B30}.hkg-mv.amber{color:#FBBC04}

.hero-dlbl{font-size:11px;color:rgba(255,255,255,0.15);margin-top:8px;text-align:center;min-height:16px;transition:opacity 0.3s}

.hero-sub-hidden{opacity:0 !important;transform:translateY(12px);transition:opacity 0.7s ease,transform 0.7s ease;animation:none !important}
.hero-sub-show{opacity:1 !important;transform:none}

/* World's first superscript */
.wf-super{font-family:'JetBrains Mono',monospace;font-size:11px;font-weight:500;letter-spacing:0.14em;text-transform:uppercase;color:rgba(255,255,255,0.55);margin-bottom:12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;position:relative;padding:6px 20px;border-radius:10px;background:transparent;border:none;overflow:hidden}
.wf-super::before,.wf-super::after{content:'';width:32px;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.12),transparent);flex-shrink:0}
/* Spotlight sweep — wide soft glow that pans across like a distant light source */
.wf-super .wf-sweep{position:absolute;top:-50%;left:-200%;width:200%;height:200%;background:radial-gradient(ellipse 40% 80% at center,rgba(255,255,255,0.12) 0%,rgba(255,255,255,0.04) 30%,transparent 65%);pointer-events:none;opacity:0}
.wf-super.hero-sub-show .wf-sweep{opacity:1;animation:wf-spot 3.5s cubic-bezier(0.15,0.5,0.35,1) 0.8s forwards}
@keyframes wf-spot{0%{left:-200%;opacity:0}15%{opacity:1}85%{opacity:1}100%{left:200%;opacity:0}}

html.light .wf-super{color:rgba(0,0,0,0.5);background:transparent}
html.light .wf-super::before,html.light .wf-super::after{background:linear-gradient(90deg,transparent,rgba(0,0,0,0.08),transparent)}
html.light .wf-super .wf-sweep{background:radial-gradient(ellipse 40% 80% at center,rgba(255,255,255,0.6) 0%,rgba(255,255,255,0.25) 30%,transparent 65%)}
@media(max-width:480px){.wf-super{font-size:9px;letter-spacing:0.1em;gap:8px;margin-bottom:14px;padding:5px 14px;border-radius:8px}.wf-super::before,.wf-super::after{width:20px}}

/* ── Frosted orb ambient ── */
.hero-orb-layer{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.hero-orb-bounds{position:absolute !important;top:0;left:0;right:0;bottom:auto;height:700px;-webkit-mask-image:linear-gradient(to bottom,#000 60%,transparent);mask-image:linear-gradient(to bottom,#000 60%,transparent)}
@media(max-width:768px){.hero-orb-bounds{height:500px}}
@media(max-width:480px){.hero-orb-bounds{height:400px}}
.hero-orb{position:absolute;border-radius:50%;pointer-events:none;will-change:transform;filter:blur(12px)}
.hero-orb-a{width:569px;height:569px;top:50%;left:50%;margin:-284px 0 0 -284px;background:radial-gradient(circle at 40% 40%,#7c6aef,rgba(124,106,239,0.5) 40%,rgba(124,106,239,0.1) 65%,transparent 75%);opacity:0.8}
.hero-orb-b{width:515px;height:515px;top:50%;left:50%;margin:-257px 0 0 -257px;background:radial-gradient(circle at 60% 40%,#2dd4a8,rgba(45,212,168,0.5) 40%,rgba(45,212,168,0.1) 65%,transparent 75%);opacity:0.53}
.hero-frost{position:absolute;inset:0;z-index:1;pointer-events:none;background:rgba(8,9,15,0.31);backdrop-filter:blur(104px);-webkit-backdrop-filter:blur(104px)}
html.light .hero-frost{display:none}
html.light .hero-orb-a{opacity:0.15;filter:blur(120px)}
html.light .hero-orb-b{opacity:0.12;filter:blur(120px)}

/* Touch point indicator */
.hero-touch{position:fixed;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,0.08);border:2px solid rgba(255,255,255,0.18);pointer-events:none;opacity:0;transform:scale(0.4);transition:opacity 0.12s ease,transform 0.12s ease;z-index:200;margin-left:-22px;margin-top:-22px}
.hero-touch.vis{opacity:1;transform:scale(1)}
.hero-touch.press{transform:scale(0.82);background:rgba(255,255,255,0.15);transition:transform 0.08s ease}

/* Send button */
.hero-kb-send{display:none;width:28px;height:28px;border-radius:50%;background:#7c6aef;border:none;color:#fff;font-size:15px;font-weight:700;margin-left:auto;flex-shrink:0;align-items:center;justify-content:center;line-height:28px;text-align:center;cursor:default}
.hero-kb-send.vis{display:flex}

/* News card */
.hnc{border-radius:14px;background:rgba(255,255,255,0.025);border:1px solid rgba(255,255,255,0.06);overflow:hidden}
.hnc-hdr{padding:10px 16px;font-size:11px;font-weight:600;color:rgba(255,255,255,0.35);text-transform:uppercase;letter-spacing:0.06em;border-bottom:1px solid rgba(255,255,255,0.04);display:flex;align-items:center;justify-content:space-between}
.hnc-sent{font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:600;letter-spacing:0.04em;text-transform:uppercase;padding:2px 8px;border-radius:5px}
.hnc-sent-pos{color:#34C759;background:rgba(52,199,89,0.08);border:1px solid rgba(52,199,89,0.12)}
.hnc-sent-neg{color:#FF3B30;background:rgba(255,59,48,0.08);border:1px solid rgba(255,59,48,0.12)}
.hnc-list{max-height:150px;overflow-y:auto}
.hnc-item{padding:10px 16px;border-bottom:1px solid rgba(255,255,255,0.03);border-left:2px solid transparent}
.hnc-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.hnc-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;margin-top:5px}
.hnc-item:last-child{border:none}
.hnc-title{font-size:13px;font-weight:500;color:rgba(255,255,255,0.75);line-height:1.4;margin-bottom:2px}
.hnc-meta{font-size:10px;color:rgba(255,255,255,0.2)}

/* Inserted text style */
.hero-kb-inserted{font-family:'JetBrains Mono',monospace;font-size:13px;color:rgba(255,255,255,0.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Send fly-away */
@keyframes hero-fly-send{
  0%{opacity:1;transform:translateX(0) scale(1)}
  60%{opacity:0.6;transform:translateX(40px) scale(0.92)}
  100%{opacity:0;transform:translateX(120px) scale(0.8)}
}
.hero-kb-sent .hero-kb-chars{animation:hero-fly-send 0.45s cubic-bezier(0.4,0,1,1) forwards}
.hero-kb-sent .hero-kb-send{animation:hero-fly-send 0.45s cubic-bezier(0.4,0,1,1) 0.05s forwards}

/* Invest order toast */
.hiv{display:flex;align-items:center;gap:14px;padding:16px 20px;border-radius:14px;background:rgba(52,199,89,0.06);border:1px solid rgba(52,199,89,0.15)}
.hiv-icon{width:36px;height:36px;border-radius:50%;background:rgba(52,199,89,0.12);color:#34C759;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hiv-title{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:15px;color:#fff}
.hiv-detail{font-family:'JetBrains Mono',monospace;font-size:13px;color:rgba(255,255,255,0.5);margin-top:2px}
.hiv-total{font-family:'JetBrains Mono',monospace;font-size:12px;color:#34C759;font-weight:600;margin-top:4px}
html.light .hiv{background:rgba(52,199,89,0.04);border-color:rgba(52,199,89,0.12)}
html.light .hiv-icon{background:rgba(52,199,89,0.08)}
html.light .hiv-title{color:#1a1a1a}
html.light .hiv-detail{color:rgba(0,0,0,0.45)}
html.light .hiv-total{color:#16a34a}

/* Replay button */
.hero-replay{display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:16px;padding:8px 20px;border-radius:20px;background:rgba(124,106,239,0.08);border:1px solid rgba(124,106,239,0.2);color:#9b8aff;font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;cursor:pointer;opacity:0;transform:translateY(8px);transition:opacity 0.5s ease,transform 0.5s ease,background 0.2s,border-color 0.2s}
.hero-replay.vis{opacity:1;transform:none}
.hero-replay:hover{background:rgba(124,106,239,0.15);border-color:rgba(124,106,239,0.35)}
.hero-replay svg{width:15px;height:15px;fill:currentColor;flex-shrink:0}

/* ── Mobile: hero demo ── */
@media (max-width: 480px) {
  .hero-kb-wrap{max-width:calc(100% - 16px) !important}
  .hero-kb-field{padding:10px 12px;min-height:42px}
  .hero-kb-dollar{font-size:15px}
  .hero-kb-chars{font-size:15px}
  .hero-kb-ph{font-size:12px}
  .hero-kb-send{width:26px;height:26px;font-size:13px;line-height:26px}
  .hero-kb-sug.vis{padding:7px 10px;gap:5px;flex-wrap:nowrap;justify-content:flex-start}
  .hero-pill{padding:7px 14px;font-size:12px;gap:5px;border-radius:10px;flex-shrink:0}
  .hero-pill .hico{font-size:13px}
  .hero-result{max-width:calc(100% - 16px) !important;margin:6px auto 0}
  .hpc{padding:12px 14px}
  .hpc-logo{width:30px;height:30px;font-size:11px}
  .hpc-sym{font-size:14px}
  .hpc-name{font-size:10px}
  .hpc-price{font-size:17px}
  .hpc-ch{font-size:11px}
  .hcc{padding:12px 14px 10px}
  .hcc-sym{font-size:13px}
  .hcc-pr{font-size:15px}
  .hcc-ch{font-size:10px}
  .hcc-range{font-size:9px}
  .hcc-yl{font-size:7px}
  .hcc-ohlc{gap:8px;font-size:8px}
  .hnc-item{padding:8px 12px}
  .hnc-title{font-size:12px}
  .hnc-hdr{padding:8px 12px;font-size:10px}
  .hkg{font-size:12px}
  .hkg-hdr{padding:10px 12px 8px}
  .hkg-sym{font-size:15px}
  .hkg-co{font-size:10px}
  .hkg-price{font-size:15px}
  .hkg-sig{padding:6px 12px}
  .hkg-ag{padding:6px 12px 8px}
  .hkg-an{font-size:11px;width:78px}
  .hkg-as{font-size:9px;width:52px}
  .hkg-ac{font-size:9px;width:30px}
  .hkg-qt{padding:8px 12px}
  .hkg-qh{font-size:12px}
  .hkg-qi{font-size:10px}
  .hkg-m{padding:6px 12px 8px}
  .hkg-mi{padding:3px}
  .hkg-mv{font-size:11px}
  .hkg-ml{font-size:8px}
  .hero-dlbl{font-size:10px}
  .hero-kb-inserted{font-size:11px}
}

/* ── Light mode: hero demo ── */
html.light .hero-kb-bar{background:#fff;border-color:rgba(0,0,0,0.1);box-shadow:0 2px 12px rgba(0,0,0,0.06)}
html.light .hero-kb-wrap.popped .hero-kb-bar{border-color:rgba(124,106,239,0.35);box-shadow:0 0 0 4px rgba(124,106,239,0.08),0 2px 12px rgba(0,0,0,0.06)}
html.light .hero-kb-field{color:#1a1a1a}
html.light .hero-kb-dollar{color:#7c6aef}
html.light .hero-kb-chars{color:#1a1a1a}
html.light .hero-kb-cur{background:#7c6aef}
html.light .hero-kb-ph{color:rgba(0,0,0,0.3)}
html.light .hero-kb-sug{background:rgba(245,245,247,0.98);border-top-color:rgba(0,0,0,0.06)}
html.light .hero-pill{background:rgba(0,0,0,0.03);border-color:rgba(0,0,0,0.08);color:rgba(0,0,0,0.45)}
html.light .hero-pill.hl{background:linear-gradient(135deg,rgba(124,106,239,0.12),rgba(45,212,168,0.06));border-color:rgba(124,106,239,0.3);color:#5b4bc7;box-shadow:0 0 12px rgba(124,106,239,0.08);text-shadow:none}
html.light .hero-pill.tapped{background:linear-gradient(135deg,rgba(124,106,239,0.2),rgba(45,212,168,0.08));border-color:rgba(124,106,239,0.4);color:#5b4bc7;box-shadow:0 0 16px rgba(124,106,239,0.12)}
html.light .hero-kb-inserted{color:rgba(0,0,0,0.5)}
/* Price card */
html.light .hpc{background:#fff;border-color:rgba(0,0,0,0.08);box-shadow:0 2px 8px rgba(0,0,0,0.04)}
html.light .hpc-sym{color:#1a1a1a}
html.light .hpc-name{color:rgba(0,0,0,0.4)}
html.light .hpc-price{color:#1a1a1a}
html.light .hpc-logo{background:linear-gradient(135deg,rgba(124,106,239,0.1),rgba(45,212,168,0.08));color:#7c6aef}
/* Chart card */
html.light .hcc{background:#fff;border-color:rgba(0,0,0,0.08);box-shadow:0 2px 8px rgba(0,0,0,0.04)}
html.light .hcc-sym{color:#1a1a1a}
html.light .hcc-pr{color:#1a1a1a}
html.light .hcc-range{color:rgba(0,0,0,0.3)}
html.light .hcc-range .active{background:rgba(124,106,239,0.1);color:#5b4bc7}
html.light .hcc-grid{stroke:rgba(0,0,0,0.04)}
html.light .hcc-yl{color:rgba(0,0,0,0.2)}
html.light .hcc-footer{color:rgba(0,0,0,0.25)}
html.light .hcc-footer .green{color:#16a34a}
html.light .hcc-ohlc{color:rgba(0,0,0,0.25)}
html.light .hcc-ohlc b{color:rgba(0,0,0,0.45)}
html.light .hcc-dot{stroke:#fff}
html.light .hcc-pr{color:#1a1a1a}
/* News card */
html.light .hnc{background:#fff;border-color:rgba(0,0,0,0.08);box-shadow:0 2px 8px rgba(0,0,0,0.04)}
html.light .hnc-hdr{color:rgba(0,0,0,0.4);border-bottom-color:rgba(0,0,0,0.06)}
html.light .hnc-item{border-bottom-color:rgba(0,0,0,0.04)}
html.light .hnc-title{color:rgba(0,0,0,0.8)}
html.light .hnc-meta{color:rgba(0,0,0,0.35)}
html.light .hnc-sent-pos{color:#16a34a;background:rgba(22,163,74,0.06);border-color:rgba(22,163,74,0.1)}
html.light .hnc-sent-neg{color:#dc2626;background:rgba(220,38,38,0.06);border-color:rgba(220,38,38,0.1)}
/* Keygent card */
html.light .hkg{background:#fff;border-color:rgba(0,0,0,0.08);box-shadow:0 2px 8px rgba(0,0,0,0.04)}
html.light .hkg-hdr{border-bottom-color:rgba(0,0,0,0.06)}
html.light .hkg-sym{color:#1a1a1a}
html.light .hkg-co{color:rgba(0,0,0,0.4)}
html.light .hkg-price{color:#1a1a1a}
html.light .hkg-sig{background:rgba(0,0,0,0.02);border-bottom-color:rgba(0,0,0,0.06)}
html.light .hkg-badge{background:rgba(0,0,0,0.06);color:rgba(0,0,0,0.45)}
html.light .hkg-sc{color:rgba(0,0,0,0.35)}
html.light .hkg-cf{color:rgba(0,0,0,0.35)}
html.light .hkg-ag-t{color:rgba(0,0,0,0.3)}
html.light .hkg-an{color:rgba(0,0,0,0.6)}
html.light .hkg-as.hold{color:rgba(0,0,0,0.4)}
html.light .hkg-as.neutral{color:rgba(0,0,0,0.4)}
html.light .hkg-ac{color:rgba(0,0,0,0.3)}
html.light .hkg-ab{background:rgba(0,0,0,0.06)}
html.light .hkg-abf.hold{background:rgba(0,0,0,0.2)}
html.light .hkg-abf.neutral{background:rgba(0,0,0,0.15)}
html.light .hkg-ar{border-bottom-color:rgba(0,0,0,0.04)}
html.light .hkg-qt{border-top-color:rgba(0,0,0,0.06)}
html.light .hkg-qh{color:#1a1a1a}
html.light .hkg-qi{color:rgba(0,0,0,0.5)}
html.light .hkg-qi.verdict{color:rgba(0,0,0,0.6)}
html.light .hkg-m{border-top-color:rgba(0,0,0,0.06)}
html.light .hkg-mv{color:#1a1a1a}
html.light .hkg-ml{color:rgba(0,0,0,0.3)}
/* Caption + touch */
html.light .hero-dlbl{color:rgba(0,0,0,0.2)}
html.light .hero-touch{background:rgba(0,0,0,0.06);border-color:rgba(0,0,0,0.15)}
html.light .hero-touch.press{background:rgba(0,0,0,0.12)}
/* Replay */
html.light .hero-replay{background:rgba(0,0,0,0.03);border-color:rgba(0,0,0,0.1);color:rgba(0,0,0,0.35)}
html.light .hero-replay:hover{background:rgba(124,106,239,0.06);border-color:rgba(124,106,239,0.2);color:#5b4bc7}
