:root {
  --bg: #dfe8ff;
  --paper: #ffffff;
  --ink: #0e1726;
  --muted: #667085;
  --soft: #e7eef8;
  --line: rgba(15, 23, 42, .10);
  --blue: #2369ff;
  --blue-2: #0ea5e9;
  --cyan: #41d7e8;
  --green: #27c47d;
  --dark: #08111f;
  --orange: #ff7a1a;
  --orange-2: #ff9b18;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --shadow-soft: 0 26px 80px rgba(30, 64, 175, .14);
  --shadow-card: 0 18px 50px rgba(15, 23, 42, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(255, 122, 26, .14), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(35, 105, 255, .14), transparent 30%),
    linear-gradient(180deg, #dfe8ff 0%, #eef4ff 48%, #f8fbff 100%);
  font-family: Aptos, "Segoe UI Variable Text", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: geometricPrecision;
}

@keyframes softReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glassFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 7px rgba(39, 196, 125, .13); }
  50% { box-shadow: 0 0 0 11px rgba(39, 196, 125, .07); }
}

@keyframes deviceBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(56, 229, 161, .12), 0 0 18px rgba(56, 229, 161, .42);
  }
  45% {
    opacity: .55;
    transform: scale(.82);
    box-shadow: 0 0 0 3px rgba(56, 229, 161, .08), 0 0 6px rgba(56, 229, 161, .24);
  }
}

@keyframes premiumShine {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  18% { opacity: .42; }
  52% { opacity: .20; }
  100% { transform: translateX(150%) skewX(-18deg); opacity: 0; }
}

@keyframes dialogSurfaceIn {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes previewZoomIn {
  from { opacity: .35; transform: scale(.94); filter: blur(8px) saturate(.9); }
  to { opacity: 1; transform: scale(1); filter: blur(0) saturate(1); }
}

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

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

.page-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
  padding: 38px 24px 34px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 36px 100px rgba(30, 64, 175, .12);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 9px 14px 9px 20px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 999px;
  background: rgba(255, 255, 255, .70);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand span {
  color: #0f172a;
  font-size: 20px;
  font-weight: 560;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5565;
  font-size: 14px;
  font-weight: 440;
  letter-spacing: 0;
  transition: transform .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: #f0f5ff;
  transform: translateY(-1px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 520;
  letter-spacing: 0;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), filter .22s var(--ease);
}

.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 12px 30px rgba(255, 122, 26, .26);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}

.nav-cta:active,
.button:active,
.glass-submit:active,
.shot-button:active {
  transform: translateY(0) scale(.985);
}

.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 690px;
  margin-top: 30px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .72);
  background: #f8fbff;
  box-shadow: var(--shadow-soft);
  animation: softReveal .7s var(--ease) both;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("assets/gateway-hero.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.04);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 12, 24, .70) 0%, rgba(4, 12, 24, .42) 42%, rgba(4, 12, 24, .12) 70%, rgba(4, 12, 24, .04) 100%),
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(8,17,31,.30) 100%);
}

.hero-content {
  width: min(720px, 88%);
  padding: 88px 0 112px 78px;
  animation: softReveal .85s var(--ease) .08s both;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 460;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(236, 253, 245, .96);
  text-shadow: 0 8px 24px rgba(0, 0, 0, .30);
}

.section-kicker {
  color: #f97316;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(39, 196, 125, .13);
  animation: pulseGlow 2.4s ease-in-out infinite;
}

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

h1,
h2,
h3 {
  font-weight: 520;
  letter-spacing: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(15.5px, 1.35vw, 18px);
  line-height: 1.62;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 18px 40px rgba(255, 122, 26, .30);
}

.button.secondary {
  color: #0c1726;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 690px;
}

.hero-metrics div {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .30);
  box-shadow: 0 14px 40px rgba(15, 23, 42, .16);
  backdrop-filter: blur(18px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  letter-spacing: 0;
  color: #fff;
  font-weight: 520;
}

.hero-metrics span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  line-height: 1.35;
}

.hero-glass {
  position: absolute;
  right: 78px;
  top: 120px;
  bottom: auto;
  width: min(430px, calc(100% - 70px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(12, 25, 45, .58), rgba(12, 25, 45, .34));
  color: #fff;
  box-shadow: 0 34px 100px rgba(8, 17, 31, .34);
  backdrop-filter: blur(28px) saturate(1.2);
  animation: glassFloat 7s ease-in-out infinite, softReveal .8s var(--ease) .18s both;
}

.glass-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  opacity: .92;
}

