/* =========================================================
   Ambih Monitor — download landing page
   Dark-mode-first. Plain CSS, no build step.
   ========================================================= */

:root {
  /* --- color tokens (dark) --- */
  --bg:            #0A0E17;
  --bg-elev:       #0F172A;
  --surface:       #131B2C;
  --surface-2:     #1B2438;
  --border:        #1F293E;
  --border-strong: #2A3552;
  --text:          #F1F5F9;
  --text-muted:    #94A3B8;
  --text-soft:     #CBD5E1;

  /* Ambih Monitor brand: Blue accent + yellow bolt */
  --accent:        #3B82F6;
  --accent-hover:  #2563EB;
  --accent-soft:   rgba(59, 130, 246, 0.12);
  --accent-ring:   rgba(59, 130, 246, 0.45);
  --bolt:          #FBBF24;

  /* layout */
  --container:     1180px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;

  /* type */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow:    0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-med:  220ms;

  /* hero gradient (overridden per theme) */
  --hero-title-grad-start: #FFFFFF;
  --hero-title-grad-end:   #C7D2FE;
  --hero-glow-blue:        rgba(59, 130, 246, 0.28);
  --hero-glow-violet:      rgba(99, 102, 241, 0.12);
  --shot-tint:             rgba(59, 130, 246, 0.06);
  --nav-bg:                rgba(10, 14, 23, 0.72);
  --nav-bg-strong:         rgba(10, 14, 23, 0.88);
}

[data-theme="light"] {
  --bg:            #FFFFFF;
  --bg-elev:       #F8FAFC;
  --surface:       #FFFFFF;
  --surface-2:     #F1F5F9;
  --border:        #E2E8F0;
  --border-strong: #CBD5E1;
  --text:          #0F172A;
  --text-muted:    #475569;
  --text-soft:     #334155;

  --accent:        #2563EB;
  --accent-hover:  #1D4ED8;
  --accent-soft:   rgba(37, 99, 235, 0.10);
  --accent-ring:   rgba(37, 99, 235, 0.35);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow:    0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

  --hero-title-grad-start: #0F172A;
  --hero-title-grad-end:   #1E40AF;
  --hero-glow-blue:        rgba(37, 99, 235, 0.14);
  --hero-glow-violet:      rgba(99, 102, 241, 0.10);
  --shot-tint:             rgba(37, 99, 235, 0.04);
  --nav-bg:                rgba(255, 255, 255, 0.72);
  --nav-bg-strong:         rgba(255, 255, 255, 0.92);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--surface-2);
  color: var(--text-soft);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p  { margin: 0; }

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

/* =========================================================
   Container
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              border-color  var(--t-fast) var(--ease),
              color         var(--t-fast) var(--ease),
              box-shadow    var(--t-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn-sm  { padding: 8px 14px;  font-size: 14px; border-radius: 8px; }
.btn-md  { padding: 10px 18px; font-size: 14.5px; }
.btn-lg  { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 26px -10px var(--accent-ring), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:active { transform: translateY(0); background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: #fff;
}

.btn-disabled {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease),
              background   var(--t-med) var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: var(--nav-bg-strong);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.35));
}
.brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
  cursor: pointer;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Theme toggle + language switcher */
.nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.icon-btn:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: inline; }
[data-theme="dark"] .theme-icon-sun { display: inline; }
[data-theme="dark"] .theme-icon-moon { display: none; }
.theme-icon-sun, .theme-icon-moon { width: 16px; height: 16px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* mobile nav */
@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  }
  .nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 96px 0 32px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--hero-glow-blue), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 10%, var(--hero-glow-violet), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 28px;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  cursor: pointer;
}
.badge:hover { background: rgba(59, 130, 246, 0.18); border-color: rgba(59, 130, 246, 0.5); }
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 10px var(--accent);
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  background: linear-gradient(180deg, var(--hero-title-grad-start) 0%, var(--hero-title-grad-end) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 64px;
}
.hero-meta .dot { color: var(--border-strong); }

