@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
/* Covenant — "buttery" layer. Same ink / cream / gold / teal palette.
   Layout, type, motion and polish cues: big tight grotesk headings,
   pill buttons with glow, blurred header, scroll progress, soft glows,
   marquee, staggered reveals. Phone-first. Honors prefers-reduced-motion. */

:root {
  --grad: linear-gradient(100deg, var(--cyan) 0%, var(--violet) 52%, var(--magenta) 100%);
  --cyan: #00f9fd;
  --violet: #8537fd;
  --violet-text: #a879ff;
  --magenta: #fa01f6;
  --display: "Outfit", "Instrument Sans", system-ui, sans-serif;
  --glow: #a879ff;
  --glow-core: #fdffff;
  --glass: rgba(253, 253, 253, 0.035);
  --r-xl: 28px;
  --spring: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(133, 55, 253, 0.12), transparent 60%),
    radial-gradient(900px 700px at -10% 35%, rgba(0, 249, 253, 0.05), transparent 60%),
    var(--ink);
  overflow-x: hidden;
  font-size: 1.0625rem;
}

/* Headings: tight, bold grotesk; italic serif kept for accents */
h1, h2, h3,
.section-title, .page-hero h1, .prose h2, .prose h3, .card h3, .step h3,
.host-item h3, .walk-copy h2, .note h2, .proof h2 {
  font-family: var(--display);
  font-weight: 620;
  letter-spacing: -0.025em;
  font-variation-settings: normal;
}
.section-title { line-height: 1.05; }
.page-hero h1 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; }
.prose h2, .prose h3 { line-height: 1.15; }

/* —— Progress + header —— */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad); z-index: 99; pointer-events: none;
}
.local-banner { font-size: 0.7rem; padding: 0.4rem 1rem; min-height: 0; background: #050508; color: var(--cream-mute); }
.local-banner strong { color: var(--gold-2); }
.site-header {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.is-scrolled { background: rgba(0, 0, 0, 0.78); border-bottom-color: var(--line); }
.brand-name { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; font-size: 1.28rem; color: #fff; }
.brand-mark { width: 2.7rem; height: 2rem; filter: drop-shadow(0 0 6px rgba(133, 55, 253, .45)); }
.brand-tag { font-family: "Instrument Sans", system-ui, sans-serif; font-size: 0.78rem; letter-spacing: 0; color: var(--cream-mute); font-weight: 450; }
.site-nav a { transition: color 0.2s; }
@media (max-width: 759px) { .site-nav { backdrop-filter: blur(18px); background: rgba(7, 7, 11, 0.97); } }

/* —— Buttons —— */
.btn {
  padding: 0.9rem 1.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--spring), box-shadow 0.25s var(--spring), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--cyan), #4fb0ff);
  color: #000;
  box-shadow: 0 10px 34px -12px rgba(133, 55, 253, 0.9), 0 0 0 1px rgba(0, 249, 253, .3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { transform: translateY(-2px); color: #000; background: linear-gradient(135deg, var(--cyan), #4fb0ff);
  box-shadow: 0 18px 46px -12px rgba(250, 1, 246, 0.75), 0 0 0 1px rgba(0, 249, 253, .4), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(250, 1, 246, 0.6); color: var(--cream); background: rgba(250, 1, 246,.07); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 999px; }
.cta-row.center { justify-content: center; margin-top: 2.5rem; }

/* —— Shared bits —— */
.eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.section-kicker { font-family: "Instrument Sans", system-ui, sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass);
  font-size: 0.8rem; color: var(--cream-dim); margin-bottom: 1.4rem;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse-soft 2.4s ease-in-out infinite; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; pointer-events: none; z-index: 0; }
.g1 { width: 26rem; height: 26rem; background: var(--violet); right: -6rem; top: 4rem; }
.g2 { width: 18rem; height: 18rem; background: #0a8f9a; left: -6rem; bottom: 0; opacity: 0.16; }

.section { padding: 5.5rem 0; }
.section + .section { padding-top: 1rem; }
.sec-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.sec-head h2 { font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: 1.04; text-wrap: balance; }
.sec-head p { color: var(--cream-dim); margin-top: 1rem; }

.card, .step, .host-item {
  background: linear-gradient(160deg, rgba(253, 253, 253,.05), rgba(253, 253, 253,.012));
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.4s var(--spring), border-color 0.3s, box-shadow 0.4s var(--spring);
}
.card:hover, .host-item:hover { transform: translateY(-4px); border-color: rgba(0, 249, 253,.35); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0, 249, 253,.08); }
.card { padding: 1.6rem 1.5rem 1.7rem; }
.card h3 { font-size: 1.25rem; }

/* —— Hero (home) —— */
.home .hero { padding: 3.5rem 0 4.5rem; min-height: calc(100svh - var(--header-h) - 1.6rem); display: grid; align-items: center; }
.home .hero-inner { gap: 2rem; }
.home .hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.6rem, 17vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  font-variation-settings: normal;
}
.home .hero-tag {
  font-family: var(--display);
  font-style: normal; font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 5.4vw, 2.5rem);
  line-height: 1.15; color: var(--cream);
  margin: 1.1rem 0 1.25rem;
  }
