:root {
  --opd-bg-primary: #070807;
  --opd-bg-secondary: #0d100f;
  --opd-bg-tertiary: #131714;
  --opd-bg-elevated: #191e1b;
  --opd-bg-hover: #202721;
  --opd-text-primary: #f6f8f3;
  --opd-text-secondary: #b7c0b6;
  --opd-text-muted: #909a90;
  --opd-accent: #b8ff5a;
  --opd-accent-foreground: #10150d;
  --opd-success: #48e08a;
  --opd-warning: #f7c948;
  --opd-danger: #ff6464;
  --opd-agent: #62d8ff;
  --opd-done: #a78bfa;
  --opd-font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --opd-font-mono: "JetBrains Mono", "SF Mono", monospace;
  --opd-space-base: 4px;
  --opd-space-sm: 8px;
  --opd-space-md: 16px;
  --opd-space-lg: 24px;
  --opd-space-xl: 32px;
  --opd-radius-sm: 4px;
  --opd-radius-md: 6px;
  --opd-radius-lg: 10px;
  --opd-radius-xl: 16px;
  --background: var(--opd-bg-primary);
  --surface: var(--opd-bg-secondary);
  --surface-strong: var(--opd-bg-tertiary);
  --surface-soft: rgba(17, 22, 18, 0.72);
  --text: var(--opd-text-primary);
  --muted: var(--opd-text-secondary);
  --dim: var(--opd-text-muted);
  --line: rgba(224, 255, 217, 0.12);
  --line-strong: rgba(224, 255, 217, 0.22);
  --lime: var(--opd-accent);
  --lime-soft: rgba(184, 255, 90, 0.1);
  --gold: var(--opd-warning);
  --danger: var(--opd-danger);
  --font-sans: var(--opd-font-sans);
  --font-mono: var(--opd-font-mono);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12rem, rgba(184, 255, 90, 0.09), transparent 42rem),
    var(--background);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

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

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.page-grid {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(90deg, rgba(226, 255, 218, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(226, 255, 218, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.site-header,
.section-shell,
.endpoint-band,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(184, 255, 90, 0.34);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(184, 255, 90, 0.26), rgba(184, 255, 90, 0.04));
}

.brand-mark > span {
  position: absolute;
  width: 6px;
  height: 20px;
  border-radius: 9px;
  background: var(--lime);
  transform: rotate(45deg) translate(-3px, 3px);
}

.brand-mark > span:last-child {
  opacity: 0.42;
  transform: rotate(45deg) translate(4px, -4px);
}

.brand-mark-small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.brand-product {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 4px 6px;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.header-nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.header-nav a,
.footer-nav a {
  transition: color 150ms ease;
}

.header-nav a:hover,
.footer-nav a:hover {
  color: var(--lime);
}

.header-cta {
  justify-self: end;
  border-radius: 8px;
  background: var(--text);
  padding: 11px 15px;
  color: #101410;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: var(--lime);
}

.hero {
  position: relative;
  display: flex;
  width: min(960px, calc(100% - 40px));
  min-height: 640px;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0 92px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: 5%;
  left: 50%;
  width: 760px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 255, 90, 0.09), transparent 68%);
  transform: translateX(-50%);
  filter: blur(12px);
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 17, 14, 0.84);
  padding: 0 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(247, 201, 72, 0.08);
}

.status-pill[data-service-status="ready"] {
  border-color: rgba(184, 255, 90, 0.22);
  color: #c9e7bd;
}

.status-pill[data-service-status="ready"] .status-dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(184, 255, 90, 0.09);
}

.status-pill[data-service-status="unavailable"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 133, 111, 0.09);
}

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

.hero .eyebrow {
  margin-top: 28px;
}

.hero h1 {
  max-width: 900px;
  margin: 20px 0 0;
  font-size: clamp(52px, 7.4vw, 94px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--lime), #e8ffc9 54%, var(--gold));
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 750px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.primary-button {
  background: var(--lime);
  color: #11170d;
  box-shadow: 0 16px 44px rgba(184, 255, 90, 0.1);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

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

.secondary-button:hover {
  border-color: rgba(184, 255, 90, 0.35);
  color: var(--text);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--dim);
  font-size: 12px;
  list-style: none;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row span {
  color: var(--lime);
}

.endpoint-band {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 1.24fr);
  align-items: center;
  gap: 40px;
  border-block: 1px solid var(--line);
  padding-block: 30px;
}

.endpoint-band h2,
.section-heading h2,
.boundary-section h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.endpoint-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(13, 17, 14, 0.72);
}

.endpoint-lock {
  padding-left: 16px;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 15px;
}

