:root {
  color-scheme: dark;
  --bg: #060807;
  --surface: #0b0f0d;
  --surface-raised: #101613;
  --line: rgba(229, 244, 237, 0.11);
  --line-strong: rgba(229, 244, 237, 0.19);
  --text: #eef5f1;
  --muted: #8d9b94;
  --accent: #65f5c4;
  --accent-soft: rgba(101, 245, 196, 0.12);
  --danger: #ff8c86;
  --radius: 18px;
  --page: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 74% 8%, rgba(54, 120, 96, 0.11), transparent 29rem),
    linear-gradient(180deg, #070a09 0%, var(--bg) 48%, #070907 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #02120c;
  font-weight: 750;
}

.skip-link:focus {
  top: 1rem;
}

.page-width {
  width: min(var(--page), calc(100% - 48px));
  margin-inline: auto;
}

.glass-line {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 7, 0.78);
  backdrop-filter: blur(18px);
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(18, 24, 21, 0.92), rgba(8, 12, 10, 0.88));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(var(--page), calc(100% - 48px));
  min-height: 76px;
  margin-inline: auto;
  gap: 2rem;
}

.wordmark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.02rem;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(101, 245, 196, 0.36);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.1rem, 2.5vw, 2rem);
}

.landing-nav a,
.header-login,
.language-button {
  min-height: 44px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 620;
}

.landing-nav a,
.header-login {
  display: inline-flex;
  align-items: center;
}

.landing-nav a:hover,
.header-login:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.language-button,
.copy-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-button {
  min-width: 44px;
  padding: 0 0.5rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 11px;
  background: var(--accent);
  color: #03130e;
  font-size: 0.9rem;
  font-weight: 760;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #86fbd3;
}

.button-compact {
  min-height: 44px;
  padding-inline: 1rem;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7.5rem);
  padding-block: 7rem 5.5rem;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow-dot,
.status-pulse,
.endpoint-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(101, 245, 196, 0.08);
}

.hero h1 {
  max-width: 760px;
  margin: 1.4rem 0 1.4rem;
  font-size: clamp(3.15rem, 6.4vw, 6rem);
  font-weight: 660;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: #a7b4ad;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.status-line {
  margin-top: 2rem;
  letter-spacing: 0;
  text-transform: none;
}

.code-card {
  min-width: 0;
  overflow: hidden;
  transform: translateY(1rem);
}

.code-card-header,
.endpoint-row {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.15rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-card-header {
  border-bottom: 1px solid var(--line);
}

.code-card pre,
.dashboard-code {
  margin: 0;
  overflow: auto;
  color: #d7e5dd;
  font: 500 0.81rem/1.75 "SFMono-Regular", Consolas, monospace;
  white-space: pre;
}

.code-card pre {
  min-height: 236px;
  padding: 2rem 1.35rem;
}

.copy-action {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.copy-feedback {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
}

.copy-button {
  min-height: 44px;
  padding-inline: 0.35rem;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
}

.endpoint-row {
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  gap: 0.7rem;
  letter-spacing: 0;
  text-transform: none;
}

.section {
  padding-block: clamp(5.5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  max-width: 920px;
  align-items: start;
  margin-bottom: 3.4rem;
}

.section-kicker {
  color: var(--accent);
  font: 700 0.72rem/1.6 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.credits-copy h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4.3vw, 4rem);
  font-weight: 620;
  letter-spacing: -0.052em;
  line-height: 1.03;
}

.section-lead {
  grid-column: 2;
  max-width: 680px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.model-grid {
  border-top: 1px solid var(--line-strong);
}

.model-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  gap: 1rem;
}

.model-index,
.feature-number,
.step-number {
  color: #69766f;
  font: 600 0.72rem/1.5 "SFMono-Regular", Consolas, monospace;
}

.model-row h3,
.feature h3,
.step-row h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.model-row p,
.feature p,
.step-row p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #b9c8c0;
  font-size: 0.76rem;
}

.availability::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  min-height: 245px;
  padding: 1.65rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-wide {
  grid-row: span 2;
  min-height: 490px;
  padding: clamp(2rem, 4vw, 4rem);
}

.feature h3 {
  margin-top: 4.8rem;
  font-size: 1.18rem;
}

.feature-wide h3 {
  max-width: 500px;
  margin-top: 10rem;
  font-size: clamp(1.7rem, 3.5vw, 3rem);
}

.feature p {
  max-width: 520px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 9vw, 8rem);
}

