@import url('./fonts/fonts.css');

/* ============================================================
   NV2 / NEKOVIDIA — scroll site
   Values transcribed from project/Nekovidia Scroll.dc.html.
   ============================================================ */

:root {
  --bg:        #050a08;
  --bg-hero:   #070d0a;
  --bg-alt:    #05100b;
  --panel:     #0a120d;

  --green:     #8CFF3B;
  --green-lit: #d4ffb0;
  --green-hot: #a9ff6e;
  --on-green:  #04170a;

  --bright:    #eafbe4;
  --text:      #cfe8d4;
  --body:      #b9d6bf;
  --nav:       #9dbfa5;
  --muted:     #8fae97;
  --label:     #7ea888;
  --faint:     #7d9c85;
  --dim:       #6f9478;

  --line:      rgba(140, 255, 59, .22);
  --line-soft: rgba(140, 255, 59, .18);
  --line-mid:  rgba(140, 255, 59, .3);
  --hairline:  rgba(140, 255, 59, .16);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --pixel: 'Silkscreen', 'JetBrains Mono', monospace;
}

html, body { margin: 0; padding: 0; background: var(--bg); }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-lit); }

/* Links that carry their own colour keep it on hover — in the prototype
   these were inline styles, which outrank the generic a:hover rule. */
.nav-buy:hover,
.btn-ghost:hover,
.btn-ghost-lg:hover { color: var(--green); }
.btn-solid:hover { color: var(--on-green); }

img { display: block; }

/* ---------- keyframes ---------- */

@keyframes scan   { 0% { transform: translateY(-100%) } 100% { transform: translateY(100%) } }
@keyframes flick  { 0%, 100% { opacity: .06 } 47% { opacity: .10 } 48% { opacity: .02 } 62% { opacity: .12 } }
@keyframes glitchA {
  0%, 92%, 100% { transform: none; opacity: 1 }
  93% { transform: translate(-3px, 1px); opacity: .85 }
  95% { transform: translate(2px, -2px) }
  97% { transform: translate(-1px, 0) }
}
@keyframes blink  { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes spin   { 0% { transform: rotate(0) } 100% { transform: rotate(360deg) } }

/* ---------- scroll container ----------
   The whole page scrolls inside this element rather than the document,
   matching the prototype: the progress bar and the reveal observer both
   measure against it. */

.scroller {
  position: relative;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  scroll-behavior: smooth;
}

/* ---------- CRT overlays ---------- */

.crt-scanlines,
.crt-flicker,
.crt-sweep { position: fixed; pointer-events: none; }

.crt-scanlines {
  inset: 0;
  z-index: 90;
  background: repeating-linear-gradient(180deg,
    rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
    rgba(0,0,0,.45) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
}

.crt-flicker {
  inset: 0;
  z-index: 91;
  background: var(--green);
  mix-blend-mode: overlay;
  animation: flick 5s steps(1, end) infinite;
}

.crt-sweep {
  left: 0; right: 0; top: 0;
  height: 38vh;
  z-index: 92;
  background: linear-gradient(180deg,
    rgba(140,255,59,0) 0%,
    rgba(140,255,59,.09) 82%,
    rgba(140,255,59,.3) 100%);
  animation: scan 7s linear infinite;
}

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  z-index: 99;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(5, 10, 8, .86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(140, 255, 59, .22);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 34px; height: 34px;
  border: 1px solid var(--green);
  /* The mark is a square bitmap whose background already matches --bg, so it
     sits flush inside the framed box the emoji used to occupy. */
  object-fit: cover;
  display: block;
}

.brand-text { display: flex; flex-direction: column; gap: 3px; }

.brand-name {
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: .22em;
  color: var(--bright);
}

.brand-tag {
  font-size: 8px;
  letter-spacing: .28em;
  color: var(--dim);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--nav);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-buy {
  border: 1px solid var(--green);
  padding: 9px 18px;
  color: var(--green);
}
.nav-buy:hover { background: rgba(140, 255, 59, .12); }

/* ---------- section shell ---------- */

.section {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 100px 40px;
  border-bottom: 1px solid var(--line-soft);
}

/* Anchored sections clear the fixed header when jumped to. */
#lore, #lifeline, #tokenomics, #buy, #faq { scroll-margin-top: 72px; }

.section--stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}

.section--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--dim);
  margin-bottom: 12px;
}

.kicker {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--dim);
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: .04em;
  color: var(--bright);
}

.lede {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--bright);
}

.prose {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  max-width: 62ch;
  text-wrap: pretty;
}

.footnote {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--faint);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ---------- 01 hero ---------- */