.home .hero-tag .grad { padding-right: 0.08em; }
.home .hero-lead { font-size: 1.15rem; max-width: 30rem; color: var(--cream-dim); text-wrap: pretty; }
.home .cta-row { margin-top: 2rem; }
.mark-stage { display: grid; place-items: center; position: relative; }
.mark-stage::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 55, 253, .18), transparent 65%); filter: blur(12px); }
.home .mark-stage svg { position: relative; width: min(74vw, 30rem); height: auto; overflow: visible;
  animation: float-y 7s ease-in-out infinite; }
.mark-stage .cv-halo { transform-box: fill-box; transform-origin: center; animation: halo 3.6s ease-in-out infinite; }
.mark-stage .cv-halo-m { animation-delay: -1.8s; }
.mark-stage .px { animation: px-shimmer 2.8s steps(6, end) infinite; animation-delay: calc(var(--i) * -0.37s); }
@keyframes halo { 0%, 100% { opacity: .55; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes px-shimmer { 0%, 100% { fill-opacity: 1; } 35% { fill-opacity: .25; } 60% { fill-opacity: .8; } 80% { fill-opacity: .1; } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: none; place-items: center;
  border: 1px solid var(--line-strong); color: var(--cream-mute); text-decoration: none; z-index: 2;
}
.scroll-cue span { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* —— Marquee —— */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track {
  display: flex; align-items: center; gap: 2.2rem; width: max-content;
  animation: mq 38s linear infinite;
  font-weight: 550; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--cream-mute);
}
.track i { font-style: normal; color: var(--gold); font-size: 0.55rem; opacity: 0.8; }
@keyframes mq { to { transform: translateX(-50%); } }

/* —— How it works —— */
.how { position: relative; }
.flow { list-style: none; display: grid; gap: 0; position: relative; counter-reset: none; }
.flow-step:not(:last-child)::before {   /* connector to the next step, vertical on phones */
  content: ""; position: absolute; left: 1.6rem; top: 3.6rem; bottom: 0.4rem; width: 1px;
  background: linear-gradient(var(--gold), var(--violet), var(--teal)); opacity: 0.45;
}
.flow-step {
  position: relative; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1.1rem;
  padding: 0 0 2.1rem; align-content: start;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-node {
  grid-row: span 3; width: 3.2rem; height: 3.2rem; border-radius: 16px;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: linear-gradient(160deg, var(--ink-4), var(--ink-2));
  border: 1px solid rgba(0, 249, 253,.35); color: var(--gold);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.9), inset 0 1px 0 rgba(253, 253, 253,.06);
  transition: transform 0.4s var(--spring), box-shadow 0.4s;
}
.flow-node svg { width: 1.7rem; height: 1.7rem; }
.flow-node.is-quantum { color: var(--teal); border-color: rgba(250, 1, 246,.45); box-shadow: 0 0 0 6px rgba(250, 1, 246,.05), 0 0 34px -6px rgba(250, 1, 246,.45); }
.flow-step:hover .flow-node { transform: scale(1.06); }
.flow-num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; color: var(--gold); padding-top: 0.25rem; }
.flow-step h3 { text-wrap: balance; font-size: 1.22rem; line-height: 1.2; margin: 0.2rem 0 0.4rem; }
.flow-step p { color: var(--cream-dim); font-size: 0.98rem; max-width: 34rem; }

/* Ledger illustration */
.ledger {
  margin-top: 3.5rem; padding: 1.4rem 1.1rem 1.3rem; border-radius: var(--r-xl);
  background: radial-gradient(120% 90% at 50% 0%, rgba(0, 249, 253,.08), transparent 60%), var(--ink-2);
  border: 1px solid var(--line);
}
.ledger-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-mute); text-align: center; margin-bottom: 1.1rem; }
.ledger-row { display: grid; gap: 0; justify-items: center; }
.entry {
  width: 100%; max-width: 20rem; display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem;
  padding: 0.95rem 1.1rem; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line);
  font-size: 0.86rem;
}
.entry.is-head { border-color: rgba(0, 249, 253,.5); box-shadow: 0 0 0 4px rgba(0, 249, 253,.06), 0 20px 50px -24px rgba(0, 249, 253,.5); }
.entry-k { color: var(--cream-mute); }
.entry-v { color: var(--cream); text-align: right; font-weight: 500; }
.entry-v.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.82rem; color: var(--gold-2); }
.entry-v.ok { color: var(--teal); letter-spacing: 0.08em; font-weight: 600; }
.link { display: block; width: 1px; height: 1.6rem; background: linear-gradient(var(--gold), var(--violet), var(--teal)); opacity: .7; position: relative; }
.ledger-note { margin: 1.1rem auto 0; max-width: 36rem; text-align: center; font-size: 0.82rem; color: var(--cream-mute); }

