/* ==========================================================================
   SR Innovations - Website Demo Gallery
   Design language: dark-first, editorial grid, glass surfaces, brand gradient
   ========================================================================== */

:root {
  --bg: #050508;
  --bg-soft: #0a0a11;
  --surface: #0d0d14;
  --surface-2: #13131e;
  --surface-3: #191926;
  --border: #1f2133;
  --fg: #f3f4f6;
  --fg-muted: #9ca3af;
  --fg-dim: #6b7280;

  --brand-200: #c7d7fe;
  --brand-300: #a5bafc;
  --brand-400: #8098f9;
  --brand-500: #6172f3;
  --brand-600: #4d55e8;
  --brand-700: #3f43d0;

  --accent-400: #ff58d8;
  --accent-500: #ff28c5;
  --accent-600: #f005a4;

  --gold: #d8b36a;
  --mint: #4ade80;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shell: 1240px;
  --gutter: 24px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.75);
  --shadow-brand: 0 20px 60px -18px rgba(97, 114, 243, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; background: var(--surface-2); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

::selection { background: var(--brand-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--brand-500);
  color: #fff;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Ambient background ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}
.aurora span:nth-child(1) {
  width: 620px; height: 620px;
  top: -240px; left: -160px;
  background: var(--brand-600);
}
.aurora span:nth-child(2) {
  width: 520px; height: 520px;
  top: 18%; right: -220px;
  background: var(--accent-600);
  opacity: 0.16;
}
.aurora span:nth-child(3) {
  width: 700px; height: 700px;
  bottom: -320px; left: 35%;
  background: #1e3a8a;
  opacity: 0.2;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(5, 5, 8, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(5, 5, 8, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
/* The same logo mark the main site uses in its navbar. */
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
  background: none;
  border-radius: 8px;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 17px; height: 1.8px;
  background: var(--fg);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.25s var(--ease), background 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; left: 0; transform: translateY(-6px); }
.nav-toggle span::after { content: ""; left: 0; transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
              background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { box-shadow: 0 24px 70px -18px rgba(97, 114, 243, 0.8); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: #2c2f47; }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Section furniture ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--fg-muted); font-size: 1.02rem; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(52px, 8vw, 100px) 0 clamp(40px, 5vw, 64px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(97, 114, 243, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-200);
  margin-bottom: 22px;
}
.eyebrow b {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-300) 0%, #fff 44%, var(--accent-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--fg-muted);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 540px;
}
.stat {
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  color: #fff;
}
.stat span { font-size: 0.77rem; color: var(--fg-dim); line-height: 1.4; display: block; }

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-art figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.hero-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.hero-art figure:hover img { transform: scale(1.06); }
.hero-art figure:nth-child(1) { aspect-ratio: 3 / 4; transform: translateY(-18px); }
.hero-art figure:nth-child(2) { aspect-ratio: 4 / 5; }
.hero-art figure:nth-child(3) { aspect-ratio: 4 / 5; transform: translateY(-18px); }
.hero-art figure:nth-child(4) { aspect-ratio: 3 / 4; }
.hero-art figcaption {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.74);
  backdrop-filter: blur(8px);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-200);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Answer card (AEO) ---------- */

.answer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 300px at 10% -20%, rgba(97, 114, 243, 0.14), transparent 70%),
    var(--surface);
  padding: clamp(26px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 44px);
}
.answer-card h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 14px; }
.answer-card .lead { color: var(--fg-muted); margin-bottom: 18px; }
.answer-card .lead strong { color: #fff; font-weight: 600; }
.fact-list { display: grid; gap: 10px; }
.fact-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.fact-list li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--brand-400); }
.fact-list li b { color: #fff; font-weight: 600; }

/* ---------- Filter bar ---------- */

.filter-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  padding: 14px 0;
  background: rgba(5, 5, 8, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--fg); border-color: #2c2f47; }
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(97, 114, 243, 0.9);
}
.result-count { font-size: 0.85rem; color: var(--fg-dim); }
.result-count b { color: var(--fg); }

/* ---------- Category blocks ---------- */

