:root {
  color-scheme: dark;
  --ink: #080908;
  --ink-2: #10120f;
  --line: rgba(240, 247, 238, 0.16);
  --text: #f4f7ef;
  --muted: #aeb8aa;
  --green: #57f287;
  --amber: #f7c948;
  --coral: #ff6b5f;
  --cyan: #58d7ff;
  --panel: rgba(16, 18, 15, 0.84);
  --panel-strong: rgba(28, 32, 25, 0.94);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(87, 242, 135, 0.1), transparent 34rem),
    linear-gradient(180deg, #080908 0%, #10120f 56%, #171711 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 8, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(87, 242, 135, 0.48);
  border-radius: 8px;
  background: #132118;
  color: var(--green);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
}

.nav a:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.terminal-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  padding: 56px 32px 72px;
  border-bottom: 1px solid var(--line);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(360px, 0.72fr);
  gap: 36px;
  align-items: end;
  width: min(1180px, 100%);
  min-height: calc(100vh - 200px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 780px;
  padding-bottom: 28px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: 5.8rem;
  font-weight: 900;
}

h2 {
  font-size: 2.6rem;
  font-weight: 850;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lede {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.button.primary {
  border-color: rgba(87, 242, 135, 0.5);
  background: var(--green);
  color: #071108;
  font-weight: 800;
}

.button.secondary,
.copy-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.console-panel,
.curve-tool,
.allocation,
.investor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.console-panel {
  padding: 20px;
}

.panel-header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-header strong {
  color: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid article {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-grid span,
.investor-card span,
.quote-result span,
.spec-list dt {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.status-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.status-lines div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.dot.ok {
  background: var(--green);
}

.dot.warn {
  background: var(--amber);
}

.dot.hold {
  background: var(--coral);
}

.section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 88px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 0.58fr);
  gap: 44px;
  align-items: center;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.spec-list div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.spec-list dd {
  margin: 10px 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.allocation {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px;
}

.donut {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 55%,
    var(--amber) 55% 75%,
    var(--cyan) 75% 90%,
    var(--coral) 90% 97%,
    #f6f1d1 97% 100%
  );
  box-shadow: inset 0 0 0 34px var(--ink-2);
}

.allocation ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.allocation li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.swatch {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
}

.swatch.liquidity {
  background: var(--green);
}

.swatch.treasury {
  background: var(--amber);
}

.swatch.ecosystem {
  background: var(--cyan);
}

.swatch.team {
  background: var(--coral);
}

.swatch.seed {
  background: #f6f1d1;
}

.tool-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(420px, 0.82fr);
  gap: 34px;
  align-items: start;
}

.tool-copy {
  position: sticky;
  top: 104px;
}

.curve-tool {
  overflow: hidden;
  background: var(--panel-strong);
}

#curveCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d100c;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.quote-form label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.quote-form input {
  width: 100%;
  accent-color: var(--green);
}

.quote-form output {
  min-height: 24px;
  color: var(--text);
  font-weight: 800;
}

.quote-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 0 18px 18px;
}

.quote-result strong {
  color: var(--green);
  font-size: 1.4rem;
  overflow-wrap: anywhere;
  text-align: right;
}

.investor-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(190px, 0.72fr));
  gap: 18px;
  align-items: stretch;
}

.investor-copy {
  padding-right: 18px;
}

.investor-card {
  min-height: 220px;
  padding: 20px;
}

.investor-card strong {
  display: block;
  margin-top: 16px;
  font-size: 1.25rem;
}

.launch-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(420px, 0.88fr);
  gap: 34px;
}

.release-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: release;
}

.release-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  counter-increment: release;
}

.release-list li::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  content: counter(release);
}

.release-list li.done::before {
  border-color: rgba(87, 242, 135, 0.52);
  color: var(--green);
}

.release-list li.active::before {
  border-color: rgba(247, 201, 72, 0.58);
  color: var(--amber);
}

.release-list strong,
.release-list span {
  display: block;
}

.release-list span {
  margin-top: 8px;
  color: var(--muted);
}

.footer {
  min-height: 84px;
  padding: 0 32px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--muted);
}

.copy-button {
  color: var(--text);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 16px 22px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .terminal-hero {
    min-height: auto;
    padding: 48px 22px 58px;
  }

  .hero-grid,
  .split,
  .tool-band,
  .investor-grid,
  .launch-board {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .section {
    width: min(100% - 44px, 760px);
    padding: 68px 0;
  }

  .tool-copy {
    position: static;
  }

  .investor-copy {
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .brand small {
    white-space: normal;
  }

  .terminal-hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .copy-button {
    width: 100%;
  }

  .metric-grid,
  .spec-list,
  .quote-form,
  .allocation {
    grid-template-columns: 1fr;
  }

  .donut {
    width: 150px;
  }

  .quote-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .quote-result strong {
    text-align: left;
  }
}