.pulse {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #38e5a1;
  box-shadow: 0 0 0 8px rgba(56, 229, 161, .14);
  animation: deviceBlink 1.45s ease-in-out infinite;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(56, 229, 161, .30);
  animation: pulseGlow 1.45s ease-in-out infinite;
}

.glass-field {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  background: rgba(255, 255, 255, .10);
}

.field-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  transition: transform .22s var(--ease), background .22s var(--ease);
}

.glass-field {
  transition: transform .24s var(--ease), background .24s var(--ease), border-color .24s var(--ease);
}

.glass-field:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.38);
}

.glass-field small,
.glass-field strong {
  display: block;
}

.glass-field small {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  margin-bottom: 4px;
}

.glass-field strong {
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 520;
}

.glass-submit {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 54px;
  margin-top: 20px;
  border-radius: 16px;
  color: #fff;
  font-weight: 520;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  box-shadow: 0 18px 42px rgba(255, 122, 26, .34);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}

.glass-submit::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  animation: premiumShine 3.1s ease-in-out infinite;
  pointer-events: none;
}

.glass-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(255, 122, 26, .38);
  filter: saturate(1.05);
}

.hero-tags {
  position: absolute;
  left: 76px;
  bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.90);
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  backdrop-filter: blur(18px);
}

.hero-tags span {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  color: #5a6678;
  background: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 440;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}

.hero-tags span:hover {
  transform: translateY(-2px);
  background: #fff;
  color: #0f172a;
}

.section {
  margin-top: 110px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(320px, 500px) 1fr;
  gap: 44px;
  align-items: start;
}

.section-copy h2,
.dark-panel h2,
.setup-card h2 {
  margin-bottom: 18px;
  color: #0a1220;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 520;
}

.section-copy p:not(.section-kicker),
.setup-card p {
  color: #536173;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
}

.centered {
  width: min(820px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.centered .section-kicker { justify-content: center; }

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

.feature-card,
.node,
.shot-card,
.setup-card {
  border: 1px solid rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}

.feature-card {
  min-height: 300px;
  padding: 28px;
  border-radius: 30px;
}

.feature-card:hover,
.node:hover,
.setup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .13);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #2369ff, #41d7e8);
  box-shadow: 0 16px 34px rgba(35, 105, 255, .24);
}

.icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3,
.node h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
  font-weight: 520;
}

.feature-card p,
.node p {
  margin-bottom: 0;
  color: #5e6a7d;
  font-size: 15px;
  line-height: 1.64;
}

.architecture-map {
  display: grid;
  grid-template-columns: 1.05fr .26fr 1.12fr .32fr 1.2fr;
  gap: 18px;
  align-items: center;
  padding: 30px;
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(239,246,255,.72)),
    radial-gradient(circle at 50% 50%, rgba(65,215,232,.20), transparent 34%);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
}

.node {
  min-height: 190px;
  padding: 28px;
  border-radius: 28px;
}

.node-label {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: #2369ff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.node.core {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, .96), rgba(22, 64, 104, .92)),
    radial-gradient(circle at 70% 0%, rgba(65,215,232,.28), transparent 35%);
  border-color: rgba(65, 215, 232, .28);
}

.node.core .node-label { background: rgba(65, 215, 232, .16); color: #adf7ff; }
.node.core p { color: rgba(255,255,255,.72); }
.node.core h3 { color: #fff; }

.connector {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3px;
  position: relative;
}

.connector::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, rgba(35,105,255,.25), rgba(65,215,232,.95));
}

