/* =========================================================
   ChuiE — Chui Energy
   Dark space theme · gold bandolier · green source
   ========================================================= */

:root {
  --bg: #07080e;
  --surface: #12141c;
  --ink: #f3eee4;
  --ink-soft: #b8b1a4;
  --ink-faint: #7a7468;
  --line: rgba(232, 184, 109, 0.14);
  --line-strong: rgba(232, 184, 109, 0.28);

  --red: #ff6b4a;
  --red-soft: rgba(255, 107, 74, 0.14);
  --red-mid: #ff8a6e;

  --blue: #7eb0ff;
  --blue-soft: rgba(126, 176, 255, 0.12);
  --blue-mid: #9bc2ff;

  --green: #3ee68a;
  --green-soft: rgba(62, 230, 138, 0.12);
  --green-mid: #6ef0a8;

  --gold: #e8b86d;
  --gold-soft: rgba(232, 184, 109, 0.14);
  --gold-mid: #f0cc93;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.35), 0 24px 48px rgba(0, 0, 0, 0.4);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  --nav-h: 72px;
  --max: 1120px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section { padding: 3.5rem 0; }
.section-sm { padding: 2.5rem 0; }

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 520px;
  margin-bottom: 2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.eyebrow.red { color: var(--red); }
.eyebrow.blue { color: var(--blue); }
.eyebrow.green { color: var(--green); }
.eyebrow.gold { color: var(--gold); }

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
  color: var(--ink);
  font-family: var(--display);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  font-weight: 750;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0;
}

.lead.center { margin-inline: auto; }

