/* ============================================================
   RELIQUARY - Autonomous onchain treasury succession agent
   Stylesheet v2 - Professional Edition
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:            #05050a;
  --bg-1:          #08080d;
  --bg-2:          #0c0c13;
  --surface:       #0a0a10;
  --surface-2:     #0f0f17;
  --surface-3:     #141420;

  --line:          #161622;
  --line-2:        #22222e;
  --hair:          rgba(236, 233, 225, 0.055);
  --hair-2:        rgba(236, 233, 225, 0.1);

  --bone:          #f0ede6;
  --bone-dim:      #a8a59c;
  --bone-faint:    #6a6860;
  --silver:        #8b8b90;

  --gold:          #c8a96a;
  --gold-soft:     #ddc28e;
  --gold-dim:      #7e6a3e;
  --gold-glow:     rgba(200,169,106,0.18);

  --living:        #7ecb86;
  --living-soft:   #a8dbb0;
  --living-dim:    #3d6b44;
  --living-glow:   rgba(126,203,134,0.15);

  --warn:          #cd924f;
  --alert:         #bd5750;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1260px;
  --gut: clamp(22px, 5vw, 72px);
  --radius: 2px;

  --ticker-h: 36px;
  --nav-h: 68px;
  --header-h: calc(var(--ticker-h) + var(--nav-h));

  --glow-gold: 0 0 30px rgba(200,169,106,0.12), 0 0 60px rgba(200,169,106,0.06);
  --glow-living: 0 0 30px rgba(126,203,134,0.12), 0 0 60px rgba(126,203,134,0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(200,169,106,0.25); color: var(--bone); }

/* ---------- Hidden scrollbars (scroll still works) ---------- */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--living-dim), var(--gold));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---------- Ambient background ---------- */
.field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 85% -5%, rgba(200,169,106,0.055), transparent 55%),
    radial-gradient(900px 700px at 5% 15%, rgba(126,203,134,0.04), transparent 55%),
    radial-gradient(600px 600px at 60% 80%, rgba(126,203,134,0.025), transparent 50%),
    var(--bg);
}
.field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 140% 90% at 50% 0%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 140% 90% at 50% 0%, #000 25%, transparent 72%);
  opacity: 0.55;
}

