/* =========================================================
   KINSY — styles
   palette: cozy parchment + meadow green + pond blue + berry pink
   type: VT323 (display), Cinzel (fantasy accent), JetBrains Mono (UI/body)
   ========================================================= */

:root {
  /* palette tuned to the mascot: deep violet void, hot neon purple glow,
     cyan circuitry, cream/bone highlights. */
  --void: #0e0420;
  --void-2: #180a32;
  --void-3: #221049;
  --line: rgba(217, 70, 239, 0.12);
  --line-strong: rgba(217, 70, 239, 0.28);

  --text: #f3ead8;          /* cream/bone — matches mascot head */
  --text-dim: #b8a7d8;
  --text-faint: #7a6a9c;

  --cyan: #22e6ff;          /* mascot eyes */
  --cyan-soft: #7df0ff;
  --magenta: #d946ef;       /* neon halo */
  --magenta-hot: #f0abfc;
  --cream: #f3ead8;         /* mascot bone */
  --cream-warm: #ffd9a8;
  --indigo: #6b21a8;

  --grad-1: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
  --grad-glow: radial-gradient(circle at 20% 0%, rgba(217, 70, 239, 0.28), transparent 55%),
               radial-gradient(circle at 90% 20%, rgba(34, 230, 255, 0.18), transparent 55%),
               radial-gradient(circle at 50% 100%, rgba(217, 70, 239, 0.18), transparent 60%);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --f-display: "VT323", "JetBrains Mono", monospace;
  --f-fantasy: "Cinzel", "Times New Roman", serif;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-mono);
  font-weight: 400;
  color: var(--text);
  background:
    var(--grad-glow),
    linear-gradient(rgba(14, 4, 32, 0.82), rgba(14, 4, 32, 0.9)),
    url("assets/kintara-world-bg.png") center top / cover fixed,
    var(--void);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--magenta); }

/* ===== ambient layers ===== */

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(217, 70, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 70, 239, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(0,0,0,0.4) 70%),
    radial-gradient(ellipse at 50% 100%, transparent 0%, rgba(0,0,0,0.5) 80%);
}

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 3px
  );
  mix-blend-mode: overlay;
}

/* ===== layout helpers ===== */

.section {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 32px;
}

.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.kicker {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.85;
}
.sub { color: var(--text-dim); margin-top: 14px; font-size: 16px; }

.display, .display-2 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
}
.display { font-size: clamp(56px, 9vw, 108px); }
.display-2 { font-size: clamp(36px, 5vw, 58px); }

.grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.fantasy {
  font-family: var(--f-fantasy);
  font-weight: 700;
  font-style: italic;
  color: var(--magenta);
  text-shadow: 0 0 28px rgba(217, 70, 239, 0.35);
}

/* ===== nav ===== */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(10, 6, 18, 0.55);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-block;
  filter: drop-shadow(0 0 14px rgba(34, 230, 255, 0.45));
  image-rendering: -webkit-optimize-contrast;
  transition: transform 200ms ease, filter 200ms ease;
}
.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
  filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.6));
}
.brand-foot .brand-mark { width: 44px; height: 44px; }
.brand-name { color: var(--text); }
.brand-ticker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--magenta);
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}
.nav-links {
  display: flex; gap: 28px;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 13px; padding: 9px 16px; }

/* ===== buttons ===== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease;
  text-decoration: none;
}
.btn-primary {
  color: var(--void);
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 230, 255, 0.5), 0 8px 28px -10px rgba(34, 230, 255, 0.55);
}
.btn-primary:hover {
  background: var(--magenta);
  color: var(--void);
  box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.18), 0 12px 36px -10px rgba(217, 70, 239, 0.55);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ===== hero ===== */

