﻿:root {
  --background: #070908;
  --background-soft: #0d110f;
  --panel: rgba(16, 22, 19, 0.78);
  --panel-solid: #111713;
  --border: rgba(190, 255, 210, 0.14);
  --border-strong: rgba(142, 255, 172, 0.30);
  --text: #f3f7f4;
  --muted: #9da9a1;
  --green: #8dffa6;
  --green-bright: #5dff83;
  --purple: #9d8cff;
  --blue: #70b9ff;
  --yellow: #ffd166;
  --danger: #ff7d8d;
  --radius: 22px;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(82, 255, 126, 0.08), transparent 42%),
    var(--background);
  font-family: var(--sans);
  line-height: 1.55;
}

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

button {
  font: inherit;
}

code,
pre {
  font-family: var(--mono);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.background-glow {
  position: fixed;
  z-index: -2;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.10;
  pointer-events: none;
}

.glow-one {
  top: 5%;
  left: -220px;
  background: var(--green);
}

.glow-two {
  top: 38%;
  right: -240px;
  background: var(--purple);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(7, 9, 8, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  color: #061008;
  background: linear-gradient(135deg, var(--green), #d4ffdc);
  font-family: var(--mono);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #c8d1cb;
  font-size: 13px;
}

.nav-links > a:not(.status-pill):hover {
  color: var(--green);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.025);
  font-family: var(--mono);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.10);
}

.status-dot.healthy {
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(93, 255, 131, 0.10), 0 0 15px rgba(93,255,131,.7);
}

.status-dot.degraded {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 125, 141, 0.12);
}

.status-dot.checking {
  animation: statusPulse 1.5s infinite;
}

.hero {
  min-height: 720px;
  padding-top: 104px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: 72px;
}

.eyebrow,
.section-number {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(142,255,172,0.04);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(141,255,166,.8);
}

h1 {
  margin: 27px 0 24px;
  max-width: 760px;
  font-size: clamp(58px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  font-weight: 650;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--green), #e9ffec 45%, var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-intro {
  max-width: 690px;
  margin: 0;
  color: #b4beb7;
  font-size: 19px;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

.button.primary {
  color: #041008;
  background: var(--green);
  box-shadow: 0 12px 35px rgba(93,255,131,0.14);
}

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

.button.secondary:hover {
  border-color: var(--border-strong);
}

.protocol-row {
  margin-top: 37px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.protocol-row span {
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.018);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 14, 12, 0.88);
  box-shadow:
    0 40px 100px rgba(0,0,0,.4),
    inset 0 1px rgba(255,255,255,.035);
}

.terminal-top,
.terminal-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.terminal-top {
  padding: 0 18px;
  gap: 16px;
}

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

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.terminal-body {
  padding: 30px 25px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
}

.terminal-body p {
  margin: 0;
  white-space: nowrap;
}

.code-muted {
  display: inline-block;
  width: 28px;
  color: #48514c;
}

.code-blue {
  color: var(--blue);
}

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

.code-purple {
  color: var(--purple);
}

.code-yellow {
  color: var(--yellow);
}

.terminal-footer {
  min-height: 54px;
  padding: 0 18px;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.018);
}

.metrics div {
  padding: 25px 28px;
  border-right: 1px solid var(--border);
}

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

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 5px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 21px;
}

.metrics span {
  color: var(--muted);
  font-size: 12px;
}

.section {
  padding-top: 130px;
  padding-bottom: 40px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.section-heading h2,
.live-card h2,
.cta h2 {
  margin: 16px 0 18px;
  font-size: clamp(36px, 5vw, 61px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading p,
.live-card p,
.cta p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.api-card,
.free-api,
.principle-card,
.code-panel,
.contract-panel,
.live-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(20,27,23,.82), rgba(10,14,12,.74));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.api-card {
  position: relative;
  min-height: 500px;
  padding: 32px;
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}

.api-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.api-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(141,255,166,.38), transparent 34%, rgba(157,140,255,.22));
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.api-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.price {
  padding: 7px 10px;
  border: 1px solid rgba(141,255,166,.20);
  border-radius: 8px;
  color: var(--green);
  background: rgba(141,255,166,.045);
  font-family: var(--mono);
  font-size: 12px;
}

.api-card h3,
.free-api h3,
.principle-card h3 {
  margin: 60px 0 18px;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.api-card p,
.free-api p,
.principle-card p {
  color: var(--muted);
}

.api-card ul {
  margin: 28px 0 35px;
  padding: 0;
  list-style: none;
}

.api-card li {
  position: relative;
  margin: 12px 0;
  padding-left: 23px;
  color: #c6d0c9;
  font-size: 14px;
}

.api-card li::before {
  content: "↳";
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--mono);
}

.endpoint {
  position: absolute;
  right: 32px;
  bottom: 32px;
  left: 32px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 11px;
  background: rgba(0,0,0,.22);
}

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

.endpoint code {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  color: #cbd5ce;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  cursor: pointer;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: #c9d3cc;
  background: rgba(255,255,255,.035);
  font-family: var(--mono);
  font-size: 10px;
}

.copy-button:hover {
  color: var(--green);
  border-color: var(--border-strong);
}

.free-api {
  margin-top: 20px;
  padding: 28px 32px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 35px;
}

.free-api h3 {
  margin: 10px 0 8px;
  font-size: 25px;
}

.free-api p {
  max-width: 720px;
  margin-bottom: 0;
}

.free-label {
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.free-endpoint {
  min-width: 280px;
  display: grid;
  gap: 10px;
}

.free-endpoint strong {
  color: var(--green);
  font-family: var(--mono);
}

.free-endpoint code {
  color: #d6ded8;
  font-size: 12px;
}

.architecture-section {
  margin-top: 110px;
  padding-bottom: 130px;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.012);
}

.flow {
  display: grid;
  grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr 28px 1fr;
  align-items: start;
  margin: 70px 0 65px;
}

.flow-step span {
  display: block;
  margin-bottom: 20px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
}

.flow-step strong {
  display: block;
  min-height: 46px;
  font-size: 15px;
}

.flow-step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.flow-line {
  height: 1px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--green), rgba(141,255,166,.08));
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.principle-card {
  min-height: 270px;
  padding: 25px;
  border-radius: 17px;
}

