:root {
  --ink: #111111;
  --muted: #777a80;
  --line: #e8e8e8;
  --paper: #fcfcfb;
  --sky: #e0f2fe;
  --sky-strong: #6faae2;
  --mint: #d7f1e1;
  --peach: #ffe8d6;
  --lilac: #f3e8ff;
  --shadow: 0 24px 70px rgba(30, 43, 61, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, a { font: inherit; }
a { color: inherit; }

.deck { width: 100%; }

.slide {
  position: relative;
  width: 100%;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.hero-slide {
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #6faae2;
}

#cloud-canvas,
.hero-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#cloud-canvas { z-index: -3; image-rendering: pixelated; }

.hero-noise {
  z-index: -2;
  pointer-events: none;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.08), rgba(49,105,160,.10) 72%);
}

.hero-nav,
.dashboard-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 64px);
}

.wordmark {
  color: white;
  text-decoration: none;
  font-family: "Gaegu", cursive;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 0 rgba(27, 80, 130, .18);
}

.wordmark.dark { color: var(--ink); text-shadow: none; }
.twitter-link { color: #7f8186; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: color .2s ease, transform .2s ease; }
.hero-nav .twitter-link,
.hero-nav .twitter-link:visited,
.hero-nav .twitter-link:hover,
.hero-nav .twitter-link:focus-visible { color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(32,76,118,.2); }
.twitter-link:hover { color: var(--ink); transform: translateY(-2px); }

.tweet-stage {
  position: relative;
  width: min(560px, calc(100vw - 40px));
  min-height: 410px;
  display: grid;
  place-items: center;
  transform: rotate(-1.2deg);
  animation: tweet-in 1.1s cubic-bezier(.16,1,.3,1) both, hover-float 7s ease-in-out 1.1s infinite;
}

.tweet-stage::before {
  content: "";
  position: absolute;
  inset: 34px 9px 28px;
  z-index: -1;
  border-radius: 28px;
  background: rgba(255,255,255,.25);
  filter: blur(22px);
  transform: translateY(18px);
}

.twitter-tweet,
.tweet-stage iframe {
  width: 100% !important;
  max-width: 550px !important;
  margin: 0 !important;
}

.twitter-tweet:not(.twitter-tweet-rendered) {
  display: block;
  padding: 30px 32px 26px;
  border: 0;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
  color: #191919;
  font-size: 18px;
  line-height: 1.52;
}

.twitter-tweet:not(.twitter-tweet-rendered) p { margin: 0 0 20px; }
.twitter-tweet:not(.twitter-tweet-rendered) a { color: #536471; text-decoration: none; font-size: 14px; }

.scroll-cue {
  position: absolute;
  z-index: 10;
  bottom: 26px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  border: 0;
  color: white;
  background: transparent;
  cursor: pointer;
}

.scroll-cue > span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  animation: cue 1.8s ease-in-out infinite;
}
.scroll-cue svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.dashboard-slide { background: var(--paper); padding-top: 86px; }
.dashboard-nav { position: absolute; border-bottom: 1px solid var(--line); background: rgba(252,252,251,.88); backdrop-filter: blur(16px); }

.dashboard-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
  grid-template-rows: 1.08fr .92fr;
  gap: 1px;
  height: calc(100svh - 86px);
  min-height: 650px;
  background: var(--line);
}

.market-panel,
.split-panel,
.buyback-panel,
.treasury-panel,
.activity-panel {
  position: relative;
  min-width: 0;
  background: var(--paper);
}

.market-panel {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(28px, 3.2vw, 52px) clamp(28px, 4vw, 64px) 28px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #96999e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-kicker span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #dedede;
  border-radius: 50%;
  color: #444;
  font-size: 9px;
}