/* Floating particles canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.grain {
  position: fixed;
  inset: -120%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 8s steps(6) infinite;
}
@keyframes grainshift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(2%, -5%); }
  60% { transform: translate(-3%, 2%); }
  80% { transform: translate(4%, 4%); }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }
.section-pad { padding-block: clamp(88px, 12vw, 160px); }
.rule { height: 1px; background: var(--line); border: 0; }
.rule-soft { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent); border: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .idx { color: var(--gold); }
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
  display: inline-block;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--bone);
}
h2.display { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h3.display { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
.lede {
  color: var(--bone-dim);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.76;
  max-width: 60ch;
}
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.living { color: var(--living); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: var(--ticker-h);
  left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
.nav.scrolled {
  background: rgba(5,5,10,0.8);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .seal { width: 26px; height: 26px; }
.brand .name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  color: var(--bone);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color .25s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--line-2);
  color: var(--bone);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,169,106,0.1), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-cta:hover { border-color: var(--gold-dim); box-shadow: var(--glow-gold); }
.nav-cta:hover::before { opacity: 1; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--bone); display: block; transition: all .3s ease; }

/* ---------- Ticker bar ---------- */
.ticker-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  background: var(--bg-1);
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.ticker-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg-1), transparent); }
.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 0;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.ticker-item {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dim); flex: none; }
.ticker-item .hi { color: var(--living); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--line-2);
  color: var(--bone);
  position: relative;
  transition: border-color .3s ease, color .3s ease, background .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
}
.btn .arr { transition: transform .35s cubic-bezier(.2,.7,.2,1); display: inline-block; }
.btn:hover .arr { transform: translateX(5px); }
.btn-primary {
  border-color: var(--gold-dim);
  background: linear-gradient(160deg, rgba(200,169,106,0.14), rgba(200,169,106,0.03));
  color: var(--gold-soft);
}
.btn-primary::before {
  background: linear-gradient(160deg, rgba(200,169,106,0.1), transparent);
}
.btn-primary:hover {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(200,169,106,0.22), rgba(200,169,106,0.07));
  color: #f3e6c4;
  box-shadow: var(--glow-gold);
}
.btn-ghost:hover { border-color: var(--bone-faint); background: rgba(240,237,230,0.04); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 130px); position: relative; }
.hero-copy--right {
  width: 100%;
  text-align: right;
}
.hero-copy--right .hero-status {
  margin-left: auto;
  margin-right: 0;
}
.hero-copy--right h1 {
  width: 100%;
  text-align: right;
  font-size: clamp(4rem, 13vw, 10rem);
  margin-bottom: 28px;
}
.hero-copy--right .hero-sub {
  max-width: 100%;
  margin-left: auto;
  text-align: right;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  margin-bottom: 32px;
}
.hero-copy--right .hero-desc {
  max-width: 100%;
  margin-left: auto;
  text-align: right;
  margin-bottom: 40px;
}
.hero-copy--right .hero-cta {
  justify-content: flex-end;
  margin-bottom: 36px;
}
.hero-copy--right .hero-trust {
  max-width: 100%;
  margin-left: auto;
  text-align: right;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 8px 16px;
  border: 1px solid var(--living-dim);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(126,203,134,0.04);
  box-shadow: var(--glow-living);
}
.pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--living);
  box-shadow: 0 0 8px rgba(126,203,134,0.7);
  animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(126,203,134,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(126,203,134,0); }
  100% { box-shadow: 0 0 0 0 rgba(126,203,134,0); }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.8rem, 11.5vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-bottom: 24px;
}
.hero h1 .reliq-tail {
  font-style: italic;
  color: var(--gold-soft);
  text-shadow: 0 0 40px rgba(200,169,106,0.3);
}
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.28rem, 2.7vw, 1.92rem);
  line-height: 1.35;
  color: var(--bone-dim);
  max-width: 28ch;
  margin-bottom: 28px;
}
.hero-desc { max-width: 54ch; margin-bottom: 38px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-trust {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
  line-height: 2;
  max-width: 46ch;
}
.hero-trust span { color: var(--silver); }

/* Typewriter cursor */
.cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: middle;
  animation: cursorBlink 1.1s steps(2) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

/* Hero relic text */
.relic-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  gap: 20px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(200,169,106,0.07), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 80px rgba(200,169,106,0.07), inset 0 1px 0 rgba(200,169,106,0.06);
  position: relative;
  overflow: hidden;
}
.relic-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}
.relic-word {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--bone);
  position: relative;
  z-index: 1;
  text-shadow: 0 0 40px rgba(200,169,106,0.2);
  line-height: 1;
}
.relic-tagline {
  font-family: var(--mono);
  font-size: clamp(9px, 1.2vw, 11px);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--bone-faint);
  position: relative;
  z-index: 1;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .35s ease;
}
.stat-item:last-child { border-right: 0; }
.stat-item:hover { background: var(--surface); }
.stat-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.stat-item:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.stat-num .suf { font-family: var(--mono); font-size: 0.6em; color: var(--gold-dim); }
.stat-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ---------- Section header ---------- */
.shead { margin-bottom: clamp(44px, 5.5vw, 68px); max-width: 64ch; }
.shead .eyebrow { margin-bottom: 24px; }
.shead h2 { margin-bottom: 22px; }

/* ---------- Problem ---------- */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.prob-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 30px 38px;
  min-height: 172px;
  position: relative;
  transition: background .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.prob-cell:hover { background: var(--surface-2); }
