/* ============================================================
   KitHolder — Festival Asset Management
   "The ledger is the evidence."
   ============================================================ */

:root {
  --bg: #0b0f0e;
  --bg-2: #101614;
  --bg-3: #161d1a;
  --panel: #131a17;
  --line: #243029;
  --line-soft: #1b241f;
  --ink: #eef4f0;
  --ink-dim: #9db0a6;
  --ink-faint: #6b7d74;
  --green: #2ee06f;
  --green-deep: #17a34a;
  --amber: #ffb224;
  --red: #ff5d5d;
  --blue: #5b8def;   /* OUT — booth palette parity (IN green / OUT blue / error red) */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 14px;
  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--green); color: #06120b; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.mono { font-family: var(--mono); }

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--green);
  flex: none;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 18px; }
h3 { font-size: 22px; }
.lede { color: var(--ink-dim); font-size: clamp(18px, 1.6vw, 21px); max-width: 640px; }

section { padding: 110px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 60px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: #06120b;
  box-shadow: 0 0 0 0 rgba(46, 224, 111, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(46, 224, 111, 0.45); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn .arr { font-family: var(--mono); }

/* ---------- nav ---------- */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 36px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 14.5px; color: var(--ink-dim); font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--green); }
.nav-cta { margin-left: 8px; padding: 10px 18px; font-size: 14.5px; }
.nav-burger { display: none; background: none; border: 0; color: var(--ink); font-size: 24px; cursor: pointer; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(46, 224, 111, 0.09), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(46, 224, 111, 0.05), transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46,224,111,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,224,111,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.hero h1 .hl { color: var(--green); }
.hero-sub { margin: 26px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 20px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint);
}
.hero-note b { color: var(--amber); font-weight: 600; }
.hero-note a { color: var(--green); border-bottom: 1px dotted var(--green); }

/* hero visual */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
  transform: rotate(1.2deg);
}
.hero-photo img { width: 100%; height: auto; }

/* live ledger card */
.ledger-card {
  position: absolute;
  left: -46px; bottom: -38px;
  width: 400px; max-width: 92%;
  background: rgba(16, 22, 20, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.85);
  font-family: var(--mono);
  overflow: hidden;
  transform: rotate(-1.4deg);
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}
.ledger-head .live { color: var(--green); display: flex; align-items: center; gap: 7px; }
.ledger-head .live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.ledger-rows { padding: 6px 0; min-height: 178px; }
.ledger-row {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 10px; align-items: center;
  padding: 9px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line-soft);
  animation: rowIn .45s ease both;
}
.ledger-row:last-child { border-bottom: 0; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ledger-row .dev { color: var(--ink); }
.ledger-row .who { color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stamp {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 5px;
}
.stamp.in { color: var(--green); border: 1px solid rgba(46,224,111,0.4); }
.stamp.out { color: var(--blue); border: 1px solid rgba(91,141,239,0.45); }

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow: hidden; padding: 16px 0;
}
.ticker-track {
  display: flex; gap: 56px; width: max-content;
  font-family: var(--mono); font-size: 13px; color: var(--ink-faint);
  animation: tick 38s linear infinite;
}
.ticker-track span b { color: var(--green); font-weight: 600; }
.ticker-track span i { font-style: normal; color: var(--amber); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- custody argument ---------- */
.arg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.arg-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--panel);
  position: relative;
}
.arg-card.bad { border-top: 3px solid var(--red); }
.arg-card.good { border-top: 3px solid var(--green); background: linear-gradient(180deg, rgba(46,224,111,0.05), transparent 55%), var(--panel); }
.arg-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 14px;
}
.arg-card.bad .arg-tag { color: var(--red); }
.arg-card.good .arg-tag { color: var(--green); }
.arg-card h3 { margin-bottom: 14px; }
.arg-card p { color: var(--ink-dim); font-size: 15.5px; }
.invoice {
  margin-top: 24px;
  font-family: var(--mono); font-size: 13px;
  border: 1px dashed rgba(255,93,93,0.45);
  border-radius: 10px; padding: 16px 18px;
  color: var(--ink-dim);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.invoice b { color: var(--red); font-size: 18px; white-space: nowrap; }
.ledger-mini {
  margin-top: 24px;
  font-family: var(--mono); font-size: 13px;
  border: 1px solid rgba(46,224,111,0.35);
  border-radius: 10px; padding: 16px 18px;
  color: var(--ink-dim);
  line-height: 2;
}
.ledger-mini .dev { color: var(--ink); }
.ledger-mini .ok { color: var(--green); font-weight: 700; }
.arg-verdict {
  margin-top: 34px;
  font-family: var(--mono); font-size: 14px; color: var(--ink-faint);
  text-align: center; letter-spacing: 0.04em;
}
.arg-verdict b { color: var(--ink); }

/* ---------- stats ---------- */
.stats {
  padding: 0;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-2);
}
.stat {
  padding: 40px 30px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--mono); font-size: clamp(30px, 3vw, 42px);
  font-weight: 700; color: var(--green);
  letter-spacing: -0.03em;
}
.stat .lbl { margin-top: 8px; font-size: 14px; color: var(--ink-faint); }