.hero {
  position: relative; z-index: 2;
  padding: 80px 32px 40px;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(217, 70, 239, 0.04);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 28px 0 36px;
}
.lede strong { color: var(--magenta); font-weight: 500; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, max-content); gap: 40px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-n {
  font-family: var(--f-display);
  font-size: 36px;
  color: var(--cyan);
  line-height: 1;
}
.stat-l {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

/* ===== terminal ===== */

.hero-term {
  background: linear-gradient(180deg, rgba(18, 10, 31, 0.85), rgba(10, 6, 18, 0.9));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(34, 230, 255, 0.25),
    0 0 0 1px rgba(34, 230, 255, 0.05) inset;
  position: relative;
}
/* mascot halo — sits behind the terminal */
.hero-term::after {
  content: "";
  position: absolute;
  width: 140%; height: 140%;
  left: -20%; top: -20%;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  filter: blur(28px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  animation: halo 6s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50%      { opacity: 0.65; transform: scale(1.02); }
}
.hero-term::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--r-md);
  padding: 1px;
  background: linear-gradient(135deg, rgba(34, 230, 255, 0.4), transparent 40%, rgba(217, 70, 239, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.term-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #febc2e; }
.term-dot.g { background: #28c940; }
.term-title {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.term-feed {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--cyan-soft);
  padding: 22px 22px 26px;
  height: 360px;
  overflow: hidden;
  white-space: pre-wrap;
  margin: 0;
}
.term-feed .ts { color: var(--text-faint); }
.term-feed .ok { color: var(--cyan); }
.term-feed .warn { color: var(--magenta); }
.term-feed .gold { color: var(--cream-warm); font-weight: 500; }
.term-feed .you { color: var(--magenta); }
.term-feed .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== cards ===== */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.feature-grid .card {
  grid-column: span 2;
  min-height: 0;
}
.feature-grid .card:nth-child(4) {
  grid-column: 2 / span 2;
}
.feature-grid .card:nth-child(5) {
  grid-column: 4 / span 2;
}
.card {
  background: rgba(18, 10, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 24px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px -20px rgba(34, 230, 255, 0.25);
}
.card-glyph {
  font-family: var(--f-fantasy);
  font-size: 38px;
  color: var(--magenta);
  margin-bottom: 18px;
  text-shadow: 0 0 18px rgba(217, 70, 239, 0.35);
}
.card-icon {
  width: 58px;
  height: 58px;
  display: block;
  margin: 0 0 14px;
  image-rendering: auto;
}
.card-soon {
  border-color: rgba(243, 234, 216, 0.18);
  opacity: 0.78;
}
.card-soon:hover {
  border-color: rgba(243, 234, 216, 0.28);
  transform: none;
  box-shadow: none;
}
.card-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 7px;
  border: 1px solid rgba(243, 234, 216, 0.18);
  border-radius: 5px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card h3 {
  font-family: var(--f-display);
  font-size: 26px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 16px;
}
.bul { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--text-faint); }
.bul li { padding-left: 16px; position: relative; margin-bottom: 6px; }
.bul li::before {
  content: "▸"; position: absolute; left: 0; top: 0;
  color: var(--cyan); font-size: 11px;
}

/* ===== plugin mockup hero ===== */

.section-plugin { padding-bottom: 80px; }

.mockup-hero {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.mockup-stage {
  position: relative;
  width: min(100%, 1040px);
  min-height: 590px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 6, 18, 0.18), rgba(10, 6, 18, 0.55)),
    url("assets/kintara-world-bg.png") center center / cover;
  border: 1px solid rgba(34, 230, 255, 0.26);
  box-shadow:
    0 60px 120px -42px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(217, 70, 239, 0.18) inset,
    0 0 150px -24px rgba(217, 70, 239, 0.55);
  isolation: isolate;
}
.mockup-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 63% 50%, transparent 0 21%, rgba(217, 70, 239, 0.64) 22%, transparent 24%),
    radial-gradient(circle at 66% 45%, rgba(34, 230, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(10, 6, 18, 0.05), rgba(10, 6, 18, 0.5));
  mix-blend-mode: screen;
}
.mockup-stage::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, var(--magenta), transparent 38%, var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
  z-index: 6;
}

.game-window {
  position: absolute;
  inset: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.08), rgba(10, 6, 18, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.game-topbar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 6, 18, 0.58);
  color: var(--text-faint);
  font-size: 11px;
}
.game-topbar strong {
  color: var(--text);
  font-weight: 500;
  margin-left: 8px;
}
.game-topbar span:last-child {
  margin-left: auto;
  color: var(--cyan);
}
.game-hud {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 230, 255, 0.26);
  border-radius: 8px;
  background: rgba(10, 6, 18, 0.68);
  box-shadow: 0 0 24px rgba(34, 230, 255, 0.12);
  font-size: 12px;
}
.game-hud b {
  color: var(--cyan);
  font-weight: 500;
}
.game-hud span {
  color: var(--text-dim);
}
.game-hud-left { left: 18px; bottom: 22px; }
.game-hud-right { right: 18px; top: 58px; }