.prob-cell .no {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--alert);
  opacity: 0.85;
}
.prob-cell h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.44rem;
  line-height: 1.22;
  color: var(--bone);
  margin-top: 28px;
}
.prob-cell::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 2px; height: 0;
  background: linear-gradient(180deg, var(--alert), transparent);
  transition: height .45s ease;
}
.prob-cell:hover::after { height: 100%; }

/* ---------- Solution ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sol-cell {
  background: var(--surface);
  padding: 30px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background .35s ease;
}
.sol-cell:hover { background: var(--surface-2); }
.sol-cell .tick {
  flex: none;
  width: 32px; height: 32px;
  border: 1px solid var(--gold-dim);
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.sol-cell:hover .tick { border-color: var(--gold); box-shadow: var(--glow-gold); }
.sol-cell .lbl {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bone);
}
.sol-banner {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--living-dim);
  background: linear-gradient(90deg, rgba(126,203,134,0.05), transparent);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  color: var(--bone-dim);
  box-shadow: inset 2px 0 8px rgba(126,203,134,0.05);
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding: 44px 0;
  border-top: 1px solid var(--line);
  position: relative;
  transition: padding-left .35s ease;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:hover { padding-left: 12px; }
.step .num {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.2vw, 4rem);
  line-height: 1;
  color: var(--gold-dim);
  font-weight: 300;
}
.step .num .of { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; color: var(--bone-faint); display: block; margin-top: 7px; }
.step h3 { margin-bottom: 14px; }
.step p { color: var(--bone-dim); max-width: 64ch; }
.step .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--living);
  margin-top: 18px;
  display: inline-block;
}

/* ---------- Features ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feat {
  background: var(--surface);
  padding: 36px 32px 40px;
  position: relative;
  transition: background .35s ease;
  overflow: hidden;
}
.feat::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.feat:hover { background: var(--surface-2); }
.feat:hover::after { opacity: 1; }
.feat .key {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feat .key .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--living-dim); }
.feat h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.52rem;
  line-height: 1.18;
  color: var(--bone);
  margin-bottom: 16px;
}
.feat p { font-size: 0.94rem; color: var(--bone-dim); line-height: 1.68; }

/* ---------- Use cases ---------- */
.uses { display: flex; flex-wrap: wrap; gap: 12px; }
.use-chip {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border: 1px solid var(--line-2);
  color: var(--bone-dim);
  transition: color .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.use-chip::before { content: ""; width: 5px; height: 5px; background: var(--gold-dim); border-radius: 50%; transition: background .3s ease; }
.use-chip:hover { color: var(--bone); border-color: var(--gold-dim); background: rgba(200,169,106,0.06); box-shadow: 0 0 20px rgba(200,169,106,0.06); }
.use-chip:hover::before { background: var(--gold); }

/* ---------- Scenario ---------- */
.scene-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: clamp(30px, 4.5vw, 68px); align-items: start; }
.scene-card {
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 13px;
  box-shadow: 0 0 60px rgba(0,0,0,0.4);
}
.scene-card .head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bone-faint);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--bg-2);
}
.scene-card .body { padding: 8px 24px 20px; }
.scene-line {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.scene-line:last-child { border-bottom: 0; }
.scene-line .cond { color: var(--bone-faint); min-width: 28px; }
.scene-line .alloc { color: var(--gold); font-size: 13px; min-width: 50px; text-align: right; }
.scene-line .txt { color: var(--bone-dim); flex: 1; }
.scene-result {
  border-left: 2px solid var(--living-dim);
  padding: 6px 0 6px 26px;
  margin-top: 10px;
  box-shadow: inset 2px 0 8px rgba(126,203,134,0.05);
}
.scene-result p { color: var(--bone-dim); }
.scene-result .punch {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--bone);
  margin-top: 14px;
  line-height: 1.3;
}