.hero-shot {
  margin: 0 auto;
  max-width: 1100px;
}
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
  position: relative;
}
.shot-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--shot-tint), transparent 30%);
  pointer-events: none;
  z-index: 1;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  position: relative;
  z-index: 2;
}
.shot-dot {
  width: 11px; height: 11px;
  border-radius: 999px;
  background: var(--border-strong);
}
.shot-dot.red    { background: #EF4444; }
.shot-dot.amber  { background: #F59E0B; }
.shot-dot.green  { background: #22C55E; }
.shot-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-left: 14px;
}
.shot-frame img {
  display: block;
  width: 100%;
  position: relative;
  z-index: 0;
}

/* =========================================================
   Strip (stack list)
   ========================================================= */
.strip {
  padding: 56px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.strip-label {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.strip-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}
.strip-list li {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

/* =========================================================
   Section heads
   ========================================================= */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
}

/* =========================================================
   Features
   ========================================================= */
.features { padding: 96px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: border-color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              background-color var(--t-med) var(--ease);
}
.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.feature-card code { font-size: 13px; }

/* =========================================================
   Showcase rows
   ========================================================= */
.showcase {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.showcase-row:last-child { border-bottom: none; }
.showcase-row.reverse { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.showcase-row.reverse .showcase-copy { order: 2; }
.showcase-row.reverse .showcase-shot  { order: 1; }

@media (max-width: 880px) {
  .showcase-row, .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
  }
  .showcase-row.reverse .showcase-copy { order: 1; }
  .showcase-row.reverse .showcase-shot  { order: 2; }
}

.showcase-copy h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.showcase-copy p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 22px;
}
.check-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
  font-size: 14.5px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.showcase-shot {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.showcase-shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.showcase-shot.small {
  max-width: 380px;
  margin: 0 auto;
}

/* =========================================================
   Requirements
   ========================================================= */
.requirements {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(59,130,246,0.05), transparent 60%),
    var(--bg);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
@media (max-width: 880px) { .req-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .req-grid { grid-template-columns: 1fr; } }

.req-cell {
  background: var(--surface);
  padding: 22px 24px;
}
.req-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.req-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.req-note { color: var(--text-muted); font-size: 13.5px; }

/* =========================================================
   Download
   ========================================================= */
.download {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
@media (max-width: 980px) { .dl-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.dl-card:hover { border-color: var(--border-strong); }
.dl-card.primary {
  border-color: rgba(59, 130, 246, 0.45);
  background:
    linear-gradient(180deg, rgba(59,130,246,0.08), transparent 40%),
    var(--surface);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.10), 0 24px 60px -28px rgba(59,130,246,0.30);
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.dl-head h3 { font-size: 18px; font-weight: 600; margin: 0 0 2px; }
.dl-meta { font-size: 13px; color: var(--text-muted); margin: 0; }

.dl-os {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  flex-shrink: 0;
}
.dl-card.primary .dl-os {
  background: var(--accent-soft);
  border-color: rgba(59, 130, 246, 0.32);
  color: var(--accent);
}

.pill {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.10);
  color: var(--bolt);
  border: 1px solid rgba(251, 191, 36, 0.32);
}

.dl-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.dl-features {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
}
.dl-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dl-features li svg { color: var(--accent); flex-shrink: 0; }
.dl-features.muted { color: var(--text-muted); }
.dl-features.muted li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
}

.dl-foot {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.dl-foot a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.dl-foot a:hover { border-bottom-color: var(--accent); }

/* =========================================================
   Download landing page (/download)
   ========================================================= */
.download-landing {
  position: relative;
  padding: 120px 0 96px;
  min-height: calc(100vh - 200px);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59,130,246,0.10), transparent 60%);
}
.download-landing-inner {
  display: flex;
  justify-content: center;
}
.download-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.10), 0 32px 80px -32px rgba(59,130,246,0.30);
}
@media (max-width: 640px) { .download-card { padding: 36px 24px; } }

.download-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.download-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin: 8px 0 12px;
}
@media (max-width: 640px) { .download-title { font-size: 24px; } }
.download-sub {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 24px;
}
.download-meta-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.download-meta-row .dot { color: var(--border-strong); }

.download-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}
.download-cta--secondary { margin-bottom: 20px; }

/* =========================================================
   3-option install layout (MS Store + winget + direct .exe)
   Active when both AMBIH_MS_STORE_PRODUCT_ID and
   AMBIH_WINGET_ID are configured. Renders one card per
   install path, primary = Store (Microsoft-signed, no
   SmartScreen), fallback = direct .exe (warning expected).
   ========================================================= */
.download-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 24px;
}
.download-option {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.download-option:hover {
  border-color: var(--border-strong, var(--border));
  background: var(--surface-2, var(--surface));
  transform: translateY(-1px);
}
.download-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2, rgba(59,130,246,0.06));
  color: var(--text-muted);
  flex-shrink: 0;
}
.download-option-body {
  min-width: 0;
}
.download-option-title {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.download-option-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}
.download-option-desc a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.download-option-desc a:hover { color: var(--accent); }
.download-option-cta {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}
.download-option:hover .download-option-cta { color: var(--accent); }

