:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f5;
  --ink: #182027;
  --muted: #64717d;
  --line: #d9e0e6;
  --line-strong: #bfccd6;
  --accent: #176b87;
  --accent-strong: #0e4f65;
  --accent-soft: #dff1f5;
  --green: #177245;
  --green-soft: #e4f5ec;
  --amber: #946200;
  --amber-soft: #fff0cc;
  --red: #b42318;
  --red-soft: #fde7e5;
  --shadow: 0 18px 48px rgba(31, 45, 56, 0.11);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 224, 230, 0.9);
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: fit-content;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
}

.brand-text {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 6px;
  color: #42505b;
  font-size: 0.95rem;
  font-weight: 620;
  padding: 9px 11px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  gap: 8px;
  padding: 0 16px;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--accent-strong);
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: #3c4b56;
}

.btn.full {
  width: 100%;
}

.page-main {
  min-height: calc(100vh - 72px);
}

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

.section.alt {
  background: var(--surface);
}

.section.dark {
  background: #162027;
  color: #f5f8fa;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 72px);
  padding: 58px 0 46px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #42505b;
  font-size: 0.84rem;
  font-weight: 760;
  padding: 7px 11px;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
}

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

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #52616d;
  font-size: 1.15rem;
}

.section.dark .lead,
.section.dark .muted,
.section.dark .metric-label {
  color: #c8d2da;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.proof-item {
  border-left: 2px solid var(--line-strong);
  padding-left: 14px;
}

.proof-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
}

.proof-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #101820;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #17232c;
  color: #cbd7df;
  font-size: 0.82rem;
  padding: 0 14px;
}

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

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #6f7f89;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 560px;
}

.preview-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #111b22;
  padding: 18px 14px;
}

.preview-nav-label {
  margin-bottom: 10px;
  color: #7f96a4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.preview-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border-radius: 6px;
  color: #d8e2e8;
  font-size: 0.87rem;
  font-weight: 650;
  margin-bottom: 5px;
  padding: 0 10px;
}

.preview-nav-item.active {
  background: #23343e;
}

.preview-nav-item span:last-child {
  color: #8fa5b2;
  font-size: 0.76rem;
}

.preview-main {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f8fbfc;
}

.preview-title {
  font-size: 1rem;
  font-weight: 800;
}

.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(53, 186, 118, 0.36);
  border-radius: 999px;
  color: #bcebd1;
  font-size: 0.78rem;
  font-weight: 780;
  padding: 6px 9px;
}

.preview-live::before {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #35ba76;
  content: "";
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  min-height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #17232c;
  padding: 13px;
}

.metric-label {
  color: #8fa5b2;
  font-size: 0.76rem;
  font-weight: 750;
}

.metric-value {
  margin-top: 8px;
  color: #f7fbfc;
  font-size: 1.55rem;
  font-weight: 820;
}

.metric-note {
  margin-top: 6px;
  color: #a9bac4;
  font-size: 0.78rem;
}

.chart-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #17232c;
  overflow: hidden;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f7fbfc;
  font-weight: 780;
  padding: 0 14px;
}

.chart-header span:last-child {
  color: #8fa5b2;
  font-size: 0.78rem;
}

.latency-chart {
  display: grid;
  grid-template-columns: repeat(28, minmax(5px, 1fr));
  align-items: end;
  gap: 5px;
  height: 170px;
  padding: 18px 14px;
}

.latency-chart span {
  min-height: 22px;
  border-radius: 4px 4px 0 0;
  background: #56a5b8;
}

.latency-chart span:nth-child(3n) {
  background: #8fb86a;
}

.latency-chart span:nth-child(8n) {
  background: #d4a93e;
}

.endpoint-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.endpoint-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #17232c;
  color: #d9e5eb;
  gap: 12px;
  padding: 0 13px;
}

.endpoint-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 9px;
  white-space: nowrap;
}

.pill.ok {
  background: var(--green-soft);
  color: var(--green);
}

.pill.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.neutral {
  background: var(--surface-2);
  color: #40505c;
}

.pill.dark {
  background: rgba(255, 255, 255, 0.1);
  color: #d6e0e6;
}

.section-pad {
  padding: 84px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-head h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p {
  max-width: 440px;
  margin-bottom: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.plain-card,
.price-card,
.doc-card,
.status-card,
.team-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card {
  min-height: 230px;
  padding: 24px;
}

.icon-box {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-strong);
  margin-bottom: 22px;
}

.feature-card h3,
.plain-card h3,
.price-card h3,
.doc-card h3,
.status-card h3,
.team-card h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: 48px;
  align-items: center;
}

.operations-list {
  display: grid;
  gap: 12px;
}

.plain-card {
  padding: 20px;
}

.rules-list,
.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.rules-list li,
.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #465560;
}

.check-list li::before,
.rules-list li::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  content: "✓";
  font-size: 0.78rem;
  font-weight: 900;
}

.terminal {
  border: 1px solid #2f404b;
  border-radius: var(--radius);
  background: #101820;
  box-shadow: var(--shadow);
  color: #dce8ee;
  overflow: hidden;
}

.terminal-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.terminal-line {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  padding-bottom: 10px;
}

.terminal-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.terminal-key {
  color: #85bfce;
}

.terminal-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #edf5f8;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.logo-cell {
  display: grid;
  min-height: 74px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #72808a;
  font-weight: 800;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: #1f2c34;
  padding: 32px;
}

.cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.03;
}

.site-footer {
  background: #111820;
  color: #d9e2e8;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: 28px;
}

.footer-title {
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #aebbc4;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9fadb7;
  margin-top: 36px;
  padding-top: 18px;
}

