/* ============================================================
   Jankio — brand: "Jankio Volt"
   Electric phosphor lime (#C9FF2D) on warm near-black (#0A0B07).
   Terminal heritage, OLED-first, motion with restraint.
   ============================================================ */

:root {
  --volt:        #c9ff2d;
  --volt-dim:    #9bd400;
  --volt-glow:   rgba(201, 255, 45, 0.14);
  --bg:          #0a0b07;
  --bg-raise:    #11130c;
  --bg-card:     #0e100a;
  --line:        #232619;
  --text:        #e8f0da;
  --muted:       #8b9478;
  --mono:        ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans:        system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--volt); color: var(--bg); }

/* ---------- animated microVM grid backdrop ---------- */
#grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo.small { font-size: 1rem; }

.cursor {
  color: var(--volt);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}
.nav nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--volt); }

@media (max-width: 640px) { .nav nav { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn.big { font-size: 1rem; padding: 0.85rem 1.6rem; }

.btn-volt {
  background: var(--volt);
  color: #0c0d05;
  font-weight: 700;
  box-shadow: 0 0 0 0 var(--volt-glow);
}
.btn-volt:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--volt-glow), 0 0 0 1px var(--volt);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }

/* ---------- hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 6vw, 6rem);
  max-width: 1200px;
}

.kicker {
  font-family: var(--mono);
  color: var(--volt-dim);
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.6rem, 9.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.hero h1 .line { display: block; }
.hero h1 .volt { text-shadow: 0 0 60px var(--volt-glow); }

.sub {
  margin-top: 1.8rem;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
}
.sub em { color: var(--volt); font-style: normal; }

.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.livechip {
  margin-top: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  width: fit-content;
}
.livechip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--volt);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.8); } }

/* ---------- sections ---------- */
section { padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 6vw, 6rem); max-width: 1200px; margin: 0 auto; }

h2 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.sectionsub { color: var(--muted); max-width: 40rem; margin-bottom: 2.5rem; }

/* ---------- live proof ---------- */
.proofbox {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top left, var(--volt-glow), transparent 50%),
    var(--bg-card);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.proofnum {
  font-family: var(--mono);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  color: var(--volt);
  line-height: 1;
  text-shadow: 0 0 80px var(--volt-glow);
}
.proofnum .unit { font-size: 0.35em; color: var(--volt-dim); margin-left: 0.2em; }
.prooflabel { color: var(--muted); font-size: 0.9rem; margin-top: 0.6rem; }
.proofmeta { width: 100%; color: var(--muted); font-size: 0.78rem; opacity: 0.7; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 2rem;
}
.stat { background: var(--bg-card); padding: 1.6rem; }
.statnum { font-size: 2.4rem; font-weight: 700; color: var(--text); }
.statnum::after { content: ""; }
.statlabel { color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }

.fineprint { color: var(--muted); font-size: 0.78rem; margin-top: 1.2rem; opacity: 0.8; }
.fineprint a { color: var(--volt-dim); }

/* ---------- terminal ---------- */
.terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #070806;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  max-width: 760px;
}
.term-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: var(--bg-raise);
  border-bottom: 1px solid var(--line);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-dot:first-child { background: #3d4232; }
.term-title { margin-left: 0.8rem; color: var(--muted); font-size: 0.78rem; }
.term-body {
  padding: 1.2rem;
  min-height: 270px;
  font-size: clamp(0.72rem, 2.4vw, 0.9rem);
  line-height: 1.7;
  white-space: pre-wrap;
  color: var(--text);
}
.term-body .v { color: var(--volt); }
.term-body .m { color: var(--muted); }

.howsteps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.hownum { color: var(--volt); font-size: 0.85rem; }
.howstep h3 { margin: 0.4rem 0; font-size: 1.15rem; }
.howstep p { color: var(--muted); font-size: 0.92rem; }

/* ---------- features ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--volt-glow), transparent 35%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { border-color: rgba(201,255,45,0.4); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- principles ---------- */
.promiselist { margin-top: 2.5rem; display: flex; flex-direction: column; }
.promise {
  display: flex;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}
.promise:last-child { border-bottom: 1px solid var(--line); }
.promise p { color: var(--muted); }
.promise strong { color: var(--text); }

/* ---------- beta ---------- */
.betabox {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse at 50% -20%, var(--volt-glow), transparent 60%),
    var(--bg-card);
}
.betabox p { color: var(--muted); max-width: 30rem; margin: 1rem auto 2rem; }
.betabox .fineprint { margin-top: 1.6rem; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 2rem clamp(1rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .livechip .dot { animation: none; }
  html { scroll-behavior: auto; }
  #grid { display: none; }
}
