:root {
  color-scheme: dark;
  --ink: #07120e;
  --ink-soft: #0d1d16;
  --ink-card: #10241b;
  --cream: #f2f5e9;
  --cream-muted: #b8c4b8;
  --green: #25e0a0;
  --green-dark: #0b9e70;
  --lime: #c8ff6a;
  --line: rgba(219, 246, 228, 0.14);
  --line-light: rgba(219, 246, 228, 0.28);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  --sans: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}

.page-grid::after {
  content: "";
  position: absolute;
  width: 800px;
  height: 800px;
  top: -380px;
  right: -220px;
  border-radius: 50%;
  background: rgba(37, 224, 160, 0.16);
  filter: blur(110px);
}

.site-header,
.section-shell,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 9px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-4deg);
}

.brand-dot {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 30px;
  color: var(--cream-muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--cream);
}

.button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: #03110b;
  box-shadow: 0 12px 36px rgba(37, 224, 160, 0.18);
}

.button-primary:hover {
  background: #5cebb7;
}

.button-secondary,
.button-ghost {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-light);
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  min-height: 760px;
  padding: 112px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: 72px;
}

.eyebrow,
.kicker {
  margin: 0 0 22px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(37, 224, 160, 0.1);
}

.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 7vw, 100px);
  font-weight: 620;
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.rotating-line {
  min-height: 1em;
  display: block;
  color: var(--green);
}

.rotating-line .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em) scale(0.96);
  animation: word-in 560ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-subtitle {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--cream-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.58;
}

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

.hero-note {
  margin: 18px 0 0;
  color: #86988c;
  font-size: 13px;
}

.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    #0a1912;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-console::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(37, 224, 160, 0.12), transparent 62%);
  transform: translateX(-100%);
  animation: console-sheen 7s ease-in-out infinite;
}

.console-header {
  min-height: 58px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #91a399;
  font-family: var(--mono);
  font-size: 11px;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35463d;
}

.console-live {
  justify-self: end;
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--green);
  background: rgba(37, 224, 160, 0.09);
}

pre {
  margin: 0;
  overflow: auto;
  font-family: var(--mono);
}

.hero-console pre {
  min-height: 340px;
  padding: 42px 34px;
  font-size: 13px;
  line-height: 1.9;
}

.code-key {
  color: #8af0c7;
}

.code-string {
  color: #d7ff91;
}

.code-dim {
  color: #7f9388;
}

.console-response {
  margin: 0 18px 18px;
  padding: 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(37, 224, 160, 0.18);
  border-radius: 14px;
  background: rgba(37, 224, 160, 0.075);
}

.response-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
}

.console-response strong,
.console-response span {
  display: block;
}

.console-response strong {
  font-size: 12px;
}

.console-response div span,
.response-time {
  margin-top: 4px;
  color: #87a092;
  font-family: var(--mono);
  font-size: 9px;
}

