:root {
  --ink: #f3f6ff;
  --paper: #090d18;
  --panel: #101729;
  --panel-deep: #0b1120;
  --line: #2b395a;
  --muted: #aeb9d0;
  --cyan: #61e7ff;
  --acid: #c9f35b;
  --orange: #ff9d63;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(97, 231, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 231, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 7%, rgba(97, 231, 255, 0.15), transparent 26rem),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--cyan);
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #061018;
  background: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: -0.03em;
}

.brand b {
  color: var(--muted);
  font-weight: 600;
}

nav {
  display: flex;
  gap: clamp(15px, 3vw, 34px);
}

nav a,
footer a {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--cyan);
}

.hero {
  min-height: 650px;
  padding: 92px 0 108px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.65fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.eyebrow,
.section-index,
.card-label,
.panel-bar,
.api-note,
.protocol-state {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 30px;
  color: var(--muted);
}

.pulse {
  width: 9px;
  height: 9px;
  display: inline-block;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(201, 243, 91, 0.12), 0 0 20px var(--acid);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 34px;
  font-size: clamp(4rem, 8.6vw, 7.9rem);
  font-weight: 720;
  letter-spacing: -0.072em;
  line-height: 0.86;
}

h1 em {
  color: var(--cyan);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.lede {
  max-width: 700px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

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

.primary-action,
.secondary-action,
button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--cyan);
  color: #061018;
  background: var(--cyan);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}

.secondary-action {
  color: var(--ink);
  background: transparent;
}

.primary-action:hover,
.primary-action:focus-visible,
button:hover,
button:focus-visible {
  background: var(--acid);
  border-color: var(--acid);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  color: #061018;
  background: var(--cyan);
}

.status-card {
  padding: 28px;
  background: linear-gradient(145deg, #141d33, #0d1425);
  border: 1px solid var(--line);
  box-shadow: 14px 14px 0 rgba(97, 231, 255, 0.14);
}

.card-label {
  margin-bottom: 24px;
  color: var(--cyan);
}

.status-row {
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.state {
  display: inline-flex;
  padding: 4px 8px;
  color: var(--orange);
  background: rgba(255, 157, 99, 0.1);
  border: 1px solid currentColor;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.state--live {
  color: var(--acid);
  background: rgba(201, 243, 91, 0.08);
}

.status-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 108px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 50px;
}

.section-index {
  padding-top: 12px;
  color: var(--cyan);
}

.section-heading h2,
.evidence h2 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.section-heading > div > p,
.evidence > div > p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid,
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article,
.protocol-grid article {
  min-height: 230px;
  padding: 28px;
  background: var(--panel-deep);
}

.service-number {
  color: var(--cyan);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-style: italic;
}

.service-grid h3,
.protocol-grid h3 {
  margin: 38px 0 12px;
  font-size: 1.35rem;
}

.service-grid p,
.protocol-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

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

code {
  color: var(--acid);
}

.demo-section {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(20px, calc((100vw - var(--max-width)) / 2));
  background: rgba(16, 23, 41, 0.72);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.editor-card,
.result-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}

.panel-bar {
  min-height: 58px;
  padding: 10px 14px 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.panel-bar button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.67rem;
  text-transform: uppercase;
}

textarea,
pre {
  width: 100%;
  height: 430px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #dce8ff;
  background: #080c16;
  border: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  tab-size: 2;
}

textarea {
  display: block;
  resize: vertical;
}

textarea:focus-visible,
pre:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.result-status {
  color: var(--cyan);
}

.result-status.is-error {
  color: #ffb4a1;
}

.api-note {
  margin: 18px 0 0;
  color: var(--muted);
}

.pricing-table {
  border: 1px solid var(--line);
}

.pricing-row {
  min-height: 72px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.8fr;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.pricing-row:first-child {
  border-top: 0;
}

.pricing-head {
  min-height: 52px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.protocol-state {
  color: var(--orange);
}

.protocol-state--live {
  color: var(--acid);
}

.protocol-grid h3 {
  margin-top: 28px;
}

.evidence {
  display: grid;
  grid-template-columns: 0.7fr 2fr;
  gap: 50px;
}

footer {
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

@media (max-width: 850px) {
  .hero,
  .section-heading,
  .evidence,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .status-card {
    max-width: 560px;
  }

  .section-heading,
  .evidence {
    gap: 18px;
  }

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

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  nav a {
    font-size: 0.62rem;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 5rem);
  }

  .section {
    padding: 78px 0;
  }

  .demo-section {
    padding-inline: 14px;
  }

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

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .pricing-head {
    display: none;
  }

  footer {
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

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