/* =========================================================================
   Ghost.AI — Landing page stylesheet (Phase 1)
   Dark fintech tone. Self-contained: system font stack, no CDN.
   ========================================================================= */

:root {
  /* Palette */
  --ink:        #080b12;   /* base background */
  --ink-2:      #0d121d;   /* panel */
  --ink-3:      #131a28;   /* raised panel */
  --line:       #1f2738;   /* hairline borders */
  --gold:       #d6ae60;   /* primary accent */
  --gold-hi:    #f0d08a;   /* bright gold */
  --cyan:       #56ccde;   /* secondary accent */
  --text:       #ecf0f8;   /* primary text */
  --muted:      #99a3b6;   /* secondary text */
  --muted-2:    #6b7589;   /* tertiary / legal */

  /* Type scale */
  --f-sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR",
            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Malgun Gothic", sans-serif;
  --f-mono: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace,
            Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Ambient background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(214,174,96,0.14), transparent 60%),
    radial-gradient(1000px 700px at 100% 110%, rgba(86,204,222,0.10), transparent 60%),
    linear-gradient(180deg, #0a0e17 0%, #070a11 100%);
}
.bg::after {
  /* faint grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 70% at 50% 35%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 35%, #000 40%, transparent 100%);
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(8,11,18,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(8,11,18,0.82);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 1.42rem; font-weight: 800; letter-spacing: -0.01em; }
.brand b span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 0.9rem; color: var(--muted); padding: 8px 14px;
  border-radius: 999px; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); background: rgba(255,255,255,0.04); }
/* emphasized "오늘의 시그널" nav item — cyan pill + live pulse, invites the click */
.nav-links a.nav-signal {
  display: inline-flex; align-items: center; gap: 7px;
  color: #04222a; font-weight: 700;
  background: linear-gradient(135deg, #74e4f6, var(--cyan));
  padding: 8px 16px;
  box-shadow: 0 6px 18px -8px rgba(86,204,222,0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a.nav-signal:hover, .nav-links a.nav-signal:focus-visible {
  color: #04222a;
  background: linear-gradient(135deg, #8aeaf8, #6bd3e6);
  transform: translateY(-1px);
  box-shadow: 0 11px 26px -8px rgba(86,204,222,0.85);
}
.nav-links a.nav-signal .live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #04222a; animation: btnLivePulse 1.8s ease-out infinite;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 0 72px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-hi); font-weight: 700;
  padding: 7px 14px; border: 1px solid rgba(214,174,96,0.32);
  border-radius: 999px; background: rgba(214,174,96,0.06);
  width: max-content;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(86,204,222,0.6);
  animation: pulse 2.4s infinite var(--ease);
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(86,204,222,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(86,204,222,0); }
  100% { box-shadow: 0 0 0 0 rgba(86,204,222,0); }
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(2.4rem, 7vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 .mark { color: var(--gold); }
.hero .tag-en {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 600; color: var(--gold-hi);
  letter-spacing: 0.01em;
}
.hero .lede {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  color: var(--muted);
}

/* CTA buttons */
.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 40px;
}
.btn {
  --bg: var(--gold);
  display: inline-flex; align-items: center; gap: 11px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 1.02rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #1a1305;
  box-shadow: 0 10px 30px -10px rgba(214,174,96,0.55);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -12px rgba(214,174,96,0.7);
}
.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(86,204,222,0.55);
  background: rgba(86,204,222,0.08);
  box-shadow: 0 16px 38px -14px rgba(86,204,222,0.4);
}
/* signal CTA — cyan accent + live pulse so "오늘의 시그널" stands out next to gold */
.btn-signal {
  background: linear-gradient(135deg, #74e4f6, var(--cyan));
  color: #042a33;
  box-shadow: 0 10px 30px -10px rgba(86,204,222,0.6);
}
.btn-signal:hover, .btn-signal:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -12px rgba(86,204,222,0.85);
}
.btn-signal .live-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: #042a33;
  animation: btnLivePulse 1.8s ease-out infinite;
}
@keyframes btnLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(4,42,51,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(4,42,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(4,42,51,0); }
}

.btn .yt { color: #ff3d3d; }

/* trust strip */
.trust {
  display: flex; flex-wrap: wrap; gap: 26px 40px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust .item .n {
  font-family: var(--f-mono);
  font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}
.trust .item .n em { color: var(--gold); font-style: normal; }
.trust .item .l { font-size: 0.84rem; color: var(--muted); margin-top: 2px; }

/* ---------- Performance highlight banner (landing) ---------- */
.perf-section { padding: 40px 0 20px; }
.perf-banner {
  position: relative;
  display: grid; gap: 30px;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid rgba(214,174,96,0.30);
  background:
    radial-gradient(560px 300px at 6% -20%, rgba(214,174,96,0.16), transparent 70%),
    radial-gradient(560px 320px at 104% 120%, rgba(86,204,222,0.10), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.perf-banner:hover, .perf-banner:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(214,174,96,0.55);
  box-shadow: 0 28px 64px -30px rgba(214,174,96,0.5);
}
.perf-copy .kicker {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-hi); font-weight: 700;
}
.perf-copy h2 {
  margin: 12px 0 0; font-size: clamp(1.7rem, 5vw, 2.7rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.06;
}
.perf-copy h2 .mark { color: var(--gold); }
.perf-copy p { margin: 14px 0 0; color: var(--muted); font-size: 0.97rem; max-width: 480px; }
.perf-copy p b { color: var(--text); font-weight: 700; }
.perf-copy .go {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--gold-hi);
  transition: gap 0.25s var(--ease);
}
.perf-banner:hover .go { gap: 14px; }
.perf-copy .go svg { width: 18px; height: 18px; }
.perf-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.perf-stats .ps {
  padding: 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.perf-stats .ps-n {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem); letter-spacing: -0.02em;
  color: var(--text);
}
.perf-stats .ps-n.up   { color: #4ad991; }
.perf-stats .ps-n.down { color: #ff6b6b; }
.perf-stats .ps-l { margin-top: 4px; font-size: 0.78rem; color: var(--muted-2); }

@media (max-width: 860px) {
  .perf-banner { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
}
@media (max-width: 400px) {
  .perf-stats { grid-template-columns: 1fr; }
}

/* ---------- Channels section ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700;
}
.section-head h2 {
  margin: 12px 0 0; font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em;
}
.section-head p { margin: 14px 0 0; color: var(--muted); }

.cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px 220px at 20% -10%, var(--glow), transparent 70%);
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--edge); box-shadow: 0 26px 60px -28px var(--glow); }
.card:hover::before { opacity: 1; }
.card.blog  { --glow: rgba(214,174,96,0.30); --edge: rgba(214,174,96,0.5); }
.card.video { --glow: rgba(255,61,61,0.26);  --edge: rgba(255,61,61,0.5); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card.blog .icon svg { color: var(--gold); }
.card.video .icon svg { color: #ff3d3d; }
.card h3 { margin: 0; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin: 10px 0 24px; color: var(--muted); font-size: 0.97rem; }
.card .go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--text);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.card.blog:hover  .go { color: var(--gold-hi); }
.card.video:hover .go { color: #ff6b6b; }
.card:hover .go { gap: 14px; }
.card .go svg { width: 18px; height: 18px; }
.card .full-link { position: absolute; inset: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35));
  padding: 56px 0 44px;
}
.foot-top {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px;
  padding-bottom: 30px; border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 11px; }
.foot-brand img { width: 28px; height: 28px; }
.foot-brand b { font-weight: 800; }
.foot-brand b span { color: var(--gold); }
.foot-links { display: flex; gap: 10px; }
.foot-links a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text); border-color: var(--gold); background: rgba(214,174,96,0.07); }
.foot-links svg { width: 20px; height: 20px; }

.legal {
  margin-top: 26px;
  font-size: 0.8rem; color: var(--muted-2); line-height: 1.7;
}
.legal p { margin: 0 0 8px; }
.legal strong { color: var(--muted); font-weight: 600; }
.copyright { margin-top: 20px; font-size: 0.8rem; color: var(--muted-2); }

/* =========================================================================
   Signal status page (signal.html) — reuses the dark fintech system above.
   ========================================================================= */

/* Active nav link */
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.06); }

/* Signal hero */
.sig-hero { padding: 56px 0 8px; }
.sig-hero .eyebrow { margin-bottom: 22px; }
.sig-title {
  margin: 0; font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.05;
}
.sig-title .ticker { color: var(--gold); }
.sig-sub { margin: 12px 0 0; color: var(--muted); max-width: 600px; font-size: clamp(0.98rem, 2.2vw, 1.1rem); }
.sig-asof {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; font-size: 0.86rem; color: var(--muted-2);
  font-family: var(--f-mono);
}
.sig-asof b { color: var(--muted); font-weight: 600; }

/* Status panel — the big "today" badge card */
.status-panel {
  position: relative;
  margin-top: 30px;
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  overflow: hidden;
}
.status-panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0.9;
  background: radial-gradient(520px 280px at 12% -20%, var(--stat-glow, rgba(214,174,96,0.18)), transparent 70%);
  pointer-events: none;
}
.status-panel > * { position: relative; }

.status-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
  border: 1px solid var(--stat-edge, var(--line));
  background: var(--stat-bg, rgba(255,255,255,0.04));
  color: var(--stat-fg, var(--text));
}
.status-chip .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--stat-fg, var(--cyan));
}
.status-chip.live .dot {
  box-shadow: 0 0 0 0 var(--stat-fg);
  animation: pulse-stat 2.4s infinite var(--ease);
}
@keyframes pulse-stat {
  0%   { box-shadow: 0 0 0 0 var(--stat-ring, rgba(86,204,222,0.5)); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.status-big {
  margin: 22px 0 0;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  color: var(--stat-fg, var(--text));
}
.status-note { margin: 12px 0 0; color: var(--muted); max-width: 560px; }
.status-frame {
  margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 0.8rem; line-height: 1.65; color: var(--muted-2); max-width: 620px;
}

/* signal history (track record) table */
.sig-hist-head { max-width: 680px; }
.sig-hist-head h2 { margin: 12px 0 0; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.sig-hist-head p { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.sig-hist-wrap {
  margin-top: 24px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,0.02);
}
table.sig-hist { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
.sig-hist thead th {
  text-align: left; padding: 14px 18px; white-space: nowrap;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); border-bottom: 1px solid var(--line);
}
.sig-hist tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.sig-hist tbody tr:last-child td { border-bottom: none; }
.sig-hist tbody tr:hover td { background: rgba(255,255,255,0.02); }
.sig-hist .hist-empty td { text-align: center; color: var(--muted-2); padding: 26px; }
.sig-hist .up { color: #4ad991; } .sig-hist .down { color: #ff6b6b; } .sig-hist .muted { color: var(--muted-2); }
.sig-hist .pub { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.hist-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  border: 1px solid var(--stat-edge, var(--line)); color: var(--stat-fg, var(--muted));
  background: var(--stat-bg, rgba(255,255,255,0.04));
}
.hist-badge[data-action="CASH"]    { --stat-fg: var(--muted);  --stat-edge: var(--line); --stat-bg: rgba(255,255,255,0.04); }
.hist-badge[data-action="HOLD"]    { --stat-fg: var(--cyan);   --stat-edge: rgba(86,204,222,0.4);  --stat-bg: rgba(86,204,222,0.08); }
.hist-badge[data-action="NEW_BUY"] { --stat-fg: #4ad991;       --stat-edge: rgba(74,217,145,0.45); --stat-bg: rgba(74,217,145,0.1); }
.hist-badge[data-action="SELL"]    { --stat-fg: #ff6b6b;       --stat-edge: rgba(255,107,107,0.45);--stat-bg: rgba(255,107,107,0.1); }

/* Metric grid (close / change / entry info) */
.metrics {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.metric .k {
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.metric .v {
  margin-top: 6px; font-family: var(--f-mono);
  font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.metric .v small { font-size: 0.62em; color: var(--muted); font-weight: 600; }
.metric .v.up   { color: #4ad991; }
.metric .v.down { color: #ff6b6b; }
.metric .v.muted { color: var(--muted); }

/* Status color themes per action */
.status-panel[data-action="CASH"]    { --stat-glow: rgba(150,160,178,0.16); }
.status-chip[data-action="CASH"]     { --stat-fg: var(--muted); --stat-edge: var(--line); --stat-bg: rgba(255,255,255,0.04); }
.status-big[data-action="CASH"]      { --stat-fg: var(--text); }

.status-panel[data-action="HOLD"]    { --stat-glow: rgba(86,204,222,0.18); }
.status-chip[data-action="HOLD"]     { --stat-fg: var(--cyan); --stat-edge: rgba(86,204,222,0.4); --stat-bg: rgba(86,204,222,0.08); --stat-ring: rgba(86,204,222,0.5); }
.status-big[data-action="HOLD"]      { --stat-fg: var(--cyan); }

.status-panel[data-action="NEW_BUY"] { --stat-glow: rgba(74,217,145,0.2); }
.status-chip[data-action="NEW_BUY"]  { --stat-fg: #4ad991; --stat-edge: rgba(74,217,145,0.45); --stat-bg: rgba(74,217,145,0.1); --stat-ring: rgba(74,217,145,0.5); }
.status-big[data-action="NEW_BUY"]   { --stat-fg: #4ad991; }

.status-panel[data-action="SELL"]    { --stat-glow: rgba(255,107,107,0.2); }
.status-chip[data-action="SELL"]     { --stat-fg: #ff6b6b; --stat-edge: rgba(255,107,107,0.45); --stat-bg: rgba(255,107,107,0.1); --stat-ring: rgba(255,107,107,0.5); }
.status-big[data-action="SELL"]      { --stat-fg: #ff6b6b; }

/* Chart block */
.chart-block { margin-top: 30px; }
.chart-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}
.chart-frame img { width: 100%; height: auto; display: block; }
.chart-cap {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: baseline; justify-content: space-between;
  margin-top: 12px; font-size: 0.82rem; color: var(--muted-2);
}
.chart-cap .conf {
  font-family: var(--f-mono); letter-spacing: 0.06em;
  color: var(--muted); font-size: 0.78rem;
}

/* Bottom CTA on signal page */
.sig-cta {
  margin-top: 18px; padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  text-align: center;
}
.sig-cta h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.sig-cta p { margin: 12px auto 26px; color: var(--muted); max-width: 520px; }
.sig-cta .cta-row { justify-content: center; margin-top: 0; }

.section-pad { padding: 36px 0 80px; }

@media (max-width: 760px) {
  .status-panel { padding: 28px; }
  .sig-cta { padding: 30px; }
  .sig-hero { padding: 40px 0 4px; }
}

/* =========================================================================
   Backtest performance page (backtest.html) — reuses the dark fintech system.
   PUBLIC: no model-internal indicators referenced.
   ========================================================================= */

/* Hero */
.bt-hero { padding: 56px 0 8px; }
.bt-hero .eyebrow { margin-bottom: 22px; }
.bt-title {
  margin: 0; font-size: clamp(1.9rem, 5.6vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.08;
}
.bt-title .mark { color: var(--gold); }
.bt-sub { margin: 16px 0 0; color: var(--muted); max-width: 620px; font-size: clamp(0.98rem, 2.2vw, 1.12rem); }
.bt-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin-top: 18px; font-size: 0.86rem; color: var(--muted-2);
  font-family: var(--f-mono);
}
.bt-meta b { color: var(--muted); font-weight: 600; }
.bt-meta .sep { color: var(--line); }

/* Hypothetical/simulation notice banner */
.bt-notice {
  display: flex; gap: 13px; align-items: flex-start;
  margin-top: 26px; padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(214,174,96,0.32);
  background: rgba(214,174,96,0.06);
}
.bt-notice svg { width: 22px; height: 22px; flex: none; color: var(--gold-hi); margin-top: 1px; }
.bt-notice p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.bt-notice b { color: var(--text); font-weight: 700; }

/* Section spacing for backtest content blocks */
.bt-section { padding: 56px 0; }
.bt-section:first-of-type { padding-top: 48px; }

/* Metric cards */
.bt-cards {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
.bt-cards.quad { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.bt-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  overflow: hidden;
}
.bt-card.hero-stat {
  padding: 32px 30px;
  background:
    radial-gradient(440px 220px at 12% -30%, rgba(214,174,96,0.16), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border-color: rgba(214,174,96,0.28);
}
.bt-card .k {
  font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.bt-card .v {
  margin-top: 10px; font-family: var(--f-mono);
  font-size: clamp(1.3rem, 3.6vw, 1.85rem); font-weight: 700;
  color: var(--text); letter-spacing: -0.01em; line-height: 1.05;
}
.bt-card .v.big { font-size: clamp(1.9rem, 6vw, 3rem); }
.bt-card .v.up   { color: #4ad991; }
.bt-card .v.down { color: #ff6b6b; }
.bt-card .sub { margin-top: 8px; font-size: 0.86rem; color: var(--muted); }
.bt-card .sub span { color: var(--gold-hi); font-weight: 600; }

/* Comparison table */
.bt-table-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  overflow-x: auto;
}
.bt-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.96rem; min-width: 540px;
}
.bt-table th, .bt-table td {
  padding: 16px 20px; text-align: right;
  border-bottom: 1px solid var(--line);
}
.bt-table thead th {
  font-size: 0.8rem; letter-spacing: 0.04em;
  color: var(--muted); font-weight: 700;
  text-transform: none;
  background: rgba(255,255,255,0.02);
}
.bt-table thead th.strat { color: var(--gold-hi); }
.bt-table tbody th[scope="row"] {
  text-align: left; color: var(--muted); font-weight: 600;
  font-size: 0.9rem;
}
.bt-table tbody th[scope="row"] span { color: var(--muted-2); font-weight: 400; }
.bt-table td {
  font-family: var(--f-mono); font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
}
.bt-table td.strat {
  background: rgba(214,174,96,0.06);
  border-left: 1px solid rgba(214,174,96,0.16);
  border-right: 1px solid rgba(214,174,96,0.16);
}
.bt-table tbody tr:last-child td,
.bt-table tbody tr:last-child th { border-bottom: none; }
.bt-table td.up   { color: #4ad991; }
.bt-table td.down { color: #ff6b6b; }
.bt-table td.down.strong { color: #ff4d4d; }

/* Highlight chips below table */
.bt-highlights {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}
.bt-highlights .hl {
  padding: 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.bt-highlights .hl-n {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -0.02em;
  color: var(--text);
}
.bt-highlights .hl-n.up { color: var(--gold-hi); }
.bt-highlights .hl-l { margin-top: 6px; font-size: 0.86rem; color: var(--muted); }

/* Plain-language explanation cards */
.bt-explain {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.ex-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.ex-card h3 { margin: 0; font-size: 1.16rem; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.ex-card p { margin: 12px 0 0; color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.ex-card b { color: var(--text); font-weight: 700; }
.bt-method {
  margin: 26px auto 0; max-width: 720px; text-align: center;
  font-size: 0.86rem; color: var(--muted-2); line-height: 1.7;
}
.bt-method b { color: var(--muted); font-weight: 600; }

/* ---------- Core insight block (top emphasis) ---------- */
.bt-insight {
  position: relative;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(720px 360px at 8% -30%, rgba(214,174,96,0.12), transparent 70%),
    radial-gradient(620px 340px at 102% 130%, rgba(255,107,107,0.08), transparent 70%);
}
.bt-insight .eyebrow { margin-bottom: 24px; }
.ins-headline {
  margin: 0;
  font-size: clamp(2.1rem, 6.4vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.ins-headline .mark {
  background: linear-gradient(120deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.ins-lede {
  margin: 22px 0 0; max-width: 760px;
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--muted); line-height: 1.65;
}
.ins-lede b { color: var(--text); font-weight: 700; }

/* MDD three-way comparison */
.mdd-compare {
  margin-top: 36px; padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.mdd-row + .mdd-row { margin-top: 20px; }
.mdd-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.mdd-label { font-size: 0.96rem; font-weight: 700; color: var(--text); }
.mdd-tag {
  display: inline-block; margin-left: 8px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted-2); font-family: var(--f-mono);
}
.mdd-val {
  font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(1.2rem, 3.6vw, 1.7rem); letter-spacing: -0.02em;
  white-space: nowrap;
}
.mdd-bar {
  height: 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); overflow: hidden;
}
.mdd-bar span {
  display: block; height: 100%; border-radius: 999px;
  transition: width 1s var(--ease);
}
/* strategy = on par with 1x QQQ (good); tqqq = leverage drawdown (bad) */
.mdd-row.strat .mdd-val { color: var(--gold-hi); }
.mdd-row.strat .mdd-bar span { background: linear-gradient(90deg, var(--gold), var(--gold-hi)); }
.mdd-row.qqq   .mdd-val { color: var(--cyan); }
.mdd-row.qqq   .mdd-bar span { background: linear-gradient(90deg, rgba(86,204,222,0.7), var(--cyan)); }
.mdd-row.tqqq  .mdd-val { color: #ff5d5d; }
.mdd-row.tqqq  .mdd-bar span { background: linear-gradient(90deg, #b8403f, #ff5d5d); }
.mdd-foot {
  margin: 22px 0 0; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted-2); line-height: 1.6;
}
.mdd-foot b { color: var(--gold-hi); font-weight: 700; }

/* ---------- Long-hold zero-loss section ---------- */
.zl-hero {
  margin-top: 4px; padding: 34px 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(74,217,145,0.30);
  background:
    radial-gradient(560px 280px at 10% -30%, rgba(74,217,145,0.14), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  text-align: center;
}
.zl-big {
  display: block;
  font-size: clamp(1.9rem, 6vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--text);
}
.zl-big .mark { color: #4ad991; }
.zl-hero p {
  margin: 16px auto 0; max-width: 640px;
  color: var(--muted); font-size: clamp(0.97rem, 2.2vw, 1.08rem); line-height: 1.65;
}
.zl-hero p b { color: var(--text); font-weight: 700; }
.zl-hero p b span { color: #4ad991; }

.zl-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}
.zl-card {
  padding: 26px 22px; text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
}
.zl-card.best { border-color: rgba(74,217,145,0.4); background:
    radial-gradient(360px 200px at 50% -30%, rgba(74,217,145,0.12), transparent 70%),
    linear-gradient(180deg, var(--ink-3), var(--ink-2)); }
.zl-card .zl-h {
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.zl-rate {
  margin-top: 10px; font-family: var(--f-mono); font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.4rem); letter-spacing: -0.02em;
  color: var(--text);
}
.zl-rate.zero { color: #4ad991; }
.zl-card .zl-l { margin-top: 6px; font-size: 0.82rem; color: var(--muted); }

.zl-precise {
  margin: 22px auto 0; max-width: 760px; text-align: center;
  font-size: 0.92rem; color: var(--muted); line-height: 1.7;
}
.zl-precise b { color: var(--text); font-weight: 700; }

.zl-disclaimer {
  display: flex; gap: 13px; align-items: flex-start;
  margin: 22px auto 0; max-width: 760px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.zl-disclaimer svg { width: 22px; height: 22px; flex: none; color: var(--muted); margin-top: 1px; }
.zl-disclaimer p { margin: 0; font-size: 0.86rem; color: var(--muted-2); line-height: 1.65; }
.zl-disclaimer b { color: var(--muted); font-weight: 700; }

@media (max-width: 880px) {
  .bt-cards.quad { grid-template-columns: repeat(2, 1fr); }
  .bt-explain { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .zl-grid { grid-template-columns: 1fr; }
  .mdd-head { flex-direction: column; gap: 2px; }
}
@media (max-width: 760px) {
  .bt-hero { padding: 40px 0 4px; }
  .bt-section { padding: 44px 0; }
  .bt-cards { grid-template-columns: 1fr; }
  .bt-highlights { grid-template-columns: 1fr; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Responsive (mobile-first verified) ---------- */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { min-height: auto; padding: 44px 0 56px; }
  .cards { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .trust { gap: 22px 30px; }
  .section { padding: 64px 0; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 18px; }
  .card { padding: 26px; }
}

/* ---------- Accessibility / motion preference ---------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
