/* ─────────────────────────────────────────────
   ATHOS · shared site stylesheet
   ───────────────────────────────────────────── */

:root {
  --bg:           #f4f6fb;
  --bg-deep:      #e7ecf5;
  --bg-tint:      #eef2f9;
  --card:         #ffffff;
  --ink:          #0a1530;
  --ink-soft:     #4f5d7e;
  --ink-faint:    #8390ad;
  --rule:         rgba(10, 21, 48, 0.09);
  --rule-strong:  rgba(10, 21, 48, 0.16);
  --accent:       #2547b8;
  --accent-bright:#3b5fd9;
  --accent-soft:  rgba(37, 71, 184, 0.08);
  --gold:         #c89860;
  --gold-soft:    rgba(200, 152, 96, 0.12);
  --navy:         #0a1530;
  --navy-mid:     #1a2a52;
  --navy-light:   #2d4275;
  --good:         #16a34a;
  --warn:         #d97706;
  --danger:       #dc2626;
  --shadow-sm:    0 1px 2px rgba(10, 21, 48, .04);
  --shadow:       0 1px 2px rgba(10, 21, 48, .04), 0 12px 32px rgba(10, 21, 48, .07);
  --shadow-lg:    0 1px 2px rgba(10, 21, 48, .04), 0 32px 64px rgba(10, 21, 48, .14);
  --shadow-glow:  0 0 0 1px rgba(37, 71, 184, .12), 0 24px 64px rgba(37, 71, 184, .18);
}
[data-theme="dark"] {
  --bg:           #050a18;
  --bg-deep:      #020510;
  --bg-tint:      #0a1428;
  --card:         #0d1a36;
  --ink:          #e8edf6;
  --ink-soft:     #8b9bbd;
  --ink-faint:    #5b6d92;
  --rule:         rgba(232, 237, 246, 0.08);
  --rule-strong:  rgba(232, 237, 246, 0.14);
  --accent:       #5b80f0;
  --accent-bright:#7896f5;
  --accent-soft:  rgba(91, 128, 240, 0.14);
  --gold:         #d4a574;
  --gold-soft:    rgba(212, 165, 116, 0.14);
  --navy:         #0d1a36;
  --navy-mid:     #142244;
  --navy-light:   #1e3158;
  --good:         #4ade80;
  --shadow:       0 1px 2px rgba(0,0,0,.5), 0 24px 48px rgba(0,0,0,.4);
  --shadow-lg:    0 1px 2px rgba(0,0,0,.6), 0 48px 96px rgba(0,0,0,.5);
  --shadow-glow:  0 0 0 1px rgba(91, 128, 240, .25), 0 24px 64px rgba(91, 128, 240, .25);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #050a18;
    --bg-deep:      #020510;
    --bg-tint:      #0a1428;
    --card:         #0d1a36;
    --ink:          #e8edf6;
    --ink-soft:     #8b9bbd;
    --ink-faint:    #5b6d92;
    --rule:         rgba(232, 237, 246, 0.08);
    --rule-strong:  rgba(232, 237, 246, 0.14);
    --accent:       #5b80f0;
    --accent-bright:#7896f5;
    --accent-soft:  rgba(91, 128, 240, 0.14);
    --gold:         #d4a574;
    --gold-soft:    rgba(212, 165, 116, 0.14);
    --navy:         #0d1a36;
    --navy-mid:     #142244;
    --navy-light:   #1e3158;
    --good:         #4ade80;
    --shadow:       0 1px 2px rgba(0,0,0,.5), 0 24px 48px rgba(0,0,0,.4);
    --shadow-lg:    0 1px 2px rgba(0,0,0,.6), 0 48px 96px rgba(0,0,0,.5);
    --shadow-glow:  0 0 0 1px rgba(91, 128, 240, .25), 0 24px 64px rgba(91, 128, 240, .25);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}
.serif { font-family: 'Fraunces', 'New York', Georgia, serif; font-feature-settings: "ss01"; }
.mono { font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace; }
::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .marquee-track { animation: none !important; }
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--rule);
}
nav.top .inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 40px;
  max-width: 1240px; margin: 0 auto;
  font-size: 14px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.brand-img {
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(10, 21, 48, .25), 0 0 0 1px rgba(10, 21, 48, .06);
  display: block;
}
nav.top .links { display: flex; align-items: center; gap: 28px; }
nav.top .links a {
  color: var(--ink-soft); text-decoration: none;
  transition: color .15s;
  font-weight: 500;
}
nav.top .links a:hover, nav.top .links a.active { color: var(--ink); }
nav.top .cta-pill {
  background: var(--navy); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
[data-theme="dark"] nav.top .cta-pill { background: var(--accent); color: var(--navy); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) nav.top .cta-pill { background: var(--accent); color: var(--navy); }
}
nav.top .cta-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(10,21,48,.2); }
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-grid; place-items: center;
  transition: color .15s, background .15s, border-color .15s, transform .25s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent); transform: rotate(20deg); }

/* ─── HERO ─── */
header {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
header .glow.g1 { top: -100px; right: -200px; width: 700px; height: 700px; background: var(--accent); opacity: 0.10; }
header .glow.g2 { bottom: -200px; left: -200px; width: 500px; height: 500px; background: var(--gold); opacity: 0.08; }
header .grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.pill .pill-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1.display {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 14ch;
  color: var(--ink);
}
h1.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  padding: 15px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}
[data-theme="dark"] .cta { background: var(--accent); color: var(--navy); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: var(--accent); color: var(--navy); }
}
.cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cta-link {
  color: var(--ink); font-size: 15px; font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, gap .2s;
}
.cta-link:hover { color: var(--accent); gap: 10px; }
/* Hero composition */
.hero-comp { position: relative; height: 540px; perspective: 1200px; }
.hero-comp.tilt-on { transition: transform .12s ease-out; transform-style: preserve-3d; }
.hc-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s ease;
}
.hc-main {
  width: 320px; padding: 22px;
  top: 30px; right: 40px;
  transform: rotate(2deg);
  z-index: 3;
}
.hc-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 21, 48, .35);
}
.hc-cover::after {
  content: '';
  position: absolute; top: 0; left: 30%;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.1), transparent);
  pointer-events: none;
  z-index: 2;
}
.cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}
.hc-cover .cover-img { border-radius: 8px; }
.hc-main h4 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 4px; }
.hc-main .meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }
.hc-main .progress { height: 4px; background: var(--rule); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.hc-main .progress div { height: 100%; width: 64%; background: var(--accent); border-radius: 999px; }
.hc-main .pages { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }
.hc-main .catmeta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
}
.hc-main .catmeta > div { color: var(--ink); }
.hc-main .catmeta span {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 2px;
  font-weight: 600;
}
.hc-stat .recent-row {
  display: flex; gap: 6px; margin-top: 8px;
}
.hc-stat .recent-row img {
  flex: 1; aspect-ratio: 2/3; min-width: 0;
  object-fit: cover; border-radius: 3px;
  box-shadow: 0 4px 10px rgba(10,21,48,.18);
}