/* ---------- case ---------- */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.case-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
}
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.part {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
  transition: border-color .2s ease, transform .2s ease;
}
.part:hover { border-color: rgba(46,224,111,0.5); transform: translateY(-3px); }
.part .p-ico { font-family: var(--mono); color: var(--green); font-size: 12px; letter-spacing: 0.15em; margin-bottom: 10px; }
.part h4 { font-size: 16px; margin-bottom: 6px; }
.part p { font-size: 13.5px; color: var(--ink-faint); line-height: 1.5; }

/* ---------- USPs ---------- */
.usps { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.usp {
  display: grid; grid-template-columns: 90px 1fr 1.1fr;
  gap: 40px; align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid var(--line-soft);
}
.usp:last-of-type { border-bottom: 0; }
.usp-num {
  font-family: var(--mono); font-size: 14px; color: var(--green);
  border: 1px solid var(--line); border-radius: 10px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
}
.usp h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.usp p { color: var(--ink-dim); font-size: 15.5px; }
.usp-side { font-size: 14.5px; color: var(--ink-faint); }
.usp-side .chiprow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink-dim);
}
.chip.g { border-color: rgba(46,224,111,0.45); color: var(--green); }
.chip.a { border-color: rgba(255,178,36,0.45); color: var(--amber); }
.chip.b { border-color: rgba(91,141,239,0.5); color: var(--blue); }
.chip.r { border-color: rgba(255,93,93,0.45); color: var(--red); }

/* ---------- workflow ---------- */
.flow-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: grid; grid-template-columns: 44px 1fr; gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}
.flow-step:last-child { border-bottom: 0; }
.flow-dot {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--green);
  background: var(--bg-3);
}
.flow-step h4 { font-size: 18px; margin-bottom: 6px; }
.flow-step p { font-size: 14.5px; color: var(--ink-faint); }
.flow-terminal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0e0d;
  font-family: var(--mono);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.8);
  position: sticky; top: 110px;
}
.flow-terminal .tbar {
  display: flex; gap: 7px; padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft); align-items: center;
}
.flow-terminal .tbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.flow-terminal .tbar i:first-child { background: rgba(255,93,93,0.6); }
.flow-terminal .tbar i:nth-child(2) { background: rgba(255,178,36,0.6); }
.flow-terminal .tbar i:nth-child(3) { background: rgba(46,224,111,0.6); }
.flow-terminal .tbar span { margin-left: 10px; font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.1em; }
.flow-terminal .tbody { padding: 22px 22px 26px; font-size: 13.5px; line-height: 2.1; min-height: 250px; }
.tline { color: var(--ink-dim); }
.tline .k { color: var(--green); }
.tline .w { color: var(--amber); }
.tline .cursor { display: inline-block; width: 8px; height: 15px; background: var(--green); vertical-align: -2px; animation: pulse 1s steps(2) infinite; }
.flow-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.flow-photos figure { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.flow-photos figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); padding: 10px 14px; border-top: 1px solid var(--line-soft); background: var(--bg-2); letter-spacing: 0.08em; }

