/* WAchat — Enterprise B2B Design System */

:root {
  --white:        #ffffff;
  --bg:           #f8fafc;
  --bg-alt:       #f1f5f9;
  --surface:      #ffffff;
  --ink:          #0f172a;
  --ink-2:        #334155;
  --muted:        #64748b;
  --muted-2:      #94a3b8;
  --line:         #e2e8f0;
  --line-2:       #cbd5e1;

  --green:        #059669;
  --green-dark:   #047857;
  --green-bg:     #ecfdf5;
  --green-border: #a7f3d0;

  --dark:         #0f172a;
  --dark-2:       #1e293b;
  --dark-3:       #334155;

  --r-sm:  6px;
  --r:     10px;
  --r-lg:  14px;
  --r-xl:  20px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
  --shadow:    0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -1px rgba(15,23,42,.05);
  --shadow-md: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -2px rgba(15,23,42,.04);
  --shadow-lg: 0 25px 50px -12px rgba(15,23,42,.16);
}

/* ─── Reset ─────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }
img { display: block; max-width: 100%; }

/* ─── Navigation ────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1100px, calc(100% - 48px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  margin-right: 16px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-block;
  background: url("assets/wachat-logo.png") center / cover no-repeat;
  color: transparent;
  font-size: 0;
  flex-shrink: 0;
}

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

.nav-links a {
  padding: 7px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s, background .15s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--ink); background: var(--bg); }
.nav-links a.active { color: var(--ink); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.mobile-toggle { display: none; }

/* ─── Buttons ───────────────────────────────── */

.button, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
  text-decoration: none;
  line-height: 1;
}

.button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 1px 3px rgba(5,150,105,.25);
}

.button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.button.secondary {
  background: var(--white);
  color: var(--ink-2);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.button.secondary:hover {
  border-color: var(--line-2);
  background: var(--bg);
}

.button.lg {
  min-height: 46px;
  padding: 11px 22px;
  font-size: 15px;
  border-radius: var(--r-lg);
}

/* ─── Layout ─────────────────────────────────── */

.wrap {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.section      { padding: 88px 0; }
.section.tight{ padding: 60px 0; }
.section.sm   { padding: 48px 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.grid     { display: grid; gap: 20px; }
.cols-2   { grid-template-columns: repeat(2, 1fr); }
.cols-3   { grid-template-columns: repeat(3, 1fr); }
.cols-4   { grid-template-columns: repeat(4, 1fr); }

/* ─── Typography ─────────────────────────────── */

h1 {
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.highlight { color: var(--green); }

/* ─── Section themes ─────────────────────────── */

.bg-muted {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bg-dark {
  background: var(--dark);
  color: #e2e8f0;
}

.bg-dark h1, .bg-dark h2 { color: #fff; }
.bg-dark h3 { color: #e2e8f0; }
.bg-dark .muted, .bg-dark .lead { color: var(--muted-2); }

.bg-dark .eyebrow {
  background: rgba(5,150,105,.18);
  border-color: rgba(5,150,105,.35);
  color: #34d399;
}

.bg-dark .eyebrow::before { background: #34d399; }

.bg-dark .step:not(:last-child)::after { background: var(--dark-3); }

.bg-dark .step-num {
  background: rgba(5,150,105,.25);
  color: #34d399;
  border: 1px solid rgba(52,211,153,.4);
}

/* ─── Hero ───────────────────────────────────── */

.hero {
  padding: 80px 0 96px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-text { max-width: 540px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.trust-item::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1.5px solid var(--green-border);
  flex-shrink: 0;
}

/* ─── Console frame (hero widget) ────────────── */

.console-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.console-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

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

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.console-file {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  flex: 1;
  text-align: center;
}

.console-body { padding: 22px; }

.console-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.console-top h3 { font-size: 15px; margin-bottom: 3px; }
.console-top p  { font-size: 12px; color: var(--muted); margin: 0; }

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg);
}

.metric {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: none; }

.metric strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.metric span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ops-list {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.ops-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.ops-row:last-child { border-bottom: none; }

.ops-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.ops-content { flex: 1; min-width: 0; }

.ops-content strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1px;
}

.ops-content p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-handoff {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--green-border);
  border-radius: var(--r);
  background: var(--green-bg);
}

.console-handoff img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.console-handoff strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.console-handoff p {
  font-size: 11px;
  color: var(--green);
  font-weight: 500;
  margin: 2px 0 0;
}

/* ─── Badges ─────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge.green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.badge.green::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.badge.amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge.gray {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ─── Cards ──────────────────────────────────── */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}

.card.compact { padding: 18px 20px; }

a.card:hover {
  border-color: var(--green-border);
  box-shadow: var(--shadow-md);
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: .03em;
}

/* ─── Process steps ──────────────────────────── */

.process {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  position: relative;
  padding-bottom: 28px;
}

.step:last-child { padding-bottom: 0; }

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--line);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  position: relative;
  z-index: 1;
}

.step-content { padding-top: 8px; }
.step-content h3 { margin-bottom: 5px; }
.step-content p  { margin: 0; font-size: 15px; }

/* ─── Section head ───────────────────────────── */

.section-head { margin-bottom: 48px; }

.section-head.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-head.center .lead { text-align: center; }

/* ─── Page hero ──────────────────────────────── */

.page-hero {
  padding: 64px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--ink); }

/* ─── Table ──────────────────────────────────── */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.table th {
  padding: 11px 15px;
  text-align: left;
  background: var(--bg);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

.table tr:last-child td { border-bottom: none; }
.table a { color: var(--green); font-weight: 500; }
.table a:hover { text-decoration: underline; }

/* ─── Forms ──────────────────────────────────── */

.form   { display: grid; gap: 18px; }
.field  { display: grid; gap: 6px; }

.field label, .field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

input, select, textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}

textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

/* ─── Notice ─────────────────────────────────── */

.notice {
  padding: 13px 16px;
  border: 1px solid #fde68a;
  border-radius: var(--r);
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  line-height: 1.55;
}

/* ─── Check list ─────────────────────────────── */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1.5px solid var(--green-border);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ─── Demo shell ─────────────────────────────── */

.demo-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 22px 14px;
}

.demo-sidebar strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 8px;
  margin-bottom: 10px;
}

