/* ============================================================
   EkBana — Console design language (shared)
   bg #04070B · panels #070D14 · hairline #16202A
   green #8DC63F / #A6E14E · blue #29ABE2 · serif = human voice
============================================================ */
:root {
  --bg: #04070B;
  --panel: #070D14;
  --panel-2: #0A1119;
  --line: #16202A;
  --line-soft: #0F1820;
  --txt: #E8EDF2;
  --dim: #8FA0AE;
  --faint: #5C6B78;
  --ghost: #3A4754;
  --green: #8DC63F;
  --green-bright: #A6E14E;
  --blue: #29ABE2;
  --blue-deep: #1B75BB;
  --mono: 'IBM Plex Mono', monospace;
  --grotesk: 'Space Grotesk', sans-serif;
  --serif: 'Instrument Serif', serif;
}
/* ---------- light theme ---------- */
html[data-theme="light"] {
  --bg: #F2EFE8;
  --panel: #FAF8F1;
  --panel-2: #FFFFFF;
  --line: #DCD5C4;
  --line-soft: #E6E0D1;
  --txt: #11161C;
  --dim: #4A545F;
  --faint: #79828C;
  --ghost: #BCB39E;
  --green: #6FA52C;
  --green-bright: #4E8A12;
  --blue: #1B86C9;
  --blue-deep: #1B75BB;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--grotesk);
  background: var(--bg);
  color: var(--txt);
  cursor: none;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}
a, button { cursor: none; }
::selection { background: var(--green); color: var(--bg); }

/* scanlines */
.scanlines {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: linear-gradient(rgba(141,198,63,0.035) 1px, transparent 1px);
  background-size: 100% 4px;
}
html[data-theme="light"] .scanlines {
  background-image: linear-gradient(rgba(14,18,23,0.04) 1px, transparent 1px);
}

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--green); }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(141,198,63,0.55); transition: width .25s, height .25s, margin .25s, border-color .25s; }
body.cursor-hot .cursor-ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--blue); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } body, a, button { cursor: auto; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(4,7,11,0.86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
html[data-theme="light"] .nav.scrolled { background: rgba(242,239,232,0.88); }
.wordmark { font-size: 21px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: baseline; }
.wordmark .ek { color: var(--blue); }
.wordmark .bana { color: var(--green); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.here { color: var(--green-bright); }
.nav-cta {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--green); color: #04070B; text-decoration: none; font-weight: 500;
  padding: 12px 20px; white-space: nowrap;
}
html[data-theme="light"] .nav-cta { color: #F6F8F2; }
.nav-right { display: flex; gap: 10px; align-items: center; }
.theme-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: none; border: 1px solid var(--line); color: var(--dim);
  padding: 11px 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.theme-btn:hover { border-color: var(--green); color: var(--green-bright); }
@media (max-width: 900px) { .nav-links { display: none; } .nav { padding: 14px 20px; } }

/* ---------- shared primitives ---------- */
.shell { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .shell { padding: 0 22px; } }

.sec { position: relative; border-top: 1px solid var(--line-soft); padding: 110px 0 120px; }
.sec-mark {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); display: flex; align-items: center; gap: 12px; margin-bottom: 56px;
}
.sec-mark::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-mark .idx { color: var(--faint); }

h2.display {
  font-size: clamp(38px, 4.6vw, 76px); font-weight: 700; line-height: 1.0;
  letter-spacing: -0.03em; margin-bottom: 28px; text-wrap: balance;
}
h2.display .hollow { color: transparent; -webkit-text-stroke: 1.5px var(--ghost); }
h2.display .green { color: var(--green-bright); }
h2.display .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--dim); max-width: 560px; }
.lede strong { color: var(--txt); font-weight: 500; }

.reveal-line { overflow: hidden; display: block; }
.reveal-line > span { display: block; will-change: transform; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 16px 28px; white-space: nowrap; border: none; font-weight: 500;
}
.btn.primary { background: var(--green); color: #04070B; }
html[data-theme="light"] .btn.primary { color: #F6F8F2; }
.btn.ghost { color: var(--txt); border: 1px solid var(--line); background: none; font-weight: 400; }
.btn.ghost:hover { border-color: var(--green); color: var(--green-bright); }

.mono-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

/* stamp tag */
.tag-auto {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--green);
  border: 1px solid rgba(141,198,63,0.45); padding: 2px 7px; text-transform: uppercase; white-space: nowrap;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .mono-lbl { margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--dim); text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--green-bright); }
.footer-base {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: 190px 0 90px; }
.page-hero .kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.page-hero .kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.page-hero h1 { font-size: clamp(44px, 5.8vw, 92px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; margin-bottom: 26px; }
.page-hero h1 .hollow { color: transparent; -webkit-text-stroke: 1.5px var(--ghost); }
.page-hero h1 .green { color: var(--green-bright); }
.page-hero h1 .serif { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- console panel ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
}
.panel-head .dots { display: flex; gap: 5px; }
.panel-head .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.panel-head .dots i.g { background: var(--green); }

/* big stat */
.bigstat .num { font-size: clamp(46px, 5vw, 84px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.bigstat .num em { font-style: normal; color: var(--green-bright); }
.bigstat .lbl { margin-top: 10px; }

/* fade-up default (pre-anim hidden only when JS armed) */
html.js-anim [data-rise] { opacity: 0; transform: translateY(34px); }

@media (prefers-reduced-motion: reduce) {
  html.js-anim [data-rise] { opacity: 1; transform: none; }
}
