:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --ink-soft: #b4c4da;
  --ink-muted: #71839f;
  --void: #050814;
  --void-2: #090f21;
  --panel: rgba(12, 20, 40, 0.76);
  --panel-strong: rgba(16, 29, 57, 0.92);
  --white: #ffffff;
  --line: rgba(130, 231, 255, 0.18);
  --line-strong: rgba(130, 231, 255, 0.34);
  --cyan: #63f4ff;
  --blue: #3c82ff;
  --violet: #9b7bff;
  --red: #ff496d;
  --green: #40f7a6;
  --amber: #ffc861;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(99, 244, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 244, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 12%, rgba(60, 130, 255, 0.18), transparent 34%),
    radial-gradient(circle at 18% 36%, rgba(155, 123, 255, 0.16), transparent 28%),
    var(--void);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  background: linear-gradient(90deg, transparent, rgba(99, 244, 255, 0.12), transparent);
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.8;
  position: fixed;
  right: 0;
  top: 72px;
  z-index: 19;
}

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

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.5rem, 8.2vw, 7.2rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 28px;
  max-width: 1060px;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 24px;
}

h3 {
  font-size: clamp(1.08rem, 1.5vw, 1.42rem);
  letter-spacing: 0;
  line-height: 1.14;
  margin-bottom: 12px;
}

p {
  color: var(--ink-soft);
  line-height: 1.62;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(130, 231, 255, 0.24);
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto auto;
  left: 0;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 52px);
  position: fixed;
  right: 0;
  top: 0;
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  width: fit-content;
}

.brand-mark img {
  display: block;
  height: 38px;
  object-fit: contain;
  width: auto;
}

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

.desktop-nav a,
.mobile-nav a {
  color: #4d5b72;
  font-size: 0.9rem;
  font-weight: 850;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #091225;
}

.header-cta,
.button,
.copy-button {
  align-items: center;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.header-cta {
  background: #090f21;
  color: var(--white);
  padding: 0 18px;
}

.button {
  padding: 0 20px;
}

.button:hover,
.header-cta:hover,
.copy-button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 42px rgba(99, 244, 255, 0.28);
  color: #041021;
}

.button-secondary {
  background: rgba(10, 18, 36, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.menu-button {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  width: 44px;
}

.menu-button span {
  background: #091225;
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 24px;
}

.mobile-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(130, 231, 255, 0.24);
  display: none;
  left: 0;
  padding: 88px 24px 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.mobile-nav.is-open {
  display: grid;
  gap: 18px;
}

.hero {
  min-height: 94vh;
  overflow: hidden;
  padding: 128px clamp(18px, 5vw, 72px) 54px;
  position: relative;
}

.hero-media,
.hero-overlay {
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0.22;
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 8, 20, 0.98) 0%, rgba(5, 8, 20, 0.86) 52%, rgba(5, 8, 20, 0.56) 100%),
    linear-gradient(180deg, rgba(5, 8, 20, 0.15) 0%, var(--void) 100%);
}

.hero-inner {
  align-items: end;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.46fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: calc(94vh - 182px);
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-bottom: 7vh;
}

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

.hero-lede {
  color: #d9e7f6;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.36;
  max-width: 820px;
}

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

