@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: block;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 400 600; font-display: block;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 300 600; font-display: block;
  src: url("assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 300 600; font-display: block;
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #010302;
  --haze: #052019;
  --moon: #3CFF7A;
  --tide: #1FB8A6;
  --moonlight: #EAFBF1;
  --dust: #93AB9F;
  --line: rgba(140, 255, 190, .16);
  --panel: rgba(4, 14, 10, .74);

  --f-display: "Unbounded", "Onest", system-ui, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --rail: clamp(190px, 17vw, 270px);
  --gutter: clamp(20px, 5vw, 72px);
  --ground-h: clamp(64px, 13vh, 132px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--night); }

body {
  margin: 0;
  background: var(--night);
  color: var(--moonlight);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--moon); color: var(--night); }

:focus-visible { outline: 2px solid var(--moon); outline-offset: 4px; border-radius: 4px; }

/* ── Sky, moon, ground: fixed, the page scrolls over them ── */

.sky {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  background:
    radial-gradient(60vmax 50vmax at 80% 34%, rgba(60, 255, 122, .07), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #020806 52%, var(--haze) 100%);
}

.moon {
  position: fixed; z-index: 1;
  top: 1vh; right: -3vw;
  height: min(104vh, 62vw);
  aspect-ratio: 2 / 3;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: var(--moon-o, 1);
  transform: translate3d(0, var(--moon-y, 0px), 0);
  will-change: transform, opacity;
}
.moon img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  animation: moonrise 2.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes moonrise {
  from { opacity: 0; transform: translate3d(0, 14vh, 0); }
  to   { opacity: 1; transform: none; }
}

.ground {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  height: var(--ground-h);
  pointer-events: none;
}
.ground::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 60%; height: 90px;
  background: linear-gradient(180deg, transparent, rgba(1, 3, 2, .82));
}
.ground canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── Top bar and side rail ── */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-right: var(--gutter);
  pointer-events: none;
}
.top > * { pointer-events: auto; position: relative; }
.top::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 96px;
  background: linear-gradient(180deg, rgba(1, 3, 2, .88) 30%, transparent);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  width: var(--rail); height: 58px; padding-left: clamp(20px, 3vw, 44px);
  background: linear-gradient(100deg, var(--moon), var(--tide));
  color: #021008; text-decoration: none;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  border-bottom-right-radius: 18px;
}
.brand img { width: 28px; height: 28px; border-radius: 50%; }

.top-links {
  display: flex; align-items: center; gap: 22px; height: 58px;
  font-size: 14px; font-weight: 500;
}
.top-links a { text-decoration: none; color: var(--moonlight); opacity: .86; }
.top-links a:hover { opacity: 1; color: var(--moon); }
.top-cx { padding-left: 22px; border-left: 1px solid var(--line); }

.lang { display: flex; gap: 2px; }
.lang button {
  font: inherit; font-size: 13px; color: var(--dust);
  background: none; border: 0; padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--moonlight); background: rgba(140, 255, 190, .1); }
.lang button:hover { color: var(--moonlight); }

.rail {
  position: fixed; z-index: 4; top: 112px; left: clamp(20px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 20px;
  font-size: 15px; font-weight: 500;
}
.rail a {
  display: flex; align-items: center; gap: 14px;
  color: var(--dust); text-decoration: none;
  transition: color .2s;
}
.rail a::after {
  content: ""; height: 2px; width: 0; background: var(--moonlight);
  transition: width .3s ease;
}
.rail a:hover { color: var(--moonlight); }
.rail a.is-active { color: var(--moonlight); }
.rail a.is-active::after { width: 46px; }

/* ── Page ── */

main, .foot { position: relative; z-index: 2; }
main section { scroll-margin-top: 40px; }

.col, .wide {
  margin-left: var(--rail);
  padding-left: clamp(8px, 2vw, 32px);
  padding-right: var(--gutter);
}
.col { max-width: calc(var(--rail) + min(600px, 43vw)); }
.wide { max-width: calc(var(--rail) + 1040px); }

h1, h2, h3 { font-family: var(--f-display); letter-spacing: -.02em; text-wrap: balance; }

h2 { font-weight: 500; font-size: clamp(1.55rem, 2.9vw, 2.5rem); line-height: 1.16; }
h3 { font-weight: 500; font-size: 1.06rem; line-height: 1.3; letter-spacing: -.01em; }

/* Hero */

.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 calc(var(--ground-h) + 40px); }
.hero .col { width: 100%; }

.hero h1 {
  font-weight: 600; line-height: .98;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
  text-shadow: 0 0 60px rgba(60, 255, 122, .22);
}
.hero-sub {
  margin-top: 18px;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.05rem, 1.9vw, 1.55rem); line-height: 1.3;
  color: var(--moon);
}
.hero-text { margin-top: 28px; max-width: 34em; color: #CFE3D8; }

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }

