/* ════════════════════════════════════════════════════════════════════
   NeuraPBX — v2 · Dark neon / glassmorphism
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #070a18;
  --bg-2: #0a0f22;
  --glass: rgba(20, 26, 51, 0.45);
  --glass-strong: rgba(20, 26, 51, 0.75);
  --border: rgba(148, 163, 222, 0.12);
  --border-hover: rgba(148, 163, 222, 0.28);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --text: #f1f5f9;
  --text-sub: rgba(226, 232, 240, 0.78);
  --text-muted: #8b96c9;
  --grad: linear-gradient(120deg, #8b5cf6, #6366f1 45%, #22d3ee);
  --radius: 20px;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 92, 246, 0.4); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container.narrow { width: min(820px, 92%); }

code {
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 0.85em;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

/* ─── Aurora background ──────────────────────────────────────────── */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  filter: blur(90px) saturate(130%);
}
.aurora-blob {
  position: absolute; border-radius: 50%;
  opacity: 0.35; mix-blend-mode: screen;
  animation: drift 26s var(--ease) infinite alternate;
}
.blob-a { width: 55vw; height: 55vw; background: #4c1d95; top: -22vw; left: -12vw; }
.blob-b { width: 44vw; height: 44vw; background: #0e7490; bottom: -18vw; right: -10vw; animation-delay: -8s; animation-duration: 32s; }
.blob-c { width: 30vw; height: 30vw; background: #312e81; top: 38%; left: 56%; animation-delay: -16s; animation-duration: 38s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6vw, -4vh) scale(1.12); }
  100% { transform: translate(-5vw, 5vh) scale(0.95); }
}

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 0.78em 1.7em; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; color: var(--text);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
}
.btn-glow {
  background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
  animation: grad-shift 6s ease infinite;
}
.btn-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 44px rgba(139, 92, 246, 0.55); }
.btn-ghost {
  background: rgba(148, 163, 222, 0.08);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(148, 163, 222, 0.14); transform: translateY(-3px); }
.btn-lg { padding: 0.95em 2.1em; font-size: 1.02rem; }

