/* ============================================================
   Open Robot Economy: design system
   white / grey / touch of yellow · modern, clean, award-style
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/sg-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jbm-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #FBFBFA;
  --bg-soft: #F4F4F1;
  --ink: #121212;
  --ink-soft: #575752;
  --line: #E6E6E2;
  --line-dark: #D8D8D3;
  --accent: #FFD21E;
  --accent-deep: #F5BF00;
  --usdc: #2775CA;
  --green: #22C55E;
  --dark: #0B0B0D;
  --dark-2: #141417;
  --dark-line: #26262B;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 20px;
  --nav-h: 72px;
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--accent); color: var(--ink); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; border: 0; cursor: pointer; background: none; }

/* ---------- type ---------- */

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h2-light { color: #F5F5F2; }

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}
.lead-light { color: #9C9CA4; }
.lead strong { color: var(--ink); font-weight: 600; }
.lead-light strong { color: #E8E8EA; }
.lead .inline-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-dark);
  transition: text-decoration-color .25s ease;
}
.lead .inline-link:hover { text-decoration-color: var(--ink); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.eyebrow-light { color: #85858D; }
.eyebrow-dot {
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 2.5px;
  display: inline-block;
}
.usdc-dot { background: var(--usdc); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform .35s cubic-bezier(.2,.9,.3,1.4), box-shadow .35s ease, background .25s ease, color .25s ease, border-color .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(18,18,18,0);
}
.btn-dark:hover { box-shadow: 0 14px 28px -12px rgba(18,18,18,.45); background: #000; }

.btn-ghost {
  border: 1.5px solid var(--line-dark);
  color: var(--ink);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--ink); box-shadow: 0 14px 28px -14px rgba(18,18,18,.25); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.scrolled {
  background: rgba(251, 251, 250, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-mark { width: 31px; height: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:not(.nav-git)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.nav-links a:not(.nav-git):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-git {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line-dark);
  padding: 8px 18px !important;
  border-radius: 999px;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.nav-git:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- sub-page: coming soon ---------- */

.nav-solid {
  background: rgba(251, 251, 250, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-links a.is-current { color: var(--ink); }
.nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.soon {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  /* anchored to the top rather than centred, so the title can never slide
     under the fixed header on short viewports */
  place-items: start center;
  overflow: clip;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 6vw, 96px) 80px;
}
#build-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.soon-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  margin-top: clamp(0px, 2vh, 24px);
}
.soon-eyebrow { justify-content: center; }
.soon-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 26px;
}
.soon-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 52ch;
  /* the scene runs behind the copy, so keep the text legible */
  background: rgba(251, 251, 250, .72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 14px;
  padding: 10px 16px;
}
.soon-cta {
  /* sits low, below the build site, so the title has clear air */
  margin-top: clamp(90px, 24vh, 230px);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.soon-note {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(251, 251, 250, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}
.soon-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: soon-pulse 1.8s ease-in-out infinite;
}
@keyframes soon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.6); opacity: .45; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.tx-label {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px -12px rgba(18,18,18,.28);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  will-change: transform, opacity;
}
.tx-label .tx-ico { width: 15px; height: 15px; flex: none; }

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(52px, 9.6vw, 132px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.line-wrap { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-wrap .line { display: block; will-change: transform; }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}
.hero-cta {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
}
.hero-ros {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.hero-ros strong {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.ros-dots { width: 22px; height: 22px; fill: var(--ink); }
.hero-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  z-index: 3;
}
.hero-hint svg { animation: hint-bob 1.8s ease-in-out infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(-2px); opacity: .5; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* ---------- drive-down section ---------- */

.drive { position: relative; background: var(--bg); }
.drive-stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.drive-line {
  position: absolute;
  left: 50%;
  top: 16%;
  bottom: 12%;
  width: 3px;
  transform: translateX(-50%);
}
.drive-line-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleY(0);
  transform-origin: top;
}
.drive-arrow {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 13px solid var(--ink);
  opacity: 0;
}
.drive-bot {
  position: absolute;
  left: 50%;
  top: 16%;
  transform: translate(-50%, -50%);
  z-index: 3;
  will-change: transform;
}
.drive-bot svg { position: relative; z-index: 2; width: clamp(84px, 9vw, 122px); height: auto; }
.drive-bot-shadow {
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 70%;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(18,18,18,.16), transparent 70%);
  filter: blur(4px);
  z-index: 1;
}
.drive-led { animation: led-blink 1.6s ease-in-out infinite; }
@keyframes led-blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.drive-item {
  --fs: clamp(17px, 1.9vw, 25px);
  position: absolute;
  top: var(--y);
  width: min(430px, 36vw);
  z-index: 2;
}
.drive-item[data-side="left"]  { right: calc(50% + 46px); text-align: right; }
.drive-item[data-side="right"] { left:  calc(50% + 46px); text-align: left; }
.drive-item p {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.drive-item em { font-style: normal; box-shadow: inset 0 -0.45em 0 rgba(255, 210, 30, .55); }
.drive-rule {
  display: block;
  height: 2.5px;
  background: var(--ink);
}
.drive-item[data-side="left"] .drive-rule  { transform-origin: right; }
.drive-item[data-side="right"] .drive-rule { transform-origin: left; }
.drive-dot {
  position: absolute;
  /* centred on the first line of its own copy (p is font-size --fs, line-height 1.3) */
  top: calc(var(--fs) * 0.65 - 7.5px);
  width: 15px; height: 15px;
  background: var(--ink);
  border-radius: 50%;
}
.drive-item[data-side="left"] .drive-dot  { right: -54px; }
.drive-item[data-side="right"] .drive-dot { left: -54px; }

/* ---------- features (horizontal cards) ---------- */

.features { background: var(--bg-soft); }
.features-pin {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4.5vh, 54px);
  padding: calc(var(--nav-h) + 10px) 0 24px;
  overflow: clip;
}
.features-head { padding: 0 clamp(20px, 6vw, 96px); }
.cards-viewport { overflow: visible; }
.cards-track {
  display: flex;
  gap: clamp(18px, 2vw, 28px);
  padding: 0 clamp(20px, 6vw, 96px);
  width: max-content;
  will-change: transform;
}
.card {
  width: clamp(300px, 30vw, 410px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color .3s ease, transform .45s cubic-bezier(.2,.8,.3,1), box-shadow .45s ease;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -24px rgba(18,18,18,.25);
}
.card-num {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: #B9B9B2;
}
.card-icon { width: 46px; height: 46px; color: var(--ink); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 25px);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.card-code {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 9px;
  /* longer commands wrap onto a second line instead of being cut off */
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
}
.features-cta { display: flex; justify-content: center; }

/* ---------- usdc ---------- */

.usdc {
  background:
    radial-gradient(60% 80% at 82% 40%, rgba(39, 117, 202, .10), transparent 65%),
    linear-gradient(var(--bg), var(--bg));
  padding: clamp(110px, 15vh, 190px) clamp(20px, 6vw, 96px);
  overflow: clip;
}
.usdc-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.usdc-copy .h2 { margin-bottom: 26px; }
.usdc-copy .lead { margin-bottom: 20px; }
.usdc-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.usdc-chips li {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(39, 117, 202, .35);
  color: var(--usdc);
  background: rgba(39, 117, 202, .06);
}
.usdc-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  perspective: 900px;
}
.usdc-glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,117,202,.22), transparent 62%);
  filter: blur(10px);
}
.coin {
  position: relative;
  width: clamp(190px, 17vw, 250px);
  will-change: transform;
  filter: drop-shadow(0 30px 45px rgba(29, 94, 168, .35));
  transform-style: preserve-3d;
}
.coin svg { width: 100%; height: auto; }
.coin-sheen {
  position: absolute;
  left: 28%; top: 24%;
  width: 44%; height: 44%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 65%);
  filter: blur(11px);
  mix-blend-mode: screen;
  opacity: .5;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}
.usdc-sparks { position: absolute; inset: 0; }
.usdc-sparks i {
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 26px;
  border-radius: 3px;
  background: var(--usdc);
  opacity: .75;
  transform: rotate(var(--rot)) translateY(-170px);
}
.usdc-sparks i:nth-child(1) { --rot: 0deg; }
.usdc-sparks i:nth-child(2) { --rot: 45deg; }
.usdc-sparks i:nth-child(3) { --rot: 90deg; }
.usdc-sparks i:nth-child(4) { --rot: 135deg; }
.usdc-sparks i:nth-child(5) { --rot: 180deg; }
.usdc-sparks i:nth-child(6) { --rot: 225deg; }
.usdc-sparks i:nth-child(7) { --rot: 270deg; }
.usdc-sparks i:nth-child(8) { --rot: 315deg; }

/* ---------- the rails: p2p explainer (dark panel on white) ---------- */

.rails {
  /* white bed so the rounded dark panel floats between the white sections */
  background: var(--bg);
  padding: clamp(8px, 2vw, 28px) clamp(14px, 3.5vw, 44px) clamp(24px, 5vw, 64px);
}
.rails-panel {
  max-width: 1280px;
  margin: 0 auto;
  color: #F5F5F2;
  border-radius: clamp(26px, 3.2vw, 46px);
  /* even top/bottom now that the section is just heading + steps */
  padding: clamp(56px, 9vh, 104px) clamp(24px, 5.5vw, 84px);
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    var(--dark);
  background-size: 72px 72px, 72px 72px, auto;
  overflow: hidden;
}
.rails-head { max-width: 62ch; }
.rails-head .h2 { margin-bottom: 22px; }
.rails-head .lead { max-width: none; }

.rails-steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 38px);
  margin-top: clamp(52px, 8vh, 92px);
}
/* dashed rule threading the step numbers together */
.rails-steps::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 18px;
  border-top: 1.5px dashed #2E2E36;
}
.rails-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px; height: 37px;
  border-radius: 50%;
  background: var(--dark);
  border: 1.5px solid var(--dark-line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  margin-bottom: 20px;
}
.rails-step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16.5px, 1.5vw, 19px);
  letter-spacing: -0.015em;
  margin-bottom: 9px;
}
.rails-step p {
  color: #9C9CA4;
  font-size: 14.5px;
  line-height: 1.6;
}

