/* ==========================================================================
   Veridian Chain — marketing + market surface
   Deep navy ground, cyan→emerald light, gold accents. Exchange-grade data
   surfaces, product-grade typography.
   ========================================================================== */

:root {
  --bg: #050a18;
  --bg-2: #070e21;
  --bg-3: #0a1228;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(140, 190, 255, 0.14);
  --line-2: rgba(140, 190, 255, 0.28);

  --cyan: #22d3ee;
  --emerald: #34d399;
  --gold: #f5c97b;
  --rose: #fb7185;
  --violet: #a78bfa;

  --ink: #eaf2ff;
  --ink-2: #b7c8e4;
  --ink-3: #7f93b4;

  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --maxw: 1240px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.accent { color: var(--cyan); }
.ok { color: var(--emerald); }
.tiny { font-size: 11.5px; }
.big { font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  backdrop-filter: blur(20px) saturate(150%);
  background: linear-gradient(to bottom, rgba(5, 10, 24, 0.88), rgba(5, 10, 24, 0.35));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.nav.stuck { border-bottom-color: var(--line); background: rgba(5, 10, 24, 0.94); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -0.02em; }
.brand-mark { width: 31px; height: 31px; flex: none; }
.brand-name { font-size: 15.5px; }
.brand-name span { color: var(--ink-3); font-weight: 450; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; transition: color 0.25s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 13px; color: var(--ink); transition: border-color 0.25s, background 0.25s;
}
.chip:hover { border-color: var(--line-2); background: var(--panel-2); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }

.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font); font-size: 14.5px; font-weight: 550;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  --btn-bg: linear-gradient(135deg, #22d3ee, #34d399); --btn-fg: #04121c; --btn-bd: transparent;
  box-shadow: 0 14px 38px -16px rgba(34, 211, 238, 0.8);
}
.btn-primary:hover { box-shadow: 0 20px 48px -16px rgba(34, 211, 238, 0.9); }
.btn-ghost:hover { --btn-bd: var(--cyan); color: var(--cyan); }
.btn-lg { padding: 14px 26px; font-size: 15.5px; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; padding: 152px 0 84px; overflow: hidden; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image:
    linear-gradient(rgba(120, 170, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(74% 60% at 50% 20%, #000 18%, transparent 78%);
}
#aurora { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.62; }
.hero-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 15px 6px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); font-size: 12.5px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-2);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 { margin: 22px 0 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.03; letter-spacing: -0.037em; font-weight: 700; }
.grad {
  background: linear-gradient(104deg, #7ef0ff 6%, #34d399 54%, #f5c97b 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 22px 0 0; font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--ink-2); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 52px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--line); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 19px 17px; }
.stat b { display: block; font-size: 23px; font-weight: 650; letter-spacing: -0.025em; }
.stat span { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }

/* chart card */
.hero-panel { display: grid; gap: 14px; }
.chart-card {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 22, 46, 0.9), rgba(7, 14, 33, 0.94));
  box-shadow: var(--shadow); padding: 20px 20px 12px;
}
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.chart-pair { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.chart-quote { color: var(--ink-3); font-weight: 500; }
.chart-price { font-size: 32px; font-weight: 650; letter-spacing: -0.03em; margin-top: 6px; }
.chart-meta { display: grid; gap: 4px; text-align: right; font-size: 12.5px; color: var(--ink-3); }
.chart { width: 100%; height: 210px; display: block; margin-top: 8px; }
.chart-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--ink-3); padding-top: 6px; border-top: 1px solid rgba(140, 190, 255, 0.1); }
.hero-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini { padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); }
.mini-k { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.mini-v { display: block; margin-top: 5px; font-size: 14px; color: var(--ink); }

/* ---------------------------------------------------------- sections */
section { padding: 92px 0; position: relative; }
.sec-head { max-width: 780px; margin-bottom: 50px; }
.kicker { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); font-weight: 600; }
h2 { margin: 14px 0 0; font-size: clamp(29px, 3.6vw, 43px); line-height: 1.08; letter-spacing: -0.032em; font-weight: 660; }
h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.018em; font-weight: 620; }
.sub { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; max-width: 64ch; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s, background 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.card .ic { width: 38px; height: 38px; margin-bottom: 18px; color: var(--cyan); }
.card p { margin: 0; color: var(--ink-2); font-size: 15.3px; }
.card .tag { display: inline-block; margin-bottom: 13px; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* market table */
.table-card { padding: 10px 14px; }
.mkt { width: 100%; border-collapse: collapse; font-size: 14.8px; }
.mkt th, .mkt td { padding: 15px 12px; text-align: left; }
.mkt th { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.mkt td { color: var(--ink-2); border-top: 1px solid rgba(140, 190, 255, 0.08); }
.mkt td:first-child { color: var(--ink); font-weight: 600; }
.mkt .pair-cell { display: flex; align-items: center; gap: 11px; }
.mkt .pair-logo { width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--bg-3); border: 1px solid var(--line); }
.mkt .pool-link { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.mkt .pool-link:hover { color: var(--cyan); }
.mkt tr:hover td { background: rgba(255, 255, 255, 0.022); }
.mkt .skeleton td { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.up { color: var(--emerald); }
.down { color: var(--rose); }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 24px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 9px; margin-bottom: 14px;
  background: rgba(34, 211, 238, 0.14); border: 1px solid rgba(34, 211, 238, 0.3);
  font-family: var(--mono); font-size: 12.5px; color: var(--cyan);
}
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step::after {
  content: ""; position: absolute; top: 50%; right: -9px; width: 9px; height: 9px;
  border-top: 1px solid var(--line-2); border-right: 1px solid var(--line-2);
  transform: translateY(-50%) rotate(45deg);
}
.step:last-child::after { display: none; }

/* receipt */
.receipt {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 18, 38, 0.96), rgba(6, 12, 26, 0.96));
  padding: 24px; font-family: var(--mono); font-size: 13.5px; box-shadow: var(--shadow);
}
.receipt-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(140, 190, 255, 0.16); color: var(--ink-3); }
.receipt .row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed rgba(140, 190, 255, 0.11); }
.receipt .row:last-child { border-bottom: 0; }
.receipt .k { color: var(--ink-3); }
.receipt .v { color: var(--ink); }

