/* ============================================================
   Next P.O.S. marketing site
   Dark, editorial, BIR-grade clean.
   Color & type system mirrors rt.nextpos-nti.com
   ============================================================ */

:root {
  /* Theme — dark (default) */
  --bg:        #0a0a0b;
  --bg-soft:   #0d0d10;
  --surface:   #111114;
  --surface-2: #16161a;
  --surface-3: #1c1c21;
  --hairline:  rgba(255, 255, 255, 0.07);
  --hairline-2:rgba(255, 255, 255, 0.10);
  --hairline-3:rgba(255, 255, 255, 0.14);

  /* Foreground */
  --fg:        #e8e8ea;
  --fg-2:      #d4d4d8;
  --fg-muted:  #a1a1a8;
  --fg-dim:    #71717b;
  --fg-faint:  #52525c;
  --fg-on-accent: #0a0a0b;

  /* Accent (sky-400) */
  --accent:    #38bdf8;
  --accent-2:  #7dd3fc;
  --accent-d:  #0ea5e9;

  /* Semantic */
  --amber:     #f99c00;
  --amber-2:   #ffd236;
  --emerald:   #00d294;

  /* Theme-aware utility tokens */
  --header-bg-translucent:        rgba(10, 10, 11, 0.72);
  --header-bg-translucent-strong: rgba(10, 10, 11, 0.86);
  --grid-line:    rgba(255, 255, 255, 0.025);
  --surface-tint: rgba(255, 255, 255, 0.015);
  --surface-tint-2: rgba(255, 255, 255, 0.012);
  --hover-tint:   rgba(255, 255, 255, 0.04);
  --hover-tint-2: rgba(255, 255, 255, 0.06);
  --shadow-card:  0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(56, 189, 248, .04);

  /* System */
  --container: 1140px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --header-h:  64px;

  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: dark;
}

/* Theme — light */
:root[data-theme="light"] {
  --bg:        #ffffff;
  --bg-soft:   #fafafa;
  --surface:   #f8f8f9;
  --surface-2: #f3f3f5;
  --surface-3: #ebebed;
  --hairline:  rgba(15, 15, 20, 0.08);
  --hairline-2:rgba(15, 15, 20, 0.12);
  --hairline-3:rgba(15, 15, 20, 0.18);

  --fg:        #0a0a0b;
  --fg-2:      #18181b;
  --fg-muted:  #52525c;
  --fg-dim:    #71717b;
  --fg-faint:  #a1a1a8;
  --fg-on-accent: #ffffff;

  --accent:    #0284c7;   /* sky-600, deeper for AA on white */
  --accent-2:  #0369a1;
  --accent-d:  #075985;

  --amber:     #d97706;
  --amber-2:   #b45309;
  --emerald:   #059669;

  --header-bg-translucent:        rgba(255, 255, 255, 0.78);
  --header-bg-translucent-strong: rgba(255, 255, 255, 0.92);
  --grid-line:    rgba(15, 15, 20, 0.018);
  --surface-tint: rgba(15, 15, 20, 0.02);
  --surface-tint-2: rgba(15, 15, 20, 0.015);
  --hover-tint:   rgba(15, 15, 20, 0.04);
  --hover-tint-2: rgba(15, 15, 20, 0.06);
  --shadow-card:  0 24px 60px -28px rgba(15, 23, 42, .25), 0 0 0 1px rgba(2, 132, 199, .05);

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-width: 320px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
p  { margin: 0; }

::selection { background: rgba(56, 189, 248, .3); color: var(--fg); }
:root[data-theme="light"] ::selection { background: rgba(2, 132, 199, .22); color: var(--fg); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--fg); color: var(--bg); padding: 8px 12px;
  border-radius: 6px; z-index: 100; font-weight: 500;
}
.skip-link:focus { left: 12px; top: 12px; }

.dim { color: var(--fg-dim); }
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 8px;
  --pad-x: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn-lg { --pad-y: 11px; --pad-x: 18px; font-size: 0.975rem; }

.btn-accent {
  background: var(--accent);
  color: var(--fg-on-accent);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--hairline-3);
}
.btn-outline:hover {
  background: var(--hover-tint);
  border-color: var(--hairline-3);
}