.hero {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 130px 40px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(120% 90% at 78% 40%, rgba(140,255,59,.10), rgba(5,10,8,0) 60%),
    var(--bg-hero);
  border-bottom: 1px solid var(--line-soft);
}

.hero-copy { max-width: 660px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(140, 255, 59, .4);
  padding: 7px 13px;
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--green);
  margin-bottom: 24px;
}

.blink { animation: blink 1.4s steps(1, end) infinite; }
.blink--fast { animation: blink 1.2s steps(1, end) infinite; }

.hero-title {
  margin: 0 0 22px;
  font-family: var(--pixel);
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: .96;
  letter-spacing: .02em;
  color: var(--bright);
  animation: glitchA 6s steps(1, end) infinite;
  text-shadow: 2px 0 rgba(140,255,59,.5), -2px 0 rgba(0,180,255,.28);
}

.hero-sub {
  font-size: 12px;
  letter-spacing: .26em;
  color: var(--muted);
  margin-bottom: 28px;
}

.spec-list {
  margin: 0 0 26px;
  border-left: 2px solid var(--green);
  padding-left: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--text);
}
.spec-list dt { color: var(--label); }
.spec-list dd { margin: 0; }
.spec-list .is-live { color: var(--green); }

.hero-flow {
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
}

.art {
  position: relative;
  display: flex;
  justify-content: center;
}

.art-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,255,59,.22), rgba(140,255,59,0) 68%);
  inset: 6% 12%;
}

.art-glow--mascot {
  inset: 8% 10%;
  background: radial-gradient(circle, rgba(140,255,59,.2), rgba(140,255,59,0) 70%);
}

.portrait {
  position: relative;
  width: 100%;
  /* The width/height HTML attributes are presentational hints, i.e. a real
     `height: <n>px`. `width: 100%` overrides the width hint but the height
     hint survives, so a square source rendered ~2x too tall. Keep the
     attributes (they reserve the box and prevent CLS) and free the height. */
  height: auto;
  border: 1px solid var(--line-mid);
}
.portrait--hero { max-width: 480px; }
.portrait--mascot { max-width: 420px; }

.art-caption {
  position: absolute;
  right: -6px;
  bottom: -6px;
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--dim);
  background: var(--bg);
  padding: 6px 10px;
  border: 1px solid rgba(140, 255, 59, .25);
}

/* ---------- 02 mascot ---------- */

.mascot {
  background: var(--bg-alt);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: center;
}

.mascot .section-title { margin-bottom: 16px; }
.prose--last { margin-bottom: 26px; }

/* shared hairline-separated cell grid */
.cell-grid {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--hairline);
}
.cell-grid--spec { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cell-grid--lore { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cell-grid--faq  { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.spec-cell { padding: 18px; background: var(--panel); }

.spec-key {
  font-size: 9px;
  letter-spacing: .3em;
  color: var(--dim);
  margin-bottom: 8px;
}

.spec-val { font-size: 13px; color: var(--bright); }
.spec-val--green { color: var(--green); }

/* ---------- 03 lore ---------- */

.lore { background: var(--bg-hero); gap: 32px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head .eyebrow { margin-bottom: 12px; }

.head-note {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--dim);
}

.lore-card {
  padding: 24px 20px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lore-heading {
  font-family: var(--pixel);
  font-size: 17px;
  color: var(--green);
}

.lore-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.pair-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--panel);
}

.pair-panel .lore-heading { margin-bottom: 12px; }
.pair-panel p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.radar-wrap { display: flex; justify-content: center; }

.radar {
  position: relative;
  width: min(180px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(140, 255, 59, .55);
  animation: spin 34s linear infinite;
  background: repeating-linear-gradient(0deg,
    rgba(140,255,59,.30) 0 1px, transparent 1px 22px);
  box-shadow: inset 0 0 60px rgba(140, 255, 59, .12);
}

.radar span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.radar span:nth-child(1) { border: 1px solid rgba(140,255,59,.35); transform: scaleX(.62); }
.radar span:nth-child(2) { border: 1px solid rgba(140,255,59,.25); transform: scaleX(.28); }

/* ---------- 04 ship the chip ---------- */

.ship {
  gap: 28px;
  background:
    radial-gradient(90% 70% at 50% 45%, rgba(140,255,59,.12), rgba(5,10,8,0) 65%),
    var(--bg-alt);
}

.ship-title {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(24px, 4.2vw, 58px);
  line-height: 1.12;
  letter-spacing: .03em;
  color: var(--bright);
  animation: glitchA 8s steps(1, end) infinite;
}

.ship-title em { font-style: normal; color: var(--green); }

.btn-ghost-lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--green);
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--green);
}
.btn-ghost-lg:hover { background: rgba(140, 255, 59, .12); }