.signal-panel,
.command-block,
.proof-card,
.problem-grid article,
.timeline article,
.flywheel-orbit article,
.economy-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-panel {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.panel-topline,
.signal-status {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panel-topline {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.panel-topline span,
.signal-status span,
.signal-risk span,
.signal-evidence span {
  color: var(--ink-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-topline strong {
  color: var(--green);
  font-size: 0.78rem;
}

.signal-risk,
.signal-evidence {
  border-left: 4px solid var(--red);
  display: grid;
  gap: 6px;
  padding: 13px 12px;
}

.signal-evidence {
  border-left-color: var(--cyan);
}

.signal-risk p,
.signal-evidence p {
  color: var(--ink);
  line-height: 1.38;
  margin: 0;
}

.signal-status {
  border-top: 1px solid var(--line);
  gap: 12px;
  padding-top: 12px;
}

.signal-status strong {
  color: var(--cyan);
  font-size: 0.86rem;
  text-align: right;
}

.problem-section,
.flywheel-section,
.economy-section,
.workflow-section,
.trust-section,
.token-section {
  padding: clamp(60px, 9vw, 116px) clamp(18px, 5vw, 72px);
}

.section-intro,
.problem-grid,
.flywheel-orbit,
.economy-section,
.workflow-layout,
.principle-grid,
.token-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 1240px;
}

.section-intro {
  margin-bottom: 42px;
}

.section-intro p:not(.eyebrow),
.economy-copy p,
.workflow-layout > div > p {
  font-size: 1.08rem;
  max-width: 800px;
}

.narrow {
  max-width: 860px;
  text-align: center;
}

.narrow p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.problem-grid,
.flywheel-orbit,
.economy-grid,
.principle-grid {
  display: grid;
  gap: 18px;
}

.problem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-grid article,
.flywheel-orbit article,
.economy-grid article,
.proof-card,
.timeline article {
  padding: 26px;
}

.number,
.proof-card span,
.timeline span,
.flywheel-orbit article > span,
.economy-grid span {
  color: var(--cyan);
  display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 30px;
}

.problem-grid p,
.flywheel-orbit p,
.economy-grid p {
  margin-bottom: 0;
}

.flywheel-section {
  background:
    linear-gradient(135deg, rgba(99, 244, 255, 0.09), transparent 36%),
    linear-gradient(315deg, rgba(155, 123, 255, 0.12), transparent 40%),
    var(--void-2);
}

.flywheel-orbit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

.flywheel-orbit::before {
  border: 1px solid rgba(99, 244, 255, 0.18);
  content: "";
  inset: 50% 10% auto;
  position: absolute;
  transform: translateY(-50%);
  z-index: 0;
}

.flywheel-orbit article {
  min-height: 270px;
  position: relative;
  z-index: 1;
}

.flywheel-orbit code {
  color: var(--cyan);
}

.economy-section {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
}

.economy-grid {
  grid-template-columns: 1fr;
}

.economy-grid article {
  background:
    linear-gradient(90deg, rgba(99, 244, 255, 0.09), transparent),
    var(--panel);
}

.economy-grid strong {
  color: var(--white);
  display: block;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1;
  margin-bottom: 14px;
}

.workflow-section {
  background:
    linear-gradient(90deg, rgba(5, 8, 20, 0.96), rgba(9, 15, 33, 0.96)),
    var(--void);
  color: var(--white);
}

.workflow-layout {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
}

.workflow-layout > *,
.command-stack,
.install-card {
  min-width: 0;
}

.workflow-section p {
  color: rgba(247, 251, 255, 0.72);
}

.command-stack {
  display: grid;
  gap: 14px;
}

.install-card {
  display: grid;
  gap: 10px;
}

.install-card > span {
  color: rgba(99, 244, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.install-card.compact {
  gap: 8px;
}

.command-block {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 16px;
  grid-template-columns: auto 1fr auto;
  padding: 16px;
}

.terminal-controls {
  display: flex;
  gap: 7px;
}

.terminal-controls span {
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.terminal-controls span:nth-child(1) {
  background: var(--red);
}

.terminal-controls span:nth-child(2) {
  background: var(--amber);
}

.terminal-controls span:nth-child(3) {
  background: var(--green);
}

.command-block code {
  color: #091225;
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-button {
  background: #091225;
  border: 0;
  color: var(--white);
  padding: 0 16px;
  white-space: nowrap;
}

.prompt-block,
.run-command {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.prompt-block {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.prompt-block p {
  color: #091225;
  margin: 0;
}

.prompt-block code {
  background: rgba(60, 130, 255, 0.1);
  border-radius: 5px;
  color: #091225;
  padding: 2px 5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.prompt-block .copy-button {
  justify-self: start;
}

.run-command {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
  padding: 14px 16px;
}

.run-command code {
  color: #091225;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.trust-section {
  background:
    linear-gradient(rgba(99, 244, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 244, 255, 0.035) 1px, transparent 1px),
    #070b18;
  background-size: 42px 42px;
}

.principle-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principle-grid p {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 0;
  min-height: 138px;
  padding: 24px;
}

.token-section {
  background:
    linear-gradient(90deg, rgba(99, 244, 255, 0.11), rgba(155, 123, 255, 0.11)),
    #0a1021;
  color: var(--white);
}

.token-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.token-inner h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin-bottom: 10px;
}

.token-inner p:last-child {
  color: rgba(247, 251, 255, 0.72);
  margin-bottom: 0;
  max-width: 760px;
}

.button-token {
  background: var(--white);
  color: #091225;
  flex: 0 0 auto;
  min-width: 148px;
}

.site-footer {
  align-items: center;
  background:
    linear-gradient(120deg, transparent 0 37%, rgba(60, 130, 255, 0.12) 37.1% 37.22%, transparent 37.32%),
    linear-gradient(62deg, transparent 0 64%, rgba(99, 244, 255, 0.1) 64.1% 64.25%, transparent 64.35%),
    #050814;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 clamp(20px, 4vw, 72px);
}

.site-footer span {
  color: rgba(180, 196, 218, 0.66);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.05vw, 1rem);
  font-weight: 800;
  letter-spacing: 0;
}

.site-footer a {
  color: rgba(180, 196, 218, 0.72);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.05vw, 1rem);
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--cyan);
}

.toast {
  background: #091225;
  border: 1px solid var(--line);
  border-radius: 7px;
  bottom: 24px;
  color: var(--white);
  font-weight: 800;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 30;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1060px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .economy-section,
  .workflow-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .problem-grid,
  .flywheel-orbit,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body::before {
    top: 68px;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

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

  .button,
  .header-cta {
    width: 100%;
  }

  .token-inner {
    text-align: center;
  }

  .signal-panel {
    margin-top: 4px;
  }

  .panel-topline,
  .signal-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-status strong {
    text-align: left;
  }

  .problem-grid,
  .flywheel-orbit,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid p {
    min-height: 96px;
  }

  .command-block {
    grid-template-columns: 1fr;
  }

  .brand-mark img {
    height: 32px;
    max-width: 188px;
  }

  .run-command {
    grid-template-columns: 1fr;
  }
}