.hc-widget {
  width: 200px; padding: 18px;
  top: 240px; left: 0;
  transform: rotate(-3deg);
  z-index: 2;
  animation: float1 6s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
.hc-widget .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 8px; }
.hc-widget .stat { font-family: 'Fraunces', serif; font-size: 32px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 4px; }
.hc-widget .delta { font-size: 11px; color: var(--accent); }

.hc-stat {
  width: 220px; padding: 16px 20px;
  bottom: 30px; right: 0;
  transform: rotate(1.5deg);
  z-index: 2;
  animation: float2 7s ease-in-out infinite;
}
@keyframes float2 { 0%,100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-10px); } }
.hc-stat .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 10px; }
.hc-stat .bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.hc-stat .bars span { flex: 1; background: var(--accent-soft); border-radius: 2px 2px 0 0; }
.hc-stat .bars span.hi { background: var(--accent); }

.hc-tag {
  position: absolute;
  background: var(--navy); color: #fff;
  padding: 8px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  top: 0; left: 80px;
  z-index: 4;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 6px;
  animation: float3 5s ease-in-out infinite;
}
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hc-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Stat band */
.stat-band {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.stat-band .cell {
  padding: 28px 32px;
  border-right: 1px solid var(--rule);
  display: flex; gap: 16px; align-items: center;
}
.stat-band .cell:last-child { border-right: none; }
.stat-band .ico {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.stat-band .ico svg { width: 22px; height: 22px; stroke-width: 1.6; }
.stat-band .num { font-family: 'Fraunces', serif; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.stat-band .num em { color: var(--accent); font-style: italic; font-weight: 300; }
.stat-band .label { font-size: 12px; color: var(--ink-soft); margin-top: 4px; line-height: 1.3; }

/* ─── Cover marquee ─── */
.marquee {
  padding: 56px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-tint);
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-tint), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-tint), transparent); }
.marquee-track {
  display: flex; gap: 18px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.m-cover {
  width: 110px;
  aspect-ratio: 2/3;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(10, 21, 48, .15);
  position: relative;
  overflow: hidden;
}
.m-cover::after {
  content: '';
  position: absolute; top: 0; left: 30%;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.18), transparent);
}
.m-cover .spine {
  position: absolute; bottom: 12px; left: 12px;
  font-family: 'Fraunces', serif; font-size: 11px; color: rgba(255,255,255,.85);
  font-style: italic;
  line-height: 1.1;
}
.m-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.m-cover { background: var(--navy); }

