:root {
  --bg-0: #07080a;
  --bg-1: #0d0f14;
  --bg-2: #131620;
  --bg-3: #1a1f2e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text-0: #f8fafc;
  --text-1: #cbd5e1;
  --text-2: #8b95a7;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.13);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.13);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.13);
  --rose: #fb7185;
  --rose-soft: rgba(251, 113, 133, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(ellipse 80% 45% at 20% -5%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 5%, rgba(129, 140, 248, 0.09), transparent 55%);
  color: var(--text-0);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
}
html { max-width: 100%; overflow-x: clip; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Sticky Obsidian Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 8, 10, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-link:hover { text-decoration: none; }
.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
}
.cmd-trigger {
  flex: 1 1 260px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cmd-trigger:hover { border-color: var(--line-strong); background: var(--bg-2); color: var(--text-1); }
.kbd {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  color: var(--text-1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 9px;
  color: var(--text-1);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.nav-link:hover { text-decoration: none; color: var(--text-0); background: var(--bg-2); border-color: var(--line); }
.saved-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 0.74rem;
  font-family: var(--mono);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #050b14;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.22);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(34, 211, 238, 0.36); }
.btn-secondary {
  background: var(--bg-2);
  color: var(--text-0);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--cyan); background: var(--bg-3); }
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--line-strong); color: var(--text-0); background: var(--bg-2); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.82rem; border-radius: 8px; }
.btn-full { width: 100%; }

/* Hero */
.hero {
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: 1.28fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.30);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.lead { color: var(--text-1); font-size: 1rem; margin: 0 0 20px; max-width: 60ch; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.stat-tile {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 13px;
}
.stat-val { display: block; font-size: 1.05rem; font-weight: 800; color: var(--text-0); }
.stat-lbl { display: block; font-size: 0.74rem; color: var(--text-2); margin-top: 2px; }

.hero-card {
  background: linear-gradient(155deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.06) 52%, var(--bg-1));
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.hero-card-head { display: flex; align-items: center; gap: 12px; }
.hero-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  object-fit: contain;
  padding: 4px;
}
.hero-card-title { margin: 8px 0 4px; font-size: 1.45rem; letter-spacing: -0.02em; }
.price-big { font-size: 2.05rem; font-weight: 900; color: var(--text-0); margin: 4px 0; }
.price-unit { font-size: 0.86rem; color: var(--text-2); font-weight: 600; }
.price-sub { font-size: 0.82rem; color: var(--emerald); font-weight: 600; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-1);
  white-space: nowrap;
}
.badge-instant { background: var(--emerald-soft); border-color: rgba(52, 211, 153, 0.35); color: var(--emerald); }
.badge-jit { background: var(--cyan-soft); border-color: rgba(34, 211, 238, 0.35); color: var(--cyan); }
.badge-assisted { background: var(--violet-soft); border-color: rgba(167, 139, 250, 0.32); color: var(--violet); }
.badge-warn { background: var(--amber-soft); border-color: rgba(251, 191, 36, 0.35); color: var(--amber); }
.badge-info { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.32); color: #7dd3fc; }
.badge-danger { background: var(--rose-soft); border-color: rgba(251, 113, 133, 0.35); color: var(--rose); }

/* Sections & Grids */
.section { padding: 24px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.015em; }
.muted { color: var(--text-2); font-size: 0.88rem; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 14px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* Cards with Subtle Brand-Category Glow */
.card, .hub-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.card:hover, .hub-card:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: var(--bg-2);
  transform: translateY(-2px);
}
.glow-ai_chat:hover { border-color: rgba(52, 211, 153, 0.45); }
.glow-ai_code:hover { border-color: rgba(34, 211, 238, 0.48); }
.glow-creator:hover { border-color: rgba(167, 139, 250, 0.45); }
.glow-streaming:hover { border-color: rgba(251, 113, 133, 0.45); }
.glow-vpn:hover { border-color: rgba(56, 189, 248, 0.45); }
.glow-gaming:hover { border-color: rgba(251, 191, 36, 0.45); }

.hub-top { display: flex; align-items: flex-start; gap: 12px; }
.hub-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}
.hub-head-text { min-width: 0; flex: 1; }
.hub-title-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hub-card h3, .card h3 { margin: 0; font-size: 1rem; line-height: 1.28; letter-spacing: -0.01em; }
.hub-cat-line { font-size: 0.76rem; color: var(--text-2); margin-top: 2px; }
.card-desc { margin: 0; font-size: 0.84rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.price { font-size: 1.18rem; font-weight: 800; color: var(--text-0); }
.price-from { font-size: 0.72rem; color: var(--text-2); font-weight: 600; display: block; line-height: 1; margin-bottom: 2px; }
.star-btn {
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-2);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.star-btn:hover { border-color: var(--amber); color: var(--amber); }
.star-btn.is-saved { color: var(--amber); border-color: rgba(251, 191, 36, 0.45); background: var(--amber-soft); }

/* Controls Panel */
.controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-input {
  flex: 1 1 260px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-0);
  color: var(--text-0);
  font-size: 16px;
}
.search-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14); }
.select-input {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg-0);
  color: var(--text-0);
  font-size: 15px;
}
.toggle-pill {
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-1);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cat-btn.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--text-0);
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
}

