/* SignalEye public site. Dark by default, light via prefers-color-scheme. */
:root {
  --bg: #0b1115;
  --bg-alt: #0f171c;
  --surface: #131d23;
  --surface-2: #19262d;
  --border: #243540;
  --text: #e7eef1;
  --muted: #9bb0ba;
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-ink: #04201c;
  --accent-soft: rgba(45, 212, 191, .12);
  --up: #22c55e;
  --down: #f2626b;
  --warn: #f5b942;
  --focus: #7df3e1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f8f9;
    --bg-alt: #eaf1f3;
    --surface: #ffffff;
    --surface-2: #f0f5f6;
    --border: #d3dfe3;
    --text: #0c1a20;
    --muted: #4b5f68;
    --accent: #0f766e;
    --accent-strong: #0b5f58;
    --accent-ink: #ffffff;
    --accent-soft: rgba(15, 118, 110, .1);
    --up: #15803d;
    --down: #c42b35;
    --warn: #a15c00;
    --focus: #0b5f58;
    --shadow: 0 10px 30px rgba(12, 26, 32, .08);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font); overflow-x: hidden;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 750; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.wrap.narrow { max-width: 812px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.logo { flex: none; }
.logo-eye { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.logo-iris { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; }
.logo-wick { stroke: var(--up); stroke-width: 1.4; stroke-linecap: round; }
.logo-candle { fill: var(--up); }
.nav-desktop { display: none; gap: 4px; margin-left: auto; }
.nav-desktop a, .nav-mobile nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; }
.nav-desktop a:hover, .nav-mobile nav a:not(.btn):hover { color: var(--text); background: var(--surface); }
.nav-desktop a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-header .header-cta { display: none; }
.nav-mobile { margin-left: auto; position: relative; }
.nav-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav-mobile nav .btn { margin-top: 8px; }
.ico-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ico-fill { fill: currentColor; }
@media (min-width: 560px) {
  .site-header .header-cta { display: inline-flex; margin-left: auto; }
  .nav-mobile { margin-left: 0; }
}
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .site-header .header-cta { margin-left: 0; }
  .nav-mobile { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: 650 1rem/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn:active { transform: translateY(1px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 1em; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

/* breadcrumbs */
.crumbs { padding-top: 18px; font-size: .875rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border); }
.crumbs a { color: var(--muted); }

/* hero */
.hero { padding: 48px 0 56px; background: radial-gradient(1000px 500px at 85% -10%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero h1 .accent { display: block; }
.hero-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .25)); }
.panel { fill: var(--surface); stroke: var(--border); }
.grid path { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 6; }
.c-up { fill: var(--up); }
.c-down { fill: var(--down); }
.c-up-w { stroke: var(--up); stroke-width: 1.6; }
.c-down-w { stroke: var(--down); stroke-width: 1.6; }
.ema { fill: none; stroke: var(--warn); stroke-width: 2; stroke-linejoin: round; }
.lv-tp, .lv-entry, .lv-sl { stroke-width: 1.5; stroke-dasharray: 5 4; }
.lv-tp { stroke: var(--up); }
.lv-entry { stroke: var(--accent); }
.lv-sl { stroke: var(--down); }
.lv-tag-tp { fill: var(--up); }
.lv-tag-entry { fill: var(--accent); }
.lv-tag-sl { fill: var(--down); }
.lv-text { fill: #fff; font: 700 11px var(--font); text-anchor: middle; }
.lv-tag-entry + .lv-text { fill: var(--accent-ink); }
.badge-bg { fill: var(--surface-2); stroke: var(--border); }
.badge-text { fill: var(--text); font: 600 13px var(--font); }
.scan-beam { fill: var(--accent-soft); }
.scan-line { stroke: var(--accent); stroke-width: 2; }
.scan { animation: scan 6s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateX(30px); } to { transform: translateX(400px); } }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

/* sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); max-width: 46em; margin-bottom: 1.8em; }
.more { font-weight: 650; text-decoration: none; }
.h-sm { font-size: 1.15rem; margin-top: 2em; }
.steps { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 16px; }
.step, .feature, .card, .tier, .plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 750; margin-bottom: 12px; }
.step p, .feature p, .card p { margin-bottom: 0; }
.features, .cards { display: grid; gap: 16px; margin-bottom: 1.5em; }
.card h3, .h-card { font-size: 1.1rem; margin-bottom: .5em; }
.card h3 a, .h-card a { color: var(--text); text-decoration: none; }
.card h3 a:hover, .h-card a:hover { color: var(--accent); }
.card p + p { margin-top: .6em; }
.split, .split-even { display: grid; gap: 32px; align-items: center; margin: 2.5em 0; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features, .cards { grid-template-columns: repeat(2, 1fr); }
  .split-even { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
@media (min-width: 980px) {
  .features, .cards { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.1fr 1fr; }
}
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

/* signal card */
.signal-card { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.sc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; font-size: 1.1rem; }
.sc-head .tag { margin-left: auto; }
.sc-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 14px; }
.sc-levels div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.sc-levels dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.sc-levels dd { margin: 2px 0 0; font: 650 1.05rem var(--mono); }
.sc-why { font-size: .95rem; color: var(--muted); }
.pos { color: var(--up); }
.neg { color: var(--down); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 750 .78rem/1.4 var(--font); letter-spacing: .04em; }
.pill-buy { background: color-mix(in srgb, var(--up) 18%, transparent); color: var(--up); }
.pill-sell { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); font-size: .75rem; font-weight: 600; color: var(--muted); }
.tag-accent { border-color: transparent; background: var(--accent-soft); color: var(--accent); }