.archive-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--faint);
  max-width: 78ch;
  text-wrap: pretty;
}

/* ---------- 05 lifeline / 06 tokenomics panels ---------- */

.lifeline { background: var(--bg-hero); }
.tokenomics { background: var(--bg-alt); }

.panel-grid {
  display: grid;
  gap: 20px;
}
.panel-grid--lifeline  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.panel-grid--tokenomics { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}
.panel--column { display: flex; flex-direction: column; }

.panel-label {
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--dim);
  margin-bottom: 16px;
}
.panel-label--tight { margin-bottom: 14px; }

.stat-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.stat dt { color: var(--muted); }
.stat dd { margin: 0; color: var(--bright); }
.stat dd.is-green { color: var(--green); }
.stat--total {
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}

.panel p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

.bench-bar {
  margin-top: 16px;
  height: 14px;
  border: 1px solid rgba(140, 255, 59, .35);
  padding: 2px;
  box-sizing: border-box;
}

.bench-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
}

.loop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--text);
  text-align: center;
}
.loop i { font-style: normal; color: var(--green); }

.panel .loop-caption {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bright);
  text-align: center;
}

.panel .panel-foot {
  margin: auto 0 0;
  padding-top: 18px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--faint);
}

.panel-heading {
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--green);
  margin-bottom: 14px;
}

.panel-heading--rule {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-bottom: 10px;
}

.tree {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
}
.tree:last-child { margin-bottom: 0; }

.panel--split {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.panel--split .spec-key { margin-bottom: 8px; }

.pull-quote {
  border-left: 2px solid var(--green);
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

/* ---------- 07 buy ---------- */

.buy {
  gap: 26px;
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(140,255,59,.10), rgba(5,10,8,0) 65%),
    var(--bg-hero);
}

.buy-title {
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(26px, 4vw, 56px);
  letter-spacing: .04em;
  color: var(--bright);
}

.buy-note {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 52ch;
  text-wrap: pretty;
}

.buy-specs {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 26px;
  font-size: 13px;
  text-align: left;
  min-width: min(420px, 100%);
  box-sizing: border-box;
}
.buy-specs dt { color: var(--muted); }
.buy-specs dd { margin: 0; color: var(--bright); }

.buy-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-solid {
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--on-green);
  padding: 15px 26px;
  font-size: 12px;
  letter-spacing: .22em;
}
.btn-solid:hover { background: var(--green-hot); }

.btn-ghost {
  border: 1px solid var(--green);
  padding: 15px 26px;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--green);
}
.btn-ghost:hover { background: rgba(140, 255, 59, .12); }

/* ---------- 08 faq ---------- */

.faq {
  background: var(--bg-alt);
  min-height: 0;
}

.faq-card { padding: 22px; background: var(--panel); }

.faq-q {
  font-size: 13px;
  color: var(--green);
  margin-bottom: 8px;
}

.faq-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--dim);
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
/* Footer mark is unframed and sized to the wordmark, unlike the header's
   bordered 34px box. */
.brand-mark--footer { width: 24px; height: 24px; border: none; }
.footer-brand .brand-name {
  font-family: var(--pixel);
  letter-spacing: .18em;
  color: var(--text);
  font-size: inherit;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: var(--faint);
  max-width: 100ch;
  text-wrap: pretty;
}

.footer-rule {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--dim);
}

/* ---------- narrow screens ----------
   The prototype has no breakpoints; these only collapse the two-column
   grids once they stop fitting. Desktop rendering is unchanged. */

@media (max-width: 860px) {
  .hero,
  .mascot,
  .pair-panel { grid-template-columns: minmax(0, 1fr); }

  .hero { padding: 120px 22px 48px; }
  .section { padding: 72px 22px; }
  .hero-copy { max-width: none; }
  .site-header { padding: 12px 16px; gap: 16px; }
  .site-nav { gap: 14px; font-size: 10px; }
  .site-footer { padding: 32px 22px; }
}

@media (max-width: 520px) {
  .brand-tag { display: none; }
  .art-caption { position: static; margin-top: 10px; }
  .art { flex-direction: column; align-items: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .crt-flicker,
  .crt-sweep,
  .hero-title,
  .ship-title,
  .radar,
  .blink,
  .blink--fast { animation: none; }
  .scroller { scroll-behavior: auto; }
  .crt-flicker { opacity: .06; }
}
