:root {
  --bg: #050605;
  --ink: #f4fff8;
  --muted: #b7cfc4;
  --line: rgba(126, 255, 196, 0.22);
  --mint: #7dffc4;
  --mint-2: #d8fff0;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
body > * { position: relative; z-index: 1; }
::selection { background: var(--mint); color: #04140c; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ol { margin: 0; }
code { font-family: var(--mono); }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--mint); color: #04140c; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

.beam {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40;
  transform: scaleX(0); transform-origin: left center;
  background: var(--mint); box-shadow: 0 0 16px var(--mint); pointer-events: none;
}

.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.sky img {
  width: 140%; height: 140%; margin: -20% 0 0 -20%;
  object-fit: cover; filter: blur(28px) saturate(1.4) brightness(0.55);
  animation: drift 28s ease-in-out infinite;
}
.sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 30%, rgba(125, 255, 196, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(5, 6, 5, 0.35), rgba(5, 6, 5, 0.88));
}
@keyframes drift { 50% { transform: scale(1.12) translate3d(2%, -1%, 0); } }

.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(125, 255, 196, 0.7); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.4vw, 72px); letter-spacing: -0.03em; line-height: 0.96; }
.deck { max-width: 46ch; margin-top: 14px; color: var(--muted); }

.header { position: sticky; top: 0; z-index: 30; background: rgba(5, 6, 5, 0.72); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; }
.header.is-stuck { border-bottom-color: var(--line); }
.header-bar { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #000; box-shadow: 0 0 0 1px var(--mint), 0 0 16px rgba(125, 255, 196, 0.45); }
.brand-tick { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--mint); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.menu-btn { display: none; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.copy-ca, .ghost { border-radius: 999px; transition: transform 0.25s var(--ease), background 0.25s var(--ease); }
.copy-ca { height: 40px; padding: 0 16px; background: var(--mint); color: #04140c; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.header .copy-ca { margin-left: auto; }
.copy-ca:hover { background: #fff; transform: translateY(-1px); }
.copy-ca-lg { height: 52px; padding: 0 22px; font-size: 16px; }
.ghost { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ghost:hover { color: var(--mint); }

.hero { padding: 42px 0 18px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr); gap: 28px; align-items: center; }
.hero h1 { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 84px); letter-spacing: -0.035em; line-height: 0.92; }
.hero h1 span { animation: rise 0.85s var(--ease) both; }
.hero h1 span:nth-child(2) { animation-delay: 0.1s; }
.glow { font-style: italic; color: var(--mint); }
.lede { max-width: 46ch; margin-top: 18px; color: var(--muted); font-size: 18px; animation: rise 0.85s 0.2s var(--ease) both; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 26px; animation: rise 0.85s 0.28s var(--ease) both; }
.text-link { text-decoration: none; border-bottom: 1px solid rgba(244, 255, 248, 0.4); padding-bottom: 2px; font-weight: 600; }
.text-link:hover { border-bottom-color: var(--mint); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.gauge {
  position: relative; width: min(100%, 320px); margin-left: auto; aspect-ratio: 1;
  display: grid; place-items: center;
}
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 6; }
.track { stroke: rgba(125, 255, 196, 0.18); }
.value {
  stroke: var(--mint); stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  animation: fill 1.4s 0.2s var(--ease) forwards;
  filter: drop-shadow(0 0 8px rgba(125, 255, 196, 0.7));
}
@keyframes fill { to { stroke-dashoffset: 33; } }
.gauge-copy { position: absolute; text-align: center; }
.gauge-copy strong { display: block; font-family: var(--serif); font-size: 72px; font-weight: 400; letter-spacing: -0.04em; line-height: 0.85; }
.gauge-copy span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }
.gauge img {
  position: absolute; right: 8%; bottom: 10%; width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover; background: #000;
  box-shadow: 0 0 0 1px var(--mint); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px) rotate(-8deg); } }

.contract { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.contract .kicker { margin: 0; }
.contract code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-top: 12px; }
.marquee-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.marquee-group i { width: 6px; height: 6px; margin: 0 20px; border-radius: 50%; background: var(--mint); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

.block { padding: 88px 0; }
.files { list-style: none; padding: 18px 0 0; }
.files li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.files li:last-child { border-bottom: 1px solid var(--line); }
.files span { font-family: var(--serif); font-size: 36px; color: var(--mint); line-height: 1; }
.files h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.files p { color: var(--muted); max-width: 62ch; }

.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.links a {
  display: flex; flex-direction: column; gap: 8px; min-height: 160px; padding: 18px;
  text-decoration: none; border: 1px solid var(--line); border-radius: 18px;
  background: rgba(5, 6, 5, 0.45); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.links a:hover { transform: translateY(-4px); border-color: var(--mint); }
.links span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.links strong { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; line-height: 1; }

.chart-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.chart-links { display: flex; gap: 16px; padding-bottom: 8px; }
.chart-links a { font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(244, 255, 248, 0.35); padding-bottom: 2px; }
.chart-links a:hover { border-bottom-color: var(--mint); }
.chart-frame { height: min(70vh, 640px); min-height: 460px; border-radius: 22px; overflow: hidden; background: #050605; border: 1px solid var(--line); box-shadow: 0 0 70px rgba(125, 255, 196, 0.12); }
.chart-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart-note { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.dev-panel { max-width: 760px; }
.shaw {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 6, 5, 0.55);
  transition: transform 0.25s var(--ease);
}
.shaw:hover { transform: translateY(-3px); }
.shaw img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 2px var(--mint);
}
.shaw small {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.shaw strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 0.9;
  color: var(--mint);
}
.also { margin-top: 14px; color: var(--muted); }
.also a { color: var(--ink); font-weight: 600; }

.footer { padding: 8px 0 36px; border-top: 1px solid var(--line); }
.footer-name { font-family: var(--serif); font-style: italic; font-size: clamp(64px, 10vw, 120px); line-height: 0.85; margin: 16px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.footer-row nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; font-weight: 600; }
.footer a:hover { color: var(--mint); }
.footer code { color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
  .hero-grid, .links { grid-template-columns: 1fr; }
  .gauge { width: min(100%, 260px); margin: 8px auto 0; order: -1; }
  .block { padding: 68px 0; }
  .chart-frame { min-height: 520px; height: 70vh; }
}
@media (max-width: 800px) {
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; flex-shrink: 0; }
  .brand-name { display: none; }
  .header-bar { gap: 10px; }
  .header .copy-ca { margin-left: 10px; height: 36px; padding: 0 12px; font-size: 13px; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: flex-start; padding: 12px 22px 22px; background: #050605; border-bottom: 1px solid var(--line); }
  .header.is-open .nav-links { display: flex; min-height: calc(100dvh - 72px); }
  .nav-links a { font-size: 24px; color: var(--ink); padding: 8px 0; }
}
@media (max-width: 560px) {
  .wrap { width: min(1100px, calc(100% - 32px)); }
  .contract { grid-template-columns: auto 1fr; }
  .contract code { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .value { stroke-dashoffset: 33; }
  .marquee-track { transform: none; }
  .marquee-group:last-child { display: none; }
}