/* timeline */
.tl { display: grid; gap: 16px; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: start; }
.tl-when { font-family: var(--mono); font-size: 13px; color: var(--cyan); padding-top: 6px; }
.tl-body { padding: 24px 26px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); }
.tl-body p { margin: 7px 0 0; color: var(--ink-2); font-size: 15.5px; }
.tl-item.now .tl-body { border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.06); }
.tl-item.now .tl-when::after { content: " · live"; color: var(--emerald); }

/* faq */
.faq { display: grid; gap: 10px; }
details.q { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
details.q summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 560;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; font-family: var(--mono); color: var(--cyan); font-size: 19px; }
details.q[open] summary::after { content: "−"; }
details.q .ans { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.3px; }

/* form */
.form { display: grid; gap: 12px; max-width: 520px; }
.form input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(5, 10, 24, 0.72); color: var(--ink);
  font-size: 15px; font-family: var(--font);
}
.form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14); }
.form-note { font-size: 13px; color: var(--ink-3); }
.form-ok { color: var(--emerald); font-size: 14.5px; }
.form-err { color: #fca5a5; font-size: 14.5px; }
.wallet-msg { min-height: 18px; }
.wallet-msg.ok { color: var(--emerald); }
.wallet-msg.err { color: #fca5a5; }

/* cta */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line-2);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.13), rgba(52, 211, 153, 0.08) 55%, rgba(245, 201, 123, 0.09));
  padding: 58px;
}
.cta-band::before {
  content: ""; position: absolute; inset: -45% -10% auto auto; width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 62%); pointer-events: none;
}

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 62px; color: var(--ink-3); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a:hover { color: var(--ink-2); }
.disclaimer { margin-top: 26px; font-size: 12.5px; line-height: 1.62; color: #5f7391; max-width: 96ch; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: 0.08s; }
.rv[data-d="2"] { transition-delay: 0.16s; }
.rv[data-d="3"] { transition-delay: 0.24s; }
.rv[data-d="4"] { transition-delay: 0.32s; }

@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; gap: 42px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .nav-links { display: none; }
  .table-card { overflow-x: auto; }
  .mkt { min-width: 720px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 66px 0; }
  .g3, .g4, .g2, .flow { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cta-band { padding: 34px 26px; }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .nav-right .chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