.download-option-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  color: var(--accent);
}

/* Primary card — MS Store. Slightly tinted to read as the
   recommended path; the cta arrow + border lift on hover. */
.download-option--primary {
  border-color: rgba(59,130,246,0.45);
  background:
    linear-gradient(180deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
}
.download-option--primary:hover {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(59,130,246,0.12), rgba(59,130,246,0.04));
}
.download-option--primary .download-option-icon {
  background: rgba(59,130,246,0.16);
  color: var(--accent);
}
.download-option--primary .download-option-cta { color: var(--accent); }

/* winget card — non-link container, embeds the copyable command. */
.download-option--code {
  grid-template-columns: 44px 1fr;
  cursor: default;
}
.download-option--code:hover { transform: none; }
.download-winget-row {
  margin-top: 8px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}
.download-winget-cmd {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(0,0,0,0.04));
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
}
.download-winget-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.download-winget-copy:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.download-winget-copy.is-copied {
  color: #16a34a;
  border-color: #16a34a;
  background: rgba(22,163,74,0.06);
}

/* Fallback card — direct .exe download. Same chrome as the
   default option card; clicking it routes to the SmartScreen
   walkthrough at /download/installer, not the .exe itself. */
.download-option--fallback .download-option-icon {
  background: var(--surface-2, rgba(0,0,0,0.04));
}

/* =========================================================
   SmartScreen interstitial (/download/installer)
   Routed to from the "Direct download (.exe)" option on
   /download. Visual mockup of the Windows SmartScreen dialog
   + numbered walkthrough + the actual .exe download CTA.
   ========================================================= */
.installer-warning {
  position: relative;
  padding: 96px 0 96px;
  min-height: calc(100vh - 200px);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59,130,246,0.10), transparent 60%);
}
.installer-warning-inner {
  display: flex;
  justify-content: center;
}
.installer-warning .download-card { max-width: 640px; }

/* SmartScreen dialog mock — pure CSS so it ages with our
   design system rather than going stale when Microsoft tweaks
   the real dialog's chrome. */