.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  background: linear-gradient(100deg, var(--moon), var(--tide));
  color: #021008; font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 0 34px -6px rgba(60, 255, 122, .55);
  transition: box-shadow .25s, transform .25s;
}
.btn:hover { box-shadow: 0 0 46px -2px rgba(60, 255, 122, .8); transform: translateY(-1px); }

.link { font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.link:hover { text-decoration-color: var(--moon); }

/* Path */

.path { padding: 6vh 0 16vh; }

.steps { margin-top: clamp(48px, 9vh, 96px); display: grid; gap: clamp(56px, 11vh, 120px); }

.step { display: flex; gap: clamp(18px, 3vw, 40px); align-items: flex-start; max-width: 520px; }
.step--flip { flex-direction: row-reverse; margin-left: auto; }

.step-mark {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 300; font-size: 1.5rem; line-height: 1;
}
.phase { width: 44px; height: 44px; }
.phase circle { fill: rgba(140, 255, 190, .05); stroke: var(--line); stroke-width: 1; }
.phase path { fill: var(--moon); filter: drop-shadow(0 0 5px rgba(60, 255, 122, .7)); }

.step-body p { margin-top: 10px; color: #C3D8CC; }

/* Rules */

.rules { padding: 10vh 0 14vh; }
.lede { margin-top: 20px; max-width: 38em; color: #C3D8CC; }

.cards {
  margin-top: clamp(40px, 7vh, 72px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.card {
  min-height: 340px; padding: 30px 26px 34px;
  display: flex; flex-direction: column;
  background: var(--panel);
  border-top: 1px solid rgba(140, 255, 190, .42);
  border-radius: 4px 4px 22px 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.card:nth-child(2) { margin-top: 56px; }
.card:nth-child(3) { margin-top: 112px; }
.card-fig {
  margin-bottom: auto; padding-bottom: 48px;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.1; letter-spacing: -.02em;
  color: var(--moon);
}
.card p:last-child { margin-top: 10px; font-size: .96rem; color: #B9CFC3; }

/* Token */

.token { padding: 8vh 0 14vh; }
.token-grid { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }

.coin {
  aspect-ratio: 1; width: 100%; max-width: 400px;
  border-radius: 50%; overflow: hidden; background: #000;
  box-shadow:
    0 0 0 1px rgba(140, 255, 190, .28),
    0 0 90px -10px rgba(60, 255, 122, .45),
    0 0 220px -30px rgba(31, 184, 166, .5);
}
.coin img { width: 100%; height: 100%; }

.spec { margin-top: 30px; }
.spec > div {
  display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--dust); }
.spec dd { font-weight: 500; overflow-wrap: anywhere; }
.spec a, .note a { text-decoration: underline; text-decoration-color: var(--moon); text-underline-offset: 4px; }

.addr { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.addr button {
  font: inherit; font-size: 13px; font-weight: 500; color: var(--moon);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.addr button:hover { border-color: var(--moon); }

.note { margin-top: 20px; font-size: .9rem; color: var(--dust); max-width: 36em; }

/* After + contact */

.after { padding: 8vh 0 12vh; }
.after-text { margin-top: 26px; display: grid; gap: 18px; max-width: 36em; font-size: 1.1rem; color: #CFE3D8; }

.contact { margin-top: clamp(56px, 10vh, 110px); }
.contact p { color: var(--dust); }
.mail {
  display: inline-block; margin-top: 8px;
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(1.25rem, 3.4vw, 2.7rem); line-height: 1.2;
  text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 2px solid var(--moon);
}
.mail:hover { color: var(--moon); }

/* Footer */

.foot { padding: 0 0 calc(var(--ground-h) + 36px); font-size: .85rem; color: var(--dust); }
.foot .wide { padding-top: 26px; }
.foot .wide::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 26px; }
.foot p { max-width: 46em; }
.foot-copy { margin-top: 10px; }

/* ── Narrow screens ── */

@media (max-width: 860px) {
  :root { --rail: 0px; }
  body { font-size: 16px; }

  .rail, .top-mail { display: none; }
  .brand { width: auto; padding: 0 18px 0 var(--gutter); height: 52px; }
  .top-links { height: 52px; gap: 12px; }
  .top-cx { padding-left: 12px; }

  .col, .wide { padding-left: var(--gutter); max-width: none; }

  .moon { top: -5vh; right: -34vw; height: 76vh; }

  .hero { align-items: flex-end; padding-top: 44vh; padding-bottom: calc(var(--ground-h) + 84px); }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 4rem); }

  .step, .step--flip { flex-direction: row; margin-left: 0; max-width: none; }

  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card:nth-child(2), .card:nth-child(3) { margin-top: 0; }
  .card-fig { padding-bottom: 28px; }

  .token-grid { grid-template-columns: 1fr; }
  .coin { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .moon img { animation: none; }
  .btn, .rail a, .rail a::after { transition: none; }
}