.principle-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 10px;
}

.principle-card h3 {
  margin: 40px 0 12px;
  font-size: 20px;
}

.principle-card p {
  margin: 0;
  font-size: 13px;
}

.docs-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
}

.code-panel,
.contract-panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.code-panel-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.code-panel pre {
  overflow-x: auto;
  margin: 0;
  padding: 27px;
  color: #cbd5ce;
  font-size: 12px;
  line-height: 1.7;
}

.json-key {
  color: var(--blue);
}

.json-string {
  color: var(--green);
}

.json-value {
  color: var(--purple);
}

.contract-panel {
  padding: 11px 24px;
}

.contract-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

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

.contract-row span {
  color: var(--muted);
  font-size: 12px;
}

.contract-row strong {
  font-family: var(--mono);
  font-size: 12px;
}

.resource-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.resource-links a {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.018);
  transition: border-color .2s, transform .2s;
}

.resource-links a:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.resource-links span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.resource-links strong {
  font-size: 14px;
}

.live-card {
  padding: 50px;
  border-radius: 25px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
}

.live-card h2 {
  max-width: 730px;
  font-size: clamp(36px, 4vw, 54px);
}

.live-status-box {
  min-width: 310px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(0,0,0,.20);
}

.large-status-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
}

.large-status-dot.checking {
  animation: statusPulse 1.5s infinite;
}

.large-status-dot.healthy {
  background: var(--green-bright);
  box-shadow: 0 0 25px rgba(93,255,131,.7);
}

.large-status-dot.degraded {
  background: var(--danger);
  box-shadow: 0 0 25px rgba(255,125,141,.5);
}

.live-status-box small,
.live-status-box strong,
.live-status-box span {
  display: block;
}

.live-status-box small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.live-status-box strong {
  margin: 4px 0;
  font-size: 17px;
}

.live-status-box span {
  color: var(--muted);
  font-size: 11px;
}

.cta-section {
  margin-top: 130px;
  padding: 130px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  background:
    radial-gradient(circle at 50% 100%, rgba(141,255,166,.10), transparent 45%),
    rgba(255,255,255,.01);
}

.cta {
  text-align: center;
}

.cta h2,
.cta p {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
}

.cta .hero-actions {
  justify-content: center;
}

footer {
  padding: 55px 0 35px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.footer-inner,
.legal {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p,
.legal p {
  color: var(--muted);
  font-size: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.footer-meta span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.legal {
  margin-top: 35px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.legal p:first-child {
  max-width: 800px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: .45;
    transform: scale(.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@media (max-width: 1000px) {
  .hero,
  .api-grid,
  .docs-grid,
  .live-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 75px;
    gap: 45px;
  }

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

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

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

  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .flow-line {
    display: none;
  }

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

  .live-status-box {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 26px, 1180px);
  }

  .nav {
    min-height: 68px;
  }

  .nav-links > a:not(.status-pill) {
    display: none;
  }

  .status-pill {
    padding: 8px 10px;
  }

  h1 {
    font-size: clamp(51px, 17vw, 76px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .terminal-body {
    overflow-x: auto;
    font-size: 11px;
  }

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

  .metrics div,
  .metrics div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .api-card {
    min-height: 540px;
    padding: 25px;
  }

  .endpoint {
    right: 25px;
    bottom: 25px;
    left: 25px;
  }

  .free-api,
  .footer-inner,
  .legal {
    grid-template-columns: 1fr;
    display: grid;
  }

  .free-endpoint {
    min-width: 0;
  }

  .flow,
  .safety-grid,
  .resource-links {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 95px;
  }

  .architecture-section,
  .cta-section {
    margin-top: 80px;
    padding-top: 95px;
    padding-bottom: 95px;
  }

  .live-card {
    padding: 30px 24px;
  }

  .footer-meta {
    justify-content: flex-start;
  }
}


.footer-inner p a {
  color: var(--green);
  text-decoration: none;
}

.footer-inner p a:hover {
  text-decoration: underline;
}