.category { padding: clamp(46px, 6vw, 76px) 0 0; }
.category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.category-head .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--brand-400);
  display: block;
  margin-bottom: 10px;
}
.category-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; }
.category-head p { color: var(--fg-muted); max-width: 62ch; font-size: 0.96rem; }
.category-meta {
  font-size: 0.82rem;
  color: var(--fg-dim);
  display: flex;
  gap: 8px;
  align-items: center;
  flex: none;
}
.category-meta span {
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

/* ---------- Demo cards ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
}
.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
}
.demo-card:hover {
  transform: translateY(-6px);
  border-color: #32355180;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.95);
}
.demo-card.is-hidden { display: none; }

.demo-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.demo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.4s;
  filter: saturate(1.02);
}
.demo-card:hover .demo-thumb img { transform: scale(1.07); }
.demo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 8, 0.92) 2%, rgba(5, 5, 8, 0.1) 46%, transparent 72%);
}
.thumb-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.thumb-palette {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: flex;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.11);
}
.thumb-palette i {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.demo-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.demo-body h3 { font-size: 1.16rem; margin-bottom: 5px; }
.demo-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 12px;
}
.demo-body > p { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 16px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag {
  padding: 5px 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--fg-muted);
}

.demo-actions { display: flex; gap: 9px; margin-top: auto; }
.demo-actions .btn { flex: 1; }

/* ---------- Includes grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.feature:hover { border-color: #2e3150; transform: translateY(-4px); }
.feature .ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(97, 114, 243, 0.14);
  border: 1px solid rgba(97, 114, 243, 0.28);
  color: var(--brand-300);
  margin-bottom: 16px;
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { font-size: 0.89rem; color: var(--fg-muted); }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(140deg, var(--brand-400), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.89rem; color: var(--fg-muted); }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: #2e3150; background: var(--surface-2); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--brand-400);
  border-bottom: 2px solid var(--brand-400);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--fg-muted); font-size: 0.92rem; }
.faq-item .faq-answer p + p { margin-top: 10px; }

/* ---------- Geo / coverage ---------- */

.geo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(26px, 4vw, 40px);
}
.geo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.geo-list li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  color: var(--fg-muted);
}

/* ---------- CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: clamp(22px, 3vw, 34px);
  padding: clamp(36px, 6vw, 66px);
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(97, 114, 243, 0.26), transparent 70%),
    radial-gradient(600px 320px at 85% 110%, rgba(255, 40, 197, 0.16), transparent 70%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { color: var(--fg-muted); max-width: 60ch; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(56px, 8vw, 100px);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: clamp(40px, 6vw, 64px) 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.footer-grid p { color: var(--fg-muted); font-size: 0.9rem; margin-top: 14px; max-width: 42ch; }
.footer-grid h4 {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer-grid ul { display: grid; gap: 9px; }
.footer-grid ul a { font-size: 0.9rem; color: var(--fg-muted); transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--brand-300); }
.footer-base {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--fg-dim);
}

/* ---------- Preview modal ---------- */

.preview {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(3, 3, 6, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
}
.preview.is-open { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
}
.preview-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.preview-title span { display: block; font-family: var(--font-sans); font-size: 0.76rem; color: var(--fg-dim); font-weight: 400; }
.viewport-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.viewport-switch button {
  padding: 7px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.viewport-switch button[aria-pressed="true"] { background: var(--brand-500); color: #fff; }
.preview-stage {
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  place-items: center;
  min-height: 0;
}
.preview-frame {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: width 0.35s var(--ease);
  box-shadow: var(--shadow);
}
.preview-frame iframe { width: 100%; height: 100%; border: 0; }
.preview-frame[data-vp="tablet"] { width: 834px; }
.preview-frame[data-vp="mobile"] { width: 414px; }
.preview-close {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.preview-close:hover { background: var(--surface-3); transform: rotate(90deg); }
.preview-close svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 540px; }
  .answer-card { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The quote CTA lives in the header on desktop and inside the menu on mobile,
   so a phone header only ever carries the logo and the menu toggle. */
.nav a.nav-cta { display: none; }

@media (max-width: 860px) {
  .nav a.nav-cta {
    display: block;
    margin-top: 14px;
    padding: 14px 18px;
    text-align: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-brand);
    border-bottom: 0;
  }
  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gutter) 24px;
    background: rgba(5, 5, 8, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 13px 14px; border-radius: 12px; font-size: 0.95rem; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .preview-frame[data-vp="tablet"],
  .preview-frame[data-vp="mobile"] { width: 100%; }
  /* The sticky header uses backdrop-filter, which makes it the containing
     block for this fixed panel. translateY() therefore measures from the
     header, not the viewport, so the slide alone cannot be trusted to push the
     menu off screen - hide it explicitly as well. */
  .nav {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.25s var(--ease),
                visibility 0.25s var(--ease);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .stat-row { grid-template-columns: 1fr; max-width: none; }
  .stat { display: flex; align-items: baseline; gap: 10px; }
  .stat b { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-actions { flex-direction: column; }
  .hero-art figure:nth-child(1),
  .hero-art figure:nth-child(3) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .aurora, .site-header, .filter-bar, .preview { display: none !important; }
  body { background: #fff; color: #000; }

}