/* Modal & Slide-Over Drawer */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 5, 9, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}
.backdrop-center {
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 24px;
}
.drawer {
  width: min(560px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  background: var(--bg-1);
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.65);
}
.drawer-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overscroll-behavior: contain;
}
.drawer-foot {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(13, 15, 20, 0.96);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.axis-group { display: flex; flex-direction: column; gap: 7px; }
.axis-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-2); font-weight: 700; }
.axis-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.axis-pill {
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.axis-pill.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: var(--text-0);
}
.axis-pill:disabled { opacity: 0.38; cursor: not-allowed; }

.variant-box {
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bulk-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bulk-btn {
  min-height: 50px;
  padding: 6px 4px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-0);
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.78rem;
}
.bulk-btn.active { border-color: var(--cyan); background: var(--cyan-soft); color: var(--text-0); }
.bulk-save { font-size: 0.68rem; color: var(--emerald); font-weight: 700; }
.drawer-secondary-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Spotlight Cmd+K */
.spotlight {
  width: min(640px, 100%);
  max-height: 76dvh;
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
}
.spotlight-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.spotlight-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-0);
  font-size: 16px;
  min-height: 36px;
}
.spotlight-input:focus { outline: none; }
.spotlight-list {
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overscroll-behavior: contain;
}
.spotlight-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-0);
  cursor: pointer;
  min-height: 48px;
}
.spotlight-item:hover, .spotlight-item.active {
  background: var(--bg-2);
  border-color: rgba(34, 211, 238, 0.35);
}
.spotlight-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.spotlight-logo { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; background: var(--bg-0); padding: 2px; }

/* Hub SEO Page & 2FA Tool */
.breadcrumb { display: flex; gap: 8px; font-size: 0.84rem; color: var(--text-2); margin: 18px 0 12px; flex-wrap: wrap; }
.ssr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ssr-table th, .ssr-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.ssr-table th { color: var(--text-2); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg-2); }
.ssr-table tr:last-child td { border-bottom: none; }

.totp-shell { max-width: 620px; margin: 28px auto 48px; }
.totp-card {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.totp-code-box {
  background: var(--bg-0);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.totp-code {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.totp-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 0.84rem; color: var(--text-1); }
.totp-progress {
  width: 100%;
  height: 7px;
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  background: var(--bg-2);
}
.totp-progress::-webkit-progress-bar { background: var(--bg-2); border-radius: 999px; }
.totp-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--cyan), var(--emerald)); border-radius: 999px; }
.totp-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--cyan), var(--emerald)); border-radius: 999px; }
.modal-open { overflow: hidden; }
.hub-badges-gap { margin-top: 10px; }
.alert-box {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text-1);
}
.alert-warn { background: var(--amber-soft); border-color: rgba(251, 191, 36, 0.4); color: #fde68a; }
.alert-danger { background: var(--rose-soft); border-color: rgba(251, 113, 133, 0.45); color: #fecdd3; }
.alert-ok { background: var(--emerald-soft); border-color: rgba(52, 211, 153, 0.4); color: #a7f3d0; }

/* Radar & Saved Cards */
.radar-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Footer */
footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(36px + env(safe-area-inset-bottom));
  color: var(--text-2);
  font-size: 0.84rem;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.load-more-wrap { text-align: center; margin-top: 20px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 120;
  background: var(--bg-3);
  border: 1px solid var(--cyan);
  color: var(--text-0);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 26px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .nav-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: auto;
    padding: 8px 12px 10px;
  }
  .brand-link {
    font-size: 0.98rem;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
  }
  .brand-avatar { width: 30px; height: 30px; }
  .cmd-trigger {
    order: 3;
    flex: 1 0 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.86rem;
  }
  .cmd-trigger .kbd { display: none; }
  .site-header .nav-actions {
    order: 2;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }
  .site-header .nav-link {
    min-height: 44px;
    padding: 6px 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .site-header .nav-actions .btn-sm {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .nav-actions { flex-wrap: wrap; max-width: 100%; }
  .nav-link-hide-sm { display: none; }
  .drawer { width: 100vw; border-left: none; }
  .drawer-secondary-row { grid-template-columns: 1fr; }
  .ssr-table th:nth-child(3), .ssr-table td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