.smartscreen-mock {
  margin: 24px 0 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2, #f7f7f8);
  text-align: left;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.18);
}
.smartscreen-mock-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.smartscreen-mock-dots {
  display: inline-flex;
  gap: 6px;
}
.smartscreen-mock-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
  display: inline-block;
}
.smartscreen-mock-dots .dot--r { background: #ff5f57; }
.smartscreen-mock-dots .dot--y { background: #febc2e; }
.smartscreen-mock-dots .dot--g { background: #28c840; }
.smartscreen-mock-titlebar-label { font-weight: 500; }

.smartscreen-mock-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 18px 18px 16px;
  align-items: start;
}
.smartscreen-mock-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(27,115,232,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.smartscreen-mock-text { min-width: 0; }
.smartscreen-mock-headline {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  margin: 0 0 6px;
}
.smartscreen-mock-sub {
  font-size: 13px;
  color: #444;
  margin: 0 0 10px;
  line-height: 1.45;
}
.smartscreen-mock-sub strong { color: #111; }

.smartscreen-mock-link {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.smartscreen-mock-link-text {
  color: #1B73E8;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  padding: 4px 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.25);
  animation: ss-pulse 2s ease-in-out infinite;
}
@keyframes ss-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(59,130,246,0.20); }
  50%      { box-shadow: 0 0 0 4px rgba(59,130,246,0.35); }
}
.smartscreen-mock-tooltip {
  position: relative;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59,130,246,0.12);
  padding: 4px 8px;
  border-radius: 6px;
}
.smartscreen-mock-tooltip-arrow {
  position: absolute;
  left: -7px;
  top: 50%;
  width: 0; height: 0;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-right-color: rgba(59,130,246,0.12);
}

.smartscreen-mock-actions {
  display: flex;
  align-items: flex-end;
  align-self: stretch;
}
.smartscreen-mock-btn {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: #f3f3f3;
  color: #444;
  cursor: not-allowed;
  font-family: inherit;
}
.smartscreen-mock-btn--ghost { background: #fff; }

/* Force the mock to render light regardless of site theme — it
   represents a Windows dialog, not the surrounding chrome. */
[data-theme="dark"] .smartscreen-mock {
  background: #f7f7f8;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .smartscreen-mock-titlebar {
  background: #ececec;
  color: #555;
  border-color: rgba(0,0,0,0.08);
}

/* Step list — numbered chips matching the rest of the site. */
.installer-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.installer-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}
.installer-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,0.12);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.installer-step-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  padding-top: 4px;
}
.installer-step-text code {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.installer-step-text strong { color: var(--text); }

/* Reassurance callout above the download CTA. */
.installer-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  margin-bottom: 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(59,130,246,0.04));
  text-align: left;
}
.installer-callout-icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.installer-callout p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}
.installer-callout a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-legal {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.download-legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.download-legal a:hover { color: var(--accent); }

.download-next {
  text-align: left;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.download-next-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.download-next-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.download-next-list li + li { margin-top: 4px; }
.download-next-list code {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* =========================================================
   Closing CTA
   ========================================================= */
.closing {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(59,130,246,0.10), transparent 70%);
}
.closing-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.closing h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.closing p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .brand { margin-bottom: 12px; }
.footer-tag { font-size: 14px; color: var(--text-muted); max-width: 320px; line-height: 1.6; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 520px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-cols a {
  font-size: 14px;
  color: var(--text-soft);
  transition: color var(--t-fast) var(--ease);
  cursor: pointer;
}
.footer-cols a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; gap: 6px; padding: 22px 24px; text-align: center; }
}
.footer-build { font-family: var(--font-mono); font-size: 12.5px; }

/* =========================================================
   ░░░  v2 UPGRADES — polish, motion, new sections  ░░░
   ========================================================= */

/* ---- subtle dot-grid background (whole page, behind hero glow) ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
}
[data-theme="light"] body::before { opacity: 0.55; }

/* ---- hero badge dot — gentle pulse ---- */
.badge-dot { position: relative; }
.badge-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.4;
  animation: dg-pulse 2.4s ease-out infinite;
}
@keyframes dg-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ---- hero shot — floating stat chips (glass overlay) ---- */
.shot-stage {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(8px);
  animation: dg-chip-in 700ms var(--ease) forwards;
}
.hero-chip:nth-child(1) { top: 12%;  left: -3%;  animation-delay: 320ms; }
.hero-chip:nth-child(2) { top: 46%;  right: -4%; animation-delay: 460ms; }
.hero-chip:nth-child(3) { bottom: 14%; left: 8%;  animation-delay: 600ms; }
@keyframes dg-chip-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero-chip .chip-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-chip .chip-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.hero-chip .chip-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 4px;
}
.hero-chip .chip-bar {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
@media (max-width: 760px) {
  .hero-chips { display: none; }
}

/* ---- arrow nudge in primary CTAs ---- */
.btn svg + * { transition: transform var(--t-fast) var(--ease); }
.btn:hover svg:last-child {
  transform: translateX(3px);
}

/* ---- feature card refresh: numbered + gradient hover edge ---- */
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: attr(data-num);
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  opacity: 0.55;
  transition: color var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.feature-card:hover::after { color: var(--accent); opacity: 1; }
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover .feat-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.feat-icon { transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }

/* ---- section eyebrow with decorative line ---- */
.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--accent);
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.how-steps::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 18%, var(--border-strong) 82%, transparent);
  z-index: 0;
}
@media (max-width: 880px) {
  .how-steps { grid-template-columns: 1fr; gap: 18px; }
  .how-steps::before { display: none; }
}
.how-step {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.how-step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.how-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.how-step p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- COMPARE ---- */
.compare {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.compare-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.compare-table thead th.col-product {
  color: var(--accent);
  font-weight: 600;
  position: relative;
}
.compare-table thead th.col-product::before {
  content: "";
  position: absolute;
  inset: 6px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  z-index: 0;
}
.compare-table thead th.col-product > * { position: relative; z-index: 1; }
.compare-table td.cell-cmp {
  text-align: center;
  width: 22%;
}
.compare-table td.cell-cmp.product { background: rgba(59, 130, 246, 0.04); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.cell-label {
  font-size: 14.5px;
  color: var(--text);
}
.compare-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
}
.compare-icon.yes {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.32);
}
.compare-icon.no {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---- FAQ (pure CSS accordion using <details>) ---- */
.faq {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease);
}
.faq-item[open], .faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-toggle {
  width: 26px; height: 26px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}
.faq-item[open] .faq-toggle {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.32);
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 22px 22px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 680px;
}
.faq-a code {
  font-size: 12.5px;
}

/* ---- scroll-reveal entrances ---- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }
.reveal[data-delay="5"] { transition-delay: 300ms; }
.reveal[data-delay="6"] { transition-delay: 360ms; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-chip { opacity: 1; transform: none; }
  .badge-dot::after { display: none; }
}

/* =========================================================
   Site-wide announcement banner (admin → Settings → App)
   ========================================================= */
.site-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), #6366F1);
}
.site-announce svg { flex: none; opacity: 0.9; }
.site-announce span { line-height: 1.4; }