/* ─── SECTION primitives ─── */
section { padding: 120px 0; position: relative; }
section.tight { padding: 80px 0; }
section + section { border-top: 1px solid var(--rule); }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
h2.section {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 22ch;
  color: var(--ink);
}
h2.section em { font-style: italic; color: var(--accent); font-weight: 300; }
.section-lede { font-size: 19px; line-height: 1.55; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.section-head { margin-bottom: 64px; }
.section-head.center { text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; margin-bottom: 64px; }
.section-head.center h2.section, .section-head.center .section-lede { margin-left: auto; margin-right: auto; }

/* Navy panel */
.navy-panel {
  background: var(--navy);
  color: #e8edf6;
  border-radius: 32px;
  padding: 80px;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .navy-panel { background: var(--card); border: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .navy-panel { background: var(--card); border: 1px solid var(--rule); }
}
.navy-panel h2.section { color: #fff; }
.navy-panel .section-lede { color: rgba(232, 237, 246, 0.7); }
.navy-panel .section-eyebrow { color: var(--gold); }
.navy-panel .section-eyebrow::before { background: var(--gold); }
.navy-panel::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.30;
  pointer-events: none;
}
.navy-panel::after {
  content: '';
  position: absolute;
  bottom: -300px; left: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

/* ─── PLATFORM TABS ─── */
.platform-tabs {
  display: flex; gap: 8px;
  margin-bottom: 56px;
  background: var(--bg-tint);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--rule);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.platform-tab {
  background: none; border: none;
  padding: 14px 24px;
  color: var(--ink-soft);
  font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 11px;
  flex: 1; justify-content: center;
}
.platform-tab:hover { color: var(--ink); }
.platform-tab.active {
  color: var(--ink);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.platform-tab svg { width: 18px; height: 18px; stroke-width: 1.5; }
.platform-tab.active svg { color: var(--accent); }
.platform-panel { display: none; }
.platform-panel.active { display: grid; }
.platform-panel { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.platform-detail h3 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 0 0 20px;
}
.platform-detail h3 em { font-style: italic; color: var(--accent); font-weight: 300; }
.platform-detail > p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 32px; }
.platform-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.platform-features li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.platform-features .ficon {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center;
}
.platform-features .ficon svg { width: 18px; height: 18px; stroke-width: 1.7; }
.platform-features strong { font-weight: 600; display: block; margin-bottom: 4px; color: var(--ink); font-size: 15px; }
.platform-features span { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.platform-visual {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 44px;
  box-shadow: var(--shadow);
  min-height: 500px;
  position: relative;
  overflow: hidden;
}
.platform-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--rule) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 90%);
}
.platform-visual > * { position: relative; z-index: 1; }

/* ─── CAPTURE FLOW ─── */
.capture-frame {
  border-radius: 32px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}
.capture-frame > * { position: relative; z-index: 1; }
.step-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; align-content: center; }
.step {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 22px 24px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  color: rgba(232, 237, 246, 0.6);
  font-family: inherit;
  transition: all .25s ease;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  align-items: start;
  width: 100%;
}
.step:hover { background: rgba(255,255,255,.06); color: #fff; }
.step.active {
  background: rgba(91, 128, 240, 0.18);
  color: #fff;
  border-color: var(--accent-bright);
  box-shadow: 0 8px 32px rgba(91, 128, 240, .25);
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: var(--gold);
  display: grid; place-items: center;
  font-family: 'Fraunces', serif; font-size: 16px; font-weight: 500;
}
.step.active .step-num { background: var(--gold); color: var(--navy); }
.step h4 { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.step p { font-size: 13px; margin: 0; line-height: 1.5; color: rgba(232, 237, 246, 0.55); }
.step.active p { color: rgba(232, 237, 246, 0.7); }
.step-visual {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 36px;
  min-height: 440px;
  display: flex; flex-direction: column; justify-content: center;
}
.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.sv-label { display:flex; align-items:center; gap:8px; font-family:'Fraunces',serif; font-size:13px; color: rgba(232, 237, 246, 0.5); letter-spacing:0.04em; margin-bottom:24px; }
.sv-label svg { width: 14px; height: 14px; color: var(--gold); }

.scanner-mock {
  background: #000; border-radius: 18px; padding: 36px 24px; text-align: center; color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.scanner-mock .target { position: absolute; inset: 18px; border-radius: 12px; pointer-events: none; }
.scanner-mock .target::before, .scanner-mock .target::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--gold);
}
.scanner-mock .target::before { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.scanner-mock .target::after { bottom: 0; right: 0; border-left: none; border-top: none; border-bottom-right-radius: 6px; }
.scanner-mock .barcode { display: flex; justify-content: center; gap: 3px; margin-bottom: 16px; }
.scanner-mock .barcode span { background: #fff; }
.scanner-mock .scanline {
  position: absolute; left: 24px; right: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  top: 50%;
  box-shadow: 0 0 10px var(--gold);
  animation: scanline 2.5s ease-in-out infinite;
}
@keyframes scanline { 0%, 100% { transform: translateY(-40px); } 50% { transform: translateY(40px); } }

.provider-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(232, 237, 246, 0.85);
}
.provider-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); margin-right: 10px; display: inline-block; }
.provider-row .timing { color: var(--gold); font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* ─── LIBRARY BENTO ─── */
.lib-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.lib-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.lib-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.lib-card.span-2 { grid-column: span 2; }
.lib-card .ico-block {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.lib-card .ico-block svg { width: 22px; height: 22px; stroke-width: 1.6; }
.lib-card h4 { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
.lib-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.55; }
.lib-card .micro {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px dashed var(--rule);
  font-size: 12px; color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.lib-card .micro span { background: var(--bg-tint); padding: 4px 10px; border-radius: 6px; color: var(--ink-soft); }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mini-stat { background: var(--bg-tint); border-radius: 12px; padding: 14px; }
.mini-stat .v { font-family: 'Fraunces', serif; font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.mini-stat .v em { color: var(--accent); font-style: italic; font-weight: 300; }
.mini-stat .l { font-size: 11px; color: var(--ink-soft); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

.series-strip { display: flex; gap: 4px; margin-top: 12px; }
.series-strip .vol {
  flex: 1; aspect-ratio: 2/3; border-radius: 3px;
  background: var(--navy);
  display: grid; place-items: center;
  color: #fff; font-family: 'Fraunces', serif; font-size: 11px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.series-strip .vol.miss {
  background: transparent;
  border: 1px dashed var(--accent);
  color: var(--accent);
  box-shadow: none;
}

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.stats-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.stats-card h4 { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.stats-card .sub { font-size: 12px; color: var(--ink-soft); margin-bottom: 24px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding: 0; margin: 0; list-style: none; }
.bars li {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-bright) 100%);
  border-radius: 4px 4px 0 0;
  transition: opacity .2s, transform .2s;
  min-width: 0;
}
.bars li:hover { opacity: 0.85; transform: translateY(-2px); }
.bars li.gold { background: linear-gradient(180deg, var(--gold) 0%, #d9aa72 100%); }
.bars-legend { display: flex; justify-content: space-between; margin-top: 14px; font-size: 11px; color: var(--ink-soft); }

.donut-wrap { position: relative; width: 180px; height: 180px; margin: 12px auto 20px; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center .num { font-family: 'Fraunces', serif; font-size: 32px; line-height: 1; }
.donut-center .lbl { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.stat-list-detail { padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13px; }
.stat-list-detail li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.stat-list-detail li:last-child { border-bottom: none; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: middle; }

.stat-mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.stat-mini { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; transition: transform .2s; }
.stat-mini:hover { transform: translateY(-2px); }
.stat-mini .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.stat-mini .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.stat-mini .ico { color: var(--accent); }
.stat-mini .ico svg { width: 16px; height: 16px; stroke-width: 1.7; }
.stat-mini .v { font-family: 'Fraunces', serif; font-size: 28px; line-height: 1; letter-spacing: -0.02em; }
.stat-mini .v small { font-size: 13px; color: var(--ink-soft); font-family: 'Inter'; }
.stat-mini .v em { color: var(--accent); font-style: italic; font-weight: 300; }

/* ─── SYNC (globe) ─── */
.sync-diagram {
  background: var(--navy);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 80px 56px;
  margin-bottom: 40px;
  position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.sync-diagram::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  opacity: 0.7;
}
.sync-diagram::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: 0.18;
  pointer-events: none;
  filter: blur(40px);
}

.globe-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 3/2;
  z-index: 1;
}
.globe {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 60px rgba(37, 71, 184, 0.45));
}
.globe-spin { transform-origin: 120px 120px; animation: globe-rotate 60s linear infinite; }
@keyframes globe-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.globe-orbits {
  position: absolute;
  top: 50%; left: 50%;
  width: 380px; height: 380px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: orbit-rotate 80s linear infinite;
}
.globe-orbits.two {
  width: 480px; height: 480px;
  border-color: rgba(255,255,255,0.06);
  animation-duration: 120s;
  animation-direction: reverse;
}
@keyframes orbit-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  border: 1px solid var(--accent-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: pulse-out 4s ease-out infinite;
  pointer-events: none;
}
.pulse-ring.r2 { animation-delay: 1.3s; }
.pulse-ring.r3 { animation-delay: 2.6s; }
@keyframes pulse-out {
  0%   { transform: translate(-50%, -50%) scale(0.85); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(1.55); opacity: 0; }
}

.device-pill {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  z-index: 3;
}
.device-pill svg { width: 16px; height: 16px; color: var(--accent-bright); }
.device-pill .ndot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
.dp-iphone { top: 12%; left: 4%; animation: float-pill-a 8s ease-in-out infinite; }
.dp-ipad   { top: 12%; right: 4%; animation: float-pill-b 9s ease-in-out infinite; }
.dp-mac    { bottom: 12%; left: 4%; animation: float-pill-b 7s ease-in-out infinite; }
.dp-watch  { bottom: 12%; right: 4%; animation: float-pill-a 10s ease-in-out infinite; }
@keyframes float-pill-a { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float-pill-b { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.globe-arcs {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.globe-arcs .arc {
  stroke-dashoffset: 0;
  animation: arc-flow 3s linear infinite;
}
.globe-arcs .a2 { animation-delay: 0.6s; }
.globe-arcs .a3 { animation-delay: 1.2s; }
.globe-arcs .a4 { animation-delay: 1.8s; }
@keyframes arc-flow {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -28; }
}

.globe-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 170px));
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  z-index: 4;
}
.globe-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.globe-label strong { color: var(--gold); font-weight: 600; }

@media (max-width: 760px) {
  .sync-diagram { padding: 56px 24px; min-height: 420px; }
  .globe { width: 200px; height: 200px; }
  .globe-orbits { width: 280px; height: 280px; }
  .globe-orbits.two { width: 350px; height: 350px; }
  .pulse-ring { width: 200px; height: 200px; }
  .device-pill { padding: 8px 12px; font-size: 11px; }
  .device-pill svg { width: 14px; height: 14px; }
  .globe-label { transform: translate(-50%, calc(-50% + 130px)); font-size: 11px; padding: 8px 14px; }
}

.sync-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sync-diagram::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--rule) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.sync-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px;
  transition: transform .2s, box-shadow .2s;
}
.sync-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sync-card .ico-big {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.sync-card .ico-big svg { width: 24px; height: 24px; stroke-width: 1.5; }
.sync-card h4 { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; margin: 0 0 10px; letter-spacing: -0.01em; }
.sync-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ─── BENTO importers ─── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bento .chip {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 24px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.bento .chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}
.bento .chip.hidden { display: none; }
.bento .chip .chip-ico {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.bento .chip .chip-ico svg { width: 18px; height: 18px; stroke-width: 1.6; }
.bento .chip h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.bento .chip p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.45; }
.bento .chip .fmt {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 12px;
  font-weight: 600;
}
.filter-row { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.filter-input {
  flex: 1; min-width: 240px;
  padding: 14px 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.filter-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filter-count { font-size: 13px; color: var(--ink-soft); }

/* ─── WIDGETS preview ─── */
.widget-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.w-prev {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 20px;
  aspect-ratio: 1;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.w-prev:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.w-prev.med { grid-column: span 2; aspect-ratio: 2; }
.w-prev.lg { grid-column: span 4; aspect-ratio: auto; min-height: 280px; }
.w-prev .w-name { font-family: 'Fraunces', serif; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.w-prev .w-sub { font-size: 11px; color: var(--ink-soft); }
.w-prev .w-mini-cover {
  width: 38px; aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 4px;
  flex-shrink: 0;
}
.w-prev.size-sm .w-mini-cover { width: 50px; }
.w-prev .w-tag {
  position: absolute; top: 14px; right: 14px;
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.w-desc { margin-top: 14px; grid-column: span 6; text-align: center; color: var(--ink-soft); font-size: 14px; max-width: 56ch; margin-left: auto; margin-right: auto; }
.widget-list-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; margin-top: 56px; }
.widget-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.widget-row .wicon {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center;
}
.widget-row .wicon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.widget-row h4 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.widget-row p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.widget-row .size {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--bg-tint);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* ─── INTENTS ─── */
.intent-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin-top: 40px; }
.intent { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(232, 237, 246, 0.08); font-size: 15px; align-items: baseline; }
.intent .verb {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--gold);
  background: rgba(200, 152, 96, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  text-transform: uppercase;
  font-weight: 600;
}
.intent .desc { color: rgba(232, 237, 246, 0.85); line-height: 1.4; }
.shortcut-example {
  margin-top: 40px;
  padding: 28px;
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
}
.shortcut-example .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
.shortcut-example .step-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  font-size: 14px;
  color: rgba(232, 237, 246, 0.85);
  border-bottom: 1px dashed rgba(232, 237, 246, 0.08);
}
.shortcut-example .step-row:last-child { border-bottom: none; }
.shortcut-example .step-row .badge {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  color: var(--gold);
  background: rgba(200, 152, 96, 0.18);
  padding: 3px 8px; border-radius: 4px;
  font-weight: 600;
}

/* ─── PRIVACY ─── */
.privacy-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
.privacy-item {
  background: rgba(255,255,255,.04);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .25s, background .25s;
}
.privacy-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); }
.privacy-item .picon-wrap {
  width: 40px; height: 40px;
  background: rgba(200, 152, 96, 0.18);
  color: var(--gold);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.privacy-item .picon-wrap svg { width: 20px; height: 20px; stroke-width: 1.6; }
.privacy-item h4 { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 500; margin: 0 0 8px; color: #fff; }
.privacy-item p { font-size: 14px; line-height: 1.55; color: rgba(232, 237, 246, 0.6); margin: 0; }

/* ─── FAQ ─── */
.faq { display: grid; gap: 0; max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--rule); padding: 24px 0; }
.faq details[open] { padding-bottom: 28px; }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Fraunces', serif;
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 24px; color: var(--accent);
  transition: transform .25s;
  margin-left: 16px; line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; max-width: 70ch; }
.faq-categories { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.faq-cat-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.faq-cat-btn:hover { border-color: var(--accent); color: var(--ink); }
.faq-cat-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .faq-cat-btn.active { background: var(--accent); color: var(--navy); border-color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .faq-cat-btn.active { background: var(--accent); color: var(--navy); border-color: var(--accent); }
}
.faq details.hidden { display: none; }

/* ─── SPECS ─── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 22px;
  overflow: hidden;
}
.spec { background: var(--card); padding: 28px 24px; }
.spec .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 10px; font-weight: 600; }
.spec .val { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }

.language-showcase {
  margin-top: 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 32px;
  padding: 44px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.55fr);
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .language-showcase { background: var(--card); border: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .language-showcase { background: var(--card); border: 1px solid var(--rule); }
}
.language-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, black, rgba(0,0,0,0.7), transparent);
  -webkit-mask-image: linear-gradient(90deg, black, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}
.language-copy,
.language-list {
  position: relative;
  z-index: 1;
}
.language-copy .section-eyebrow {
  color: var(--gold);
  margin-bottom: 22px;
}
.language-copy .section-eyebrow::before { background: var(--gold); }
.language-count {
  color: var(--gold);
  font-size: clamp(86px, 12vw, 152px);
  line-height: 0.78;
  letter-spacing: -0.07em;
  margin-bottom: 18px;
}
.language-copy h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
}
.language-copy p {
  color: rgba(232, 237, 246, 0.68);
  margin: 0;
  line-height: 1.6;
  max-width: 34ch;
}
.language-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.language-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px 8px 10px;
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.language-list li:nth-child(4n+2) {
  background: rgba(200, 152, 96, 0.13);
  border-color: rgba(200, 152, 96, 0.22);
}
.language-list li span {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1;
}

/* ─── FINAL CTA / FOOTER ─── */
.final { text-align: center; padding: 0 40px 120px; }
.final-frame {
  background: var(--navy);
  color: #fff;
  border-radius: 32px;
  padding: 100px 40px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .final-frame { background: var(--card); border: 1px solid var(--rule); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .final-frame { background: var(--card); border: 1px solid var(--rule); }
}
.final-frame::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 60%);
  opacity: 0.30;
  pointer-events: none;
}
.final-frame > * { position: relative; z-index: 1; }
.final-frame .section-eyebrow { color: var(--gold); }
.final-frame .section-eyebrow::before { background: var(--gold); }
.final-frame h2 { color: #fff; max-width: 18ch; margin-left: auto; margin-right: auto; margin-bottom: 24px; }
.final-frame p { color: rgba(232, 237, 246, 0.7); margin: 0 auto 40px; max-width: 50ch; font-size: 18px; }
.final-frame .cta { background: var(--gold); color: var(--navy); }
.final-frame .cta-link { color: rgba(232, 237, 246, 0.7); }
.final-frame .cta-link:hover { color: var(--gold); }

footer.site {
  border-top: 1px solid var(--rule);
  padding: 64px 0 48px;
  color: var(--ink-soft);
  font-size: 13px;
  background: var(--bg-tint);
}
footer.site .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
footer.site .col h5 {
  font-family: 'Fraunces', serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
footer.site .col a { display: block; color: var(--ink-soft); text-decoration: none; padding: 6px 0; transition: color .15s; }
footer.site .col a:hover { color: var(--ink); }
footer.site .col p { margin: 0 0 16px; line-height: 1.5; max-width: 28ch; }
footer.site .bot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-faint);
}
footer.site .bot a { color: var(--ink-faint); text-decoration: none; }
footer.site .bot a:hover { color: var(--ink-soft); }

/* ─────────────────────────────────────────────
   PAGE-LEVEL STYLES (sub-pages)
   ───────────────────────────────────────────── */

/* Page hero (smaller than home hero) */
.page-hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-hero .glow { top: -100px; right: -100px; width: 500px; height: 500px; background: var(--accent); opacity: 0.08; }
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--accent); font-weight: 300; }
.page-hero .lede { font-size: 19px; color: var(--ink-soft); max-width: 60ch; margin: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-soft); margin-bottom: 24px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--ink-faint); }