.endpoint-control code {
  overflow: hidden;
  padding: 16px 13px;
  color: #d9e5d6;
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button,
.code-copy {
  border: 0;
  cursor: pointer;
}

.copy-button {
  min-height: 38px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-strong);
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.copy-success {
  display: none;
  color: var(--lime);
}

.copy-button[data-copied="true"] .copy-default {
  display: none;
}

.copy-button[data-copied="true"] .copy-success {
  display: inline;
}

.section-shell {
  padding-block: 118px;
}

.connect-section {
  scroll-margin-top: 24px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: end;
  gap: 70px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.setup-card {
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 0, rgba(184, 255, 90, 0.05), transparent 24rem),
    rgba(12, 16, 13, 0.9);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.tab-list {
  display: flex;
  min-height: 58px;
  align-items: end;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.tab-button {
  position: relative;
  min-height: 57px;
  border: 0;
  background: transparent;
  padding: 0 18px;
  color: var(--dim);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.tab-button::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  background: transparent;
  content: "";
}

.tab-button[aria-selected="true"] {
  color: var(--text);
}

.tab-button[aria-selected="true"]::after {
  background: var(--lime);
}

.tab-panel {
  padding: 32px;
}

.tab-panel[hidden] {
  display: none;
}

.step-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.step-label:not(:first-child) {
  margin-top: 27px;
}

.step-label span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(184, 255, 90, 0.24);
  border-radius: 6px;
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
}

.code-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080b09;
}

.code-block pre {
  min-height: 62px;
  margin: 0;
  overflow-x: auto;
  padding: 20px 72px 20px 20px;
}

.code-block code {
  color: #d7e3d3;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre;
}

.code-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-strong);
  padding: 8px 10px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
}

.code-copy:hover,
.code-copy[data-copied="true"] {
  color: var(--lime);
}

.panel-note {
  margin: 19px 0 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.65;
}

.panel-note code {
  color: #c8d3c4;
  font-family: var(--font-mono);
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.transport-grid > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  background: #0a0d0b;
  padding: 17px;
}

.transport-grid span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.transport-grid strong {
  font-size: 12px;
}

.credential-warning {
  display: flex;
  gap: 15px;
  margin-top: 18px;
  border: 1px solid rgba(247, 201, 72, 0.21);
  border-radius: 12px;
  background: rgba(247, 201, 72, 0.045);
  padding: 19px;
}

.warning-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(247, 201, 72, 0.28);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.credential-warning strong {
  color: #f2df9b;
  font-size: 13px;
}

.credential-warning p {
  margin: 5px 0 0;
  color: #938963;
  font-size: 12px;
  line-height: 1.6;
}

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

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 43px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.capability-grid article {
  min-width: 0;
  background: var(--surface);
  padding: 30px;
}

.capability-number {
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.capability-grid h3 {
  margin: 29px 0 0;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.capability-grid p {
  min-height: 63px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.capability-grid code {
  display: block;
  margin-top: 25px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boundary-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.boundary-section > div {
  max-width: 760px;
}

.boundary-section p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.boundary-section > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(184, 255, 90, 0.35);
  padding: 0 0 8px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  min-height: 140px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.site-footer-copy {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-footer-copy p {
  margin: 0;
  color: var(--dim);
  font-size: 11px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    display: none;
  }

  .endpoint-band,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .capability-grid p {
    min-height: auto;
  }

  .boundary-section {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
  }

  .site-footer {
    align-items: flex-start;
    padding-block: 34px;
  }

  .site-footer-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .endpoint-band,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 68px;
  }

  .brand-product {
    display: none;
  }

  .header-cta {
    padding-inline: 12px;
    font-size: 11px;
  }

  .hero {
    width: min(100% - 28px, 960px);
    min-height: 590px;
    padding-block: 78px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

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

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .endpoint-band {
    grid-template-columns: 1fr;
    padding-block: 25px;
  }

  .endpoint-control {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .endpoint-control .copy-button {
    grid-column: 1 / -1;
    margin: 0 6px 6px;
  }

  .section-shell {
    padding-block: 84px;
  }

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

  .setup-card {
    margin-top: 30px;
  }

  .tab-list {
    overflow-x: auto;
    padding-inline: 8px;
  }

  .tab-button {
    flex: 0 0 auto;
    padding-inline: 13px;
  }

  .tab-panel {
    padding: 24px 16px;
  }

  .code-block pre {
    padding: 52px 16px 18px;
  }

  .code-copy {
    top: 10px;
    right: 10px;
  }

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

  .capability-grid article {
    padding: 25px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 32px;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