@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  padding: 18px 0;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(7, 10, 24, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border), 0 12px 40px rgba(0, 0, 0, 0.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { height: 38px; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  color: var(--text-sub); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  position: relative; transition: color 0.25s;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width 0.35s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-cta { font-size: 0.88rem; padding: 0.6em 1.4em; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10, 15, 34, 0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 1rem 4%; width: 100%; }
  .nav-links .nav-cta { margin: 0.8rem 4% 1.2rem; width: auto; }
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: 168px 0 96px; min-height: 92vh; display: flex; align-items: center; }
#neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.85; }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center;
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 0;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.pill {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-sub);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.45em 1.1em;
  background: var(--glass); backdrop-filter: blur(10px);
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 12px #34d399; animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin: 1.3rem 0 1.4rem;
}
.gradient-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: grad-shift 5s ease infinite;
}
.caret { color: var(--cyan); font-weight: 300; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* Reserve a constant width for the typewriter word (widest ≈ 5.05em) so the changing
   word never rewraps the second line and shifts the whole page up/down. */
.type-wrap { display: inline-block; min-width: 5.4em; text-align: left; }

.hero-sub { font-size: 1.08rem; color: var(--text-sub); max-width: 36rem; }
.hero-sub strong { color: #a5f3fc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }

.hero-stats { display: flex; gap: 2.6rem; margin-top: 2.8rem; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-head); font-size: 2.1rem; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.74rem; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }

/* hero visual */
.hero-visual { position: relative; }
.float-wrap { position: relative; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-14px); } }
.hero-img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid var(--border-hover);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(139, 92, 246, 0.18);
}
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 0.5em;
  font-size: 0.74rem; font-weight: 700; color: var(--text);
  background: var(--glass-strong); border: 1px solid var(--border-hover);
  backdrop-filter: blur(14px); padding: 0.55em 1em; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: chip-bob 5s ease-in-out infinite;
}
.float-chip i { color: var(--cyan); }
.chip-1 { top: -18px; right: 8%; animation-delay: 0.4s; }
.chip-2 { bottom: 16%; left: -26px; animation-delay: 1.4s; }
.chip-2 i { color: #34d399; }
.chip-3 { bottom: -16px; right: 14%; animation-delay: 2.2s; }
.chip-3 i { color: #a78bfa; }
@keyframes chip-bob { 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
  .hero { padding-top: 130px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { gap: 1.6rem; flex-wrap: wrap; }
  .float-chip { display: none; }
}

/* ─── Marquee ────────────────────────────────────────────────────── */
.marquee-section { padding: 1.5rem 0 0; }
.marquee-label {
  text-align: center; font-size: 0.68rem; letter-spacing: 0.28em;
  color: var(--text-muted); margin-bottom: 1.2rem; font-weight: 700;
}
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: scroll-x 36s linear infinite;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--text-muted);
  padding: 0.4rem 0 1rem;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ─── Sections ───────────────────────────────────────────────────── */
.section { padding: 7rem 0; position: relative; }
.section-head { max-width: 46rem; margin-bottom: 3.6rem; }
.eyebrow {
  font-family: 'Cascadia Code', Consolas, monospace; font-size: 0.78rem;
  letter-spacing: 0.18em; color: var(--cyan); font-weight: 600;
}
.section-head h2 {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 900; line-height: 1.14; letter-spacing: -0.015em; margin: 0.9rem 0 1.1rem;
}
.section-head p { color: var(--text-sub); font-size: 1.02rem; }

/* ─── Bento grid ─────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.bento-card {
  grid-column: span 1;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}
.bento-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.4s;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(139, 92, 246, 0.1);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.18));
  border: 1px solid var(--border-hover);
  color: #c4b5fd; font-size: 1.15rem; margin-bottom: 1.1rem;
}
.bento-card h3 { font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; margin-bottom: 0.55rem; }
.bento-card p { font-size: 0.88rem; color: var(--text-sub); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  color: #a5f3fc; background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px; padding: 0.28em 0.85em;
}

@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento-card.span-2 { grid-column: span 1; } }

/* ─── AI showcases ───────────────────────────────────────────────── */
.ai-section {
  background:
    radial-gradient(800px 420px at 12% 0%, rgba(139, 92, 246, 0.09), transparent),
    radial-gradient(800px 420px at 88% 100%, rgba(34, 211, 238, 0.07), transparent);
}
.showcase {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 4rem; align-items: center;
  margin-bottom: 5.5rem;
}
.showcase.flip .showcase-copy { order: 2; }
.showcase.flip .showcase-visual { order: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.78rem; font-weight: 700; border-radius: 999px; padding: 0.45em 1.1em;
}
.chip-violet { color: #c4b5fd; background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.35); }
.chip-cyan { color: #67e8f9; background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3); }
.showcase-copy h3 {
  font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 850; line-height: 1.18; margin: 1rem 0 0.9rem;
}
.showcase-copy > p { color: var(--text-sub); }
.check-list { list-style: none; margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-sub); font-size: 0.94rem; }
.check-list li::before {
  content: '✓'; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 900;
  background: var(--grad); color: #fff; margin-top: 2px;
}
.showcase-visual img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  border: 1px solid var(--border-hover);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(34, 211, 238, 0.08);
}

@media (max-width: 920px) {
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 2.2rem; }
  .showcase.flip .showcase-copy { order: 1; }
  .showcase.flip .showcase-visual { order: 2; }
}

/* ─── AI cards ───────────────────────────────────────────────────── */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 1rem; }
.ai-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.7rem; backdrop-filter: blur(16px);
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}
.ai-card:hover { border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 20px 56px rgba(0,0,0,0.45), 0 0 36px rgba(139,92,246,0.12); }
.ai-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.ai-card-head i { font-size: 1.35rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ai-card h4 { font-family: var(--font-head); font-size: 1.02rem; font-weight: 800; margin-bottom: 0.45rem; }
.ai-card p { font-size: 0.85rem; color: var(--text-sub); }

.switch {
  width: 40px; height: 22px; border-radius: 999px; position: relative; display: inline-block;
  background: rgba(148, 163, 222, 0.2); transition: background 0.3s;
}
.switch.on { background: var(--grad); box-shadow: 0 0 14px rgba(139, 92, 246, 0.5); }
.knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: left 0.3s var(--ease);
}
.switch.on .knob { left: 21px; }