/* ─── DOC LAYOUT (privacy etc) ─── */
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding: 80px 0;
}
.doc-toc { position: sticky; top: 100px; align-self: start; }
.doc-toc h6 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-faint); margin: 0 0 16px; font-weight: 600; }
.doc-toc a {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--rule);
  transition: color .15s, border-color .15s;
}
.doc-toc a:hover, .doc-toc a.active { color: var(--ink); border-color: var(--accent); }
.doc-body article + article { margin-top: 56px; }
.doc-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  scroll-margin-top: 100px;
}
.doc-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px; font-weight: 500;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
}
.doc-body p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; max-width: 70ch; }
.doc-body p strong { color: var(--ink); font-weight: 600; }
.doc-body ul, .doc-body ol { padding-left: 24px; margin: 16px 0; max-width: 70ch; }
.doc-body li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }
.doc-body code {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 13px;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.doc-body table { width: 100%; max-width: 720px; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.doc-body th, .doc-body td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--rule);
}
.doc-body th { font-weight: 600; color: var(--ink); background: var(--bg-tint); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.doc-body td { color: var(--ink-soft); vertical-align: top; }
.doc-body .callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  max-width: 720px;
}
.doc-body .callout p:last-child { margin-bottom: 0; }
.doc-body .callout strong { color: var(--accent); }

