:root {
  --ink: #191714;
  --muted: #625b50;
  --paper: #fbfbfb;
  --panel: #ffffff;
  --line: #dadcd4;
  --charcoal: #161311;
  --red: #d94f3d;
  --green: #087a55;
  --blue: #2f65a7;
  --amber: #c88422;
  --soft: #eef1eb;
  --shadow: 0 18px 50px rgba(25, 23, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  color: #f8f8f2;
  background: rgba(22, 19, 17, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.docs-header {
  color: var(--ink);
  background: rgba(251, 251, 251, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 760;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: inherit;
  font-size: 0.95rem;
  opacity: 0.86;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.docs-header .top-nav a:hover,
.docs-header .top-nav a:focus-visible {
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #f8f8f2;
  background: var(--charcoal);
  padding: 88px 32px 104px;
}

#signal-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 26%;
  background: rgba(22, 19, 17, 0.5);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow,
.feature-label,
.small-label {
  display: block;
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffb078;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.2;
}

.hero-copy {
  width: min(680px, 100%);
  margin-bottom: 30px;
  color: rgba(248, 248, 242, 0.84);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
}

.hero-actions,
.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.copy-button {
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.button-primary {
  color: #fff;
  background: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #b83d2e;
  outline: none;
}

.button-secondary {
  color: #f8f8f2;
  border-color: rgba(248, 248, 242, 0.45);
  background: rgba(248, 248, 242, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(248, 248, 242, 0.16);
  outline: none;
}

.docs-content .button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.button-light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--soft);
  outline: none;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(740px, 100%);
  margin: 46px 0 0;
  overflow: hidden;
  border: 1px solid rgba(248, 248, 242, 0.22);
  border-radius: 8px;
  background: rgba(248, 248, 242, 0.18);
}

.signal-strip div {
  min-width: 0;
  padding: 16px;
  background: rgba(22, 19, 17, 0.55);
}

.signal-strip dt {
  margin-bottom: 6px;
  color: rgba(248, 248, 242, 0.64);
  font-size: 0.82rem;
}

.signal-strip dd {
  margin: 0;
  color: #f8f8f2;
  font-size: 1.02rem;
  font-weight: 780;
}

.section,
.band,
.link-grid,
.docs-layout {
  padding-inline: 32px;
}

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading p,
.docs-preview p,
.docs-hero p,
.doc-section p {
  color: var(--muted);
  font-size: 1.06rem;
}

.compact {
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.pricing-card,
.endpoint-card,
.use-case-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card {
  min-height: 210px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-card:nth-child(2) .feature-label {
  color: var(--green);
}

.feature-card:nth-child(3) .feature-label {
  color: var(--blue);
}

.feature-card:nth-child(4) .feature-label {
  color: var(--amber);
}

.feature-card p,
.use-case-list p,
.endpoint-card p {
  color: var(--muted);
}

.band {
  background: #171411;
  color: #f8f8f2;
}

.band > * {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.band .section-heading {
  padding-top: 86px;
}

.band .section-heading p {
  color: rgba(248, 248, 242, 0.72);
}

.use-case-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 86px;
}

.use-case-list article {
  padding: 22px;
  color: var(--ink);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.account-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.account-form,
.access-panel {
  display: grid;
  gap: 16px;
}

.account-form label,
.existing-key-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
}

.account-form input,
.existing-key-row input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.account-form input:focus,
.existing-key-row input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 101, 167, 0.16);
}

.access-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.access-panel-header h3 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.key-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.key-result code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.95rem;
}

.existing-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.account-message.success {
  color: var(--green);
}

.account-message.error {
  color: var(--red);
}

.pricing-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.pricing-card.featured {
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.plan-pill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--red);
  background: #fff2ec;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 820;
}

.pricing-card h3 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.pricing-card h3 span {
  color: var(--muted);
  font-size: 1rem;
}

.pricing-card p,
.pricing-note {
  color: var(--muted);
}

.plan-features {
  flex: 1;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.plan-features li + li {
  margin-top: 8px;
}

.pricing-card .button {
  width: 100%;
}

.pricing-card .button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}

.pricing-card .button-secondary:hover,
.pricing-card .button-secondary:focus-visible {
  background: var(--soft);
}

.pricing-note {
  max-width: 760px;
  margin: 18px 0 0;
}

.contact-section {
  padding-top: 84px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.contact-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  text-transform: uppercase;
}

.contact-email {
  overflow-wrap: anywhere;
  color: var(--red);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 820;
  line-height: 1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.docs-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: start;
}

.code-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #28231f;
  border-radius: 8px;
  background: #171411;
  box-shadow: var(--shadow);
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 0 14px;
  color: #f8f8f2;
  border-bottom: 1px solid rgba(248, 248, 242, 0.12);
}

.copy-button {
  min-height: 32px;
  padding: 0 12px;
  color: #f8f8f2;
  background: rgba(248, 248, 242, 0.12);
}

.copy-button:hover,
.copy-button:focus-visible {
  background: rgba(248, 248, 242, 0.22);
  outline: none;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #f8efe3;
  font-size: 0.92rem;
  line-height: 1.6;
}

.link-grid {
  width: min(1180px, 100%);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.link-grid a {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: var(--panel);
}

.link-grid a:hover,
.link-grid a:focus-visible {
  background: var(--soft);
  outline: none;
}

.link-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.link-grid strong {
  font-size: 1.05rem;
}

.site-footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer span {
  color: var(--ink);
  font-weight: 760;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
  outline: none;
}

.content-page {
  min-height: 100vh;
  background: var(--paper);
}

.page-hero {
  padding: 88px 32px 64px;
  color: #f8f8f2;
  background: var(--charcoal);
}

.page-hero-inner,
.page-content {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
}

.page-hero p {
  max-width: 760px;
  color: rgba(248, 248, 242, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.page-content {
  padding: 72px 32px 96px;
}

.content-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.content-section:first-child {
  padding-top: 0;
}

.content-section h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.content-section p,
.content-section li {
  color: var(--muted);
  font-size: 1.04rem;
}

.content-section a:not(.button),
.plan-features a,
.pricing-note a,
.doc-section a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.content-card p {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.18rem;
  font-weight: 760;
}

.legal-note {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.docs-layout {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  padding-top: 48px;
  padding-bottom: 84px;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 6px;
}

.docs-sidebar a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  border-radius: 8px;
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.docs-content {
  min-width: 0;
}

.docs-hero {
  padding: 36px 0 42px;
  border-bottom: 1px solid var(--line);
}

.docs-hero h1 {
  max-width: 860px;
  color: var(--ink);
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.doc-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}

.info-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-grid > div,
.status-grid > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.info-grid code {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.steps {
  padding-left: 22px;
  color: var(--muted);
}

.steps li + li {
  margin-top: 10px;
}

.endpoint-list {
  display: grid;
  gap: 18px;
}

.endpoint-card {
  padding: 20px;
}

.method {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 840;
}

.method.get {
  background: var(--green);
}

.method.post {
  background: var(--blue);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

th,
td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--soft);
}

tr:last-child td {
  border-bottom: 0;
}

.status-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 1.2rem;
}

.status-grid span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .hero,
  .section,
  .band,
  .link-grid,
  .docs-layout {
    padding-inline: 20px;
  }

  .feature-grid,
  .pricing-grid,
  .account-grid,
  .use-case-list,
  .docs-preview,
  .link-grid,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }

  .signal-strip,
  .info-grid,
  .status-grid,
  .existing-key-row,
  .checkout-actions,
  .contact-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 82vh;
    padding-top: 68px;
    padding-bottom: 80px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .top-nav a {
    padding-inline: 10px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .code-panel-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