.market-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: 24px; }
.market-head h1 { max-width: 470px; margin: 0; font-size: clamp(31px, 3.3vw, 54px); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.market-head h1 strong { display: block; font-family: "Gaegu", cursive; font-size: 1.17em; color: #4d94d3; letter-spacing: -.04em; }
.market-head p { max-width: 430px; margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.market-cap { flex: 0 0 auto; text-align: right; }
.market-cap span { display: block; margin-bottom: 7px; color: #96999e; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.market-cap strong { font-size: clamp(24px, 2.1vw, 34px); letter-spacing: -.05em; font-weight: 600; }

.milestone-progress { margin-top: clamp(26px, 4vh, 48px); }
.progress-track { position: relative; height: 10px; border-radius: 999px; background: #edf0f2; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #8ec6ea; transition: width 1s cubic-bezier(.16,1,.3,1); }
.progress-track.peach { height: 8px; background: rgba(255,255,255,.72); }
.progress-track.peach span { background: #eda96f; }
.progress-copy { display: flex; justify-content: space-between; margin-top: 10px; color: #9b9da2; font-size: 10px; }
.progress-copy strong { color: #4a94d2; }

.milestone-rail { display: flex; align-items: flex-start; justify-content: space-between; margin-top: clamp(22px, 3vh, 38px); }
.milestone-node { position: relative; flex: 1; color: #b0b2b6; font-size: 9px; text-align: center; }
.milestone-node::before { content: ""; position: absolute; top: 7px; left: 0; width: 100%; height: 1px; background: #e5e5e5; }
.milestone-node:first-child::before { left: 50%; width: 50%; }
.milestone-node:last-child::before { width: 50%; }
.milestone-node i { position: relative; z-index: 1; display: block; width: 15px; height: 15px; margin: 0 auto 7px; border: 4px solid var(--paper); border-radius: 50%; background: #dedede; box-shadow: 0 0 0 1px #dedede; }
.milestone-node strong { display: block; color: #8d8f93; font-size: 10px; }
.milestone-node small { display: block; margin-top: 3px; font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.milestone-node.processed i { background: #8ac9a4; box-shadow: 0 0 0 1px #8ac9a4; }
.milestone-node.processed strong { color: #4c8b65; }
.milestone-node.confirming i { background: #8ec6ea; box-shadow: 0 0 0 3px rgba(142,198,234,.2); animation: node-pulse 1.8s ease-in-out infinite; }
.milestone-node.confirming strong { color: #4a94d2; }

.buyback-panel {
  grid-column: 2;
  grid-row: 1;
  padding: clamp(28px, 3vw, 48px);
  overflow: hidden;
  background: var(--peach);
}
.buyback-panel h2 { position: relative; z-index: 2; margin: clamp(42px, 6vh, 62px) 0 22px; font-size: clamp(30px, 3vw, 48px); letter-spacing: -.06em; line-height: .95; }
.buyback-panel h2 small { display: block; margin-top: 10px; color: #a26d43; font-size: .38em; font-weight: 500; letter-spacing: -.02em; }
.vault-foot { display: flex; justify-content: space-between; margin-top: 11px; color: #9b714f; font-size: 10px; }
.vault-foot strong { color: #a7622b; }
.treasury-values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: clamp(22px, 3vh, 34px); padding-top: 17px; border-top: 1px solid rgba(177,109,58,.16); }
.treasury-values span { display: block; margin-bottom: 5px; color: #a27a5b; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.treasury-values strong { display: block; overflow: hidden; color: #65472f; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.flow-line { display: flex; align-items: center; gap: 7px; margin-top: 18px; color: #9b714f; font-family: "Gaegu", cursive; font-size: 13px; }
.flow-line i { flex: 1; height: 1px; background: rgba(155,113,79,.25); }
.flow-line strong { color: #8b4d1f; }

.split-panel { grid-column: 1; grid-row: 2; padding: clamp(25px, 2.5vw, 40px) clamp(28px, 4vw, 64px); }
.split-panel > h2 { margin: 14px 0 22px; font-family: "Gaegu", cursive; font-size: clamp(29px, 2.7vw, 43px); line-height: .9; letter-spacing: -.04em; }
.split-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.split-item { min-width: 0; min-height: 124px; padding: 17px; border-radius: 24px; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s; }
.split-item:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 17px 34px rgba(20,30,40,.08); }
.split-item.sky { background: var(--sky); }
.split-item.peach { background: var(--peach); }
.split-item.mint { background: var(--mint); }
.split-item.lilac { background: var(--lilac); }
.split-item b { display: block; margin-bottom: 15px; font-size: clamp(20px, 1.7vw, 27px); letter-spacing: -.04em; }
.split-item h3 { margin: 0 0 5px; font-size: 11px; line-height: 1.2; }
.split-item p { margin: 0; color: #6e7074; font-size: 9px; line-height: 1.4; }

.activity-panel { grid-column: 2; grid-row: 2; padding: clamp(25px, 2.5vw, 40px) clamp(28px, 3vw, 48px); overflow: hidden; }
.activity-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.activity-head { margin-bottom: 18px; }
.quiet-link { color: #8b8d91; font-size: 10px; text-decoration: none; white-space: nowrap; }
.quiet-link:hover { color: var(--ink); }

.activity-list { border-top: 1px solid var(--line); }
.activity-row { display: grid; grid-template-columns: 8px minmax(92px, .8fr) minmax(100px, 1.1fr) auto; align-items: center; gap: 10px; min-height: 43px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s ease, background .2s; }
.activity-row:hover { padding-left: 5px; background: rgba(0,0,0,.015); }
.activity-row i { width: 7px; height: 7px; border-radius: 50%; background: #a8d2b8; }
.activity-row.failed i { background: #e78f8f; }
.activity-row.submitted i { background: #e5b476; animation: live-pulse 1.4s infinite; }
.activity-kind { min-width: 0; }
.activity-kind strong { display: block; font-size: 10px; text-transform: capitalize; }
.activity-kind span { color: #a0a2a6; font-size: 8px; }
.activity-hash { overflow: hidden; color: #8e9094; font-size: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.activity-amount { font-size: 9px; font-weight: 600; text-align: right; white-space: nowrap; }

.demo-disclosure { position: absolute; right: 18px; bottom: 10px; z-index: 5; color: #aaa; font-size: 8px; letter-spacing: .04em; }

.slide-dots {
  position: fixed;
  top: 50%;
  right: 17px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transform: translateY(-50%);
  mix-blend-mode: difference;
}
.slide-dots a { display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.slide-dots span { width: 5px; height: 5px; border-radius: 50%; background: white; opacity: .3; transition: opacity .2s, transform .2s; }
.slide-dots a.active span { opacity: 1; transform: scale(1.35); }

@keyframes tweet-in { from { opacity: 0; transform: translateY(46px) scale(.94) rotate(1deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(-1.2deg); } }
@keyframes hover-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes cue { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(102,181,133,.38); } 80%,100% { box-shadow: 0 0 0 7px rgba(102,181,133,0); } }
@keyframes node-pulse { 0%,100% { transform: scale(.9); } 50% { transform: scale(1.15); } }

@media (max-width: 1050px) {
  .dashboard-canvas { grid-template-columns: minmax(0, 1.35fr) minmax(310px, .85fr); }
  .market-panel::after { display: none; }
  .split-grid { gap: 8px; }
  .split-item { min-height: 116px; padding: 14px; border-radius: 20px; }
  .activity-row { grid-template-columns: 8px minmax(88px, 1fr) auto; }
  .activity-hash { display: none; }
}

@media (max-width: 760px) {
  html { scroll-snap-type: y proximity; }
  .slide { scroll-snap-stop: normal; }
  .hero-nav, .dashboard-nav { height: 70px; padding-inline: 20px; }
  .wordmark { font-size: 28px; }
  .tweet-stage { width: min(530px, calc(100vw - 28px)); transform: none; }
  .tweet-stage iframe { max-height: 68svh !important; }
  .twitter-tweet:not(.twitter-tweet-rendered) { padding: 22px; border-radius: 22px; font-size: 15px; }
  .scroll-cue { bottom: 15px; }
  .dashboard-slide { padding-top: 70px; overflow: visible; }
  .dashboard-canvas { display: block; height: auto; min-height: 0; background: var(--paper); }
  .market-panel, .buyback-panel, .split-panel, .activity-panel { border-bottom: 1px solid var(--line); padding: 30px 20px; }
  .market-head { display: block; }
  .market-head h1 { font-size: 42px; }
  .market-cap { margin-top: 24px; text-align: left; }
  .market-cap strong { font-size: 32px; }
  .milestone-rail { overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; }
  .milestone-node { min-width: 66px; }
  .buyback-panel h2 { margin-top: 65px; }
  .split-grid { grid-template-columns: repeat(2, 1fr); }
  .split-item { min-height: 132px; padding: 18px; }
  .split-item b { font-size: 26px; }
  .split-item h3 { font-size: 12px; }
  .split-item p { font-size: 10px; }
  .activity-panel { padding-bottom: 60px; }
  .activity-row { grid-template-columns: 8px minmax(98px, 1fr) auto; min-height: 50px; }
  .demo-disclosure { position: absolute; bottom: 14px; left: 20px; right: 20px; }
  .slide-dots { display: none; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .hero-nav, .dashboard-nav { height: 70px; }
  .dashboard-slide { padding-top: 70px; }
  .dashboard-canvas { height: calc(100svh - 70px); min-height: 580px; }
  .market-panel, .buyback-panel { padding-top: 28px; }
  .market-head { margin-top: 16px; }
  .market-head p { margin-top: 8px; }
  .milestone-progress { margin-top: 22px; }
  .milestone-rail { margin-top: 18px; }
  .buyback-panel h2 { margin-top: 46px; }
  .split-panel, .activity-panel { padding-top: 22px; padding-bottom: 22px; }
  .split-panel > h2, .activity-head h2 { margin-top: 10px; margin-bottom: 14px; }
  .split-item { min-height: 102px; }
  .activity-row { min-height: 37px; }
}

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