:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f3f6f8;
  --ink: #10131a;
  --muted: #667085;
  --muted-strong: #475467;
  --line: #e3e7ed;
  --line-strong: #cfd6df;
  --blue: #1f6f5b;
  --blue-strong: #155241;
  --green: #0f8f68;
  --cyan: #067f9f;
  --amber: #a15c12;
  --red: #c7342c;
  --dark: #111827;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.09);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

[hidden],
.is-hidden {
  display: none !important;
}

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

button {
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-weight: 850;
}

.brand small,
.eyebrow {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 780;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.primary-button:hover {
  background: var(--blue-strong);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.secondary-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
}

.ghost-button {
  background: transparent;
  color: var(--muted-strong);
}

.large {
  min-height: 50px;
  padding: 0 20px;
}

.small {
  min-height: 36px;
  padding: 0 12px;
}

.marketing-shell {
  min-height: 100svh;
  background: #f7f8fa;
  overflow: hidden;
}

.marketing-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.marketing-links,
.nav-actions,
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.marketing-links a {
  color: var(--muted-strong);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
}

.landing-hero {
  min-height: 650px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 76px max(20px, calc((100vw - 1180px) / 2)) 92px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 45%, rgba(31, 111, 91, 0.16), transparent 34%),
    linear-gradient(180deg, #fbfcfd 0%, #f4f7f8 100%);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 24, 39, 0.055) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 1) 32%, rgba(0, 0, 0, 0.28));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 620px;
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-kicker {
  max-width: 690px;
  margin: 20px 0 0;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 760;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.hero-subtitle {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.hero-buttons {
  margin-top: 30px;
}

.hero-stage {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(58%, 780px);
  min-width: 0;
  z-index: 1;
}

.hero-product-preview {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  top: 96px;
  width: min(560px, calc(100% - 56px));
  min-width: 0;
  min-height: 430px;
  padding: 22px;
  border: 1px solid rgba(15, 82, 65, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 100px rgba(17, 24, 39, 0.14);
  backdrop-filter: blur(18px);
}

.hero-product-preview::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 82, 65, 0.08);
  pointer-events: none;
}

.preview-topline,
.preview-key-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-topline {
  padding-bottom: 18px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 820;
}

.preview-topline strong {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #eaf8f2;
  color: var(--green);
  font-size: 12px;
}

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

.preview-metric-row article,
.preview-endpoints,
.preview-key-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.preview-metric-row article {
  min-height: 104px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.preview-metric-row span,
.preview-key-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.preview-metric-row strong {
  color: var(--ink);
  font-size: 24px;
  overflow-wrap: anywhere;
}

.preview-endpoints {
  position: relative;
  margin-top: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.preview-endpoints span {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--muted-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.preview-endpoints b {
  color: var(--blue-strong);
}

.preview-key-row {
  margin-top: 12px;
  min-height: 64px;
  padding: 0 14px;
}

.preview-key-row strong {
  min-width: 0;
  font-family: "SFMono-Regular", Consolas, monospace;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.model-fabric {
  position: absolute;
  inset: 70px 0 70px 0;
}

.model-fabric::before,
.model-fabric::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 24, 39, 0.28), transparent);
}

.model-fabric::after {
  top: 0;
  bottom: 0;
  left: 48%;
  width: 1px;
  height: auto;
  right: auto;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.28), transparent);
}

.fabric-node {
  position: absolute;
  min-width: 88px;
  min-height: 88px;
  padding: 0 14px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
  color: var(--ink);
  font-weight: 850;
}

.node-a {
  left: 28%;
  top: 34%;
  min-width: 126px;
  min-height: 126px;
  background: var(--dark);
  color: #fff;
}

.node-b {
  right: 12%;
  top: 16%;
}

.node-c {
  right: 22%;
  bottom: 18%;
}

.node-d {
  left: 9%;
  bottom: 20%;
}

.node-e {
  left: 18%;
  top: 10%;
}

.hero-command {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  bottom: 96px;
  width: min(430px, calc(100% - 56px));
  min-height: 58px;
  padding: 0 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #111827;
  color: #e5e7eb;
  box-shadow: var(--shadow);
}

.hero-command span {
  overflow-wrap: anywhere;
}

.hero-command strong {
  color: #86efac;
  white-space: nowrap;
}

.landing-band,
.workflow-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
  border-bottom: 1px solid var(--line);
}

.landing-band.compact {
  padding-bottom: 86px;
}

.section-head,
.workflow-copy {
  max-width: 780px;
}

.section-head h2,
.workflow-copy h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: 0;
}

.workflow-copy p {
  color: var(--muted-strong);
  line-height: 1.7;
}

.feature-lines {
  margin-top: 30px;
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-lines article {
  min-height: 118px;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 80px minmax(150px, 0.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.feature-lines article span {
  color: var(--cyan);
  font-weight: 850;
}

.feature-lines strong {
  font-size: 22px;
}

.feature-lines p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: start;
}

.workflow-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.workflow-steps article {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.workflow-steps article span {
  color: var(--cyan);
  font-weight: 850;
}

.workflow-steps strong {
  display: block;
  font-size: 22px;
}

.workflow-steps small {
  color: var(--muted-strong);
}

.trust-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-strip span {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--muted-strong);
  background: #fff;
  font-weight: 760;
}

.console-shell {
  min-height: 100svh;
  background: #f5f7fa;
}

.console-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.console-nav,
.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-actions .account-email {
  max-width: 220px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.nav-item {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 820;
}

.nav-item.is-active {
  color: var(--blue-strong);
  background: #edf7f2;
  border-color: #bfddd2;
}

.status-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--green);
  background: #eaf8f2;
  font-size: 13px;
  font-weight: 820;
}

.console-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 82px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.account-strip,
.workbench-hero,
.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.workbench-hero {
  min-height: 210px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.09), rgba(161, 92, 18, 0.05)),
    #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.workbench-hero h2 {
  max-width: 720px;
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.workbench-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.65;
}

