:root {
  --bg: #05070d;
  --accent: #cc704b;
  --muted: #c9cdd4;
  --floor: #3fae6a;
  --locked: #3a3e44;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Syne", "Inter", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img, video, canvas { display: block; }
.accent {
  background: linear-gradient(180deg, #e3925c 0%, #c45a32 78%, #b44e2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #05070d url("https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260908_084305_9c0807ad-c252-4ba0-9dff-9b52b25b1735.png&w=1920&q=85") center / cover no-repeat;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.15rem 3.5rem;
}
.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav-end { display: flex; align-items: center; gap: 2.85rem; }
.links { display: flex; align-items: center; gap: 2.85rem; }
.links a { font-size: 0.8125rem; transition: opacity 0.2s ease; }
.links a:hover { opacity: 0.62; }

.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.lang-btn svg { width: 10px; height: 6px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 6.5rem;
  padding: 0.35rem;
  background: rgba(8, 10, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  transition: background 0.15s ease;
}
.lang-menu button:hover { background: rgba(255, 255, 255, 0.08); }

.rocket-wrap {
  position: absolute;
  right: 4%;
  bottom: 6%;
  z-index: 1;
  width: min(58vw, 780px);
  aspect-ratio: 1664 / 1244;
  pointer-events: none;
  transform: translate(10%, 10%);
  mix-blend-mode: lighten;
}
.rocket-src { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.rocket { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}
.hero-content h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4.25rem, 10.6vw, 8.25rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.tagline {
  margin: 1.7rem auto 0;
  max-width: 26.5rem;
  font-size: 1.02rem;
  line-height: 1.58;
  color: var(--muted);
  text-wrap: balance;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 2.5rem;
  padding: 0.82rem 1.7rem 0.82rem 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.cta svg { width: 22px; height: 12px; }
.cta:hover { background: #fff; color: #0b0d12; }

.cover { position: relative; z-index: 4; will-change: transform; }
.rocks {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  width: 100%;
  height: auto;
  pointer-events: none;
  transform: translateY(-50%);
}

.about {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: calc(18vw + 3rem) 6vw 8vh;
  background: #05070d url("https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260908_085445_eb8c952b-1979-409d-ad8c-182762ebb64e.png&w=1920&q=85") center / cover no-repeat;
}
.about-inner {
  position: relative;
  z-index: 2;
  width: min(62rem, 100%);
  margin: 0 auto;
}
.num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.about h2 {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.rule {
  width: 6.5rem;
  height: 1px;
  margin: 1.45rem 0 1.75rem;
  background: linear-gradient(90deg, transparent, #cc704b, transparent);
}
.lead {
  max-width: 40rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 3.5rem;
  max-width: 52rem;
  margin-top: 2.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.42);
  text-align: left;
}
.cols p + p { margin-top: 2.75rem; }
.chips { display: flex; flex-wrap: wrap; gap: 1.15rem; margin-top: 2.85rem; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid #cc704b;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}
.chip:hover { background: #cc704b; color: #0b0d12; }
.legal {
  max-width: 52rem;
  margin-top: 3.5rem;
  font-size: 0.72rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.3);
}

.hero .reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.about .reveal {
  animation: none;
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s);
}
.about-inner.is-in .reveal { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .links { display: none; }
  .nav { padding: 1.6rem 1.35rem; }
  .rocket-wrap { width: min(82vw, 420px); right: 0; bottom: 4%; }
}
@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .chips { flex-direction: column; }
  .chip { width: 100%; }
  .about { padding: calc(18vw + 4.5rem) 1.35rem 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .reveal, .about .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .cover { transform: none !important; }
  html { scroll-behavior: auto; }
}

.app {
  min-height: 100dvh;
  background: var(--bg);
}
.app-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3.5rem;
  background: rgba(5, 7, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.app-nav .links a.is-here { opacity: 1; }
.app-nav .links a { opacity: 0.62; }
.app-nav .links a:hover { opacity: 1; }
.connect-btn {
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.connect-btn:hover { background: #fff; color: #0b0d12; }
.wrap { width: min(62rem, 100%); margin: 0 auto; padding: 0 1.5rem; }
.app-head { padding: 4.5rem 0 2.5rem; }
.app-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.app-head p { margin-top: 1rem; max-width: 40rem; color: rgba(255, 255, 255, 0.62); font-size: 0.98rem; line-height: 1.6; }

.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.72);
  padding: 1.9rem 2rem;
}
.card + .card { margin-top: 1rem; }
.card-k {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.card h2 {
  margin-top: 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card .sub { margin-top: 0.75rem; color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; line-height: 1.65; max-width: 44rem; }
.card .sub + .sub { margin-top: 0.8rem; }
.opts { display: grid; gap: 0.65rem; margin-top: 1.5rem; max-width: 26rem; }
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.opt span { font-size: 0.68rem; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.1em; text-transform: uppercase; }
.opt:hover { background: #fff; color: #0b0d12; border-color: #fff; }
.opt:hover span { color: rgba(11, 13, 18, 0.55); }
.opt--primary { border-color: #cc704b; }
.opt--primary:hover { background: #cc704b; border-color: #cc704b; }
.note { margin-top: 1.1rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.35); }

.section-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 3.5rem 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section-h h2 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.section-h p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.3rem; }
.section-h .tail { font-family: var(--mono); font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); white-space: nowrap; }

.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); }
.figs > div { background: #080a10; padding: 1.2rem 1.4rem; }
.figs .k { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.figs .v { margin-top: 0.5rem; font-family: var(--mono); font-size: 1.35rem; font-variant-numeric: tabular-nums; }

.sort { display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; padding: 0.85rem 1.4rem; border: 1px solid rgba(255, 255, 255, 0.1); border-top: 0; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.sort .on { color: #fff; }

.quote {
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  transition: background 80ms linear;
}
.quote:hover { background: rgba(255, 255, 255, 0.04); }
.quote .l1 { display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; }
.quote .l2 { margin-top: 0.35rem; padding-left: 2ch; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); display: flex; flex-wrap: wrap; gap: 0 0.8ch; }
.quote .floor { color: var(--floor); }
.quote--big .l1 { font-size: 1.5rem; }
.quote--big .l2 { font-size: 0.95rem; }
.empty { padding: 1.4rem; border: 1px solid rgba(255, 255, 255, 0.1); border-top: 0; font-family: var(--mono); font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

.bar { display: grid; grid-template-columns: repeat(100, 1fr); gap: 1px; height: 6px; margin-top: 1.2rem; }
.bar i { display: block; background: var(--locked); }
.bar i.on { background: var(--floor); }
.bar-line { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.bar-line + .bar-line { margin-top: 0.3rem; }

.two { margin-top: 1.2rem; display: grid; grid-template-columns: 8ch 1fr 1fr; gap: 0.4rem 1.5rem; font-family: var(--mono); font-size: 0.85rem; }
.two .k { color: rgba(255, 255, 255, 0.4); }
.two .n { color: rgba(255, 255, 255, 0.4); text-align: right; }

.form { display: grid; gap: 0.9rem; margin-top: 1.5rem; max-width: 40rem; }
.field { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; align-items: center; }
.field label { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.field .in { display: flex; align-items: center; gap: 0.8rem; }
.field input, .field select {
  width: 100%;
  max-width: 16rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
  outline: none;
}
.field input:focus, .field select:focus { border-color: #cc704b; }
.field .hint { font-size: 0.72rem; color: rgba(255, 255, 255, 0.35); white-space: nowrap; }
.call {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.72);
}
.call .k { color: #fff; }
.call .f { color: var(--floor); }
.call .bad { color: #e3925c; }
.row-actions { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.ghost {
  padding: 0.8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.ghost:hover { background: #fff; color: #0b0d12; border-color: #fff; }
.ghost.solid { background: #fff; color: #0b0d12; border-color: #fff; }
.ghost.solid:hover { background: #cc704b; border-color: #cc704b; }
.pre {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  white-space: pre-wrap;
}
.pre .k { color: #fff; }
.pre .c { color: rgba(255, 255, 255, 0.35); }

.foot { margin-top: 5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.foot-cols { width: min(62rem, 100%); margin: 0 auto; padding: 2.6rem 1.5rem 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.foot-cols h3 { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); font-weight: 500; margin-bottom: 0.7rem; }
.foot-cols a, .foot-cols span { display: block; font-size: 0.85rem; line-height: 1.9; color: rgba(255, 255, 255, 0.72); }
.foot-cols a:hover { color: #fff; }
.foot-cols .mono { font-family: var(--mono); }
.foot-cols .floor { color: var(--floor); }
.foot-band { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.foot-band p { width: min(62rem, 100%); margin: 0 auto; padding: 1.2rem 1.5rem 2rem; font-size: 0.72rem; line-height: 1.7; color: rgba(255, 255, 255, 0.3); }

@media (max-width: 900px) {
  .app-nav { padding: 1.2rem 1.35rem; }
  .figs { grid-template-columns: 1fr; }
  .field { grid-template-columns: 1fr; gap: 0.4rem; }
  .field input, .field select { max-width: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 8ch 1fr; }
  .two .n { grid-column: 2; text-align: left; }
}

.flag { display: inline-flex; width: 16px; height: 11px; flex: 0 0 auto; border-radius: 1.5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.flag svg { width: 100%; height: 100%; display: block; }
.lang-btn { gap: 0.55rem; }
.lang-menu { min-width: 12.5rem; max-height: 19rem; overflow-y: auto; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.5rem 0.7rem;
  font-size: 0.8125rem;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}
.lang-menu button:hover { color: #fff; }
.lang-menu button[aria-selected="true"] { color: #fff; }
.lang-menu .code { margin-left: auto; font-size: 0.66rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.35); }
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.x-btn svg { width: 12px; height: 12px; display: block; }
.x-btn:hover { color: #fff; border-color: #fff; }
.chip { gap: 0.6rem; }
.chip i { font-style: normal; color: var(--accent); }
.chip:hover i { color: #0b0d12; }
@media (max-width: 900px) { .nav-end { gap: 1.1rem; } }

.doc-layout { display: grid; grid-template-columns: 13rem 1fr; gap: 3.5rem; align-items: start; padding-bottom: 5rem; }
.toc { position: sticky; top: 5.5rem; display: grid; gap: 0.15rem; }
.toc a { font-size: 0.8rem; line-height: 1.5; padding: 0.34rem 0; color: rgba(255, 255, 255, 0.4); transition: color 0.2s ease; }
.toc a:hover, .toc a.on { color: #fff; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -0.025em; line-height: 1.1; }
.doc .k { font-family: var(--display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }
.doc .sub { margin-top: 0.55rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.45); }
.doc p.body { margin-top: 1.1rem; font-size: 0.95rem; line-height: 1.72; color: rgba(255, 255, 255, 0.66); max-width: 44rem; }
.doc p.body + p.body { margin-top: 1rem; }
.doc section + section { margin-top: 3.6rem; padding-top: 3.2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.doc section { scroll-margin-top: 5.5rem; }
.tbl { width: 100%; margin-top: 1.5rem; border: 1px solid rgba(255, 255, 255, 0.1); border-collapse: collapse; font-size: 0.85rem; }
.tbl th, .tbl td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
.tbl th { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); font-weight: 500; }
.tbl td { color: rgba(255, 255, 255, 0.68); }
.tbl td.mono { font-family: var(--mono); color: #fff; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.calc { margin-top: 1.5rem; padding: 1.3rem 1.4rem; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.42); font-family: var(--mono); font-size: 0.82rem; line-height: 1.9; white-space: pre-wrap; color: rgba(255, 255, 255, 0.66); }
.calc b { font-weight: 400; color: #fff; }
.calc .f { color: var(--floor); }
.limit { margin-top: 1.4rem; padding: 1.05rem 1.25rem; border-left: 2px solid var(--accent); background: rgba(204, 112, 75, 0.07); font-size: 0.88rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); max-width: 44rem; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 1.6rem; } .toc { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 1.1rem; padding-bottom: 0.6rem; } }