/* Updated date */
.doc-meta {
  font-size: 13px; color: var(--ink-soft);
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--bg-tint); border-radius: 10px;
  margin-bottom: 32px;
}

/* ─── PRESS ─── */
.press-hero-icon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}
.press-hero-icon .icon-show {
  width: 220px; height: 220px;
  border-radius: 48px;
  box-shadow: 0 30px 60px rgba(10, 21, 48, .25), 0 0 0 1px rgba(10, 21, 48, .08);
  display: block;
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.press-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  align-items: center; gap: 20px;
}
.press-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.press-card .pc-ico {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.press-card .pc-ico svg { width: 22px; height: 22px; stroke-width: 1.6; }
.press-card h4 { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; margin: 0 0 4px; letter-spacing: -0.01em; }
.press-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.press-card .pc-meta { font-size: 11px; color: var(--ink-faint); margin-left: auto; text-transform: uppercase; letter-spacing: 0.08em; }

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px 32px;
  font-size: 14px;
  border-top: 1px solid var(--rule);
}
.fact-grid > div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.fact-grid .fk { color: var(--ink-soft); font-weight: 500; }
.fact-grid .fv { color: var(--ink); }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.screenshot {
  aspect-ratio: 9/16;
  background: linear-gradient(180deg, var(--bg-tint), var(--card));
  border: 1px solid var(--rule);
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--ink-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quote-block {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}
.quote-block .quote-mark {
  position: absolute; top: 20px; left: 24px;
  font-family: 'Fraunces', serif;
  font-size: 80px; line-height: 0.5;
  color: var(--accent-soft);
}
.quote-block blockquote {
  margin: 0 0 16px;
  padding-left: 56px;
  font-family: 'Fraunces', serif;
  font-size: 22px; font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}
.quote-block cite {
  display: block;
  padding-left: 56px;
  font-style: normal;
  font-size: 13px; color: var(--ink-soft);
}

/* ─── CONTACT (personal card) ─── */
.contact-hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.contact-hero .glow.g1 { top: -100px; right: -200px; width: 600px; height: 600px; background: var(--accent); opacity: 0.10; }
.contact-hero .glow.g2 { bottom: -200px; left: -200px; width: 500px; height: 500px; background: var(--gold); opacity: 0.08; }
.contact-card-wrap { position: relative; z-index: 1; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}
.contact-portrait {
  width: 116px; height: 116px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--bg-tint);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(10,21,48,0.18), 0 0 0 1px var(--rule);
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-portrait:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(10,21,48,0.22), 0 0 0 1px var(--accent-soft);
}
.contact-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.contact-name {
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--ink);
}
.contact-role {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 40ch;
  margin-left: auto; margin-right: auto;
}
.contact-email-cta {
  display: inline-flex; align-items: center; gap: 14px;
  max-width: 100%;
  padding: 18px 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 17px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(10,21,48,0.18);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  margin-bottom: 28px;
}
[data-theme="dark"] .contact-email-cta { background: var(--accent); color: var(--navy); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact-email-cta { background: var(--accent); color: var(--navy); }
}
.contact-email-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(10,21,48,0.28); }
.contact-email-cta svg { width: 22px; height: 22px; flex-shrink: 0; }
.contact-email-cta .email-text { overflow-wrap: anywhere; }
.contact-email-cta .copy-hint {
  position: absolute;
  bottom: -22px; left: 50%; transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.contact-note {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 24px auto 0;
}
.contact-divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 280px; margin: 36px auto 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 600;
}
.contact-divider::before, .contact-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.contact-socials {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.social-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px; font-weight: 500;
  background: transparent;
  transition: transform .2s, border-color .2s, background .2s;
}
.social-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.social-pill svg { width: 16px; height: 16px; }
.contact-status {
  display: inline-flex;
  max-width: 100%;
  justify-content: center;
  padding: 10px 16px;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: 12px;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 600px) {
  .contact-hero { padding: 48px 0 80px; }
  .contact-card { padding: 40px 24px; }
  .contact-email-cta { font-size: 14px; padding: 16px 22px; gap: 10px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1080px) {
  .lib-bento { grid-template-columns: 1fr 1fr; }
  .widget-grid { grid-template-columns: repeat(4, 1fr); }
  .w-prev.lg { grid-column: span 4; }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc { position: relative; top: 0; }
  .press-hero-icon { grid-template-columns: 1fr; gap: 32px; }
  .press-hero-icon .icon-show { width: 160px; height: 160px; }
}
@media (max-width: 980px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
  nav.top .inner { padding: 14px 24px; }
  nav.top .links a:not(.cta-pill) { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-comp { height: 420px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); border-radius: 16px; }
  .stat-band .cell:nth-child(2) { border-right: none; }
  .stat-band .cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .platform-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .capture-frame { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .navy-panel { padding: 48px 28px; border-radius: 22px; }
  .lib-bento { grid-template-columns: 1fr; }
  .lib-card.span-2 { grid-column: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-mini-row { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .widget-list-row { grid-template-columns: 1fr; gap: 0; }
  .widget-grid { grid-template-columns: repeat(2, 1fr); }
  .w-prev.med, .w-prev.lg { grid-column: span 2; aspect-ratio: 1; min-height: 0; }
  .intent-list { grid-template-columns: 1fr; }
  .sync-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 16px; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .language-showcase { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .language-copy p { max-width: 60ch; }
  .sync-diagram { padding: 32px 20px; }
  .final-frame { padding: 64px 24px; border-radius: 22px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .press-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 80px 0; }
  header { padding: 48px 0 56px; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
  h1.display { font-size: 48px; }
  .hc-main { width: 240px; padding: 16px; right: 0; }
  .hc-widget { width: 160px; padding: 14px; }
  .hc-stat { width: 180px; padding: 14px 16px; }
  .hc-cover::before { font-size: 40px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .specs-grid, .fact-grid { grid-template-columns: 1fr; }
  .language-showcase { padding: 32px 20px; border-radius: 22px; }
  .language-list { gap: 8px; }
  .language-list li { font-size: 12px; min-height: 34px; padding: 7px 10px 7px 8px; }
}

/* ─────────────────────────────────────────────
   POLISH LAYER · flourish, glow, motion
   Additive overrides — placed last so they win.
   ───────────────────────────────────────────── */

/* ── Display headline: gradient-tinted italic accent ── */
h1.display em,
h2.section em {
  background: linear-gradient(115deg, var(--accent) 0%, var(--accent-bright) 45%, var(--gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@supports not (background-clip: text) {
  h1.display em, h2.section em { color: var(--accent); -webkit-text-fill-color: currentColor; }
}

/* ── Nav: animated underline + sharper hover ── */
nav.top .links a:not(.cta-pill):not(.theme-toggle) {
  position: relative;
  padding: 6px 0;
}
nav.top .links a:not(.cta-pill):not(.theme-toggle)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
  transition: right .35s cubic-bezier(.4,.0,.2,1);
}
nav.top .links a:not(.cta-pill):not(.theme-toggle):hover::after,
nav.top .links a:not(.cta-pill):not(.theme-toggle).active::after {
  right: 0;
}

/* ── CTA: shimmer sweep + glow ring ── */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.4,.0,.2,1);
  pointer-events: none;
  z-index: -1;
}
.cta-pill:hover::before { transform: translateX(120%); }
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s cubic-bezier(.4,.0,.2,1);
  pointer-events: none;
  z-index: -1;
}
.cta:hover::before { transform: translateX(120%); }
.cta:hover { box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-soft); }
.final-frame .cta:hover { box-shadow: 0 24px 60px rgba(200, 152, 96, .35), 0 0 0 4px rgba(200, 152, 96, .2); }

/* ── cta-link arrow trail ── */
.cta-link svg { transition: transform .25s cubic-bezier(.4,.0,.2,1); }
.cta-link:hover svg { transform: translateX(3px); }

/* ── Pill (launching date): subtle glowing ring + animated dot ── */
.pill {
  position: relative;
  isolation: isolate;
}
.pill::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent 0%, var(--accent-soft) 35%, var(--gold-soft) 55%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
  z-index: -1;
}
.pill .pill-tag { position: relative; }
.pill .pill-tag::after {
  content: '';
  position: absolute;
  top: 50%; right: -6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0;
}

/* ── Section eyebrow: pulsing accent dot ── */
.section-eyebrow {
  position: relative;
}
.section-eyebrow::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 2px;
  opacity: 0.4;
  box-shadow: 0 0 8px currentColor;
  animation: eyebrowPulse 2.6s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50%      { opacity: 1;    transform: scale(1.18); }
}

/* ── Stat-band: numeric glow + accent underline on hover ── */
.stat-band .cell { transition: background .35s ease; }
.stat-band .cell:hover {
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 80%);
}
.stat-band .cell .num {
  position: relative;
  display: inline-block;
}
.stat-band .cell:hover .num::after {
  width: 100%;
}
.stat-band .cell .num::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 999px;
  transition: width .45s cubic-bezier(.4,.0,.2,1);
}

/* ── Universal card halo on hover ── */
.lib-card, .bento .chip, .w-prev, .stats-card, .sync-card,
.stat-mini, .press-card, .spec, .privacy-item {
  position: relative;
  isolation: isolate;
}
.lib-card::after, .bento .chip::after, .w-prev::after,
.stats-card::after, .sync-card::after, .stat-mini::after, .press-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 0% 0%, var(--accent-soft), transparent 50%),
              radial-gradient(120% 80% at 100% 100%, var(--gold-soft), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.lib-card:hover::after, .bento .chip:hover::after, .w-prev:hover::after,
.stats-card:hover::after, .sync-card:hover::after,
.stat-mini:hover::after, .press-card:hover::after { opacity: 1; }

/* ── Stats card: stronger lift on hover ── */
.stats-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.stats-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }

/* ── Bars: entrance grow + glow on hover ── */
.bars li {
  transform-origin: bottom;
  animation: barGrow .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(var(--bar-i, 0) * 60ms);
}
@keyframes barGrow {
  from { transform: scaleY(0.02); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.bars li { box-shadow: 0 0 0 transparent; }
.bars li:hover {
  filter: brightness(1.08);
  box-shadow: 0 -6px 12px var(--accent-soft);
}
.bars li.gold:hover { box-shadow: 0 -6px 12px var(--gold-soft); }
@media (prefers-reduced-motion: reduce) {
  .bars li { animation: none; }
}

/* Provide a staggered index to bar children via :nth-child for the most common rows */
.bars li:nth-child(1)  { --bar-i: 1; }
.bars li:nth-child(2)  { --bar-i: 2; }
.bars li:nth-child(3)  { --bar-i: 3; }
.bars li:nth-child(4)  { --bar-i: 4; }
.bars li:nth-child(5)  { --bar-i: 5; }
.bars li:nth-child(6)  { --bar-i: 6; }
.bars li:nth-child(7)  { --bar-i: 7; }
.bars li:nth-child(8)  { --bar-i: 8; }
.bars li:nth-child(9)  { --bar-i: 9; }
.bars li:nth-child(10) { --bar-i: 10; }
.bars li:nth-child(11) { --bar-i: 11; }
.bars li:nth-child(12) { --bar-i: 12; }

/* ── Donut chart: soft outer halo ── */
.donut-wrap::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, var(--accent-soft), transparent 65%);
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
}
.donut-wrap { isolation: isolate; }