/* ---------- Modes ---------- */
.modes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.mode {
  display: grid;
  grid-template-columns: 60px 240px 1fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s ease, background .35s ease;
  position: relative;
}
.mode::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.mode:hover { background: var(--surface); padding-left: 16px; }
.mode:hover::before { opacity: 1; }
.mode .mno { font-family: var(--mono); font-size: 11.5px; color: var(--gold); letter-spacing: 0.12em; }
.mode .mname { font-family: var(--serif); font-size: 1.42rem; color: var(--bone); line-height: 1.1; }
.mode .mdesc { color: var(--bone-dim); font-size: 0.96rem; }

/* ---------- Why onchain ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(36px, 5.5vw, 80px); align-items: start; }
.why-list { display: grid; gap: 0; }
.why-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bone);
  transition: padding-left .3s ease, color .3s ease;
}
.why-item:first-child { border-top: 1px solid var(--line); }
.why-item:hover { padding-left: 10px; color: var(--bone); }
.why-item .mk { color: var(--living); font-size: 14px; text-shadow: 0 0 10px rgba(126,203,134,0.5); }

/* ---------- Comparison ---------- */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cmp-col { background: var(--surface); padding: 0; }
.cmp-col.relic-col { background: linear-gradient(180deg, rgba(200,169,106,0.05), var(--surface)); }
.cmp-col .ch {
  padding: 26px 32px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.cmp-col.relic-col .ch { color: var(--gold); }
.cmp-row {
  padding: 18px 32px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bone-dim);
  font-size: 0.96rem;
  transition: background .25s ease;
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-row:hover { background: rgba(240,237,230,0.025); }
.cmp-row .x { color: var(--alert); font-family: var(--mono); flex: none; }
.cmp-row .o { color: var(--living); font-family: var(--mono); flex: none; text-shadow: 0 0 8px rgba(126,203,134,0.4); }
.cmp-col.relic-col .cmp-row { color: var(--bone); }

/* ---------- Dashboard ---------- */
.dash-toggle { display: inline-flex; border: 1px solid var(--line-2); margin-bottom: 32px; }
.dash-toggle button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  color: var(--bone-faint);
  transition: color .25s ease, background .25s ease;
}
.dash-toggle button.on { color: var(--bone); background: var(--surface-2); }
.dash-toggle button:first-child.on { box-shadow: inset 2px 0 0 var(--living); }
.dash-toggle button:last-child.on { box-shadow: inset 2px 0 0 var(--alert); }

.dash {
  border: 1px solid var(--line-2);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
}
.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.dash-bar .left { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); }
.dash-bar .dots { display: flex; gap: 7px; }
.dash-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.dash-bar .dots i:nth-child(1) { background: #3a3a2a; }
.dash-bar .dots i:nth-child(2) { background: #2a3a2a; }
.dash-bar .dots i:nth-child(3) { background: #2a2a3a; }
.dash-state {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--living-dim);
  color: var(--living);
  box-shadow: var(--glow-living);
}
.dash[data-state="pending"] .dash-state { border-color: var(--alert); color: var(--alert); box-shadow: 0 0 20px rgba(189,87,80,0.15); }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.dcell {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
.dcell:hover { background: var(--surface-2); }
.dcell:nth-child(3n) { border-right: 0; }
.dcell .dk {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 16px;
}
.dcell .dv {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--bone);
}
.dcell .dv.good { color: var(--living-soft); text-shadow: 0 0 20px rgba(126,203,134,0.2); }
.dcell .dv.bad { color: var(--alert); }
.dcell .dv.warn { color: var(--warn); }
.dcell .dv.gold { color: var(--gold-soft); }
.dcell .dmeta { font-family: var(--mono); font-size: 10.5px; color: var(--bone-faint); margin-top: 9px; }
.dash-foot {
  padding: 16px 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--bone-faint);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-1);
}
.dash-foot .bip { width: 7px; height: 7px; border-radius: 50%; background: var(--living); box-shadow: var(--glow-living); flex: none; }
.dash[data-state="pending"] .dash-foot .bip { background: var(--alert); animation: blink 1s steps(2) infinite; box-shadow: 0 0 10px rgba(189,87,80,0.5); }
@keyframes blink { 50% { opacity: 0.2; } }