/* Feature (why quantum) */
.feature {
  display: grid; gap: 1.5rem; padding: 2rem 1.5rem; border-radius: var(--r-xl);
  border: 1px solid rgba(0, 249, 253,.25);
  background: radial-gradient(120% 90% at 100% 0%, rgba(0, 249, 253,.12), transparent 55%), linear-gradient(160deg, var(--ink-3), var(--ink-2));
}
.feature h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.05; text-wrap: balance; }
.feature-body p { color: var(--cream-dim); }
.feature .score { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; margin-top: 1.4rem; font-size: 2.2rem; }
.feature .score small { font-family: "Fraunces", Georgia, serif; }

/* Closing */
.closing-card { text-align: center; max-width: 44rem; margin: 0 auto; padding: 1rem 0; }
.closing-card h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.08; margin-bottom: 0.8rem; }
.closing-card p { color: var(--cream-dim); }
.note { border-top: 0; }

/* Footer */
.site-footer { margin-top: 3rem; }
.footer-brand { font-family: var(--display); font-weight: 700; color: #fff; }
.footer-brand em { font-family: var(--display); font-style: normal; font-weight: 500; }

/* Other pages: softer surfaces */
.walk-stage { border-radius: var(--r-xl); }
.layers { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(16px); }
.layer-btn { transition: background 0.25s, color 0.25s, border-color 0.25s; }

/* —— Reveal on scroll (only when JS is on) —— */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* —— Tablet / desktop —— */
@media (min-width: 760px) {
  .section { padding: 7.5rem 0; }
  .home .hero-inner { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
  .scroll-cue { display: grid; }
  .feature { grid-template-columns: 1fr 1fr; gap: 3rem; padding: 3rem; align-items: center; }
  .ledger { padding: 2rem 2rem 1.6rem; }
  .ledger-row { grid-template-columns: 1fr 3rem 1fr 3rem 1fr; align-items: center; }
  .entry { max-width: none; }
  .link { width: 100%; height: 1px; background: linear-gradient(90deg, var(--gold), var(--violet), var(--teal)); }
  .link i { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); animation: packet-x 2.6s var(--ease) infinite; }
}
@keyframes packet-x { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }

@media (min-width: 1020px) {
  /* horizontal rail of five */
  .flow { grid-template-columns: repeat(5, 1fr); gap: 1.4rem; }
  .flow::after {           /* travelling packet along the rail */
    content: ""; position: absolute; top: calc(1.8rem - 4px); left: 1.8rem; width: 9px; height: 9px; border-radius: 50%;
    background: var(--gold-2); box-shadow: 0 0 14px 3px rgba(127, 252, 255,.55); z-index: 2; pointer-events: none;
    animation: packet-xr 6s var(--ease) infinite;
  }
  .flow-step:not(:last-child)::before { left: 3.6rem; right: -1.4rem; top: 1.8rem; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, var(--gold), var(--violet), var(--teal)); }
  .flow-step { grid-template-columns: 1fr; padding: 0; }
  .flow-node { grid-row: auto; width: 3.6rem; height: 3.6rem; margin-bottom: 1.3rem; }
  .flow-num { padding-top: 0; }
  .flow-step p { font-size: 0.95rem; }
}
@keyframes packet-xr { 0% { left: 1.8rem; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: calc(100% - (100% - 5.6rem) / 5 + 1.8rem - 9px); opacity: 0; } }

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .flow::after { display: none; }
  .flow::after, .link i, .pill-dot, .track, .scroll-cue span, .home .mark-stage svg, .mark-stage .cv-halo, .mark-stage .px { animation: none !important; }
  .marquee { overflow-x: auto; }
  .progress { display: none; }
}

