:root {
  color-scheme: dark;
  --bg: #050707;
  --panel: #0b1010;
  --panel-2: #101514;
  --text: #eef8f5;
  --muted: #9bb0aa;
  --line: rgba(203, 255, 239, 0.15);
  --cyan: #34d5ff;
  --green: #78ff9f;
  --orange: #ff9d4a;
  --shadow: rgba(0, 0, 0, 0.5);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(5, 7, 7, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.site-footer div,
.hero-actions,
.demo-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(120, 255, 159, 0.6);
  background:
    linear-gradient(135deg, rgba(52, 213, 255, 0.28), rgba(120, 255, 159, 0.08)),
    #111;
  box-shadow: 0 0 24px rgba(52, 213, 255, 0.3);
  transform: rotate(45deg);
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--green);
}

.button,
.chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: 132px clamp(20px, 5vw, 72px) 96px;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 7, 7, 0.98) 0%, rgba(5, 7, 7, 0.82) 38%, rgba(5, 7, 7, 0.22) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 7, 0) 28%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 10px;
  font-size: 1.18rem;
}

.hero-copy,
.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 34px 0 0;
}

.hero-metrics div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.hero-metrics dt {
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 850;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.button.primary {
  color: var(--bg);
  background: var(--green);
  border-color: transparent;
}

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

.signal-strip {
  padding: 22px clamp(20px, 5vw, 72px);
  background: #0c1110;
  border-block: 1px solid var(--line);
}

.signal-strip div {
  display: flex;
  gap: 12px;
  width: min(1160px, 100%);
  margin: 0 auto;
  color: var(--muted);
}

.signal-strip strong {
  color: var(--text);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-header.compact {
  max-width: 520px;
  margin-bottom: 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-grid article,
.why-grid article,
.roadmap-grid article,
.token-grid article,
.revenue-grid article,
.receipt-panel,
.demo-shell,
.ledger-grid,
.console-shell,
.ai-shell,
.api-section pre,
.provider-table,
.surplus-panel,
.surplus-flow div,
.architecture-flow div,
.final-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  box-shadow: 0 24px 80px var(--shadow);
}

.workflow-grid article {
  min-height: 220px;
  padding: 22px;
}

.why-section {
  padding-bottom: 24px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.why-grid article {
  min-height: 230px;
  padding: 24px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-grid article {
  min-height: 260px;
  padding: 24px;
}

.token-section {
  padding-top: 24px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.token-grid article {
  min-height: 250px;
  padding: 24px;
}

.token-note {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.revenue-section {
  padding-top: 24px;
}

.revenue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.revenue-grid article {
  min-height: 260px;
  padding: 24px;
}

.revenue-grid span {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 850;
}

.revenue-note {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.workflow-grid span,
.roadmap-grid span {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 850;
}

.workflow-grid p,
.why-grid p,
.roadmap-grid p,
.token-grid p,
.revenue-grid p,
.receipt-row span,
.plan-output span,
.provider-row span,
.surplus-flow span,
.architecture-flow span {
  color: var(--muted);
  line-height: 1.55;
}

.ledger-section {
  padding-top: 24px;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.ledger-grid div {
  min-height: 104px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger-grid div:nth-child(3n) {
  border-right: 0;
}

.ledger-grid div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.ledger-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ledger-grid strong {
  color: var(--text);
  font-size: 1.1rem;
}

.split,
.api-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.receipt-panel {
  padding: 12px;
}

.receipt-row,
.plan-output div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.receipt-row:last-child,
.plan-output div:last-child {
  border-bottom: 0;
}

.receipt-row strong,
.plan-output strong {
  text-align: right;
}

.provider-table {
  overflow: hidden;
}

.provider-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.55fr 0.65fr;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.provider-row:last-child {
  border-bottom: 0;
}

.provider-head {
  min-height: 52px;
  background: rgba(120, 255, 159, 0.08);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.provider-row span:first-child {
  color: var(--text);
  font-weight: 800;
}

.surplus-section {
  padding-top: 24px;
}

.surplus-panel {
  overflow: hidden;
}

.surplus-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.surplus-flow div {
  min-height: 190px;
  padding: 22px;
  background: #07100f;
  box-shadow: none;
}

.surplus-flow span {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
}

.surplus-flow strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.surplus-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.surplus-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.surplus-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.surplus-note strong {
  color: var(--text);
}

.surplus-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.surplus-links a {
  color: var(--green);
  font-weight: 800;
}

.demo-shell {
  padding: 16px;
}

.demo-controls {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  padding: 0 16px;
  color: var(--text);
  background: var(--panel-2);
  cursor: pointer;
}

.chip.active {
  color: var(--bg);
  background: var(--cyan);
  border-color: transparent;
}

.demo-copy {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.console-section {
  padding-top: 24px;
}

.console-shell {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(52, 213, 255, 0.08), rgba(120, 255, 159, 0.025)),
    #050707;
}

.console-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--muted);
}

.window-controls span:nth-child(1) {
  background: #ff705e;
}

.window-controls span:nth-child(2) {
  background: #ffd166;
}

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

.console-topbar strong {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.console-run {
  justify-self: end;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(120, 255, 159, 0.45);
  border-radius: 8px;
  color: var(--bg);
  background: var(--green);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.console-body {
  min-height: 360px;
  padding: 20px;
  font: 700 0.95rem/1.8 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.console-lines {
  min-height: 280px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.console-lines li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  color: #d8fff4;
}

.console-lines span {
  color: var(--green);
}

.console-lines strong {
  color: var(--cyan);
}

.console-cursor {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.console-cursor strong {
  color: var(--green);
  animation: blink 1s step-end infinite;
}

.ai-section {
  padding-top: 24px;
}

.ai-shell {
  padding: 18px;
}

.ai-thread {
  display: grid;
  gap: 12px;
  min-height: 260px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 4px 14px;
}

.ai-message {
  max-width: 760px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ai-message.user {
  justify-self: end;
  background: rgba(52, 213, 255, 0.08);
}

.ai-message span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ai-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.ai-prompts button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.ai-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-prompts button {
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.ai-prompts button:hover,
.ai-prompts button.active {
  color: var(--bg);
  background: var(--cyan);
  border-color: transparent;
}

.ai-message.thinking p::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.2s steps(4, end) infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75%,
  100% {
    content: "...";
  }
}

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

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

.api-section pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
}

.architecture {
  padding-top: 24px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.architecture-flow div {
  min-height: 150px;
  padding: 22px;
}

.architecture-flow strong {
  display: block;
  margin-top: 14px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.final-cta {
  margin-bottom: 96px;
  padding: clamp(28px, 6vw, 56px);
}

.final-cta h2 {
  max-width: 850px;
}

.final-cta p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

code {
  color: #dbfff3;
  font: 700 1rem/1.9 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div {
  flex-wrap: wrap;
  gap: 18px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.icon-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(5, 7, 7, 0.95), rgba(5, 7, 7, 0.58)),
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 7, 0) 35%);
  }

  .workflow-grid,
  .why-grid,
  .ledger-grid,
  .roadmap-grid,
  .token-grid,
  .revenue-grid,
  .plan-output,
  .provider-row,
  .surplus-flow,
  .architecture-flow,
  .split,
  .api-section {
    grid-template-columns: 1fr;
  }

  .ledger-grid div,
  .ledger-grid div:nth-child(3n),
  .ledger-grid div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ledger-grid div:last-child {
    border-bottom: 0;
  }

  .signal-strip div,
  .surplus-note,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand span:last-child {
    max-width: 120px;
  }

  .hero {
    padding: 112px 18px 72px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 72px 0;
  }

  .receipt-row,
  .plan-output div,
  .provider-row {
    flex-direction: column;
  }

  .provider-row {
    align-items: start;
    padding-block: 16px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }


  .receipt-row strong,
  .plan-output strong {
    text-align: left;
  }
}
