/* ============================================================
   Sector Growth · Custom Portals PRD — design system
   Brand sourced from sectorgrowth.com: deep blue #1050A0, cyan #60D0F0,
   navy ink #0B1220, Manrope / Inter / JetBrains Mono, blue->cyan gradient,
   soft cyan glows, glass header, 10px buttons, large rounded cards.
   ============================================================ */

:root {
  --brand: #1050a0;
  --brand-mid: #1070b0;
  --brand-hover: #0c4388;
  --brand-press: #083268;
  --sky: #60d0f0;
  --pale: #a0e0f0;
  --ink: #0b1220;

  --n-0: #ffffff;
  --n-50: #f7fafc;
  --n-100: #eef3f8;
  --n-200: #dfe7ef;
  --n-300: #c4d1de;
  --n-400: #98a7b8;
  --n-500: #667788;
  --n-600: #4a5767;
  --n-700: #2f3a48;
  --n-800: #1b2430;
  --n-900: #0b1220;

  --text: #0b1220;
  --muted: #4a5767;
  --faint: #667788;

  --bg-1: #ffffff;
  --bg-2: #f7fafc;
  --bg-3: #eef3f8;

  --border: #dfe7ef;
  --border-strong: #c4d1de;

  --grad: linear-gradient(135deg, #1070b0, #60d0f0);
  --grad-text: linear-gradient(135deg, #0b1220 0%, #1050a0 60%, #1070b0 100%);

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05), 0 8px 24px -16px rgba(11, 18, 32, 0.18);
  --shadow-card: 0 1px 2px rgba(11, 18, 32, 0.05), 0 18px 40px -22px rgba(16, 80, 160, 0.24);
  --shadow-soft: 0 30px 70px -28px rgba(16, 80, 160, 0.34);
  --shadow-brand: 0 12px 28px rgba(16, 80, 160, 0.22);

  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 44px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
  /* Hide horizontal overflow on the viewport scroller (html), NOT body. Putting this on
     body turns body into its own scroll container and breaks/locks vertical scrolling. */
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(ellipse at top, #ffffff 0%, #f7fafc 46%, #eef3f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Ambient ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient__glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(40% 36% at 82% 8%, rgba(96, 208, 240, 0.20) 0%, transparent 60%),
    radial-gradient(36% 40% at 12% 24%, rgba(16, 112, 176, 0.16) 0%, transparent 62%),
    radial-gradient(50% 40% at 60% 96%, rgba(96, 208, 240, 0.12) 0%, transparent 60%);
  filter: blur(8px);
}
.ambient__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(16, 80, 160, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 80, 160, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 16%, black 0%, transparent 64%);
  mask-image: radial-gradient(ellipse at 50% 16%, black 0%, transparent 64%);
}

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: var(--shadow-brand);
  flex: none;
  display: grid;
  place-items: center;
}
.brand__mark svg {
  width: 19px;
  height: 19px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.topnav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topnav__pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand);
  border: 1px solid rgba(16, 80, 160, 0.28);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(16, 80, 160, 0.05);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .topnav__pill.hide-sm {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s,
    filter 0.2s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(16, 80, 160, 0.5);
}
.btn--grad {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--grad:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn--sm {
  padding: 9px 15px;
  font-size: 13px;
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Section nav (sticky scrollspy) ---------- */
.secnav {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.secnav .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 9px var(--gutter);
}
.secnav .wrap::-webkit-scrollbar {
  display: none;
}
.secnav a {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--faint);
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.secnav a:hover {
  color: var(--brand);
  background: rgba(16, 80, 160, 0.05);
}
.secnav a.is-active {
  color: var(--brand);
  background: rgba(16, 80, 160, 0.1);
  font-weight: 600;
}

/* ---------- Section scaffold ---------- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(54px, 8vh, 92px) 0;
  scroll-margin-top: 130px;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--grad);
  border-radius: 2px;
}
.section__head {
  max-width: 760px;
  margin-bottom: 38px;
}
.section__head h2 {
  font-size: clamp(27px, 3.6vw, 40px);
  margin-top: 16px;
}
.section__head .lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.4vw, 18px);
  line-height: 1.6;
}
.section__head .lede b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 9vh, 104px) 0 clamp(30px, 5vh, 60px);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 22px;
  max-width: 16ch;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 22px;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
}
.hero .lede b {
  color: var(--ink);
  font-weight: 600;
}
.hero__cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hero__meta .pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--n-600);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.7);
}
.hero__meta .pill b {
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Cards / grids ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.32s var(--ease), border-color 0.32s, box-shadow 0.32s;
}
.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 80, 160, 0.28);
  box-shadow: var(--shadow-soft);
}
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* capability domain card */
.cap {
  display: flex;
  flex-direction: column;
}
.cap__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(16, 80, 160, 0.07);
  border: 1px solid rgba(16, 80, 160, 0.16);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.cap__icon svg {
  width: 22px;
  height: 22px;
}
.cap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18.5px;
  color: var(--ink);
}
.cap__sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.55;
}
.cap__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cap__item {
  display: flex;
  gap: 10px;
  font-size: 13.8px;
  color: var(--n-700);
  line-height: 1.45;
}
.cap__item .ck {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(16, 112, 176, 0.1);
  color: var(--brand-mid);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.cap__item .ck svg {
  width: 12px;
  height: 12px;
}
.cap__item b {
  color: var(--ink);
  font-weight: 600;
}
.cap__tag {
  margin-top: 14px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(96, 208, 240, 0.16);
  color: #0d6b8a;
}
.cap__tag--soon {
  background: rgba(16, 35, 54, 0.07);
  color: var(--faint);
}

/* ---------- Pipeline / flow ---------- */
.flow {
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}
.flow__stage {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.flow__stage .bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.flow__stage.is-active {
  border-color: rgba(16, 80, 160, 0.3);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.flow__stage.is-active .bar {
  transform: scaleX(1);
}
.flow__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.flow__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  margin-top: 7px;
}
.flow__detail {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

/* ---------- Before / after ---------- */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ba__col {
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border);
}
.ba__col--before {
  background: linear-gradient(180deg, rgba(204, 24, 24, 0.04), transparent);
  border-color: rgba(204, 24, 24, 0.18);
}
.ba__col--after {
  background: linear-gradient(180deg, rgba(16, 112, 176, 0.06), transparent);
  border-color: rgba(16, 80, 160, 0.22);
}
.ba__lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ba__col--before .ba__lab {
  color: #b3261e;
}
.ba__col--after .ba__lab {
  color: var(--brand);
}
.ba__row {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--n-700);
  border-top: 1px dashed var(--border);
}
.ba__row:first-of-type {
  border-top: none;
}
.ba__row .dot {
  flex: none;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.ba__col--before .dot {
  background: #cc4444;
}
.ba__col--after .dot {
  background: var(--brand-mid);
}

/* ---------- Architecture diagram ---------- */
.arch {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}
.arch__node {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-1);
  box-shadow: var(--shadow-card);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.arch__node--brand {
  background: linear-gradient(160deg, rgba(16, 112, 176, 0.1), rgba(96, 208, 240, 0.06));
  border-color: rgba(16, 80, 160, 0.26);
}
.arch__node--hub {
  background: linear-gradient(160deg, rgba(255, 122, 89, 0.08), transparent);
  border-color: rgba(255, 122, 89, 0.28);
}
.arch__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.arch__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-top: 6px;
}
.arch__d {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.45;
}
.arch__arrow {
  align-self: center;
  color: var(--brand-mid);
  font-size: 22px;
  font-weight: 700;
}

/* ---------- Status stepper (loan example mini visual) ---------- */
.stepper {
  display: flex;
  align-items: flex-start;
}
.stepper__node {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stepper__node .line {
  position: absolute;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-strong);
}
.stepper__node.done .line,
.stepper__node.active .line {
  background: var(--brand-mid);
}
.stepper__node:first-child .line {
  display: none;
}
.stepper__dot {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: #fff;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.stepper__node.done .stepper__dot {
  background: var(--brand-mid);
  border-color: var(--brand-mid);
  color: #fff;
}
.stepper__node.active .stepper__dot {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 4px rgba(16, 80, 160, 0.14);
}
.stepper__lab {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--faint);
  max-width: 86px;
  line-height: 1.25;
}
.stepper__node.active .stepper__lab {
  color: var(--ink);
}
.stepper__node.done .stepper__lab {
  color: var(--brand);
}

