:root {
  --bg: #07111f;
  --bg-soft: #0f1c30;
  --panel: rgba(10, 20, 38, 0.78);
  --line: rgba(243, 247, 255, 0.28);
  --text: #f3f7ff;
  --muted: #f3f7ff;
  --accent: #59d0ff;
  --accent-strong: #0ea5e9;
  --accent-warm: #f7b267;
  --success: #47d7ac;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 208, 255, 0.2), transparent 34%),
    radial-gradient(circle at top right, rgba(247, 178, 103, 0.16), transparent 28%),
    linear-gradient(180deg, #091321 0%, #050b14 55%, #04070d 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 86%);
}

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

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="submit"]:disabled {
  cursor: not-allowed;
}

code,
pre,
.brand,
.price,
.stat-card strong {
  font-family: "Space Grotesk", sans-serif;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(6, 13, 25, 0.72);
  box-shadow: var(--shadow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
}

.nav a {
  position: relative;
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

main {
  display: grid;
  gap: 34px;
  padding-top: 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
}

.hero-copy,
.hero-card,
.subhero,
.band,
.price-card,
.feature-card,
.stat-card,
.panel,
.docs-sidebar,
.doc-block {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-copy {
  padding: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-warm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 10ch;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.lede,
.hero-copy p,
.subhero p,
.doc-block p,
.panel p,
.feature-card p,
.price-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.inline-form {
  margin: 0;
  display: inline-flex;
}

.button.small {
  min-height: 42px;
  padding: 0 16px;
}

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

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04101a;
}

.button.secondary,
.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #f3f7ff;
}

.button.block {
  width: 100%;
}

.auth-summary,
.guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-pill {
  padding: 10px 14px;
  border-radius: 999px;
  color: #f3f7ff;
  background: rgba(89, 208, 255, 0.14);
  border: 1px solid rgba(243, 247, 255, 0.18);
  font-size: 0.92rem;
}

.hero-metrics,
.stats-grid,
.feature-grid,
.pricing-grid,
.dashboard-panels {
  display: grid;
  gap: 18px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-inline-card,
.auth-status-panel {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(89, 208, 255, 0.16);
  background: rgba(89, 208, 255, 0.06);
}

.auth-inline-title,
.session-line {
  margin-bottom: 8px;
}

.auth-inline-text,
.session-line {
  color: #f3f7ff;
}

.filter-hint-card {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(243, 247, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.filter-hint-card.is-active {
  border-color: rgba(89, 208, 255, 0.42);
  background: rgba(89, 208, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(89, 208, 255, 0.12);
}

.cta-row.compact {
  margin: 16px 0 0;
}

.hero-metrics div,
.stat-card,
.feature-card,
.price-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.hero-metrics span {
  color: #f3f7ff;
  font-size: 0.92rem;
}

.hero-card {
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(89, 208, 255, 0.18), transparent 45%),
    linear-gradient(180deg, rgba(15, 28, 48, 0.98), rgba(6, 12, 23, 0.95));
}

.terminal {
  height: 100%;
  padding: 18px;
  border-radius: 24px;
  background: #06101d;
  border: 1px solid rgba(124, 146, 178, 0.24);
}

.terminal-bar {
  width: 86px;
  height: 10px;
  border-radius: 999px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, #f7768e, #f7b267, #47d7ac);
}

.terminal code {
  color: #bfdcff;
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.feature-card {
  min-height: 220px;
}

.band,
.subhero {
  padding: 36px;
  border-radius: var(--radius-xl);
}

.auth-page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.auth-page-tabs {
  margin-bottom: 22px;
}

.auth-page-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.band-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.band-list span {
  padding: 10px 14px;
  border-radius: 999px;
  color: #f3f7ff;
  background: rgba(89, 208, 255, 0.12);
  border: 1px solid rgba(243, 247, 255, 0.16);
}

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

.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price {
  margin-bottom: 0;
  font-size: 2.5rem;
}

.price span {
  font-size: 1rem;
  color: #f3f7ff;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  color: #f3f7ff;
}

.checks li {
  position: relative;
  padding-left: 22px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(71, 215, 172, 0.1);
}

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

.docs-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.docs-sidebar a {
  display: block;
  padding: 12px 0;
  color: #f3f7ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-sidebar a:last-child {
  border-bottom: 0;
}

.docs-content {
  display: grid;
  gap: 18px;
}

.doc-block {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.doc-block pre {
  margin: 18px 0 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #06101d;
  border: 1px solid rgba(124, 146, 178, 0.24);
  color: #bfdcff;
}

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

.request-example-card {
  display: grid;
  gap: 12px;
}

.request-example-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  min-height: 156px;
  border-radius: var(--radius-lg);
}

.stat-card span {
  display: block;
  margin-bottom: 26px;
  color: #f3f7ff;
}

.stat-card strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.dashboard-panels {
  grid-template-columns: 1fr;
}

.dashboard-panels > .panel {
  width: 100%;
}

.panel {
  padding: 28px;
  border-radius: var(--radius-xl);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #f3f7ff;
  min-width: 760px;
}

th,
td {
  padding: 16px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(243, 247, 255, 0.12);
  vertical-align: middle;
}

th {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

th:first-child,
td:first-child {
  padding-left: 0;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 24px 4px 0;
  color: #f3f7ff;
  font-size: 0.92rem;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, 0.76);
  backdrop-filter: blur(6px);
}

.auth-dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 42, 0.98), rgba(6, 13, 25, 0.98));
  box-shadow: var(--shadow);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  color: #04101a;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.auth-form {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
}

.auth-form label,
.job-form label {
  display: grid;
  gap: 8px;
  color: #f3f7ff;
  grid-template-columns: 1fr;
  width: 100%;
}

.auth-form label span,
.job-form label span,
.job-filters label span {
  display: block;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
}

.auth-form input,
.job-form input,
.job-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(243, 247, 255, 0.22);
  border-radius: 14px;
  color: #ecf6ff;
  background: linear-gradient(180deg, rgba(18, 34, 56, 0.96), rgba(9, 18, 33, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font: inherit;
}

.auth-page-panel,
.job-form,
.job-form > label,
.auth-form > label,
.auth-form > .button,
.job-form > .button,
.job-form > .job-feedback {
  width: 100%;
}

.auth-form input:focus,
.job-form input:focus,
.job-form select:focus {
  outline: 2px solid rgba(89, 208, 255, 0.3);
  border-color: rgba(89, 208, 255, 0.4);
  background: linear-gradient(180deg, rgba(21, 42, 68, 0.98), rgba(10, 21, 38, 0.98));
}

.auth-form input::placeholder,
.job-form input::placeholder,
.job-filters input::placeholder {
  color: rgba(243, 247, 255, 0.68);
}

.job-form select option,
.job-filters select option {
  color: #ecf6ff;
  background: #0b1728;
}

.auth-feedback {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--muted);
}

.auth-feedback[data-state="success"] {
  color: var(--success);
}

.auth-feedback[data-state="error"] {
  color: #ff9292;
}

.job-form {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
}

.job-filters {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr) auto auto;
  gap: 14px 16px;
  align-items: end;
  margin: 18px 0 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(243, 247, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
}

.job-filters label {
  display: grid;
  gap: 8px;
  color: #f3f7ff;
}

.job-filters select,
.job-filters input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(243, 247, 255, 0.22);
  border-radius: 14px;
  color: #ecf6ff;
  background: linear-gradient(180deg, rgba(18, 34, 56, 0.96), rgba(9, 18, 33, 0.96));
  font: inherit;
}

.job-form textarea {
  width: 100%;
  min-height: 148px;
  padding: 14px;
  border: 1px solid rgba(243, 247, 255, 0.22);
  border-radius: 14px;
  color: #ecf6ff;
  background: linear-gradient(180deg, rgba(18, 34, 56, 0.96), rgba(9, 18, 33, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font: inherit;
  resize: vertical;
}

.job-filters select:focus,
.job-filters input:focus {
  outline: 2px solid rgba(89, 208, 255, 0.3);
  border-color: rgba(89, 208, 255, 0.4);
  background: linear-gradient(180deg, rgba(21, 42, 68, 0.98), rgba(10, 21, 38, 0.98));
}

.job-form textarea:focus {
  outline: 2px solid rgba(89, 208, 255, 0.3);
  border-color: rgba(89, 208, 255, 0.4);
  background: linear-gradient(180deg, rgba(21, 42, 68, 0.98), rgba(10, 21, 38, 0.98));
}

.job-form textarea::placeholder {
  color: rgba(243, 247, 255, 0.68);
}

.auth-form .button,
.job-form .button {
  margin-top: 6px;
}

.job-feedback {
  min-height: 24px;
  margin: 0;
  color: #f3f7ff;
}

.job-feedback[data-state="success"] {
  color: var(--success);
}

.job-feedback[data-state="error"] {
  color: #ff9292;
}

.admin-actions-cell {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
}

.admin-section {
  transition: margin-right 180ms ease;
}

.admin-console-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-console-nav .button.is-active {
  border-color: rgba(89, 208, 255, 0.42);
  background: rgba(89, 208, 255, 0.16);
  color: #f3f7ff;
  box-shadow: inset 0 0 0 1px rgba(89, 208, 255, 0.14);
}

.admin-group {
  display: grid;
  gap: 18px;
}

.admin-group-head {
  display: grid;
  gap: 10px;
}

.admin-group-head .eyebrow,
.admin-group-head h2,
.admin-group-head .lede {
  margin-bottom: 0;
}

.admin-group-grid {
  display: grid;
  gap: 18px;
}

.admin-summary-section .jobs-table-wrap {
  margin-top: 0;
}

[data-admin-token-row].is-selected {
  background: rgba(89, 208, 255, 0.12);
}

[data-admin-token-row].is-selected td {
  border-bottom-color: rgba(89, 208, 255, 0.28);
}

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

.panel-head h3 {
  margin-bottom: 0;
}

.jobs-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  padding: 4px 0;
}

[data-admin-edit-token-panel] {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid rgba(243, 247, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

[data-jobs-table] td {
  line-height: 1.6;
}

[data-jobs-table] td:nth-child(1) {
  min-width: 180px;
  color: #d7e7fb;
  font-family: "Space Grotesk", sans-serif;
}

[data-jobs-table] td:nth-child(2) {
  min-width: 150px;
}

[data-jobs-table] td:nth-child(3) {
  min-width: 100px;
}

[data-jobs-table] td:nth-child(4) {
  min-width: 170px;
}

[data-jobs-table] td:nth-child(5),
[data-jobs-table] td:nth-child(6) {
  width: 96px;
}

[data-jobs-table] .button.small {
  width: 100%;
}

.job-detail pre {
  margin: 8px 0 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #06101d;
  border: 1px solid rgba(124, 146, 178, 0.24);
  color: #bfdcff;
  overflow-x: auto;
}

.gateway-result {
  margin-top: 20px;
}

.job-detail-empty {
  color: #f3f7ff;
}

.contact-qr-panel {
  display: grid;
  gap: 18px;
}

.contact-qr-card {
  display: flex;
  justify-content: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(243, 247, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.contact-qr-card img {
  display: block;
  width: min(100%, 520px);
  border-radius: 24px;
  background: #ffffff;
}

.admin-token-drawer-shell[hidden] {
  display: none;
}

.admin-token-drawer-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.admin-token-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 8, 14, 0.72);
  backdrop-filter: blur(5px);
  pointer-events: auto;
}

.admin-token-drawer {
  display: grid;
  gap: 18px;
  pointer-events: auto;
}

.marketing-shell {
  width: min(calc(100% - 28px), 1240px);
}

.announcement-bar {
  margin-bottom: 16px;
  padding: 10px 18px;
  border: 1px solid rgba(243, 247, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(243, 247, 255, 0.84);
  text-align: center;
  font-size: 0.9rem;
}

.marketing-header {
  top: 0;
}

.site-main {
  gap: 28px;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.market-hero-copy,
.market-hero-visual,
.section-block,
.comparison-panel,
.detail-layout .panel,
.faq-item,
.workflow-step,
.service-card,
.endpoint-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(8, 16, 30, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.market-hero-copy,
.market-hero-visual {
  padding: 40px;
}

.market-hero-copy h1 {
  max-width: 12ch;
}

.pill-row,
.service-tags,
.service-doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-pill,
.service-tags span,
.service-doc-links .button,
.service-metric {
  padding: 10px 14px;
  border: 1px solid rgba(243, 247, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.service-category,
.info-pill-link {
  padding: 10px 14px;
  border: 1px solid rgba(243, 247, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.service-category {
  display: inline-flex;
  width: fit-content;
  color: var(--accent-warm);
}

.market-console {
  height: 100%;
  border-radius: 24px;
  border: 1px solid rgba(243, 247, 255, 0.1);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 31, 54, 0.96), rgba(7, 14, 24, 0.98));
}

.market-console-header {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid rgba(243, 247, 255, 0.08);
}

.market-console-header span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(243, 247, 255, 0.7);
}

.market-console-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.console-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.console-service strong,
.service-card h3,
.workflow-step h3,
.faq-item h3,
.footer-column h4,
.endpoint-item strong {
  display: block;
  margin-bottom: 8px;
}

.console-service p,
.service-card p,
.workflow-step p,
.faq-item p,
.endpoint-item p {
  margin-bottom: 0;
}

.console-service a {
  color: var(--accent);
  white-space: nowrap;
}

.market-proof,
.workflow-block,
.detail-layout {
  display: grid;
  gap: 18px;
}

.section-block,
.comparison-panel {
  padding: 30px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

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

.compact-block {
  padding: 20px 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.service-card .button {
  margin-top: auto;
}

.service-metric {
  display: inline-flex;
  width: fit-content;
  color: var(--accent);
}

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

.workflow-step {
  padding: 22px;
}

.workflow-step span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-warm);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 24px;
}

.final-band,
.section-cta {
  align-items: center;
}

.pricing-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card.is-featured {
  border-color: rgba(89, 208, 255, 0.42);
  background: linear-gradient(180deg, rgba(20, 41, 67, 0.96), rgba(8, 15, 28, 0.98));
}

.endpoint-list {
  display: grid;
  gap: 14px;
}

.endpoint-item {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.endpoint-item span {
  color: var(--accent-warm);
  font-family: "Space Grotesk", sans-serif;
}

.detail-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.docs-tree {
  display: grid;
  gap: 18px;
}

.docs-tree-group,
.docs-nav-group {
  display: grid;
  gap: 12px;
}

.docs-tree-group h3 {
  margin-bottom: 0;
}

.related-links {
  margin-top: 18px;
}

.docs-layout-wide {
  grid-template-columns: 280px minmax(0, 1fr);
}

.marketing-footer {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(243, 247, 255, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

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

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

.footer-copy {
  margin-bottom: 0;
  opacity: 0.84;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .pricing-grid,
  .pricing-grid-wide,
  .service-grid,
  .workflow-grid,
  .detail-layout,
  .market-hero,
  .stats-grid,
  .dashboard-panels,
  .docs-layout,
  .docs-layout-wide,
  .band {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 28px;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions,
  .guest-actions,
  .auth-summary {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav {
    display: grid;
    width: 100%;
    gap: 12px;
  }

  .button.ghost {
    width: 100%;
  }

  .button.small {
    width: 100%;
  }

  .hero-copy {
    padding: 34px 24px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .band-list {
    justify-content: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }

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

  .job-filters {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 680px;
  }

  .admin-token-drawer {
    position: static;
    inset: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
    z-index: auto;
  }

  .admin-token-drawer-shell {
    position: static;
    inset: auto;
    pointer-events: auto;
  }

  .admin-token-drawer-backdrop {
    display: none;
  }

  .admin-console-nav {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 12px;
  }

  .hero-card,
  .hero-copy,
  .subhero,
  .band,
  .doc-block,
  .docs-sidebar,
  .panel {
    border-radius: 22px;
  }

  .auth-dialog {
    padding: 24px;
    border-radius: 22px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-copy,
  .band,
  .subhero,
  .doc-block,
  .panel {
    padding: 24px;
  }
}

@media (min-width: 981px) {
  body.has-admin-token-drawer .admin-section {
    margin-right: min(576px, calc(100vw - 72px));
  }

  .admin-group-grid {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
  }

  .admin-group-grid > #admin-token-create,
  .admin-group-grid > .admin-summary-section {
    grid-column: 1;
  }

  .admin-group-grid > .admin-token-section,
  .admin-group-grid > #admin-billing {
    grid-column: 2;
  }

  .admin-summary-section {
    position: sticky;
    top: 118px;
  }

  .admin-token-drawer {
    position: fixed;
    top: 108px;
    right: 18px;
    bottom: 18px;
    width: min(540px, calc(100vw - 36px));
    padding-right: 22px;
    overflow-y: auto;
    z-index: 40;
    background: linear-gradient(180deg, rgba(10, 20, 38, 0.98), rgba(6, 12, 23, 0.98));
  }

  .admin-token-drawer .jobs-table-wrap {
    overflow-x: auto;
  }

  .admin-token-drawer table {
    min-width: 620px;
  }
}