/* =========================================================
   Pro features — the upgrade story
   Same blue family as the hero (blue → indigo). No amber:
   the premium accent is carried entirely by a same-family
   blue→indigo gradient so it reads as "more of the hero",
   not a second colour.
   ========================================================= */
.pro-features {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.pro-features::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 360px;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(59, 130, 246, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.pro-features > .container { position: relative; z-index: 1; }

/* Pro eyebrow: same mono eyebrow as elsewhere, but its text and
   the decorative leader use a blue→indigo gradient (no gold). */
.eyebrow.pro-eyebrow {
  color: var(--accent); /* fallback for clip-unsupported */
  background: linear-gradient(90deg, var(--accent), #6366F1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head .eyebrow.pro-eyebrow::before {
  background: linear-gradient(90deg, var(--accent), #6366F1);
}

.pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .pro-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pro-grid { grid-template-columns: 1fr; } }

.pro-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02)),
    var(--surface);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease),
              transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.pro-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #6366F1);
  opacity: 0.75;
}
.pro-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px var(--accent-ring);
}
.pro-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.pro-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.pro-card em {
  color: var(--text-soft);
  font-style: normal;
  font-weight: 500;
}

.pro-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  text-align: center;
}
.pro-cta-meta {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Light mode: the pale blue-on-white tint washes out, so firm up the
   border, make the blue→indigo accent bar fully opaque, and add a hair of
   shadow so each card separates cleanly from the white background. */
[data-theme="light"] .pro-card {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
[data-theme="light"] .pro-card::before { opacity: 1; }
[data-theme="light"] .pro-card:hover {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 18px 38px -22px rgba(37, 99, 235, 0.45);
}

/* =========================================================
   Features hub (/features): breadcrumb, intro, "see all" link
   ========================================================= */
.page-intro { padding: 32px 0 8px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--border-strong); }
.breadcrumb [aria-current] { color: var(--text-soft); }

/* Home → /features hub-spoke link under the feature grid. */
.features-more { text-align: center; margin-top: 38px; }
.features-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}
.features-more a svg { transition: transform var(--t-fast) var(--ease); }
.features-more a:hover svg { transform: translateX(3px); }

/* Breadcrumb bar above the centered docs/download heroes. The bar now
   supplies the top spacing, so trim the hero's own (large) top padding when
   it directly follows a crumb-bar to keep the trail visually attached. */
.crumb-bar { padding-top: 26px; }
.crumb-bar .breadcrumb { margin-bottom: 0; }
.crumb-bar + .doc-hero { padding-top: clamp(24px, 3.5vw, 44px); }
.crumb-bar + .download-landing { padding-top: clamp(40px, 6vw, 72px); }

/* =========================================================
   Visual hierarchy & section rhythm
   Two goals: (1) make card titles win attention on a fast scroll,
   (2) give the three consecutive card grids (How / Features / Pro)
   each a distinct anchor so the page stops feeling repetitive.
   Everything stays in the blue→indigo family.
   ========================================================= */

/* --- (1) Scannable card titles ---------------------------------------
   Heavier weight + size, more air below, and a persistent accent
   underline. The underline is always on (not hover-only), so the title
   reads as a clear heading even when the eye is moving quickly. */
.how-step h3,
.feature-card h3,
.pro-card h3 {
  position: relative;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  padding-bottom: 13px;
  margin-bottom: 13px;
}
.how-step h3::after,
.feature-card h3::after,
.pro-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #6366F1);
}

/* Section-level headings and the other card titles get the weight bump
   too, so "title-first" scanning is consistent across the whole page. */
.showcase-copy h3,
.compare .section-head h2 { font-weight: 700; }
.dl-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.faq-item summary .faq-q { font-weight: 600; }

/* --- (2a) HOW: the step number is the anchor ------------------------
   Put the section on its own subtle surface band so it separates from
   the Features grid below, and turn the step number into a bold filled
   blue→indigo token that the eye lands on first. */
.how { background: var(--bg-elev); }
.how-num {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #6366F1);
  border: none;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 10px 22px -10px var(--accent-ring);
}

/* --- (2b) FEATURES: the icon + index are the anchor -----------------
   Tint the icon by default (not just on hover) and make the corner
   index a small visible chip, so each card is identifiable at a glance
   and the section reads differently from the plain-number How grid. */
.feature-card .feat-icon {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-color: rgba(59, 130, 246, 0.35);
}
.feature-card::after {
  top: 16px;
  right: 18px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.22);
  opacity: 0.9;
}
.feature-card:hover::after {
  opacity: 1;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