.link-quiet {
  color: var(--fg-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.link-quiet:hover { color: var(--fg); background: var(--hover-tint); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--hairline-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.theme-toggle:hover { color: var(--fg); background: var(--hover-tint); border-color: var(--hairline-3); }
.theme-toggle svg { transition: transform .25s var(--ease), opacity .2s var(--ease); }

/* Show the icon for the *target* theme — sun in dark mode, moon in light */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.theme-toggle-wide {
  width: 100%;
  height: auto;
  padding: 12px 14px;
  margin-top: 14px;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--fg-2);
}
.theme-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.theme-toggle-text { font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg-translucent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: var(--header-bg-translucent-strong);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-text {
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--fg);
  letter-spacing: -0.015em;
}
.brand-pos {
  color: var(--accent);
  font-weight: 600;
}

.primary-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
}
.primary-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg-muted);
  padding: 7px 12px;
  border-radius: 6px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.primary-nav a:hover { color: var(--fg); background: var(--hover-tint); }

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

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--hairline-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background .15s var(--ease);
}
.menu-toggle:hover { background: var(--hover-tint); }
.menu-toggle span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 2px;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 400;
  border-bottom: 1px solid var(--hairline);
  color: var(--fg-2);
  font-size: 0.95rem;
}
.mobile-cta { display: flex; gap: 10px; padding-top: 14px; align-items: center; }
.mobile-cta .btn { flex: 1; justify-content: center; }
.mobile-menu[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 360px at 80% -10%, rgba(56, 189, 248, .10), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(56, 189, 248, .05), transparent 60%);
  z-index: 0;
}
:root[data-theme="light"] .hero::before {
  background:
    radial-gradient(720px 380px at 80% -10%, rgba(2, 132, 199, .12), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(2, 132, 199, .06), transparent 60%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.1rem, 4.6vw + 0.3rem, 4rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--fg);
  max-width: 920px;
}

.hero-sub {
  margin-top: 22px;
  max-width: 680px;
  color: var(--fg-muted);
  font-size: 1.025rem;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  color: var(--fg-muted);
}
.meta-item { display: inline-flex; align-items: baseline; gap: 8px; }
.meta-num {
  font-family: 'Geist Mono', monospace;
  font-size: 1.0625rem;
  color: var(--fg);
  font-weight: 500;
}
.meta-label { font-size: 0.875rem; color: var(--fg-muted); }
.meta-sep {
  width: 1px; height: 16px;
  background: var(--hairline-2);
  display: inline-block;
}

/* Hero terminal card */
.hero-card {
  margin-top: 40px;
  position: relative;
}
.terminal {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-tint);
  font-size: 0.82rem;
  color: var(--fg-dim);
}
.term-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--hairline-3);
}
.term-dot:nth-child(1) { background: #ff5f57; opacity: .65; }
.term-dot:nth-child(2) { background: #febc2e; opacity: .65; }
.term-dot:nth-child(3) { background: #28c840; opacity: .65; }
.term-title {
  margin-left: 8px;
  color: var(--fg-muted);
  letter-spacing: -0.005em;
}
.term-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
}

.term-body {
  padding: 18px 20px;
  display: grid;
  gap: 0;
}
.term-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hairline);
  font-size: 0.95rem;
  color: var(--fg-2);
}
.term-row:last-child { border-bottom: 0; }
.term-row .qty { color: var(--fg-dim); font-family: 'Geist Mono', monospace; font-size: 0.85rem; }
.term-row .amt { font-family: 'Geist Mono', monospace; color: var(--fg); }
.term-row.dim { color: var(--fg-dim); font-size: 0.875rem; }
.term-row.dim .amt { color: var(--fg-muted); }
.term-row.total {
  margin-top: 6px;
  padding-top: 14px;
  padding-bottom: 4px;
  border-top: 1px solid var(--hairline-3);
  border-bottom: 0;
  font-size: 1.1rem;
  color: var(--fg);
  font-weight: 500;
}
.term-row.total .amt {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.term-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-tint-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--fg-muted);
  background: var(--surface-tint);
}
.chip svg { color: var(--emerald); }
.chip.mono { font-family: 'Geist Mono', monospace; font-size: 0.7rem; color: var(--fg-dim); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-bordered { border-top: 1px solid var(--hairline); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
}
.kicker {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 1.9vw + 0.9rem, 2.25rem);
  line-height: 1.15;
  font-weight: 500;
}
.section-sub {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 620px;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.product-card:hover {
  border-color: var(--hairline-3);
  background: var(--surface-2);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.product-id { display: inline-flex; align-items: center; gap: 8px; }

.badge {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: 'Geist Mono', monospace;
}
.badge-amber { background: rgba(249,156,0,.12);   color: var(--amber-2); border: 1px solid rgba(249,156,0,.24); }
.badge-sky   { background: rgba(56,189,248,.12);  color: var(--accent);  border: 1px solid rgba(56,189,248,.26); }
:root[data-theme="light"] .badge-amber { background: rgba(217,119,6,.10); color: #b45309; border-color: rgba(217,119,6,.30); }
:root[data-theme="light"] .badge-sky   { background: rgba(2,132,199,.08); color: var(--accent); border-color: rgba(2,132,199,.26); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--surface-tint);
  border: 1px solid var(--hairline-2);
  color: var(--fg-muted);
  font-family: 'Geist Mono', monospace;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fg-dim);
  display: inline-block;
}
.dot-live {
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 210, 148, .15);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 210, 148, .15); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 210, 148, .04); }
}