/* ---------- messy reality ---------- */
.reality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.reality-card {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); padding: 24px;
}
.reality-card .rc-flag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 12px;
}
.reality-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.reality-card p { font-size: 14px; color: var(--ink-faint); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--panel);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(46,224,111,0.4); }
.price-card.featured { border-color: var(--green); background: linear-gradient(180deg, rgba(46,224,111,0.07), transparent 60%), var(--panel); }
.price-card .pc-size { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.14em; text-transform: uppercase; }
.price-card h3 { font-size: 26px; margin: 10px 0 4px; }
.price-card .pc-price { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--ink); margin: 14px 0 2px; }
.price-card .pc-price small { font-size: 15px; color: var(--ink-faint); font-weight: 400; white-space: nowrap; }
.price-card .pc-loss {
  margin: 18px 0; padding: 11px 14px;
  border: 1px dashed var(--line); border-radius: 9px;
  font-family: var(--mono); font-size: 12px; color: var(--amber);
}
.price-card p { font-size: 14.5px; color: var(--ink-dim); flex: 1; }
.price-card .pc-flag {
  position: absolute; top: -13px; right: 22px;
  background: var(--green); color: #06120b;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 99px;
}
.season-note {
  margin-top: 26px; padding: 26px 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
  display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
}
.season-note p { color: var(--ink-dim); font-size: 15px; max-width: 640px; }
.season-note a { color: var(--green); font-family: var(--mono); font-size: 13px; }
.anchor-maths {
  margin-top: 18px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint);
}

/* ---------- offer ---------- */
.offer {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(46,224,111,0.12), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.offer .eyebrow { justify-content: center; }
.offer .eyebrow::after { content: ""; width: 34px; height: 2px; background: var(--green); }
.offer h2 { max-width: 700px; margin-left: auto; margin-right: auto; }
.offer .lede { margin: 0 auto 40px; }
.offer-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.offer-mail { margin-top: 22px; font-family: var(--mono); font-size: 13px; color: var(--ink-faint); }
.offer-mail a { color: var(--green); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 70px 0 40px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.foot-logo img { height: 34px; margin-bottom: 18px; }
.foot-grid p { color: var(--ink-faint); font-size: 14px; max-width: 340px; }
.foot-grid h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid li a { color: var(--ink-dim); font-size: 14.5px; transition: color .15s; }
.foot-grid li a:hover { color: var(--green); }
.ladder {
  margin-top: 20px; display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint);
}
.ladder b { color: var(--ink-dim); font-weight: 600; }
.ladder .here { color: var(--green); }
.foot-base {
  margin-top: 56px; 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: 12px; color: var(--ink-faint);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .case-grid, .flow-grid { grid-template-columns: 1fr; gap: 44px; }
  .arg-grid, .reality-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .price-grid { grid-template-columns: 1fr; }
  .usp { grid-template-columns: 56px 1fr; }
  .usp-side { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .ledger-card { position: relative; left: 0; bottom: 0; margin: -30px auto 0; transform: none; width: 100%; }
  .hero-photo { transform: none; }
  .nav-links { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .nav-cta { display: none; }
}
@media (max-width: 560px) {
  section { padding: 72px 0; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:last-child { border-bottom: 0; }
  .flow-photos { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}

/* ---------- mobile overflow fix ---------- */
html, body { overflow-x: hidden; }

.hero-grid > *, .case-grid > *, .flow-grid > *,
.arg-grid > *, .price-grid > *, .reality-grid > *,
.foot-grid > * { min-width: 0; }

@media (max-width: 560px) {
  .btn { white-space: normal; }
  h1 { font-size: clamp(36px, 10.5vw, 44px); }
}

/* ---------- ROI calculator ---------- */
.roi-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; max-width: 780px; }
.roi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.roi-field span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.roi-field input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-family: var(--mono); font-size: 18px; padding: 12px 14px; }
.roi-field input:focus { outline: 2px solid var(--green); border-color: var(--green); }
.roi-out { border-top: 1px solid var(--line); padding-top: 18px; color: var(--ink-dim); font-size: 16px; }
.roi-out b { font-family: var(--mono); font-size: 24px; color: var(--red); }
.roi-verdict { margin-top: 6px; font-weight: 600; color: var(--ink); }
.roi-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 14px; }
@media (max-width: 720px) { .roi-grid { grid-template-columns: 1fr; } }