p {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

p:last-child { margin-bottom: 0; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 8, 14, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: grid;
  grid-template-columns: 40px auto;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo:hover { text-decoration: none; }

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  grid-row: 1 / span 2;
  box-shadow: 0 0 0 1px var(--line), 0 0 18px rgba(62, 230, 138, 0.25);
}

.logo-word {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: var(--bg);
  text-decoration: none;
}

.nav-cta { margin-left: 0.5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mobile-drawer.open { display: flex; }

.mobile-drawer a {
  padding: 0.9rem 1.25rem;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.mobile-drawer a:last-child { border-bottom: none; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  font-family: inherit;
  line-height: 1.2;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #c4923a 0%, var(--gold) 50%, #3ee68a 160%);
  color: #1a1208;
  box-shadow: 0 1px 2px rgba(232, 184, 109, 0.35), 0 0 24px rgba(62, 230, 138, 0.18);
}

.btn-primary:hover { background: var(--gold); color: #1a1208; }

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover { background: #15803d; color: #fff; }

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink-faint);
  background: var(--bg);
  color: var(--ink);
}

.btn-lg { padding: 0.95rem 1.5rem; font-size: 1.02rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.35rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 3.25rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(22, 163, 74, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 35% at 70% 90%, rgba(220, 38, 38, 0.05), transparent 50%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- Grids / cards ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.card-icon.blue { background: var(--blue-soft); color: var(--blue); }
.card-icon.green { background: var(--green-soft); color: var(--green); }
.card-icon.red { background: var(--red-soft); color: var(--red); }

.card-icon svg { width: 22px; height: 22px; }

.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.path-card .path-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.path-card.buyers .path-tag { background: var(--blue-soft); color: var(--blue); }
.path-card.investors .path-tag { background: var(--green-soft); color: var(--green); }

.path-card h3 { font-size: 1.35rem; }
.path-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Visual: price bars comparison ---------- */

.viz-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.35rem;
}

.viz-panel .viz-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.bar-compare {
  display: grid;
  gap: 1.1rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 64px;
  gap: 0.75rem;
  align-items: center;
}

.bar-row .label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.bar-track {
  height: 28px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding-left: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  min-width: 2rem;
  transition: width 0.8s ease;
}

.bar-fill.high { background: linear-gradient(90deg, #ef4444, #f97316); }
.bar-fill.mid { background: linear-gradient(90deg, #f59e0b, #eab308); }
.bar-fill.low { background: linear-gradient(90deg, #16a34a, #22c55e); }
.bar-fill.blue { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }

.bar-row .value {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .bar-row .value { text-align: left; }
}

/* ---------- Visual: side-by-side compare cards ---------- */

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.vs-badge {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1208;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.vs-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.vs-card.bad { border-top: 4px solid var(--red); }
.vs-card.good { border-top: 4px solid var(--green); }
.vs-card.good-blue { border-top: 4px solid var(--blue); }

.vs-card .vs-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.vs-card.bad .vs-label { color: var(--red); }
.vs-card.good .vs-label { color: var(--green); }
.vs-card.good-blue .vs-label { color: var(--blue); }

.vs-card .vs-price {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.vs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.vs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.vs-list .mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 1px;
}

.vs-list .mark.no { background: var(--red-soft); color: var(--red); }
.vs-list .mark.yes { background: var(--green-soft); color: var(--green); }

@media (max-width: 700px) {
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-badge {
    margin: 0 auto;
    transform: rotate(90deg);
  }
}

/* ---------- Visual: metric tiles ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.metric .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.metric .icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric .icon.green { background: var(--green-soft); color: var(--green); }
.metric .icon.red { background: var(--red-soft); color: var(--red); }
.metric .icon svg { width: 24px; height: 24px; }

.metric .n {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.metric .l {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

@media (max-width: 800px) {
  .metrics { grid-template-columns: 1fr 1fr; }
}

/* ---------- Visual: power map / region chart ---------- */

.power-chart {
  display: grid;
  gap: 0.85rem;
}

.power-item {
  display: grid;
  grid-template-columns: 140px 1fr 52px;
  gap: 0.75rem;
  align-items: center;
}

.power-item .name {
  font-size: 0.88rem;
  font-weight: 600;
}

.power-item .track {
  height: 18px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.power-item .fill {
  height: 100%;
  border-radius: 999px;
}

.power-item .val {
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.power-item.winner .name { color: var(--green); }
.power-item.winner .fill {
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.power-item:not(.winner) .fill {
  background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

@media (max-width: 560px) {
  .power-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .power-item .val { text-align: left; }
}

/* ---------- Visual: step flow ---------- */

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.flow-step {
  text-align: center;
  padding: 1.25rem 1rem;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -12%;
  width: 24%;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}

.flow-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.flow-num.blue { background: var(--blue); }
.flow-num.green { background: var(--green); }
.flow-num.red { background: var(--red); }

.flow-step h3 { margin-bottom: 0.25rem; }
.flow-step p { font-size: 0.9rem; max-width: 200px; margin-inline: auto; }

@media (max-width: 700px) {
  .flow { grid-template-columns: 1fr; gap: 0.5rem; }
  .flow-step:not(:last-child)::after { display: none; }
}

/* ---------- Visual: dual path icons ---------- */

.path-visual {
  height: 120px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.path-visual.buy {
  background: linear-gradient(135deg, rgba(126, 176, 255, 0.16) 0%, rgba(18, 20, 28, 0.4) 100%);
}

.path-visual.invest {
  background: linear-gradient(135deg, rgba(62, 230, 138, 0.16) 0%, rgba(18, 20, 28, 0.4) 100%);
}

.path-visual svg {
  width: 100%;
  height: 100%;
}

/* ---------- Visual: check matrix ---------- */

.matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.matrix th,
.matrix td {
  padding: 0.95rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.matrix th {
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.matrix th:first-child,
.matrix td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.matrix tr:last-child td { border-bottom: none; }

.matrix .cell-yes {
  color: var(--green);
  font-weight: 800;
  font-size: 1.15rem;
}

.matrix .cell-no {
  color: var(--red);
  font-weight: 700;
  opacity: 0.7;
}

.matrix .cell-mid {
  color: var(--ink-faint);
  font-weight: 600;
}

.matrix th.hl,
.matrix td.hl-col {
  background: rgba(37, 99, 235, 0.04);
}

.matrix th.hl { color: var(--blue); }

/* ---------- Visual: map-ish location card ---------- */

.loc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.loc-map {
  height: 200px;
  background:
    radial-gradient(circle at 58% 48%, rgba(62, 230, 138, 0.45) 0 8px, transparent 9px),
    radial-gradient(circle at 58% 48%, rgba(62, 230, 138, 0.14) 0 28px, transparent 40px),
    linear-gradient(160deg, #0c1220 0%, #102018 40%, #0d1a14 100%);
  position: relative;
  display: grid;
  place-items: center;
}

.loc-map svg {
  width: 90%;
  height: 90%;
  opacity: 0.9;
}

.loc-body {
  padding: 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.loc-body .chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.loc-body .chip .n {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.loc-body .chip .l {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

/* ---------- Visual: funnel / stack ---------- */

.stack-viz {
  display: grid;
  gap: 0.5rem;
}

.stack-layer {
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}

.stack-layer span:last-child {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

/* ---------- CTA ---------- */

.cta-band {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.25), transparent 45%),
    radial-gradient(circle at 80% 50%, rgba(22, 163, 74, 0.18), transparent 45%);
  pointer-events: none;
}

.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
  margin-inline: auto;
}
.cta-band .btn-row { justify-content: center; }

/* ---------- Form ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 520px;
}

.form-grid { display: grid; gap: 0.9rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

@media (max-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 1rem;
}

.form-success.show { display: block; }

.form-success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: 800;
}

/* ---------- Page hero ---------- */

.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero .wrap { max-width: 640px; }

.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #8b5a2b, var(--gold), var(--green), #0b3d2e);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #05060a;
  color: rgba(243, 238, 228, 0.7);
  padding: 2.5rem 0 1.75rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.75); }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: #fff; margin-bottom: 0.6rem; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  max-width: 260px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utils ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.strong { color: var(--ink); font-weight: 600; }

.disclaimer {
  font-size: 0.75rem;
  color: var(--ink-faint);
  line-height: 1.45;
  max-width: 640px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* Icon helpers */
.ico {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Full-screen sections (one per viewport) ---------- */

html {
  scroll-snap-type: y proximity;
}

.screen {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
  padding: calc(var(--nav-h) + 1.25rem) 0 2rem;
  position: relative;
}

.screen.tight {
  padding-top: calc(var(--nav-h) + 0.75rem);
  padding-bottom: 1.25rem;
}

.screen > .wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.screen-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.screen-dark {
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(62, 230, 138, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(232, 184, 109, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0c14 0%, #12181a 100%);
  color: #fff;
  border: none;
}

.screen-dark h1,
.screen-dark h2,
.screen-dark h3 {
  color: #fff;
}

.screen-dark .lead,
.screen-dark p {
  color: rgba(255, 255, 255, 0.72);
}

/* When body uses snap, footer also snaps */
.site-footer {
  scroll-snap-align: start;
}

/* Page hero as first screen without double padding issues */
.screen.page-first {
  padding-top: calc(var(--nav-h) + 2rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Dots nav (optional visual) */
.screen-dots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.screen-dots a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.screen-dots a:hover,
.screen-dots a.active {
  background: var(--blue);
  transform: scale(1.25);
  text-decoration: none;
}

@media (max-width: 900px) {
  .screen-dots { display: none; }
  .screen {
    min-height: auto;
    padding: calc(var(--nav-h) + 1.5rem) 0 2.5rem;
    scroll-snap-align: none;
  }
  html { scroll-snap-type: none; }
}

/* ---------- Language switcher ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-left: 0.35rem;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--gold);
  color: #1a1208;
}

.mobile-drawer .lang-switch {
  margin: 0.75rem 1.25rem 0.25rem;
  align-self: flex-start;
}

/* Compress dense viz slightly on shorter screens */
@media (max-height: 800px) {
  .screen .metrics { gap: 0.75rem; }
  .screen .metric { padding: 0.85rem 0.75rem; }
  .screen .metric .n { font-size: 1.2rem; }
  .screen h1 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
  .screen h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
  .vs-card .vs-price { font-size: 1.45rem; }
  .bar-track { height: 22px; }
}

/* Footer grid slightly tighter in snap layout */
.site-footer .wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Canal gap (KG + investors) ---------- */

.gap-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.gap-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.gap-card .gap-media {
  height: 120px;
  background-size: cover;
  background-position: center;
}

.gap-card .gap-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.gap-card .gap-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gap-card .gap-n {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.25rem 0 0;
}

.gap-card.ok .gap-kicker { color: var(--green); }
.gap-card.ok .gap-n { color: var(--green); }
.gap-card.warn .gap-kicker { color: var(--red); }
.gap-card.warn .gap-n { color: var(--red); }

.gap-plus {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1208;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.canal-banner {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow);
}

.canal-banner p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.02em;
}

@media (max-width: 800px) {
  .gap-pair { grid-template-columns: 1fr; }
  .gap-plus { margin: 0 auto; }
  .canal-banner { grid-template-columns: 1fr; }
}

/* ---------- Promenade deck ---------- */

.promo-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #0b1a16;
  border: none;
  padding: 0 !important;
  min-height: 100dvh;
}

.promo-hero .promo-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.25) 40%, rgba(15, 23, 42, 0.72) 100%),
    url("../assets/chui.jpg") center / cover no-repeat;
}

.promo-hero .wrap {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2rem) 0 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100dvh;
}

.promo-hero h1,
.promo-hero .lead {
  color: #fff;
}

.promo-hero .lead {
  max-width: 640px;
  font-size: 1.15rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.9);
}

.promo-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.promo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.promo-chip svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.stat-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-blow {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #fff;
}

.stat-blow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.78));
}

.stat-blow > * { position: relative; z-index: 1; }

.stat-blow.cheap {
  background: url("../assets/chui-east.jpg") center / cover no-repeat;
}

.stat-blow.full {
  background: url("../assets/grid.jpg") center / cover no-repeat;
}

.stat-blow .k {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.stat-blow .n {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0.35rem 0 0;
}

.stat-blow.cheap .n { color: #86efac; }
.stat-blow.full .n { color: #fca5a5; }

@media (max-width: 700px) {
  .stat-duo { grid-template-columns: 1fr; }
  .stat-blow { min-height: 220px; }
}

.promo-map {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.25rem 1rem;
}

.promo-map svg { width: 100%; height: auto; }

.km-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.km-badge .n {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: var(--ink);
}

.km-badge .l {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 0.45rem;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.kit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.kit-card .kit-pic {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.kit-card .kit-pic svg {
  position: absolute;
  inset: auto 12px 12px auto;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.kit-card .kit-body {
  padding: 1rem 1.1rem 1.15rem;
}

.kit-card h3 { margin-bottom: 0.2rem; }
.kit-card p { font-size: 0.9rem; margin: 0; }

@media (max-width: 800px) {
  .kit-grid { grid-template-columns: 1fr; }
  .kit-card .kit-pic { height: 160px; }
}

.pow-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.pow-node {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.pow-node .pic {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.pow-node .lab {
  padding: 0.9rem 0.7rem 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pow-arr {
  align-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
}

@media (max-width: 800px) {
  .pow-flow { grid-template-columns: 1fr; }
  .pow-arr { margin: 0 auto; transform: rotate(90deg); }
}

.rail-stage {
  text-align: center;
}

.rail-stage .ticker {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mesh-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.mesh-pill {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow);
}

.mesh-pill.kgst {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}

.mesh-pill.on {
  background: var(--green-soft);
  color: var(--green);
  border-color: #bbf7d0;
}

.rail-quote {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.binance-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ask-line {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.credit {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- ChuiE space layer ---------- */

#stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.accent-bar,
.screen,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-nav,
.mobile-drawer,
.screen-dots {
  z-index: 100;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-grid .lead {
  overflow-wrap: break-word;
  max-width: 36rem;
}

.hero-stage {
  position: relative;
  min-height: 320px;
}

.hero-stage .mascot {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: -56px;
  right: -12px;
  box-shadow:
    0 0 0 3px rgba(232, 184, 109, 0.45),
    0 0 36px rgba(62, 230, 138, 0.35);
  z-index: 2;
}

.hero-stage .viz-panel {
  position: relative;
  z-index: 1;
  padding-top: 2.25rem;
}

.wink {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.logo-word .e {
  background: linear-gradient(180deg, var(--gold), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stage .mascot {
    width: 96px;
    height: 96px;
    top: -28px;
    right: 8px;
  }
}