.split-section .section-heading {
  display: block;
  margin: 0;
}

.split-section .section-heading h2 {
  margin-top: 1rem;
}

.steps-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.step-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line);
}

.credits-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
  padding-block: clamp(6rem, 12vw, 11rem);
  border-top: 1px solid var(--line);
}

.credit-orbit {
  position: relative;
  display: grid;
  width: min(340px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.credit-orbit::before,
.credit-orbit::after {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.credit-orbit::before {
  inset: 14%;
}

.credit-orbit::after {
  inset: 31%;
  border-color: rgba(101, 245, 196, 0.3);
}

.credit-orbit-core {
  z-index: 1;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
}

.credit-orbit-label {
  position: absolute;
  bottom: 12%;
  color: var(--muted);
  font: 650 0.7rem/1.5 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credits-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
}

.credits-copy h2 {
  margin-top: 1rem;
}

.credits-note {
  padding-left: 1rem;
  border-left: 1px solid var(--accent);
}

.faq-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(3rem, 9vw, 8rem);
}

.faq-section .section-heading {
  display: block;
  margin: 0;
}

.faq-section .section-heading h2 {
  margin-top: 1rem;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  padding: 0.6rem 2.5rem 0.6rem 0;
  cursor: pointer;
  font-weight: 640;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: 0.2rem;
  color: var(--accent);
  content: "+";
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 650px;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: 2rem 6rem;
  padding: clamp(2rem, 5vw, 4rem);
  gap: 2rem;
}

.cta p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.cta .button {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--text);
}

.policy-item {
  cursor: help;
}

@media (max-width: 920px) {
  .landing-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }

  .code-card {
    max-width: 650px;
    transform: none;
  }
}

@media (max-width: 820px) {
  .feature-grid,
  .split-section,
  .credits-section,
  .faq-section {
    grid-template-columns: 1fr;
  }

  .feature-wide {
    grid-row: auto;
    min-height: 340px;
  }

  .feature-wide h3 {
    margin-top: 6rem;
  }

  .credit-orbit {
    max-width: 260px;
  }

  .faq-section .section-heading,
  .split-section .section-heading {
    margin-bottom: 1rem;
  }
}

@media (max-width: 560px) {
  .page-width,
  .header-inner {
    width: min(var(--page), calc(100% - 28px));
  }

  .header-inner {
    min-height: 66px;
    gap: 0.5rem;
  }

  .header-login {
    display: none;
  }

  .button-compact {
    padding-inline: 0.75rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding-block: 4.2rem 4.7rem;
    gap: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .code-card pre {
    min-height: 210px;
    padding: 1.4rem 1rem;
    font-size: 0.72rem;
  }

  .section {
    padding-block: 5rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 2.3rem;
  }

  .section-heading h2 {
    margin-top: 0.9rem;
  }

  .section-lead {
    margin-top: 1rem;
  }

  .model-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .availability {
    grid-column: 2;
  }

  .feature-grid {
    border-left: 0;
  }

  .feature,
  .feature-wide {
    min-height: 0;
    padding: 1.5rem 0;
    border-right: 0;
  }

  .feature h3,
  .feature-wide h3 {
    margin-top: 2.8rem;
  }

  .credits-section {
    padding-block: 5rem;
  }

  .credit-orbit {
    width: 230px;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 4rem;
  }

  .cta .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 2rem;
    gap: 1.5rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