.product-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.product-desc {
  color: var(--fg-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.product-feats {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  gap: 9px;
}
.product-feats li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--fg-2);
  font-size: 0.91rem;
}
.bullet {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.product-cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: 28px 24px;
  transition: background .2s var(--ease);
}
.feature:hover { background: var(--surface); }
.feature-tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.why-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 1.8vw + 0.9rem, 2.25rem);
  line-height: 1.15;
}
.why-copy p {
  margin-top: 18px;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 620px;
}
.why-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.why-stat {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: 22px;
}
.why-num {
  font-family: 'Geist', sans-serif;
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.why-num span {
  font-size: 0.95rem;
  color: var(--accent);
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 2px;
}
.why-lab {
  margin-top: 10px;
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.industry {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: 22px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.industry:hover { background: var(--surface-2); border-color: var(--hairline-3); }
.industry-tag {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.industry-tag.amber { background: rgba(249,156,0,.10); color: var(--amber-2); border: 1px solid rgba(249,156,0,.20); }
.industry-tag.sky   { background: rgba(56,189,248,.10); color: var(--accent); border: 1px solid rgba(56,189,248,.22); }
:root[data-theme="light"] .industry-tag.amber { background: rgba(217,119,6,.08); color: #b45309; border-color: rgba(217,119,6,.26); }
:root[data-theme="light"] .industry-tag.sky   { background: rgba(2,132,199,.07); color: var(--accent); border-color: rgba(2,132,199,.22); }
.industry h4 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--fg);
}
.industry p { color: var(--fg-muted); font-size: 0.875rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
  padding: 4px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 16px; height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 6l5 5 5-5' fill='none' stroke='%23a1a1a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p {
  padding: 0 0 22px;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 720px;
}

/* ---------- CTA ---------- */
.cta-wrap { text-align: center; }
.cta-wrap h2 {
  font-size: clamp(1.7rem, 2.4vw + 0.9rem, 2.5rem);
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto;
}
.cta-wrap p {
  margin: 16px auto 28px;
  color: var(--fg-muted);
  font-size: 1.025rem;
  max-width: 560px;
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 28px;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 56px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-tag {
  color: var(--fg-muted);
  max-width: 360px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h5 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--fg-muted);
  padding: 5px 0;
  font-size: 0.9rem;
  transition: color .15s var(--ease);
}
.footer-col a:hover { color: var(--fg); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--fg-dim);
  font-size: 0.825rem;
}
.footer-meta { color: var(--fg-faint); font-family: 'Geist Mono', monospace; }

/* ---------- Edition picker modal ---------- */
.edition-modal {
  position: fixed;
  margin: auto;
  max-width: 720px;
  width: calc(100% - 32px);
  padding: 0;
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(56, 189, 248, .04);
  overflow: hidden;
}
.edition-modal::backdrop {
  background: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
:root[data-theme="light"] .edition-modal::backdrop {
  background: rgba(15, 15, 20, 0.30);
}
.edition-modal[open] {
  animation: modalIn .22s var(--ease);
}
.edition-modal[open]::backdrop {
  animation: backdropIn .22s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  z-index: 2;
  transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.modal-close:hover {
  color: var(--fg);
  background: var(--hover-tint);
  border-color: var(--hairline-2);
}

.modal-inner {
  padding: 36px 32px 26px;
}
.modal-head {
  text-align: center;
  margin-bottom: 22px;
}
.modal-head .kicker { display: inline-block; margin-bottom: 12px; }
.modal-head h2 {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal-sub {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

.edition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.edition-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--hairline-2);
  transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease);
}
.edition-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.edition-card-head { display: flex; align-items: center; gap: 8px; }
.edition-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 4px;
  color: var(--fg);
}
.edition-card p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  flex: 1;
}
.edition-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 6px;
}

.modal-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.875rem;
}
.modal-foot a {
  color: var(--accent);
  font-weight: 500;
}
.modal-foot a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .edition-grid { grid-template-columns: 1fr; }
  .modal-inner { padding: 30px 22px 22px; }
  .modal-head h2 { font-size: 1.3rem; }
  .modal-sub { font-size: 0.9rem; }
  .edition-card { padding: 18px; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .dot-live { animation: none; }
  html { scroll-behavior: auto; }
}

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