.connector span {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff;
  color: #2369ff;
  border: 1px solid rgba(35,105,255,.12);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

.split,
.output-grid {
  display: grid;
  gap: 18px;
}

.output-grid { grid-template-columns: 1fr; }
.output-grid .node { min-height: 170px; }

.dark-panel {
  display: grid;
  grid-template-columns: .95fr 1.25fr;
  gap: 44px;
  padding: 52px;
  border-radius: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(65, 215, 232, .22), transparent 30%),
    linear-gradient(135deg, #08111f, #111c31 58%, #0e2834);
  box-shadow: 0 28px 90px rgba(8, 17, 31, .24);
}

.dark-panel .section-kicker { color: #8defff; }
.dark-panel h2 { color: #fff; margin-bottom: 0; }
.truth-grid { display: grid; gap: 14px; }
.truth-grid p {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
  line-height: 1.62;
}
.truth-grid strong { color: #fff; }

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

.shot-card {
  overflow: hidden;
  margin: 0;
  border-radius: 30px;
  background: #fff;
}

.shot-card.large { grid-column: span 3; }

.shot-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 1920 / 1032;
  object-fit: cover;
  background: #f5f7fb;
  transition: transform .45s var(--ease), filter .45s var(--ease);
}

.shot-card {
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .14);
}

.shot-card:hover img {
  transform: scale(1.018);
  filter: saturate(1.05) contrast(1.03);
}

.shot-card figcaption {
  display: grid;
  gap: 7px;
  padding: 20px 22px 24px;
}

.shot-card figcaption strong {
  font-size: 17px;
  letter-spacing: 0;
  font-weight: 520;
}

.shot-card figcaption span {
  color: #647084;
  font-size: 14px;
  line-height: 1.48;
}

.setup-card {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 40px;
  align-items: start;
  padding: 46px;
  border-radius: 38px;
}

code {
  padding: .16em .42em;
  border-radius: 8px;
  color: #155bd8;
  background: #edf5ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .88em;
}

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

.steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 20px;
  color: #4e5b70;
  background: #f5f8fd;
  border: 1px solid rgba(15,23,42,.06);
  line-height: 1.48;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2369ff, #0ea5e9);
  font-weight: 520;
  flex: 0 0 auto;
}

.steps p {
  margin: 0;
  min-width: 0;
}

.steps code {
  white-space: nowrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 80px;
  padding: 28px 4px 0;
  color: #687586;
  font-size: 14px;
}
.footer p { margin: 0; }

.image-dialog {
  width: min(98vw, 1840px);
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  overflow: visible;
}

.image-dialog[open] {
  animation: dialogSurfaceIn .28s var(--ease) both;
}

.image-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 12%, rgba(35, 105, 255, .18), transparent 36%),
    rgba(8, 17, 31, .78);
  backdrop-filter: blur(18px) saturate(1.08);
}

.image-dialog img {
  width: 100%;
  max-height: calc(96vh - 28px);
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 34px 120px rgba(0,0,0,.52);
  transform-origin: center;
  animation: previewZoomIn .34s var(--ease) both;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.dialog-close:hover {
  transform: scale(1.05);
  background: rgba(15, 23, 42, .82);
}

@media (max-width: 1180px) {
  .page-shell { width: min(100% - 32px, 1060px); }
  .hero-content { padding-left: 48px; }
  .hero-glass { right: 36px; top: 120px; }
  .intro-grid,
  .dark-panel,
  .setup-card { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .architecture-map { grid-template-columns: 1fr; }
  .connector { min-height: 58px; }
  .connector::before { left: 50%; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(35,105,255,.25), rgba(65,215,232,.95)); }
  .split { grid-template-columns: repeat(2, 1fr); }
  .split .connector::before { top: 50%; bottom: auto; left: 4px; right: 4px; width: auto; height: 2px; background: linear-gradient(90deg, rgba(35,105,255,.25), rgba(65,215,232,.95)); }
  .output-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; border-radius: 26px; }
  .nav-links { display: none; }
  .brand { min-width: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 19px; }
  .hero-card { min-height: auto; }
  .hero-content { width: 100%; padding: 56px 28px 520px; }
  .hero-glass { left: 24px; right: 24px; top: auto; bottom: 104px; width: auto; }
  .hero-tags { left: 24px; right: 24px; bottom: 24px; justify-content: center; }
  .hero-metrics,
  .feature-grid,
  .screenshot-grid,
  .output-grid,
  .split { grid-template-columns: 1fr; }
  .shot-card.large { grid-column: span 1; }
  .dark-panel,
  .setup-card { padding: 30px; border-radius: 30px; }
  .section { margin-top: 78px; }
  .footer { flex-direction: column; }
}

@media (max-width: 540px) {
  .page-shell { width: min(100% - 20px, 520px); padding-top: 14px; }
  .site-header { top: 10px; padding: 10px; }
  .nav-cta { min-height: 42px; padding: 0 14px; font-size: 13px; }
  h1 { font-size: clamp(30px, 9vw, 34px); }
  .hero-content { padding: 42px 22px 620px; }
  .hero-metrics { gap: 10px; }
  .hero-glass { padding: 20px; }
  .hero-tags { border-radius: 24px; }
  .hero-tags span { flex: 1 1 42%; text-align: center; }
  .steps code { white-space: normal; overflow-wrap: anywhere; }
}