/* ── Series strip: pulse missing volumes ── */
.series-strip .vol.miss {
  animation: missPulse 2.6s ease-in-out infinite;
}
@keyframes missPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; border-color: var(--accent); }
  50%      { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent-bright); }
}
@media (prefers-reduced-motion: reduce) { .series-strip .vol.miss { animation: none; } }

/* ── Cover sheen sweep on hover (m-cover & hc-cover) ── */
.m-cover, .hc-cover { isolation: isolate; }
.m-cover::before, .hc-cover::before {
  content: '';
  position: absolute;
  top: -25%; bottom: -25%;
  left: -40%;
  width: 35%;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,0.32) 50%, transparent 75%);
  transform: skewX(-18deg) translateX(-120%);
  transition: transform 1.1s cubic-bezier(.25,.8,.2,1);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}
.m-cover:hover::before { transform: skewX(-18deg) translateX(400%); }
.hc-card:hover .hc-cover::before { transform: skewX(-18deg) translateX(420%); }

/* ── Lib-card micro tags: accent on parent hover ── */
.lib-card:hover .micro span,
.lib-card:hover .mini-stat { background: var(--accent-soft); color: var(--accent); }
.lib-card .micro span, .lib-card .mini-stat { transition: background .3s ease, color .3s ease; }