.signal-strip {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.signal-strip div {
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  color: #aab9af;
  font-size: 13px;
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.platform-section,
.security-section,
.portal-section {
  padding-block: 138px;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 64px;
}

.section-heading h2,
.security-copy h2,
.developer-intro h2,
.portal-header h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 570;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.animated-copy .animated-word {
  display: inline-block;
  opacity: 0.16;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 540ms ease,
    transform 540ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animated-copy.is-visible .animated-word {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

.capability-card {
  min-height: 490px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.026);
}

.card-featured {
  background:
    radial-gradient(circle at 70% 30%, rgba(37, 224, 160, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.035);
}

.card-index {
  color: #829288;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.capability-card h3 {
  margin: auto 0 12px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.capability-card p {
  max-width: 520px;
  margin: 0;
  color: var(--cream-muted);
  line-height: 1.55;
}

.card-state {
  width: fit-content;
  margin-top: 22px;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 10px;
}

.state-live {
  color: var(--green);
  background: rgba(37, 224, 160, 0.08);
}

.state-planned {
  color: var(--lime);
  background: rgba(200, 255, 106, 0.07);
}

.identity-orbit {
  width: 220px;
  height: 220px;
  margin: 36px auto 0;
  display: grid;
  place-items: center;
  position: relative;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(37, 224, 160, 0.25);
  border-radius: 50%;
}

.orbit-one {
  width: 140px;
  height: 140px;
}

.orbit-two {
  width: 210px;
  height: 100px;
  transform: rotate(-18deg);
}

.orbit-core {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 900;
  box-shadow: 0 0 70px rgba(37, 224, 160, 0.24);
}

.orbit-node {
  width: 11px;
  height: 11px;
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.node-one {
  top: 53px;
  right: 28px;
}

.node-two {
  bottom: 62px;
  left: 28px;
}

.mini-ledger {
  min-height: 190px;
  margin-top: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: var(--cream);
  font-family: var(--mono);
}

.mini-ledger span,
.mini-ledger b {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 50%;
}

.mini-ledger b {
  color: var(--green);
  background: rgba(37, 224, 160, 0.08);
}

.mini-ledger i {
  height: 1px;
  position: relative;
  overflow: visible;
  background: linear-gradient(90deg, var(--line-light), var(--green), var(--line-light));
}

.mini-ledger i::after {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: -4px;
  left: 0;
  border-radius: 50%;
  background: var(--green);
  animation: route-dot 2.8s ease-in-out infinite;
}

.mini-ledger small {
  grid-column: 1 / -1;
  justify-self: center;
  color: #7d9185;
}

.route-map {
  min-height: 190px;
  margin-top: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  font-family: var(--mono);
}

.route-origin,
.route-destination,
.route-hop {
  min-width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-light);
  border-radius: 16px;
  font-size: 11px;
}

.route-hop {
  min-width: 46px;
  height: 46px;
  border-color: var(--green);
  color: var(--green);
  transform: rotate(45deg);
}

.route-hop::first-letter {
  transform: rotate(-45deg);
}

.route-path {
  height: 1px;
  background: linear-gradient(90deg, var(--line-light), var(--green));
}

.route-path-two {
  background: linear-gradient(90deg, var(--green), var(--line-light));
}

.provider-stack {
  min-height: 210px;
  margin-top: 32px;
  display: grid;
  align-content: center;
  gap: 9px;
}

.provider-stack span {
  padding: 15px 17px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.provider-stack b {
  font-size: 13px;
}

.provider-stack i {
  color: #75877c;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.flow-section {
  padding-block: 138px;
  color: var(--ink);
  background: var(--cream);
}

.section-heading-light .kicker {
  color: var(--green-dark);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(7, 18, 14, 0.18);
}

.flow-step {
  min-height: 320px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(7, 18, 14, 0.18);
}

.flow-step:last-child {
  border-right: 0;
}

.step-number {
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 12px;
}

.flow-step h3 {
  margin: 82px 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.flow-step p {
  margin: 0;
  color: #47534d;
  line-height: 1.5;
}

.flow-step code {
  margin-top: auto;
  color: #5e6c64;
  font-family: var(--mono);
  font-size: 10px;
}

.security-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 100px;
  align-items: start;
}

.security-copy {
  position: sticky;
  top: 100px;
}

.security-copy p:last-child,
.developer-intro > p {
  max-width: 580px;
  color: var(--cream-muted);
  font-size: 17px;
  line-height: 1.62;
}

.security-list {
  border-top: 1px solid var(--line);
}

.security-item {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  border-bottom: 1px solid var(--line);
}

.security-item > span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.security-item strong {
  font-size: 19px;
  font-weight: 600;
}

.security-item small {
  grid-column: 2;
  margin-top: 7px;
  color: #819087;
}

.developer-section {
  padding-block: 126px;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 10%, rgba(37, 224, 160, 0.11), transparent 30%),
    #0b1a13;
}

.developer-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 82px;
  align-items: center;
}

.developer-intro .button {
  margin-top: 18px;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background: #07110d;
  box-shadow: var(--shadow);
}

.code-tabs {
  height: 58px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  color: #65796c;
  font-family: var(--mono);
  font-size: 10px;
}

.code-tabs .active {
  color: var(--green);
}

.code-window pre {
  padding: 34px 28px;
  font-size: 12px;
  line-height: 1.85;
}

.portal-section {
  scroll-margin-top: 40px;
}

.portal-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.portal-header h2 {
  font-size: clamp(42px, 5vw, 68px);
}

.portal-header > div > p:last-child {
  color: var(--cream-muted);
}

.portal-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.portal-card {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.portal-card-wide {
  grid-column: 1 / -1;
}

.portal-label {
  margin-bottom: 38px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-card code {
  overflow-wrap: anywhere;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
}

.portal-card strong {
  font-size: 22px;
}

.portal-card .status-dot {
  margin-right: 9px;
}

.portal-card p {
  max-width: 700px;
  color: var(--cream-muted);
  line-height: 1.55;
}

.portal-card h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.text-button {
  width: fit-content;
  margin-top: auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.site-footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
  color: #788a7f;
  font-size: 12px;
}

.toast {
  padding: 12px 16px;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  border: 1px solid var(--line-light);
  border-radius: 12px;
  background: #143326;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: 200ms ease;
  font-size: 13px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes console-sheen {
  0%,
  65% {
    transform: translateX(-100%);
  }
  85%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes route-dot {
  0%,
  100% {
    left: 0;
  }
  50% {
    left: calc(100% - 9px);
  }
}

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

  .hero {
    grid-template-columns: 1fr;
    padding-top: 82px;
  }

  .hero-console {
    max-width: 700px;
    transform: none;
  }

  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-strip div:nth-child(2) {
    border-right: 0;
  }

  .signal-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step:nth-child(2) {
    border-right: 0;
  }

  .flow-step:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(7, 18, 14, 0.18);
  }

  .security-section,
  .developer-shell {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .security-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .header-auth {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    min-height: auto;
    padding: 70px 0 76px;
  }

  .hero-title {
    font-size: clamp(50px, 17vw, 76px);
  }

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

  .hero-console pre {
    min-height: 300px;
    padding: 28px 18px;
    font-size: 10px;
  }

  .console-response {
    grid-template-columns: auto 1fr;
  }

  .response-time {
    display: none;
  }

  .signal-strip,
  .capability-grid,
  .flow-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .platform-section,
  .security-section,
  .portal-section {
    padding-block: 92px;
  }

  .capability-card {
    min-height: 470px;
  }

  .flow-step {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 18, 14, 0.18);
  }

  .flow-step h3 {
    margin-top: 54px;
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .security-item {
    grid-template-columns: 54px 1fr;
  }

  .portal-header {
    align-items: start;
    flex-direction: column;
  }

  .portal-card-wide {
    grid-column: auto;
  }

  .site-footer {
    padding-block: 48px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .animated-copy .animated-word {
    opacity: 1;
    transform: none;
  }
}