.meter { height: 3px; background: var(--line); margin-top: 18px; position: relative; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--living-dim), var(--living)); transition: width .7s ease, background .4s ease; }
.dash[data-state="pending"] .meter i { background: linear-gradient(90deg, var(--alert), #e87070); }

/* ---------- Token ---------- */
.tok-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.tok-ticker { font-family: var(--serif); font-size: clamp(2.5rem, 6.2vw, 4.2rem); color: var(--gold-soft); font-weight: 300; line-height: 1; text-shadow: 0 0 40px rgba(200,169,106,0.25); }
.tok-note {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--bone-faint);
  border: 1px solid var(--line);
  padding: 7px 14px;
}
.tok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 42px; }
.tok {
  background: var(--surface);
  padding: 30px 26px;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background .35s ease;
  position: relative;
  overflow: hidden;
}
.tok::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.tok:hover { background: var(--surface-2); }
.tok:hover::before { opacity: 1; }
.tok .ti { font-family: var(--mono); font-size: 10.5px; color: var(--gold); letter-spacing: 0.14em; }
.tok p { font-size: 0.95rem; color: var(--bone-dim); line-height: 1.58; }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(36px, 5.5vw, 80px); align-items: start; }
.sec-points { display: grid; gap: 0; }
.sec-point {
  padding: 20px 0 20px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--bone);
  font-size: 0.97rem;
  transition: padding-left .3s ease;
}
.sec-point:first-child { border-top: 1px solid var(--line); }
.sec-point:hover { padding-left: 42px; }
.sec-point::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  transition: width .3s ease;
}
.sec-point:hover::before { width: 26px; }
.sec-warn {
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  background: linear-gradient(90deg, rgba(205,146,79,0.06), transparent);
  padding: 24px 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--bone-dim);
  margin-top: 28px;
}
.sec-warn b { color: var(--warn); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4px;
  text-align: left;
  transition: color .25s ease;
}
.faq-q:hover { color: var(--gold-soft); }
.faq-q .qt { font-family: var(--serif); font-size: clamp(1.18rem, 2vw, 1.55rem); color: inherit; }
.faq-q .qn { font-family: var(--mono); font-size: 10.5px; color: var(--bone-faint); letter-spacing: 0.12em; margin-right: auto; }
.faq-q .qmark { font-family: var(--mono); font-size: 1.3rem; color: var(--gold); transition: transform .4s cubic-bezier(.2,.7,.2,1); flex: none; }
.faq-item.open .qmark { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.2,.7,.2,1); }
.faq-a .inner { padding: 0 44px 32px 4px; color: var(--bone-dim); max-width: 76ch; line-height: 1.76; }
.faq-q .qrow { display: flex; align-items: baseline; gap: 20px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; position: relative; }
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(200,169,106,0.08), transparent 68%),
    radial-gradient(40% 40% at 50% 80%, rgba(126,203,134,0.04), transparent 60%);
  pointer-events: none;
}
.final h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
  position: relative;
}
.final p { color: var(--bone-dim); max-width: 52ch; margin: 0 auto 42px; position: relative; }
.final-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 64px 44px; background: var(--bg-1); }
.foot-top { display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap; margin-bottom: 52px; }
.foot-brand { max-width: 34ch; }
.foot-brand .fb { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.foot-brand .fb .name { font-family: var(--serif); font-size: 1.52rem; }
.foot-brand p { color: var(--bone-faint); font-family: var(--mono); font-size: 11.5px; line-height: 1.85; }
.foot-cols { display: flex; gap: clamp(44px, 6vw, 96px); flex-wrap: wrap; }
.foot-col h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  margin-bottom: 20px;
  font-weight: 400;
}
.foot-col a {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--bone-dim);
  padding: 7px 0;
  transition: color .25s ease;
}
.foot-col a:hover { color: var(--gold-soft); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--bone-faint);
}