@media (max-width: 920px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ai-grid { grid-template-columns: 1fr; } }

/* ─── Privacy / Local AI ─────────────────────────────────────────── */
.privacy-section { padding-top: 2rem; }

.chip-green { color: #6ee7b7; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.35); }

.privacy-card {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.4rem; align-items: center;
  border-radius: 26px; padding: 3.2rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background:
    radial-gradient(620px 300px at 0% 0%, rgba(16, 185, 129, 0.10), transparent),
    radial-gradient(620px 300px at 100% 100%, rgba(139, 92, 246, 0.10), transparent),
    var(--glass-strong);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(16, 185, 129, 0.06);
}
.privacy-copy h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 900; line-height: 1.15; margin: 1rem 0 1rem;
}
.privacy-copy > p { color: var(--text-sub); }
.privacy-copy strong { color: #a7f3d0; }
.privacy-copy .check-list li::before { background: linear-gradient(135deg, #10b981, #22d3ee); }
.privacy-copy .check-list li strong { color: var(--text); }

.privacy-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.privacy-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem 1rem;
  background: rgba(10, 15, 34, 0.5);
}
.privacy-stat:last-of-type { grid-column: span 2; }
.privacy-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 900; }
.privacy-label { font-size: 0.74rem; color: var(--text-muted); line-height: 1.45; margin-top: 0.3rem; }
.privacy-note {
  grid-column: span 2;
  font-size: 0.82rem; color: var(--text-sub); line-height: 1.55;
  border: 1px solid rgba(16, 185, 129, 0.25); border-radius: 14px;
  background: rgba(16, 185, 129, 0.06); padding: 1rem 1.2rem;
}
.privacy-note i { color: #34d399; margin-right: 0.5rem; }

@media (max-width: 920px) {
  .privacy-card { grid-template-columns: 1fr; padding: 2.2rem; gap: 2.2rem; }
}

/* ─── Pricing ────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; align-items: stretch; }
.tier {
  display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; backdrop-filter: blur(16px); position: relative;
  transition: transform 0.45s var(--ease), border-color 0.35s, box-shadow 0.45s var(--ease);
}
.tier:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: 0 26px 64px rgba(0, 0, 0, 0.45); }
.tier.featured {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 24px 70px rgba(139, 92, 246, 0.18);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.10), var(--glass));
}
.tier-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--grad); color: #fff; border-radius: 999px; padding: 0.35em 1.1em;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45); white-space: nowrap;
}
.tier h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 0.4rem; margin: 0.7rem 0 1.2rem; }
.amount {
  font-family: var(--font-head); font-size: 2.3rem; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.per { font-size: 0.78rem; color: var(--text-muted); }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; flex: 1; margin-bottom: 1.6rem; }
.tier li { font-size: 0.84rem; color: var(--text-sub); padding-left: 1.4rem; position: relative; }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }
.tier .btn { width: 100%; }
.fine { text-align: center; color: var(--text-muted); font-size: 0.84rem; margin-top: 1.6rem; }

@media (max-width: 1024px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .tiers { grid-template-columns: 1fr; } }

.ai-pricing {
  margin-top: 3.2rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--glass); backdrop-filter: blur(16px); padding: 2.2rem;
}
.ai-pricing-head h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 850; }
.ai-pricing-head h3 i { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-right: 0.4rem; }
.ai-pricing-head .muted { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; margin-left: 0.5rem; }
.ai-pricing-head p { color: var(--text-sub); font-size: 0.92rem; margin-top: 0.4rem; }
.ai-bundle-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
.bundle {
  border: 1px solid var(--border); border-radius: 16px; padding: 1.3rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.bundle:hover { transform: translateY(-5px); border-color: var(--border-hover); }
.featured-bundle { border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.05); }
.bundle-name { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; }
.bundle-price { font-family: var(--font-head); font-size: 1.7rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.bundle-price small { font-size: 0.7rem; -webkit-text-fill-color: var(--text-muted); font-weight: 600; margin-left: 0.3rem; }
.bundle-feat { font-size: 0.78rem; color: var(--text-sub); }
.ai-pricing .fine { margin-top: 1.4rem; }

@media (max-width: 820px) { .ai-bundle-row { grid-template-columns: 1fr; } }

/* ─── Perpetual (offline, no-AI) licenses — same card look as the tiers ─── */
.perp-block { margin-top: 3.4rem; }
.perp-head { margin-bottom: 2.2rem; }
/* 5 capacity tiers — reuse .tier styling, just tighten to fit five across */
.perp-terms {
  max-width: 46rem; margin: 1.5rem auto 0; text-align: left;
  font-size: 0.78rem; line-height: 1.65; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 1.2rem;
}
.perp-terms strong { color: var(--text-sub); font-weight: 700; }
.perp-terms a { color: var(--cyan); text-decoration: none; }
.perp-terms a:hover { text-decoration: underline; }
.perp-tiers { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.perp-tiers .tier { padding: 1.7rem 1.25rem; }
.perp-tiers .amount { font-size: 1.95rem; }
@media (max-width: 1100px) { .perp-tiers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .perp-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .perp-tiers { grid-template-columns: 1fr; } }

/* ─── Legal / Terms page ─────────────────────────────────────────── */
.legal { padding: 7.5rem 0 5rem; }
.legal h1 { font-family: var(--font-head); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; letter-spacing: -0.02em; margin: 0.5rem 0 0.3rem; }
.legal-updated { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 2.2rem; }
.legal-lead { color: var(--text-sub); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2.4rem; }
.legal h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin: 2.6rem 0 0.9rem; }
.legal p { color: var(--text-sub); line-height: 1.75; margin: 0 0 1rem; font-size: 0.96rem; }
.legal ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin: 0.4rem 0 1.6rem; }
.legal li { color: var(--text-sub); font-size: 0.95rem; line-height: 1.65; padding-left: 1.5rem; position: relative; }
.legal li::before { content: '—'; position: absolute; left: 0; color: var(--cyan); }
.legal strong { color: var(--text); font-weight: 700; }
.legal-note { font-size: 0.86rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 1.4rem; margin-top: 2.6rem; }
.legal a { color: var(--cyan); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

/* ─── Hardware requirements page ──────────────────────────────────── */
.hw h2 { margin-top: 2.6rem; }
.hw-callout {
  border: 1px solid rgba(139, 92, 246, 0.35); background: rgba(139, 92, 246, 0.07);
  border-radius: 14px; padding: 1.4rem 1.6rem; margin: 1.9rem 0 1rem;
}
.hw-callout h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 800; margin-bottom: 0.8rem; color: var(--text); }
.hw-callout ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 0; }
.hw-callout li { color: var(--text-sub); font-size: 0.93rem; line-height: 1.6; padding-left: 1.4rem; position: relative; }
.hw-callout li::before { content: '▹'; position: absolute; left: 0; color: #8b5cf6; }
.hw-callout strong { color: var(--text); }
.hw-callout em { color: #a5f3fc; font-style: normal; font-weight: 600; }
.spec-wrap { overflow-x: auto; margin: 1.2rem 0 2rem; border: 1px solid var(--border); border-radius: 14px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; min-width: 660px; }
.spec-table th, .spec-table td { padding: 0.72rem 1.05rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.spec-table thead th { background: rgba(139, 92, 246, 0.14); color: var(--text); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.spec-table td { color: var(--text-sub); }
.spec-table td:first-child { font-family: var(--font-head); font-weight: 800; color: var(--text); }
.spec-table .cap { color: var(--text-muted); font-weight: 600; }
.hw-link-row { text-align: center; margin-top: 0.8rem; }
.hw-link-row a { color: var(--cyan); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.hw-link-row a:hover { text-decoration: underline; }

/* ═══ Storefront: cart, account, auth, toast ═══════════════════════════ */
.npbx-navactions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.6rem; }
.npbx-navbtn {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(148,163,184,0.10); border: 1px solid var(--border); color: var(--text-sub);
  border-radius: 999px; padding: 0.5rem 0.85rem; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.npbx-navbtn:hover { color: var(--text); border-color: var(--border-hover); }
.npbx-cart-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font-size: 0.68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(148,163,184,0.25); color: var(--text-sub);
}
.npbx-cart-count.has { background: var(--grad); color: #fff; }
@media (max-width: 640px) { .npbx-acct-label { display: none; } }

/* drawer + modal shared */
.npbx-overlay { position: fixed; inset: 0; background: rgba(3,6,15,0.66); backdrop-filter: blur(3px); z-index: 300; }
.npbx-x { background: none; border: none; color: var(--text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.npbx-x:hover { color: var(--text); }
.npbx-empty { color: var(--text-muted); font-size: 0.92rem; padding: 1rem 0; }

/* cart drawer */
.npbx-drawer-wrap[hidden] { display: none; }
.npbx-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 92vw); z-index: 301;
  background: #0b1024; border-left: 1px solid var(--border); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.32s var(--ease); box-shadow: -30px 0 80px rgba(0,0,0,0.5); }
.npbx-drawer-wrap.open .npbx-drawer { transform: translateX(0); }
.npbx-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--border); }
.npbx-drawer-head h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; }
.npbx-cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.npbx-item { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 0.8rem; }
.npbx-item-top { display: flex; justify-content: space-between; gap: 1rem; }
.npbx-item-name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.npbx-item-sub { color: var(--text-muted); font-size: 0.78rem; margin-top: 2px; }
.npbx-item-right { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.npbx-item-price { font-family: var(--font-head); font-weight: 800; color: var(--text); }
.npbx-remove { background: none; border: none; color: var(--text-muted); font-size: 1.15rem; cursor: pointer; }
.npbx-remove:hover { color: #f87171; }
.npbx-mid { display: block; margin-top: 0.7rem; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.npbx-mid input, .npbx-auth-form input {
  width: 100%; margin-top: 0.35rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 0.75rem; color: var(--text); font-size: 0.9rem; font-family: inherit;
}
.npbx-mid input { font-family: 'SF Mono', Consolas, monospace; letter-spacing: 0.5px; text-transform: none; }
.npbx-mid input:focus, .npbx-auth-form input:focus { outline: none; border-color: var(--cyan); }
.npbx-drawer-foot { border-top: 1px solid var(--border); padding: 1.2rem 1.5rem; }
.npbx-cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; color: var(--text-sub); }
.npbx-total-val { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--text); }
.npbx-checkout { width: 100%; }
.npbx-cart-note { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.8rem; line-height: 1.5; }

/* auth modal */
.npbx-modal-wrap[hidden] { display: none; }
.npbx-modal { position: fixed; z-index: 301; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: min(400px, 92vw); background: #0b1024; border: 1px solid var(--border); border-radius: 20px; padding: 1.8rem;
  opacity: 0; transition: opacity 0.28s, transform 0.28s var(--ease); }
.npbx-modal-wrap.open .npbx-modal { opacity: 1; transform: translate(-50%, -50%); }
.npbx-modal .npbx-x { position: absolute; top: 0.9rem; right: 1.1rem; }
.npbx-auth-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin-bottom: 1.2rem; }
.npbx-auth-form { display: flex; flex-direction: column; gap: 0.7rem; }
.npbx-auth-submit { margin-top: 0.4rem; }
.npbx-auth-err { color: #fca5a5; font-size: 0.82rem; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); border-radius: 8px; padding: 0.5rem 0.7rem; }
.npbx-auth-switch { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.npbx-auth-switch a { color: var(--cyan); text-decoration: none; }
.npbx-social { display: flex; flex-direction: column; gap: 0.6rem; }
.npbx-social:empty { display: none; }
.npbx-social-btn { display: flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.7rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.04); color: var(--text); font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: border-color 0.25s, background 0.25s; }
.npbx-social-btn:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.08); }
.npbx-social-btn i { font-size: 1rem; }
.npbx-or { display: flex; align-items: center; text-align: center; color: var(--text-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 1rem 0 0.2rem; }
.npbx-or[hidden] { display: none; }
.npbx-or::before, .npbx-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.npbx-or span { padding: 0 0.8rem; }

/* toast */
.npbx-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 400;
  background: #0e1430; border: 1px solid var(--border-hover); border-radius: 12px; padding: 0.7rem 1.1rem;
  color: var(--text); font-size: 0.88rem; font-weight: 600; opacity: 0; transition: opacity 0.3s, transform 0.3s var(--ease);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.npbx-toast.in { opacity: 1; transform: translate(-50%, 0); }
.npbx-toast.err { border-color: rgba(248,113,113,0.5); }

/* account page */
#npbx-account-root h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.npbx-account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.8rem; }
.npbx-account-email { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.npbx-account-signin { padding: 1rem 0 3rem; }
.npbx-account-signin p { color: var(--text-sub); margin: 0.6rem 0 1.4rem; }
.npbx-account-btns { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.npbx-success { background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.4); color: #67e8f9; border-radius: 12px; padding: 0.8rem 1.1rem; font-size: 0.92rem; margin-bottom: 1.6rem; }
.npbx-order { border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.npbx-order-head { display: flex; align-items: center; gap: 0.9rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.npbx-order-head > span:first-child { font-family: var(--font-head); font-weight: 800; color: var(--text); }
.npbx-order-date { margin-left: auto; }
.npbx-badge { padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.npbx-badge.ok { color: #6ee7b7; background: rgba(16,185,129,0.15); }
.npbx-badge.pend { color: #fcd34d; background: rgba(251,191,36,0.15); }
.npbx-lic { border-top: 1px solid var(--border); padding-top: 0.8rem; margin-top: 0.8rem; }
.npbx-lic:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.npbx-lic-meta { font-size: 0.8rem; color: var(--text-sub); margin-bottom: 0.5rem; }
.npbx-lic-key { display: flex; align-items: center; gap: 0.6rem; }
.npbx-lic-key code { flex: 1; font-family: 'SF Mono', Consolas, monospace; font-size: 0.76rem; color: #67e8f9; background: rgba(34,211,238,0.06); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.7rem; word-break: break-all; }
.npbx-copy { background: rgba(148,163,184,0.12); border: 1px solid var(--border); color: var(--text-sub); border-radius: 8px; padding: 0.45rem 0.8rem; font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.npbx-copy:hover { color: var(--text); border-color: var(--border-hover); }
.npbx-lic-pending { color: var(--text-muted); font-size: 0.84rem; }

/* add-on buttons (perpetual section) + AI-bundle subscribe buttons */
.perp-addons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; justify-content: center; margin: 1.6rem 0 0.7rem; }
.perp-addons-label { font-size: 0.84rem; color: var(--text-muted); font-weight: 600; }
.npbx-addon-btn, .npbx-bundle-btn {
  background: rgba(148,163,184,0.10); border: 1px solid var(--border); color: var(--text-sub);
  border-radius: 999px; padding: 0.5rem 0.95rem; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.npbx-addon-btn:hover, .npbx-bundle-btn:hover { color: var(--text); border-color: var(--border-hover); transform: translateY(-2px); }
.npbx-bundle-btn { margin-top: 0.85rem; width: 100%; }

/* subscribe modal fields + account section headers */
.npbx-sub-form { display: flex; flex-direction: column; gap: 0.9rem; }
.npbx-fld { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.npbx-fld select, .npbx-fld input {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.6rem 0.7rem; color: var(--text); font-size: 0.9rem; font-family: inherit; text-transform: none; letter-spacing: normal;
}
.npbx-fld select:focus, .npbx-fld input:focus { outline: none; border-color: var(--cyan); }
.npbx-fld-mono input { font-family: 'SF Mono', Consolas, monospace; letter-spacing: 0.5px; }
.npbx-sub-summary { display: flex; justify-content: space-between; align-items: baseline; padding-top: 0.6rem; border-top: 1px solid var(--border); color: var(--text-sub); font-size: 0.86rem; }
.npbx-sub-summary strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 900; color: var(--text); }
.npbx-sec { font-family: var(--font-head); font-size: 0.82rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.09em; margin: 2rem 0 1rem; }
.npbx-sec:first-of-type { margin-top: 0.5rem; }

/* cart sections (annual plan vs one-time purchase) */
.npbx-sect + .npbx-sect { border-top: 1px solid var(--border); margin-top: 1.2rem; padding-top: 1.2rem; }
.npbx-sect-h { font-family: var(--font-head); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 0.7rem; }
.npbx-plan { border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.06); }
.npbx-mid select { display: block; width: 100%; margin-top: 0.35rem; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.6rem; color: var(--text); font-size: 0.86rem; font-family: inherit; }
.npbx-mid select:focus { outline: none; border-color: var(--cyan); }
.npbx-sect-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.9rem; }
.npbx-sect-foot .npbx-cart-total { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; }
.npbx-sect-foot .npbx-cart-total span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.npbx-sect-foot .npbx-cart-total strong { font-family: var(--font-head); font-size: 1.3rem; font-weight: 900; color: var(--text); }
.npbx-sect-foot .npbx-cart-total strong small { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); margin-left: 2px; }
.npbx-checkout-ot, .npbx-checkout-sub { white-space: nowrap; flex-shrink: 0; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.9rem; }
.faq {
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--glass); backdrop-filter: blur(14px);
  overflow: hidden; transition: border-color 0.3s;
}
.faq[open] { border-color: rgba(139, 92, 246, 0.4); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 1.5rem; font-family: var(--font-head); font-weight: 700; font-size: 0.99rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--cyan); transition: transform 0.35s var(--ease); flex-shrink: 0; margin-left: 1rem; }
.faq[open] summary i { transform: rotate(45deg); }
.faq p { padding: 0 1.5rem 1.3rem; color: var(--text-sub); font-size: 0.92rem; }

/* ─── CTA / Contact ──────────────────────────────────────────────── */
.cta-section { padding-bottom: 8rem; }
.cta-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.4rem;
  border-radius: 26px; padding: 3.2rem;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(620px 300px at 0% 0%, rgba(139, 92, 246, 0.16), transparent),
    radial-gradient(620px 300px at 100% 100%, rgba(34, 211, 238, 0.1), transparent),
    var(--glass-strong);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}
.cta-copy h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; line-height: 1.15; margin-bottom: 1rem; }
.cta-copy p { color: var(--text-sub); }
.cta-details { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.8rem; font-size: 0.92rem; color: var(--text-sub); }
.cta-details i { color: var(--cyan); width: 22px; }

.cta-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.cta-form input, .cta-form textarea {
  width: 100%; background: rgba(10, 15, 34, 0.65); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1.1rem; color: var(--text);
  font-family: var(--font-body); font-size: 0.92rem; resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-form input:focus, .cta-form textarea:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: var(--text-muted); }
.form-ok { color: #6ee7b7; font-size: 0.88rem; font-weight: 600; }
.form-err { color: #fca5a5; font-size: 0.88rem; font-weight: 600; }
/* Honeypot — removed from view/flow but present in the DOM for bots to fill. */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 880px) {
  .cta-card { grid-template-columns: 1fr; padding: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; background: rgba(7, 10, 24, 0.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { height: 34px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.86rem; max-width: 22rem; }
.socials { display: flex; gap: 0.9rem; margin-top: 1.2rem; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px;
  color: var(--text-sub); border: 1px solid var(--border); text-decoration: none;
  transition: 0.3s;
}
.socials a:hover { color: #fff; border-color: var(--violet); background: rgba(139, 92, 246, 0.15); transform: translateY(-3px); }
.footer-col h5 { font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--text-sub); text-decoration: none; font-size: 0.9rem; padding: 0.32rem 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ─── Reveal animations ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.42s; }

/* tilt perspective */
.tilt { transform-style: preserve-3d; will-change: transform; }

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

/* ─── Download page ──────────────────────────────────────────────── */
.dl-detect { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.8rem; padding: 0.8rem 1.1rem; border: 1px solid rgba(34,211,238,0.35); background: rgba(34,211,238,0.08); border-radius: 12px; color: #67e8f9; font-size: 0.92rem; }
.dl code { font-family: 'SF Mono', Consolas, monospace; font-size: 0.85em; background: rgba(148,163,184,0.12); border: 1px solid var(--border); border-radius: 6px; padding: 0.05rem 0.35rem; color: var(--text-sub); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.6rem 0 0.9rem; }
@media (max-width: 720px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { position: relative; border: 1px solid var(--border); border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); padding: 1.8rem; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.dl-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.dl-card.recommended { border-color: rgba(34,211,238,0.5); box-shadow: 0 24px 60px rgba(34,211,238,0.12); }
.dl-badge { position: absolute; top: -0.72rem; left: 1.6rem; background: var(--grad); color: #fff; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.3rem 0.75rem; border-radius: 999px; }
.dl-arch { font-size: 2rem; color: var(--cyan); margin-bottom: 0.5rem; line-height: 1; }
.dl-card h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin: 0; }
.dl-for { color: var(--text-sub); font-size: 0.92rem; margin: 0.4rem 0 1rem; }
.dl-feat { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; }
.dl-feat li { position: relative; padding-left: 1.5rem; font-size: 0.88rem; color: var(--text-sub); line-height: 1.5; }
.dl-feat li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }
.dl-btn { margin-top: auto; justify-content: center; }
.dl-btn.dl-soon { opacity: 0.7; cursor: default; }
.dl-meta { font-size: 0.78rem; color: var(--text-muted); margin: 0.8rem 0 0; text-align: center; }
.dl-hint { color: var(--text-muted); font-size: 0.9rem; margin: 0.2rem 0 2.4rem; }
.dl-steps { counter-reset: dl; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0 2rem; }
.dl-steps li { position: relative; padding-left: 2.7rem; color: var(--text-sub); font-size: 0.94rem; line-height: 1.6; }
.dl-steps li::before { counter-increment: dl; content: counter(dl); position: absolute; left: 0; top: -0.1rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: rgba(139,92,246,0.16); border: 1px solid rgba(139,92,246,0.4); color: var(--text); font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; }
.dl-steps strong { color: var(--text); }
.dl pre { margin: 0.6rem 0; background: rgba(8,11,22,0.72); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; overflow-x: auto; }
.dl pre code { background: none; border: none; padding: 0; color: #a5f3fc; font-size: 0.82rem; white-space: pre; }
.dl-note { border: 1px solid var(--border); border-radius: 16px; background: var(--glass); padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.dl-note h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 800; margin: 0 0 0.5rem; }
.dl-note h3 i { color: var(--cyan); margin-right: 0.5rem; }
.dl-note p { color: var(--text-sub); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.dl-note-warn { border-color: rgba(251,191,36,0.32); background: rgba(251,191,36,0.06); }
.dl-note-warn h3 i { color: #fcd34d; }