.workbench-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.account-strip {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.account-strip h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.account-strip.compact {
  margin-bottom: 18px;
  box-shadow: none;
}

.account-email {
  margin: 8px 0 0;
  color: var(--muted);
}

.page-head {
  margin: 34px 0 18px;
}

.page-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.page-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.page-head.with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.metric-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 136px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card.accent {
  border-color: #bfddd2;
  background: #f6fbf8;
}

.metric-card span {
  color: var(--muted);
  font-weight: 760;
}

.metric-card strong {
  font-size: 34px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-card small {
  color: var(--muted);
}

.console-stack {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.usage-pricing-panel {
  margin-top: 18px;
}

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

.use-case-grid article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  display: grid;
  align-content: start;
  gap: 8px;
}

.use-case-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.use-case-grid span {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.use-case-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.overview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.overview-grid .panel:first-child {
  grid-row: auto;
}

.panel {
  padding: 22px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

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

.panel-head h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.panel-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.list-shell,
.key-list,
.usage-list,
.team-list,
.status-list {
  display: grid;
  gap: 10px;
}

.list-item,
.key-row,
.status-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.list-item strong,
.key-row strong {
  display: block;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.list-item span,
.key-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 760;
}

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

.key-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.key-status.active {
  background: #eaf8f2;
  color: var(--green);
}

.status-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.status-item p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.status-marker {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff7ed;
  color: var(--amber);
  font-size: 11px;
  font-weight: 850;
}

.status-item.is-done .status-marker {
  background: #eaf8f2;
  color: var(--green);
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
}

.form-stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 760;
}

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

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 111, 91, 0.13);
}

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

.amount-grid label {
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
}

.amount-grid label:has(input:checked) {
  border-color: #8fc2ad;
  background: #f2faf6;
  color: var(--blue-strong);
}

.amount-grid input {
  width: auto;
  min-height: auto;
}

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

.code-block {
  margin: 0;
  padding: 16px;
  min-height: 150px;
  max-height: 440px;
  overflow: auto;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code-block.compact {
  min-height: 110px;
}

.result-box {
  margin: 0;
  padding: 16px;
  min-height: 96px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.result-box.compact {
  min-height: 96px;
}

.output-panel .code-block {
  min-height: 250px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.58);
}

.modal-card {
  width: min(520px, 100%);
  border-radius: 8px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.24);
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.modal-card p {
  color: var(--muted-strong);
  line-height: 1.65;
}

.auth-card {
  display: grid;
  gap: 14px;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.secret-card {
  width: min(680px, 100%);
}

.secret-output {
  min-height: 96px;
}

.error-text {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-weight: 760;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(420px, calc(100% - 44px));
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 760;
}

.toast.is-error {
  background: var(--red);
}

@media (max-width: 1100px) {
  .hero-copy h1 {
    font-size: 62px;
  }

  .hero-stage {
    opacity: 0.74;
  }

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

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .workbench-hero,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-grid .panel:first-child {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .marketing-links {
    display: none;
  }

  .landing-hero {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-top: 52px;
  }

  .landing-hero::before {
    mask-image: none;
  }

  .hero-stage {
    position: relative;
    width: 100%;
    min-height: auto;
    min-width: 0;
    order: 2;
    opacity: 1;
  }

  .hero-product-preview {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  .hero-copy {
    width: min(680px, 100%);
    order: 1;
  }

  .hero-command {
    right: 20px;
    bottom: 24px;
  }

  .feature-lines article {
    grid-template-columns: 54px 1fr;
  }

  .feature-lines article p {
    grid-column: 2;
  }

  .workflow-band {
    grid-template-columns: 1fr;
  }

  .console-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .console-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .account-actions {
    width: 100%;
  }

  .account-strip,
  .workbench-hero,
  .page-head.with-action,
  .key-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .workbench-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .marketing-nav,
  .landing-band,
  .workflow-band,
  .console-main {
    width: min(1180px, calc(100% - 28px));
  }

  .marketing-nav {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-actions,
  .hero-buttons,
  .modal-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-actions button,
  .hero-buttons button,
  .modal-actions button {
    width: 100%;
    min-width: 0;
  }

  .landing-hero {
    padding: 44px 14px 60px;
    justify-content: center;
    overflow: hidden;
  }

  .hero-copy,
  .hero-stage,
  .hero-product-preview {
    width: 100%;
    max-width: calc(100vw - 28px);
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-kicker {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .hero-subtitle {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-stage {
    min-height: auto;
    overflow: hidden;
  }

  .hero-product-preview {
    padding: 16px;
    border-radius: 14px;
  }

  .preview-metric-row {
    grid-template-columns: 1fr;
  }

  .preview-endpoints span {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fabric-node {
    min-width: 74px;
    min-height: 74px;
    font-size: 14px;
  }

  .node-a {
    min-width: 104px;
    min-height: 104px;
  }

  .hero-command {
    left: 14px;
    right: 14px;
    width: auto;
    min-width: 0;
    font-size: 13px;
  }

  .section-head h2,
  .workflow-copy h2,
  .workbench-hero h2,
  .page-head h2 {
    font-size: 28px;
  }

  .feature-lines article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-lines article p {
    grid-column: auto;
  }

  .metric-grid,
  .amount-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .workbench-hero,
  .account-strip,
  .metric-card,
  .modal-card {
    padding: 18px;
  }

  .status-item {
    grid-template-columns: 1fr;
  }

  .account-strip h1 {
    font-size: 24px;
  }
}