/* coins */
.coins { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.coin { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.coin .tag { margin-left: auto; }
.coin-sym { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 750; flex: none; }

/* stats + table */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 1.2em; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-n { font: 750 1.75rem/1.1 var(--font); }
.stat-l { color: var(--muted); font-size: .875rem; }
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 1em; }
table.signals { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; }
.signals th, .signals td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.signals th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 650; }
.signals tbody tr:last-child td { border-bottom: 0; }
.num { font-family: var(--mono); }
.targets span { display: inline-block; margin-right: 8px; color: var(--muted); }
.targets .t-hit { color: var(--up); font-weight: 650; }
.outcome { font-weight: 650; }
.outcome-win { color: var(--up); }
.outcome-loss { color: var(--down); }
.outcome-partial { color: var(--warn); }
.outcome-neutral { color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; margin: 2em 0; }
.defs dt { font-weight: 650; margin-top: 1em; }
.defs dd { margin: .2em 0 0; color: var(--muted); }

/* pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 1em; }
.plan { position: relative; }
.plan-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan .tag { position: absolute; top: -11px; left: 18px; background: var(--accent); color: var(--accent-ink); }
.plan h3 { margin-top: .2em; }
.plan-price { font: 750 2.2rem/1 var(--font); margin: .2em 0 .3em; }
.plan p:last-child { margin-bottom: 0; }
.tier-accent { border-color: var(--accent); }

/* page / prose */
.page { padding-top: 28px; padding-bottom: 72px; }
.page-head { margin-bottom: 2em; }
.answer { font-size: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose th { background: var(--surface-2); }
.prose code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.prose blockquote, .callout { margin: 0 0 1.2em; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.formula { font-family: var(--mono); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; overflow-x: auto; }
.meta { margin-top: -.4em; }
.note { margin: 2em 0; padding: 14px 18px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-size: .92rem; }
.pipeline { margin: 0 0 2em; }
.pipeline ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; counter-reset: p; }
@media (min-width: 720px) { .pipeline ol { grid-template-columns: repeat(6, 1fr); } }
.pipeline li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; font-size: .85rem; counter-increment: p; }
.pipeline li strong::before { content: counter(p) ". "; color: var(--accent); }
.pipeline li span { color: var(--muted); }
.cta-inline { margin-top: 2.5em; padding: 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--border); }
.cta-inline h2 { margin-top: 0; }
.cta-band { padding: 72px 0; text-align: center; background: radial-gradient(800px 300px at 50% 0%, var(--accent-soft), transparent 70%); }
.cta-band .ctas { justify-content: center; }

/* faq */
.faq-list { margin-bottom: 1.5em; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 650; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--accent); }
.faq[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 16px; color: var(--muted); }
.toc ol { padding-left: 1.3em; columns: 1; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: .35em; break-inside: avoid; }
.qa { padding-top: 1.2em; border-top: 1px solid var(--border); margin-top: 1.4em; }
.qa h2 { font-size: 1.3rem; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 32px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer nav a, .site-footer .linklike { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover { color: var(--accent); }
.disclaimer { border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); }

/* consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent p { margin-bottom: .8em; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scan { transform: translateX(330px); }
}