@media (min-width: 760px) {
  .footer-brand { flex: none; white-space: nowrap; }
  .footer-inner { gap: 2rem; }
}

/* —— Covenchain rebuild: fees, code, misc —— */
.home .hero h1 { font-size: clamp(3rem, 14.6vw, 7.4rem); }
.entry-v.pending { color: var(--cream-mute); font-weight: 500; }
.fees { display: grid; gap: 1.25rem; }
.fee-split, .fee-example {
  border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.5rem 1.35rem;
  background: linear-gradient(160deg, rgba(253,253,253,.045), rgba(253,253,253,.01));
}
.fee-bar { display: flex; gap: 4px; height: 14px; border-radius: 999px; overflow: hidden; margin-bottom: 1.3rem; }
.fb-co { background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.fb-m { background: var(--magenta); }
.fee-legend { display: grid; gap: 1rem; }
.fee-legend dt { font-family: var(--display); font-weight: 650; font-size: 1.15rem; display: flex; align-items: center; gap: .6rem; }
.fee-legend dd { color: var(--cream-dim); margin: .2rem 0 0 1.6rem; font-size: .96rem; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.sw-co { background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.sw-m { background: var(--magenta); }
.fee-ex-title { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.fee-example table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.fee-example th, .fee-example td { padding: .6rem .4rem; border-bottom: 1px solid var(--line); text-align: right; }
.fee-example th[scope="row"], .fee-example thead th:first-child { text-align: left; color: var(--cream-dim); font-weight: 500; }
.fee-example thead th { color: var(--cream-mute); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.fee-example td:last-child { color: #fff; font-weight: 600; }
.fee-example tbody tr:last-child th, .fee-example tbody tr:last-child td { border-bottom: 0; color: var(--magenta); }
.fee-note { margin-top: 1rem; font-size: .85rem; color: var(--cream-mute); }
pre.code { margin: 1rem 0 .6rem; padding: .9rem 1rem; border-radius: 14px; background: #000; border: 1px solid var(--line);
  overflow-x: auto; font: 500 .86rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--gold-2); }
.fine { font-size: .82rem; color: var(--cream-mute); }
.ticks { margin-top: 1rem; display: grid; gap: .45rem; }
.ticks li { color: var(--cream-dim); padding-left: 1.4rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--grad); }
.card .eyebrow { margin-bottom: .4rem; }
.prose code { font: 500 .9em ui-monospace, Menlo, monospace; color: var(--gold-2); background: rgba(0,249,253,.06); padding: .1em .35em; border-radius: 6px; }
.prose ol li strong { color: #fff; }
.page-hero { padding-top: 3.5rem; }
@media (min-width: 760px) {
  .fees { grid-template-columns: 1fr 1.25fr; align-items: stretch; }
  .fee-split, .fee-example { padding: 2rem; }
}
.walk-kicker { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