/* ---------- CLI Terminal ---------- */
.cli-terminal {
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: 0 0 80px rgba(200,169,106,0.06), inset 0 1px 0 rgba(200,169,106,0.05);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}
.cli-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.cli-dots { display: flex; gap: 7px; flex: none; }
.cli-dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.85; }
.cli-dot-a { background: var(--alert); }
.cli-dot-b { background: var(--warn); }
.cli-dot-c { background: var(--living); }
.cli-title {
  flex: 1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-faint);
  text-align: center;
}
.cli-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--living);
  flex: none;
}
.cli-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--living);
  box-shadow: 0 0 8px rgba(126,203,134,0.7);
  animation: pulse 2.8s ease-out infinite;
}
.cli-body {
  padding: clamp(22px, 3vw, 32px) clamp(20px, 3vw, 28px);
  font-family: var(--mono);
  font-size: clamp(11.5px, 1.35vw, 13px);
  line-height: 1.85;
  min-height: 120px;
}
.cli-terminal.cli-typing .cli-body {
  min-height: 320px;
}
.cli-line {
  min-height: 0;
  overflow: hidden;
}
.cli-line.cli-pending {
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  overflow: hidden;
}
.cli-line.cli-pending.cli-show {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin-top: 6px;
}
.cli-text .cli-type-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  background: var(--gold);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: cursorBlink 1.1s steps(2) infinite;
}
.cli-gap { height: 10px; }
.cli-prompt { color: var(--gold-soft); }
.cli-cmd { color: var(--bone); }
.cli-out { color: var(--bone-dim); padding-left: 2px; }
.cli-ok { color: var(--living); }
.cli-warn { color: var(--warn); }
.cli-gold { color: var(--gold-soft); }
.cli-cursor {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: var(--gold);
  vertical-align: text-bottom;
  animation: cursorBlink 1.1s steps(2) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cli-line.cli-pending { opacity: 1; visibility: visible; height: auto; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Glitch text effect ---------- */
@keyframes glitch1 {
  0%, 90%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  92% { clip-path: inset(20% 0 60% 0); transform: translateX(-3px); }
  94% { clip-path: inset(50% 0 30% 0); transform: translateX(3px); }
  96% { clip-path: inset(80% 0 5% 0); transform: translateX(-2px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero-copy--right,
  .hero-copy--right h1,
  .hero-copy--right .hero-sub,
  .hero-copy--right .hero-desc,
  .hero-copy--right .hero-trust { text-align: left; }
  .hero-copy--right .hero-status { margin-left: 0; }
  .hero-copy--right .hero-cta { justify-content: flex-start; }
  .relic-text { max-width: 440px; margin-top: 10px; }
  .scene-grid, .why-grid, .sec-grid { grid-template-columns: 1fr; }
  .prob-grid, .sol-grid, .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .tok-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dcell:nth-child(3n) { border-right: 1px solid var(--line); }
  .dcell:nth-child(2n) { border-right: 0; }
  .mode { grid-template-columns: 48px 1fr; grid-row-gap: 6px; }
  .mode .mdesc { grid-column: 2; }
  .cmp { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { top: 0; }
  body { padding-top: var(--nav-h); }
  .ticker-wrap { display: none; }
  .prob-grid, .sol-grid, .feat-grid, .tok-grid, .dash-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: 0 !important; border-top: 0 !important; }
  .stat-item:nth-child(n+2) { border-top: 1px solid var(--line) !important; }
  .dcell:nth-child(2n) { border-right: 0; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step .num { font-size: 2.4rem; }
  .cmp-col .ch, .cmp-row, .dcell, .feat, .prob-cell { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