/* ≤980px — tablet & below: collapse multi-column grids */
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta .link-quiet { display: none; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-side { position: static; grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ≤760px — small tablet / large phone */
@media (max-width: 760px) {
  :root { --header-h: 60px; }

  .container { padding: 0 20px; }

  .hero { padding: 56px 0 48px; }
  .hero-title { letter-spacing: -0.03em; }
  .hero-sub { font-size: 0.975rem; }
  .hero-actions .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .hero-actions .btn-lg { font-size: 0.95rem; }

  .hero-meta { gap: 14px 22px; padding-top: 20px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2,
  .why-copy h2,
  .cta-wrap h2 { font-size: clamp(1.45rem, 5vw, 1.85rem); }

  .product-card { padding: 24px; }
  .feature { padding: 24px 22px; }
  .industry { padding: 20px; }
  .why-stat { padding: 20px; }

  .term-bar { padding: 10px 12px; }
  .term-body { padding: 14px 14px; }
  .term-foot { padding: 10px 12px 12px; }
}

/* ≤620px — phone */
@media (max-width: 620px) {
  .header-inner { gap: 12px; }
  .header-cta { gap: 6px; }
  .brand-text { font-size: 0.92rem; }

  .feature-grid, .industry-grid, .footer-cols { grid-template-columns: 1fr 1fr; }
  .why-side { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .term-row { grid-template-columns: 28px 1fr auto; gap: 10px; font-size: 0.875rem; }
  .term-row.total { font-size: 1rem; }
  .term-row.total .amt { font-size: 1.1rem; }
  .term-title { display: none; }
  .term-foot { gap: 6px; }
  .term-foot .chip:nth-child(3) { display: none; }

  .meta-sep { display: none; }
  .hero-meta { gap: 12px 20px; }
  .meta-num { font-size: 1rem; }
  .meta-label { font-size: 0.825rem; }

  .why-num { font-size: 1.85rem; }
  .why-num span { font-size: 0.875rem; }
}

/* ≤520px — small phone — drop the header CTA, lean on the menu */
@media (max-width: 520px) {
  .header-cta .btn-accent { display: none; }
  .container { padding: 0 18px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .product-cta { gap: 8px; }
  .product-cta .btn { flex: 1 1 calc(50% - 4px); justify-content: center; }

  .cta-actions { gap: 8px; }
  .cta-actions .btn { flex: 1 1 100%; justify-content: center; }

  .faq-item summary { font-size: 0.95rem; gap: 14px; padding: 16px 0; }
  .faq-item p { font-size: 0.9rem; }
}

/* ≤440px — narrow phone — single-column the dense grids */
@media (max-width: 440px) {
  .feature-grid, .industry-grid, .footer-cols, .why-side { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-eyebrow { font-size: 0.75rem; padding: 4px 10px; }
}

/* ≤360px — very small (iPhone SE 1st gen, older Android) */
@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .header-cta { gap: 4px; }
  .term-body { padding: 12px; }
  .term-row { grid-template-columns: 24px 1fr auto; gap: 8px; font-size: 0.8rem; }
  .term-row.dim { font-size: 0.78rem; }
  .term-foot .chip { font-size: 0.7rem; padding: 3px 8px; }
  .product-card, .feature, .why-stat, .industry { padding: 18px; }
  .feature { padding: 20px 18px; }
}