.plugin-popup,
.wallet-card {
  position: absolute;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(17, 9, 33, 0.94), rgba(8, 4, 18, 0.96));
  border: 1px solid rgba(34, 230, 255, 0.28);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 42px rgba(217, 70, 239, 0.22);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  z-index: 3;
}

.plugin-popup {
  left: 48px;
  top: 78px;
  width: min(380px, calc(100% - 96px));
  padding: 18px;
}
.plugin-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.plugin-head img {
  border-radius: 10px;
  border: 1px solid rgba(34, 230, 255, 0.45);
  box-shadow: 0 0 18px rgba(34, 230, 255, 0.24);
}
.plugin-head strong,
.plugin-head span {
  display: block;
}
.plugin-head strong {
  font-family: var(--f-display);
  color: var(--cyan);
  font-size: 32px;
  line-height: 0.9;
}
.plugin-head span {
  color: var(--text-faint);
  font-size: 12px;
}
.plugin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.plugin-stats div {
  padding: 10px;
  border: 1px solid rgba(217, 70, 239, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}
.plugin-stats dt {
  color: var(--text-faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.plugin-stats dd {
  margin: 3px 0 0;
  color: var(--cyan);
  font-size: 15px;
}
.plugin-feed {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.18);
}
.plugin-feed p {
  margin: 0;
  padding: 7px 0;
  color: var(--text-dim);
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.plugin-feed p:first-child { border-top: 0; }
.plugin-feed span {
  color: var(--cyan);
  margin-right: 8px;
}
.plugin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.plugin-actions button,
.wallet-actions button {
  font: inherit;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
}
.plugin-actions button:last-child,
.wallet-actions button:last-child {
  color: var(--void);
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border-color: transparent;
}

.wallet-card {
  right: 44px;
  bottom: 48px;
  width: min(330px, calc(100% - 88px));
  padding: 18px;
  transform: rotate(-1deg);
}
.wallet-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phantom-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #6d4aff, #b24cff);
  font-weight: 700;
}
.wallet-title strong,
.wallet-title span {
  display: block;
}
.wallet-title span {
  color: var(--text-faint);
  font-size: 12px;
}
.wallet-card p {
  color: var(--text);
  margin: 16px 0 12px;
}
.wallet-card code {
  display: block;
  color: var(--cyan);
  border: 1px solid rgba(34, 230, 255, 0.18);
  border-radius: 8px;
  background: rgba(34, 230, 255, 0.06);
  padding: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.mockup-hero figcaption {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-align: center;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.mockup-hero figcaption .dot-sep { color: var(--magenta); opacity: 0.6; }

/* ===== flow ===== */

.gate {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto 32px;
  padding: 18px 22px;
  background:
    radial-gradient(120% 200% at 100% 0%, rgba(217,70,239,0.18), transparent 60%),
    linear-gradient(180deg, rgba(20,8,42,0.7), rgba(10,6,18,0.7));
  border: 1px solid rgba(217,70,239,0.45);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(217,70,239,0.18), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.gate-tag {
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #22e6ff;
  padding: 4px 10px;
  border: 1px solid rgba(34,230,255,0.4);
  border-radius: 999px;
  background: rgba(34,230,255,0.08);
}
.gate-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gate-body strong {
  font-size: 16px;
  letter-spacing: 0.2px;
}
.gate-body span {
  font-size: 13px;
  color: var(--text-dim, #cfc6b3);
}
.gate-num {
  font-family: "VT323", ui-monospace, monospace;
  font-size: 30px;
  line-height: 1;
  color: #d946ef;
  text-shadow: 0 0 18px rgba(217,70,239,0.45);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .gate {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .gate-num { font-size: 26px; }
}

.flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.flow-step {
  background: rgba(18, 10, 31, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  position: relative;
}
.flow-num {
  font-family: var(--f-display);
  font-size: 56px;
  line-height: 1;
  color: var(--magenta);
  opacity: 0.7;
  margin-bottom: 12px;
}
.flow-step h3 {
  font-family: var(--f-display);
  font-size: 30px;
  margin: 0 0 12px;
  color: var(--text);
}
.flow-step p { color: var(--text-dim); font-size: 14px; margin: 0 0 16px; }
.code {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cyan);
  background: rgba(34, 230, 255, 0.06);
  border: 1px solid rgba(34, 230, 255, 0.18);
  padding: 8px 12px;
  border-radius: var(--r-sm);
}

/* ===== token ===== */

.section-token { padding-top: 100px; padding-bottom: 100px; }

.token-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 64px;
}
.token-block {
  background: linear-gradient(180deg, rgba(34, 230, 255, 0.04), rgba(217, 70, 239, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px;
}
.token-block.big {
  background: linear-gradient(135deg, rgba(34, 230, 255, 0.10), rgba(217, 70, 239, 0.05));
  border-color: rgba(34, 230, 255, 0.25);
}
.token-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.token-value {
  font-family: var(--f-display);
  font-size: 34px;
  color: var(--text);
  margin-top: 10px;
}
.token-block.big .token-value { color: var(--cyan); font-size: 42px; }
.token-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.alloc-title {
  font-family: var(--f-display);
  font-size: 28px;
  margin: 0 0 18px;
  color: var(--text);
  text-align: center;
}
.alloc-bar {
  display: flex;
  width: 100%; height: 38px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18, 10, 31, 0.6);
}
.alloc-bar span {
  width: var(--w);
  background: var(--c);
  position: relative;
  transition: filter 200ms ease;
}
.alloc-bar span:hover { filter: brightness(1.3); }
.alloc-bar span[data-l]::after {
  content: attr(data-l);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--void-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 150ms ease;
}
.alloc-bar span:hover[data-l]::after { opacity: 1; }
.alloc-legend {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.alloc-legend i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== roadmap ===== */

.roadmap {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  counter-reset: rm;
  max-width: 860px; margin: 0 auto;
}
.roadmap li {
  background: rgba(18, 10, 31, 0.55);
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-faint);
  border-radius: var(--r-md);
  padding: 24px 28px;
}
.roadmap li.rm-now {
  border-left-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(34, 230, 255, 0.18), 0 20px 60px -30px rgba(34, 230, 255, 0.4);
}
.rm-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.rm-now .rm-tag { color: var(--cyan); }
.roadmap h3 {
  font-family: var(--f-display);
  font-size: 28px;
  margin: 0 0 6px;
  color: var(--text);
}
.roadmap p { color: var(--text-dim); margin: 0; font-size: 14px; }

/* ===== CTA ===== */

.section-cta { padding: 100px 32px; }
.cta-box {
  max-width: 720px; margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(34, 230, 255, 0.08), rgba(217, 70, 239, 0.06));
  border: 1px solid rgba(34, 230, 255, 0.25);
  border-radius: var(--r-lg);
  padding: 56px 44px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute; inset: -50%;
  background: radial-gradient(circle at center, rgba(34, 230, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-box > * { position: relative; }
.cta-box p { color: var(--text-dim); margin: 14px 0 24px; }
.cta-form {
  display: flex; gap: 10px; max-width: 520px; margin: 0 auto;
}
.cta-form input {
  flex: 1;
  background: rgba(10, 6, 18, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 14px;
  outline: none;
}
.cta-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 230, 255, 0.15); }
.cta-ok { color: var(--cyan); font-size: 13px; margin-top: 14px; }
.cta-sub { font-size: 12px; color: var(--text-faint); margin-top: 22px; }
.cta-follow {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  max-width: 520px; margin: 0 auto;
}

/* ===== FAQ ===== */

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: rgba(18, 10, 31, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--cyan);
  font-family: var(--f-mono);
  font-size: 22px;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 24px 22px;
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

/* ===== footer ===== */

.foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: 80px;
  padding: 56px 32px 24px;
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.brand-foot { font-size: 24px; }
.foot-tag { color: var(--text-dim); font-size: 13px; margin-top: 12px; }
.foot h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.foot a {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 8px;
}
.foot a:hover { color: var(--cyan); }
.foot-bar {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.foot-ca code {
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--magenta);
  overflow-wrap: anywhere;
}
.token-contract .token-value {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* ===== responsive ===== */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid .card,
  .feature-grid .card:nth-child(4),
  .feature-grid .card:nth-child(5) {
    grid-column: auto;
  }
  .token-grid { grid-template-columns: repeat(2, 1fr); }
  .token-block.big { grid-column: span 2; }
  .mockup-stage {
    min-height: 720px;
    border-radius: 12px;
  }
  .plugin-popup {
    left: 28px;
    top: 72px;
  }
  .wallet-card {
    right: 28px;
    bottom: 34px;
  }
  .nav-links { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 80px 20px; }
  .hero { padding: 40px 20px; }
  .grid-4, .flow, .token-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .token-block.big { grid-column: span 1; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .stat-n { font-size: 28px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bar { flex-direction: column; gap: 8px; }
  .cta-form { flex-direction: column; }
  .nav-cta { display: none; }
}

/* ===== reveal on scroll ===== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KINSY cozy game theme ===== */

:root {
  --void: #f8ead2;
  --void-2: #fff7e8;
  --void-3: #ead6aa;
  --line: rgba(129, 93, 45, 0.18);
  --line-strong: rgba(129, 93, 45, 0.34);
  --text: #3d2c22;
  --text-dim: #6f5844;
  --text-faint: #9b8065;
  --cyan: #38a8c8;
  --cyan-soft: #127996;
  --magenta: #d86fa9;
  --magenta-hot: #ee9ec4;
  --cream: #fff9eb;
  --cream-warm: #f2bc63;
  --mint: #67b96d;
  --gold: #e6ab3f;
  --indigo: #7f6ac8;
  --grad-1: linear-gradient(135deg, #55bfd4 0%, #83c86d 48%, #f1b75a 100%);
  --grad-glow:
    radial-gradient(circle at 12% 0%, rgba(255, 214, 135, 0.45), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(95, 190, 214, 0.28), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(116, 188, 105, 0.24), transparent 48%);
}

body {
  background:
    var(--grad-glow),
    linear-gradient(rgba(255, 249, 235, 0.84), rgba(248, 234, 210, 0.92)),
    url("assets/kintara-world-bg.png") center top / cover fixed,
    #f8ead2;
}

.hero .display,
.hero .grad,
.hero .fantasy {
  color: #3d2c22;
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  text-shadow: none;
}

.hero .fantasy {
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 400;
}

.scanlines { display: none; }
.grid-bg {
  background-image:
    linear-gradient(rgba(129, 93, 45, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 93, 45, 0.06) 1px, transparent 1px);
}
.vignette {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.25), transparent 60%),
    linear-gradient(180deg, transparent, rgba(233, 201, 146, 0.24));
}

a { color: #168bad; }
a:hover { color: #c75b94; }
.nav {
  background: rgba(255, 248, 232, 0.82);
  border-bottom: 1px solid rgba(129, 93, 45, 0.2);
  box-shadow: 0 12px 30px rgba(124, 90, 48, 0.08);
}
.brand-mark,
.brand:hover .brand-mark {
  filter: drop-shadow(0 8px 12px rgba(99, 135, 83, 0.22));
}
.brand-ticker {
  color: #287f44;
  background: rgba(131, 200, 109, 0.18);
  border-color: rgba(91, 154, 74, 0.28);
}
.eyebrow,
.card,
.gate,
.flow-step,
.token-block,
.alloc,
.roadmap li,
.cta-box,
.faq details,
.hero-term,
.plugin-popup,
.wallet-card {
  background: linear-gradient(180deg, rgba(255, 250, 238, 0.94), rgba(249, 233, 203, 0.94));
  border-color: rgba(129, 93, 45, 0.22);
  box-shadow: 0 20px 45px rgba(110, 78, 39, 0.12);
}
.hero-term::before,
.hero-term::after,
.mockup-stage::after { display: none; }
.hero-term {
  overflow: hidden;
}
.term-chrome,
.plugin-head,
.plugin-stats div,
.wallet-title,
.feed-head {
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(129, 93, 45, 0.16);
}
.term-feed,
.plugin-feed,
.code {
  background: rgba(96, 76, 50, 0.08);
  color: #316f45;
}
.term-feed .ts,
.term-title,
.stat-l,
.card-tag,
.token-label,
.token-hint,
.rm-tag,
.foot h4 {
  color: var(--text-faint);
}
.term-feed .ok,
.stat-n,
.plugin-head strong,
.plugin-stats dd {
  color: #168bad;
}
.term-feed .warn,
.lede strong,
.fantasy,
.token-value,
.faq summary::after {
  color: #c75b94;
}
.btn {
  border-radius: 10px;
}
.btn-primary {
  color: #2f2418;
  background: linear-gradient(135deg, #f4c96e, #82c96d 55%, #57bfd4);
  box-shadow: 0 10px 24px rgba(87, 156, 83, 0.22), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover {
  color: #2f2418;
  background: linear-gradient(135deg, #ffe08b, #92d87c 55%, #69cfe3);
  box-shadow: 0 12px 28px rgba(87, 156, 83, 0.28);
}
.btn-ghost {
  color: #4c3b2d;
  background: rgba(255, 250, 238, 0.7);
  border-color: rgba(129, 93, 45, 0.24);
}
.btn-ghost:hover {
  color: #168bad;
  border-color: rgba(56, 168, 200, 0.45);
  background: #fffaf0;
}
.mockup-stage {
  background:
    linear-gradient(180deg, rgba(255, 246, 224, 0.18), rgba(121, 173, 98, 0.16)),
    url("assets/kintara-world-bg.png") center center / cover;
  border-color: rgba(129, 93, 45, 0.28);
  box-shadow: 0 45px 90px rgba(95, 65, 32, 0.22);
}
.mockup-stage::before {
  background: linear-gradient(180deg, rgba(255, 250, 238, 0.16), rgba(255, 250, 238, 0.36));
  mix-blend-mode: normal;
}
.game-window,
.game-topbar,
.game-hud {
  background: rgba(255, 250, 238, 0.72);
  border-color: rgba(129, 93, 45, 0.2);
  color: var(--text-dim);
}
.game-topbar strong,
.card h3,
.feature-copy h3,
.roadmap h3,
.faq summary,
.brand-name {
  color: var(--text);
}
.plugin-actions button,
.wallet-actions button {
  border-radius: 9px;
  border-color: rgba(129, 93, 45, 0.22);
  background: #fff8e8;
  color: var(--text);
}
.plugin-actions button:first-child,
.wallet-actions button:last-child {
  background: linear-gradient(135deg, #f4c96e, #83c86d);
  color: #2f2418;
}
.card-soon,
.feature-disabled {
  opacity: 0.6;
  filter: saturate(0.7);
}
.foot {
  background: rgba(255, 248, 232, 0.7);
  border: 1px solid rgba(129, 93, 45, 0.14);
  border-radius: 16px 16px 0 0;
}
.foot-ca code {
  background: rgba(255, 248, 232, 0.9);
  border-color: rgba(129, 93, 45, 0.22);
  color: #8a5b14;
}