.demo-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2px;
  transition: all .15s;
}

.demo-sidebar a:hover { background: var(--white); color: var(--ink); }

.demo-sidebar a.active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.demo-main { padding: 30px; overflow-y: auto; }

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.toolbar .eyebrow { margin-bottom: 8px; }

/* ─── Messaging ──────────────────────────────── */

.message-window {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.phone {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #f0fdf4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-top {
  padding: 11px 15px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.phone-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.bubble.sent {
  align-self: flex-end;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.log {
  min-height: 360px;
  border-radius: var(--r-lg);
  padding: 18px;
  background: #0f172a;
  color: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  overflow: auto;
  white-space: pre;
}

/* ─── CTA section ────────────────────────────── */

.cta-section {
  background: var(--dark);
  padding: 88px 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  max-width: 520px;
  margin: 0 auto 16px;
}

.cta-section .lead {
  color: var(--muted-2);
  margin: 0 auto 36px;
  text-align: center;
}

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

.cta-section .button.lg { min-height: 48px; }

.cta-section .button.secondary {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.cta-section .button.secondary:hover {
  background: rgba(255,255,255,.15);
}

/* ─── Footer ─────────────────────────────────── */

.footer {
  background: var(--dark);
  color: #e2e8f0;
  padding: 60px 0 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--dark-2);
}

.footer-brand .brand {
  display: inline-flex;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--dark-3);
  margin: 0;
  max-width: 240px;
  line-height: 1.6;
}

.footer-col strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--dark-3);
  margin-bottom: 9px;
  transition: color .15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: 12px;
  color: var(--dark-3);
}

/* ─── Permission name badge ──────────────────── */

.perm-name {
  display: inline-block;
  padding: 4px 10px;
  background: var(--dark);
  color: #34d399;
  border-radius: var(--r-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 10px;
}

.perm-block {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.perm-block .feat-icon { flex-shrink: 0; }

.perm-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.perm-cols h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

/* ─── Signup frame (embedded-signup page) ─────── */

.signup-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.signup-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 42px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.signup-body {
  padding: 30px;
}

.signup-body h2 { font-size: 22px; margin-bottom: 10px; }

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 1024px) {
  .hero-grid,
  .split       { grid-template-columns: 1fr; gap: 48px; }
  .hero-text   { max-width: none; }
  .cols-4      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .wrap    { width: calc(100% - 32px); }
  .section { padding: 60px 0; }

  .nav {
    width: calc(100% - 32px);
    flex-wrap: wrap;
    min-height: 60px;
    padding-bottom: 0;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0 14px;
    border-top: 1px solid var(--line);
    margin: 0;
  }

  .topbar.open .nav-links { display: flex; }

  .nav-actions { display: none; order: 4; }

  .topbar.open .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 14px;
  }

  .topbar.open .nav-actions .button { width: 100%; justify-content: center; }

  .mobile-toggle { display: inline-flex; margin-left: auto; }

  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }

  .hero { padding: 56px 0 72px; }

  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; gap: 6px; }

  .demo-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .demo-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 14px;
  }

  .demo-sidebar strong { width: 100%; margin-bottom: 6px; }

  .message-window { grid-template-columns: 1fr; }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .table { display: block; overflow-x: auto; }

  .trust-row { gap: 8px 16px; }

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

  .console-frame { font-size: 13px; }
}