/* ── Bento chip format pill: gradient ── */
.bento .chip .fmt {
  background: linear-gradient(120deg, var(--accent-soft), var(--gold-soft));
  transition: transform .25s ease, color .25s ease;
}
.bento .chip:hover .fmt { transform: translateY(-1px); }

/* ── Widget tag: subtle accent stripe ── */
.w-prev .w-tag {
  padding: 2px 0;
  background: linear-gradient(90deg, var(--ink-faint), transparent);
  -webkit-background-clip: text;
  background-clip: text;
}

/* ── Spec cells: hover with accent edge ── */
.spec {
  transition: background .25s ease, transform .25s ease;
  position: relative;
}
.spec::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  transition: width .3s ease;
}
.spec:hover { background: var(--bg-tint); }
.spec:hover::before { width: 3px; }
.spec:hover .val { color: var(--accent); }
.spec .val { transition: color .25s ease; }

/* ── FAQ summary: gentle hover background + smoother indicator ── */
.faq details {
  border-radius: 12px;
  padding-left: 14px;
  padding-right: 14px;
  margin: 0 -14px;
  transition: background .25s ease;
}
.faq details:hover { background: var(--accent-soft); }
.faq details[open] { background: var(--accent-soft); }
.faq summary::after {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 18px;
  transition: transform .3s ease, background .25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  content: '+';
  background: var(--accent);
  color: #fff;
}

/* ── FAQ category buttons: shimmer underline on active ── */
.faq-cat-btn {
  position: relative;
  overflow: hidden;
}
.faq-cat-btn.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shimmer 2.6s ease-in-out infinite;
  animation-delay: .4s;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { transform: translateX(-120%); }
  60%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* ── Brand img: subtle parallax glow on nav hover ── */
.brand:hover .brand-img {
  box-shadow: 0 2px 12px var(--accent-soft), 0 0 0 1px var(--accent);
}
.brand-img { transition: box-shadow .25s ease, transform .25s ease; }
.brand:hover .brand-img { transform: rotate(-3deg) scale(1.04); }

/* ── Stat-mini: ico halo on hover ── */
.stat-mini .ico { position: relative; transition: transform .25s ease; }
.stat-mini:hover .ico { transform: scale(1.18) rotate(6deg); color: var(--gold); }

/* ── Provider rows in capture flow: animated dot pulse ── */
.provider-row .dot { animation: providerPing 1.6s ease-in-out infinite; }
.provider-row:nth-child(2n) .dot { animation-delay: .2s; }
.provider-row:nth-child(3n) .dot { animation-delay: .45s; }
.provider-row:nth-child(4n) .dot { animation-delay: .7s; }
@keyframes providerPing {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px var(--good); }
  50%      { transform: scale(1.25); box-shadow: 0 0 14px var(--good); }
}

/* ── Globe label: subtle drift ── */
.globe-label {
  animation: labelDrift 7s ease-in-out infinite;
}
@keyframes labelDrift {
  0%, 100% { transform: translate(-50%, calc(-50% + 170px)); }
  50%      { transform: translate(-50%, calc(-50% + 175px)); }
}

/* ── Privacy items: gold edge on hover ── */
.privacy-item {
  transition: transform .25s, background .25s, border-color .25s, box-shadow .35s;
}
.privacy-item:hover {
  border-color: rgba(200, 152, 96, 0.28);
  box-shadow: 0 14px 36px rgba(200, 152, 96, 0.12);
}
.privacy-item .picon-wrap { transition: transform .3s ease; }
.privacy-item:hover .picon-wrap { transform: rotate(-6deg) scale(1.08); }

/* ── Language tags: shimmer on hover ── */
.language-list li {
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.language-list li:hover {
  transform: translateY(-1px);
  background: rgba(200, 152, 96, 0.22);
  border-color: rgba(200, 152, 96, 0.45);
}

/* ── Final-frame: animated gold halo perimeter ── */
.final-frame {
  isolation: isolate;
}
.final-frame::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg,
    var(--gold) 0deg,
    transparent 60deg,
    transparent 180deg,
    var(--accent) 240deg,
    transparent 300deg,
    var(--gold) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.35;
  animation: haloSpin 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes haloSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .final-frame::after { animation: none; }
}

/* ── Scroll progress (top hairline) ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: transparent;
}
.scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 8px var(--accent-soft);
  transition: width .12s linear;
}

/* ── Improved focus rings ── */
:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.cta:focus-visible, .cta-pill:focus-visible, .contact-email-cta:focus-visible {
  outline-offset: 4px;
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-soft);
}

/* ── Marquee: stronger edge fade so covers feather in ── */
.marquee::before, .marquee::after { width: 240px; }
.m-cover { transition: transform .3s ease, box-shadow .3s ease; }
.m-cover:hover {
  transform: translateY(-4px) rotate(-1.5deg);
  box-shadow: 0 18px 32px rgba(10, 21, 48, .28);
  z-index: 2;
}

/* ── Scanline bloom ── */
.scanner-mock .scanline {
  filter: drop-shadow(0 0 6px var(--gold));
}
.scanner-mock {
  background:
    radial-gradient(ellipse at center, rgba(200,152,96,0.08), transparent 70%),
    #000;
}

/* ── Step indicator: subtle inner glow when active ── */
.step.active {
  background: linear-gradient(140deg, rgba(91, 128, 240, 0.22), rgba(200, 152, 96, 0.10));
}
.step.active .step-num {
  box-shadow: 0 0 0 4px rgba(200, 152, 96, 0.18);
}

/* ── Section transitions: gradient hairline between sections ── */
section + section {
  border-top: none;
  background-image:
    linear-gradient(90deg, transparent 0%, var(--rule) 20%, var(--rule-strong) 50%, var(--rule) 80%, transparent 100%);
  background-size: 100% 1px;
  background-position: 0 0;
  background-repeat: no-repeat;
}

/* ── Reduced motion: bring back static defaults for the louder additions ── */
@media (prefers-reduced-motion: reduce) {
  .section-eyebrow::after { animation: none; opacity: 0.5; }
  .provider-row .dot { animation: none; }
  .globe-label { animation: none; }
  .cta::before { display: none; }
  .m-cover::before, .hc-cover::before { display: none; }
  .faq-cat-btn.active::before { display: none; }
}