.rails-bridge {
  margin-top: clamp(48px, 7vh, 86px);
  padding-top: clamp(34px, 5vh, 54px);
  border-top: 1px solid var(--dark-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.rails-bridge-copy h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(21px, 2.2vw, 29px);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.rails-bridge-copy p {
  color: #9C9CA4;
  font-size: 15.5px;
  line-height: 1.65;
}
.rails-chips {
  list-style: none;
  display: grid;
  gap: 10px;
}
.rails-chips li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color .3s ease, transform .3s ease;
}
.rails-chips li:hover { border-color: #3A3A42; transform: translateX(3px); }
.rails-chips code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.rails-chips span {
  font-size: 13px;
  color: #85858D;
}

/* ---------- code section ---------- */

.codeblock {
  background: var(--bg);
  padding: clamp(110px, 15vh, 190px) clamp(20px, 6vw, 96px);
}
.code-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.code-window {
  background: #131316;
  border-radius: 18px;
  border: 1px solid #232329;
  box-shadow: 0 40px 90px -45px rgba(18,18,18,.55);
  overflow: hidden;
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid #232329;
}
.tb-dot { width: 11px; height: 11px; border-radius: 50%; background: #303038; }
.tb-name {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: #7A7A84;
}
.code-body {
  padding: 22px 24px 26px;
  font-family: var(--mono);
  font-size: clamp(11.5px, 1.05vw, 13.5px);
  line-height: 1.7;
  color: #D6D6DC;
  overflow-x: auto;
}
/* inline-block: transformable for the reveal animation, but line breaks
   come from the <pre> newlines alone (block would double the spacing) */
.code-line { display: inline-block; }
.kw  { color: #C792EA; }
.str { color: #9ECE6A; }
.com { color: #62626C; font-style: italic; }
.fn  { color: #82AAFF; }
.cl  { color: #FFCB6B; }
.dec { color: #F7B955; }

.code-copy .h2 { margin-bottom: 26px; }
.code-copy .lead { margin-bottom: 26px; }

.tick-list { list-style: none; display: grid; gap: 13px; }
.tick-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
}
.tick-list li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.tick-list-lg li { font-size: clamp(16px, 1.4vw, 19px); padding-left: 36px; line-height: 1.55; }
.tick-list-lg li::before { width: 20px; height: 20px; top: 4px; }
.tick-list-lg li::after { left: 5.5px; top: 10px; }

/* ---------- security ---------- */

.security {
  background: var(--bg-soft);
  padding: clamp(110px, 15vh, 190px) clamp(20px, 6vw, 96px);
}
.security-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.security-copy .h2 { margin-bottom: 30px; }
.security-note {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #8f8f88;
}
.security-visual { display: grid; place-items: center; }
.chip-card {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1 / .92;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(var(--bg-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-soft) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}
.chip { position: relative; z-index: 2; }
.chip-rings i {
  position: absolute;
  left: 50%; top: 50%;
  width: 190px; height: 190px;
  margin: -95px 0 0 -95px;
  border: 1.5px solid rgba(18,18,18,.25);
  border-radius: 50%;
  animation: ring-pulse 2.6s cubic-bezier(.2,.6,.4,1) infinite;
}
.chip-rings i:nth-child(2) { animation-delay: 1.3s; }
@keyframes ring-pulse {
  0% { transform: scale(.9); opacity: 0; }
  25% { opacity: .8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.chip-badge {
  position: absolute;
  right: 22px; bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink);
  box-shadow: 0 12px 26px -14px rgba(18,18,18,.3);
}

/* ---------- examples (dark, Umano-style pinned intro) ---------- */

.examples {
  background: var(--dark);
  color: #F5F5F2;
  overflow: clip;
}
.ex-pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.ex-logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}
.ex-logo svg { width: min(60vmin, 580px); height: auto; }
.ex-head {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 0 20px;
  will-change: transform, opacity;
}
.ex-head .eyebrow { margin-bottom: 0; }
.h2-mega {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(58px, 9.8vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #57575E;
}
.ex-sub { color: #9C9CA4; }
.ex-cards {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.ex-card {
  position: absolute;
  width: min(300px, 23vw);
  pointer-events: auto;
  display: block;
  will-change: transform;
}
.ex-card[data-pos="l"] { left: 10%; top: 20%; }
.ex-card[data-pos="r"] { right: 10%; top: 17%; }
.ex-card[data-pos="c"] { left: calc(50% - min(150px, 11.5vw)); top: 42%; z-index: 2; }
.ex-inner {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform .55s cubic-bezier(.2,.85,.3,1.1), box-shadow .55s ease, border-color .35s ease;
}
/* the placeholder card has less copy, so its cover stretches to keep
   all three cards the same height (JS sets --ex-h to the tallest) */
.ex-cards[data-synced] .ex-inner { min-height: var(--ex-h); }
.ex-card-soon .ex-cover { flex: 1 1 auto; height: auto; min-height: 208px; }
.ex-card:hover .ex-inner {
  transform: translateY(-12px) scale(1.02);
  border-color: #3A3A42;
  box-shadow: 0 40px 80px -35px rgba(0,0,0,.9);
}
.ex-cover {
  height: 208px;
  display: grid;
  place-items: center;
  padding: 16px 18px;
}
.ex-cover svg { width: 100%; height: 100%; }
/* generated covers carry their own background, so they run full-bleed.
   display:block (not the parent's centred grid) so the image's height:100%
   resolves against the cover's fixed height instead of falling back to
   its intrinsic aspect and overflowing. */
.ex-cover-img { display: block; padding: 0; overflow: hidden; }
.ex-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* placeholder cover: no artwork, just the label */
.ex-cover-soon {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(21px, 2.3vw, 29px);
  letter-spacing: -0.015em;
  color: #D6D6DE;
}
.ex-cover-a { background: linear-gradient(140deg, #FFD21E 0%, #F5A623 100%); }
.ex-cover-b { background: linear-gradient(140deg, #3D8FE4 0%, #1D5EA8 100%); }
.ex-cover-c { background: linear-gradient(140deg, #6E6E76 0%, #2E2E33 100%); }
.ex-meta { padding: 20px 22px 24px; }
.ex-meta h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.ex-meta p { color: #9C9CA4; font-size: 13.5px; margin-bottom: 16px; }
.ex-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 17px;
  border-radius: 999px;
  transition: gap .3s ease, background .3s ease;
}
.ex-card:hover .ex-pill { gap: 13px; background: var(--accent-deep); }

/* placeholder card: reads as inactive, so nothing looks broken when clicked */
.ex-card-soon { cursor: default; }
.ex-card-soon:hover .ex-inner { transform: none; box-shadow: none; border-color: var(--dark-line); }
/* the placeholder card has no body copy, so give its title room to breathe */
.ex-card-soon .ex-meta { padding: 24px 24px 28px; }
.ex-card-soon .ex-meta h3 { margin-bottom: 0; }

/* ---------- FAQ (dark panel, rounded bottom like Umano) ---------- */

.faq {
  background: var(--dark);
  color: #F5F5F2;
  padding: clamp(90px, 12vh, 150px) clamp(20px, 6vw, 96px) clamp(100px, 13vh, 160px);
  border-radius: 0 0 clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px);
}
.faq-inner { max-width: 880px; margin: 0 auto; }
.faq .eyebrow { justify-content: center; }
.faq .h2 { text-align: center; margin-bottom: clamp(36px, 6vh, 60px); }
.faq-item { border-bottom: 1px solid var(--dark-line); }
.faq-item:first-child { border-top: 1px solid var(--dark-line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 4px;
  color: #F5F5F2;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(16.5px, 1.7vw, 21px);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid #3A3A42;
  border-radius: 50%;
  transition: transform .45s cubic-bezier(.2,.8,.3,1.2), background .3s ease, border-color .3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 1.8px;
  background: #F5F5F2;
  transform: translate(-50%, -50%);
  transition: background .3s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--ink); }
.faq-a { height: 0; overflow: hidden; }
.faq-a p {
  padding: 2px 4px 26px;
  color: #9C9CA4;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 68ch;
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(26px, 4vh, 44px) 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 84px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-dark);
  paint-order: stroke;
}

/* ---------- footer ---------- */

.footer {
  background: var(--bg);
  border-top: 3px solid var(--ink);
  padding: clamp(48px, 7vh, 80px) clamp(20px, 6vw, 96px) 42px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.footer-col { display: grid; gap: 13px; font-size: 16.5px; font-weight: 500; }
.footer-col a { width: fit-content; position: relative; }
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.footer-col a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-col-right { text-align: right; justify-items: end; }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }
.footer-tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.footer-mail {
  display: block;
  margin-top: clamp(34px, 6vh, 64px);
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 5.4vw, 92px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-dark);
  transition: color .45s ease, -webkit-text-stroke-color .45s ease;
}
.footer-mail:hover {
  color: var(--accent);
  -webkit-text-stroke-color: var(--ink);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .usdc-grid, .code-grid, .security-grid { grid-template-columns: 1fr; }
  .usdc-visual { min-height: 320px; order: -1; }
  .security-visual { order: -1; }
}

/* examples fall back to a static stacked layout on small screens */
@media (max-width: 860px) {
  .ex-pin {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 90px 20px 100px;
  }
  .ex-logo { position: static; }
  .ex-logo svg { width: min(46vmin, 240px); }
  .ex-head { position: static; }
  .ex-cards {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .ex-card { position: static !important; width: min(340px, 88vw); }
}

@media (max-width: 860px) {
  .nav-links a:not(.nav-git) { display: none; }
  .drive-item { width: min(320px, 40vw); }
  .drive-item[data-side="left"]  { right: calc(50% + 30px); }
  .drive-item[data-side="right"] { left:  calc(50% + 30px); }
  .drive-item[data-side="left"] .drive-dot  { right: -37px; }
  .drive-item[data-side="right"] .drive-dot { left: -37px; }
  .rails-steps { grid-template-columns: repeat(2, 1fr); }
  .rails-steps::before { display: none; }
  .rails-bridge { grid-template-columns: 1fr; }
  .footer-cols { flex-direction: column; }
  .footer-col-right { text-align: left; justify-items: start; }
  .footer-base { flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
  .rails-steps { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .drive-item { width: 42vw; }
  .drive-item { --fs: 14.5px; }
}

/* ---------- no-motion fallback (reduced motion / no JS effects) ---------- */

body.no-motion .drive-line-fill { transform: none; }
body.no-motion .drive-arrow { opacity: 1; }
body.no-motion .cards-viewport { overflow-x: auto; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- licence page ---------- */

.license {
  padding: calc(var(--nav-h) + clamp(56px, 10vh, 112px)) clamp(20px, 6vw, 96px) clamp(80px, 12vh, 140px);
}
.license-inner { max-width: 720px; margin: 0 auto; }
.license-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}
.license-intro {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.license-text {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink);
}
.license-text p + p { margin-top: 1.1em; }
.license-caps { font-size: 12.5px; color: var(--ink-soft); }
.license-ref {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.license-ref a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-dark);
}
.license-ref a:hover { text-decoration-color: var(--ink); }