.footer-bottom a {
  color: #c8d5dd;
  font-weight: 720;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.page-hero {
  padding: 72px 0 54px;
}

.page-hero.compact {
  padding-bottom: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent-strong);
  font-weight: 720;
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
  min-height: 100vh;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111820;
  color: #f7fbfc;
  padding: 48px;
}

.auth-panel .brand-mark {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #dff1f5;
}

.auth-copy {
  max-width: 680px;
}

.auth-copy h1 {
  margin: 36px 0 18px;
  font-size: clamp(2.3rem, 5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 560px;
  color: #c2ced7;
  font-size: 1.12rem;
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}

.auth-stat {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.auth-stat strong {
  display: block;
  font-size: 1.35rem;
}

.auth-stat span {
  color: #aab8c2;
  font-size: 0.85rem;
}

.auth-card-wrap {
  display: grid;
  align-items: center;
  background: var(--bg);
  padding: 32px;
}

.auth-card {
  width: min(100%, 430px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 30px;
}

.auth-card h2 {
  margin-bottom: 6px;
  font-size: 1.7rem;
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #34434e;
  font-size: 0.9rem;
  font-weight: 760;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #465560;
  font-size: 0.9rem;
}

.check-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.form-note.success {
  color: var(--green);
}

.form-note.error {
  color: var(--red);
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.auth-switch a {
  color: var(--accent-strong);
  font-weight: 760;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.timeline-date {
  color: var(--muted);
  font-weight: 760;
}

.status-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 850;
}

.status-indicator::before {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px var(--green-soft);
  content: "";
}

.status-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 0 20px;
}

.status-card p {
  margin: 3px 0 0;
}

.uptime-bars {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  min-width: 260px;
}

.uptime-bars span {
  height: 28px;
  border-radius: 3px;
  background: var(--green);
}

.uptime-bars span.warn {
  background: #d7a72e;
}

.uptime-bars span.down {
  background: #cf4d3f;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}

.docs-nav {
  position: sticky;
  top: 96px;
  display: grid;
  align-self: start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.docs-nav a {
  border-radius: 6px;
  color: #4b5a65;
  font-weight: 680;
  padding: 9px 10px;
}

.docs-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.docs-content {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.doc-card {
  min-width: 0;
  padding: 24px;
}

.doc-card h2 {
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.code-block {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #2b3a44;
  border-radius: 8px;
  background: #101820;
  color: #dce8ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  margin: 16px 0 0;
  padding: 16px;
}

.endpoint-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.endpoint-table th,
.endpoint-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}

.endpoint-table th {
  color: #394853;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.price-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.price {
  display: flex;
  align-items: end;
  gap: 7px;
}

.price strong {
  font-size: 2.3rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
}

.team-card {
  padding: 22px;
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent-strong);
  font-weight: 850;
  margin-bottom: 18px;
}

.contact-card {
  padding: 24px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #40505c;
}

.contact-method svg {
  color: var(--accent-strong);
  flex: 0 0 auto;
}

.changelog-list {
  display: grid;
  gap: 18px;
}

.release {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.release h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.release ul {
  margin: 0;
  padding-left: 20px;
}

.release li + li {
  margin-top: 8px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.legal-card,
.resource-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.legal-card + .legal-card {
  margin-top: 16px;
}

.legal-card h2,
.resource-card h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.legal-card p:last-child,
.resource-card p:last-child {
  margin-bottom: 0;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.resource-card {
  display: grid;
  align-content: start;
  min-height: 250px;
}

.resource-card .btn {
  align-self: end;
  margin-top: 18px;
}

.not-found-page {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 64px 0;
}

.not-found-panel {
  width: min(100%, 720px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
}

.not-found-code {
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.not-found-panel h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .site-header.nav-open .nav-links,
  .site-header.nav-open .nav-actions {
    display: grid;
  }

  .site-header.nav-open .nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    padding: 15px 0;
  }

  .site-header.nav-open .brand {
    min-height: 42px;
  }

  .site-header.nav-open .nav-links {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 10px;
  }

  .site-header.nav-open .nav-links a {
    padding: 12px;
  }

  .site-header.nav-open .nav-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .site-header.nav-open .nav-actions .btn {
    width: 100%;
  }

  .hero,
  .split,
  .auth-page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .product-frame {
    max-width: 760px;
  }

  .feature-grid,
  .grid-3,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  .auth-panel {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .wrap {
    width: min(100% - 24px, var(--max));
  }

  .section-pad {
    padding: 58px 0;
  }

  .hero {
    gap: 28px;
    padding: 38px 0;
  }

  .hero h1,
  .page-hero h1,
  .auth-copy h1 {
    font-size: clamp(2.15rem, 12vw, 3.4rem);
    line-height: 1;
  }

  .lead {
    font-size: 1.02rem;
  }

  .hero-proof,
  .metric-grid,
  .endpoint-list,
  .feature-grid,
  .grid-2,
  .grid-3,
  .resource-grid,
  .logo-strip,
  .footer-grid,
  .auth-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .preview-sidebar {
    display: none;
  }

  .preview-main {
    padding: 14px;
  }

  .latency-chart {
    grid-template-columns: repeat(18, minmax(5px, 1fr));
    height: 140px;
  }

  .latency-chart span:nth-child(n + 19) {
    display: none;
  }

  .section-head,
  .cta-band,
  .status-summary,
  .status-card,
  .footer-bottom,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

  .status-card {
    padding: 18px;
  }

  .uptime-bars {
    min-width: 0;
  }

  .auth-panel,
  .auth-card-wrap {
    padding: 24px;
  }

  .auth-card {
    padding: 24px;
  }

  .endpoint-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