/* ---------- Callout / panel ---------- */
.callout {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 80, 160, 0.2);
  background: linear-gradient(160deg, rgba(16, 112, 176, 0.08), rgba(96, 208, 240, 0.03));
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.callout h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.callout p {
  color: var(--muted);
  font-size: 15px;
}
.callout p b {
  color: var(--ink);
  font-weight: 600;
}

/* stat tiles */
.stat {
  text-align: left;
}
.stat__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 36px);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__l {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* persona / vertical chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--n-700);
  box-shadow: var(--shadow-sm);
}
.chip .ic {
  color: var(--brand-mid);
  display: grid;
  place-items: center;
}
.chip .ic svg {
  width: 16px;
  height: 16px;
}

/* roadmap timeline */
.timeline {
  display: grid;
  gap: 14px;
}
.tl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.tl:first-child {
  border-top: none;
}
.tl__phase {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--brand);
  padding-top: 2px;
}
.tl__t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.tl__d {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(64px, 10vh, 110px) 0;
}
.cta h2 {
  font-size: clamp(30px, 4.4vw, 50px);
}
.cta p {
  color: var(--muted);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 17px;
}
.cta__btns {
  margin-top: 30px;
  display: flex;
  gap: 13px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 28px 0 56px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.foot b {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- "Take a peek" drawer ---------- */
.peek-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 14px 34px -10px rgba(16, 80, 160, 0.6);
  transition: transform 0.18s var(--ease), box-shadow 0.18s;
}
.peek-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(16, 80, 160, 0.7);
}
.peek-fab .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aef5cf;
  box-shadow: 0 0 0 3px rgba(174, 245, 207, 0.35);
}

.peek {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.peek.is-open {
  display: block;
}
.peek__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}
.peek.is-open .peek__backdrop {
  opacity: 1;
}
.peek__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(760px, 94vw);
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 80px -30px rgba(11, 18, 32, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.peek.is-open .peek__panel {
  transform: none;
}
.peek__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.peek__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.peek__title span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
  font-weight: 400;
}
.peek__toggle {
  margin-left: auto;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-2);
}
.peek__toggle button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--faint);
}
.peek__toggle button.is-on {
  background: var(--brand);
  color: #fff;
}
.peek__close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.peek__close:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.peek__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
}
.peek__device {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-radius 0.35s;
}
.peek.is-mobile .peek__device {
  width: 390px;
  max-width: 100%;
  height: min(780px, 100%);
  border-radius: 28px;
  border: 8px solid #0b1220;
}
.peek__device iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.peek__hint {
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--faint);
  border-top: 1px solid var(--border);
  background: #fff;
  text-align: center;
}

/* inline peek trigger button (in the example section) */
.peek-inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch {
    grid-template-columns: 1fr;
  }
  .arch__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
@media (max-width: 720px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .ba {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-auto-flow: row;
    grid-auto-columns: auto;
  }
  .tl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .stepper {
    flex-wrap: wrap;
    gap: 12px;
  }
  .stepper__node {
    flex: 0 0 30%;
  }
  .stepper__node .line {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
