/* ================================================================
   SnoreGuard — Premium Marketing Site  |  styles.css
   CloudFront-ready static site
   ================================================================ */

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  --bg:          #060b18;
  --bg-card:     #0b1227;
  --bg-elev:     #0f1a35;
  --bg-glass:    rgba(11,18,39,.75);
  --border:      rgba(99,179,237,.12);
  --border-med:  rgba(99,179,237,.25);
  --text:        #e8f1ff;
  --text-dim:    #b0c4de;
  --muted:       #6b84ac;
  --accent:      #3b82f6;
  --accent2:     #22d3ee;
  --green:       #10b981;
  --red:         #ef4444;
  --grad:        linear-gradient(135deg,#3b82f6 0%,#22d3ee 100%);
  --grad-r:      linear-gradient(135deg,#22d3ee 0%,#3b82f6 100%);
  --grad-hero:   linear-gradient(135deg,#1d4ed8 0%,#0891b2 100%);
  --glow:        0 0 60px rgba(59,130,246,.28), 0 0 120px rgba(59,130,246,.1);
  --shadow-card: 0 8px 40px rgba(0,0,0,.5), 0 2px 12px rgba(0,0,0,.3);
  --font:        "Inter","DM Sans",system-ui,-apple-system,sans-serif;
  --display:     "Outfit",var(--font);
  --r:           16px;
  --r-sm:        10px;
  --r-lg:        24px;
  --r-xl:        32px;
  --max:         1160px;
  --nav-h:       70px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; font-size:16px }
body {
  font-family:var(--font);
  line-height:1.68;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
}
a { color:var(--accent); text-decoration:none }
a:hover { text-decoration:underline }
img { display:block; max-width:100%; height:auto; image-rendering:auto }
ul,ol { list-style:none; padding:0 }
p { margin:0 }
h1,h2,h3,h4,h5 {
  font-family:var(--display);
  letter-spacing:-.02em;
  line-height:1.15;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width:6px }
::-webkit-scrollbar-track { background:var(--bg) }
::-webkit-scrollbar-thumb { background:var(--bg-elev); border-radius:3px }

/* ================================================================
   LAYOUT
   ================================================================ */
.layout-page { display:flex; flex-direction:column; min-height:100vh }
.layout-page main { flex:1 }
.container {
  max-width:var(--max);
  margin:0 auto;
  padding-left:1.5rem;
  padding-right:1.5rem;
}

/* ── Section spacing ─────────────────────────────────────────── */
.py-section  { padding:5.5rem 0 }
.pt-section  { padding-top:5.5rem }
.pb-section  { padding-bottom:5.5rem }
.bg-alt      { background:var(--bg-card) }

/* ── Text helpers ────────────────────────────────────────────── */
.text-center  { text-align:center }
.text-muted   { color:var(--muted) }
.text-dim     { color:var(--text-dim) }

/* ================================================================
   NAVIGATION
   ================================================================ */
.site-header {
  position:sticky; top:0; z-index:500;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(6,11,24,.88);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border-bottom:1px solid var(--border);
  transition:background .3s;
}
.site-header.scrolled {
  background:rgba(6,11,24,.97);
  border-color:var(--border-med);
}
.header-inner {
  width:100%; max-width:var(--max);
  margin:0 auto; padding:0 1.5rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
}

/* Logo */
.logo {
  font-family:var(--display); font-weight:800; font-size:1.18rem;
  color:var(--text); letter-spacing:-.03em;
  display:inline-flex; align-items:center; gap:.55rem; flex-shrink:0;
  line-height:1; text-decoration:none;
}
.logo:hover { color:var(--accent2); text-decoration:none; }
.logo-icon {
  width:36px; height:36px; border-radius:9px;
  background:var(--grad); display:grid; place-items:center;
  font-size:1.05rem; flex-shrink:0;
  box-shadow:0 0 16px rgba(59,130,246,.4);
}
.logo-img {
  width:36px; height:36px; border-radius:9px;
  flex-shrink:0; display:block; object-fit:contain;
  box-shadow:0 0 14px rgba(38,166,154,.45);
  align-self:center;
}
.logo span {
  line-height:1; display:inline-block;
  vertical-align:middle;
}

/* Nav links */
.nav-links {
  display:flex; align-items:center; gap:.1rem;
}
.nav-links a {
  color:var(--muted); font-size:.875rem; font-weight:500;
  padding:.5rem .78rem; border-radius:var(--r-sm);
  transition:color .15s, background .15s;
  white-space:nowrap;
}
.nav-links a:hover { color:var(--text); background:rgba(59,130,246,.1); text-decoration:none }
.nav-links a.active { color:var(--accent2); background:rgba(34,211,238,.1) }
.nav-cta {
  background:var(--grad) !important;
  color:#fff !important; font-weight:700 !important;
  padding:.5rem 1.1rem !important;
  border-radius:var(--r-sm) !important;
  box-shadow:0 4px 16px rgba(59,130,246,.3);
  margin-left:.3rem;
}
.nav-cta:hover { filter:brightness(1.1); text-decoration:none !important }

/* Mobile nav */
.nav-toggle {
  display:none;
  background:var(--bg-elev); border:1px solid var(--border);
  color:var(--text); padding:.5rem .8rem;
  border-radius:var(--r-sm); cursor:pointer; font-size:1.1rem;
}
@media(max-width:880px) {
  .nav-toggle { display:block }
  .nav-links {
    display:none; position:absolute; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch;
    background:rgba(6,11,24,.98); backdrop-filter:blur(24px);
    border-bottom:1px solid var(--border-med);
    padding:.8rem 1.25rem 1.2rem; gap:.1rem;
  }
  .nav-links.open { display:flex }
  .nav-links a { padding:.7rem .95rem }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  gap:.45rem; padding:.78rem 1.55rem;
  border-radius:var(--r-sm); font-weight:700; font-size:.92rem;
  border:none; cursor:pointer; text-decoration:none;
  transition:transform .15s, filter .15s, box-shadow .15s;
  white-space:nowrap; line-height:1;
}
.btn:hover { transform:translateY(-2px); text-decoration:none }
.btn-primary {
  background:var(--grad); color:#fff;
  box-shadow:0 4px 20px rgba(59,130,246,.35);
}
.btn-primary:hover { filter:brightness(1.1); box-shadow:0 6px 28px rgba(59,130,246,.5) }
.btn-outline {
  background:transparent; color:var(--text);
  border:1.5px solid rgba(99,179,237,.35);
}
.btn-outline:hover { border-color:rgba(99,179,237,.65); background:rgba(59,130,246,.07) }
.btn-ghost {
  background:var(--bg-elev); color:var(--text);
  border:1px solid var(--border);
}
.btn-ghost:hover { background:var(--bg-card) }
.btn-lg  { padding:1rem 2rem; font-size:1rem; border-radius:12px }
.btn-xl  { padding:1.1rem 2.4rem; font-size:1.05rem; border-radius:12px }
.btn-full { width:100% }

/* ================================================================
   SECTION LABELS
   ================================================================ */
.section-tag {
  display:inline-block;
  font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--accent2);
  background:rgba(34,211,238,.1); border:1px solid rgba(34,211,238,.2);
  padding:.3rem .75rem; border-radius:20px; margin-bottom:1rem;
}
.section-heading {
  font-size:clamp(1.85rem,3.8vw,2.6rem);
  font-weight:800; margin-bottom:.85rem;
}
.section-sub {
  color:var(--muted); font-size:1rem;
  max-width:56ch; margin-bottom:2.5rem;
}

/* ================================================================
   HERO
   ================================================================ */
.hero-section {
  position:relative; overflow:hidden;
  background:
    radial-gradient(ellipse 130% 70% at 50% -10%, rgba(59,130,246,.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 95% 50%,   rgba(34,211,238,.09) 0%, transparent 55%),
    var(--bg);
  padding:5rem 0 6rem;
}

/* Star particles bg */
.hero-section::before {
  content:'';
  position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 80% 15%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%,     rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 80%,     rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 35%,     rgba(255,255,255,.35) 0%, transparent 100%);
  z-index:0;
}

.hero-grid {
  position:relative; z-index:1;
  display:grid; grid-template-columns:1fr 1fr;
  gap:3.5rem; align-items:center;
  max-width:var(--max); margin:0 auto; padding:0 1.5rem;
}
@media(max-width:860px) {
  .hero-grid { grid-template-columns:1fr; text-align:center }
}

/* Eyebrow badge */
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:.55rem;
  background:var(--bg-elev); border:1px solid var(--border);
  border-radius:20px; padding:.32rem .9rem;
  font-size:.78rem; font-weight:600; color:var(--muted);
  margin-bottom:1.4rem;
}
.pulse-dot {
  width:8px; height:8px; border-radius:50%; background:var(--green);
  position:relative; flex-shrink:0;
}
.pulse-dot::after {
  content:'';
  position:absolute; inset:-4px; border-radius:50%;
  border:1.5px solid var(--green);
  animation:pulsering 1.5s ease-out infinite;
  opacity:0;
}
@keyframes pulsering {
  0%   { opacity:.8; transform:scale(1) }
  100% { opacity:0;  transform:scale(2.4) }
}

/* Hero title */
.hero-title {
  font-size:clamp(2.2rem,5.5vw,3.5rem);
  font-weight:800; line-height:1.08; margin-bottom:1.25rem;
}
.hero-title .hl {
  background:var(--grad);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero-body {
  color:var(--text-dim); font-size:1.05rem;
  max-width:44ch; margin-bottom:2rem; line-height:1.75;
}
@media(max-width:860px) { .hero-body { margin:0 auto 2rem } }

/* Hero CTAs */
.hero-ctas { display:flex; flex-wrap:wrap; gap:.85rem }
@media(max-width:860px) { .hero-ctas { justify-content:center } }

/* Hero pills */
.hero-pills {
  display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.5rem;
}
@media(max-width:860px) { .hero-pills { justify-content:center } }
.hero-pill {
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:.75rem; color:var(--muted);
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:20px; padding:.25rem .72rem;
}
.hero-pill::before { content:'✓'; color:var(--green); font-weight:700 }

/* Hero visual */
.hero-visual {
  position:relative; display:flex; justify-content:center; align-items:center;
}
.hero-img-wrap {
  position:relative; max-width:580px; width:100%;
}
.hero-img-frame {
  border-radius:var(--r-lg); overflow:hidden;
  box-shadow:
    0 0 0 1px rgba(99,179,237,.18),
    0 0 60px rgba(59,130,246,.25),
    0 0 120px rgba(59,130,246,.1);
}
.hero-img-frame img { width:100%; display:block; object-fit:cover }

/* Floating badge on hero image */
.hero-badge {
  position:absolute; bottom:-16px; left:50%; transform:translateX(-50%);
  background:var(--bg-elev); border:1px solid var(--border-med);
  border-radius:14px; padding:.6rem 1.2rem;
  display:flex; align-items:center; gap:.6rem;
  font-size:.82rem; font-weight:600; white-space:nowrap;
  box-shadow:0 8px 32px rgba(0,0,0,.5);
}
.hero-badge .dot { width:8px; height:8px; border-radius:50%; background:var(--green); flex-shrink:0 }

/* ================================================================
   TRUST STRIP
   ================================================================ */
.trust-strip {
  background:var(--bg-card);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  overflow:hidden; position:relative;
}
.trust-inner {
  max-width:var(--max); margin:0 auto; padding:.95rem 1.5rem;
  display:flex; flex-wrap:wrap; align-items:center;
  justify-content:center; gap:.85rem 2.5rem;
}
.trust-item {
  display:flex; align-items:center; gap:.45rem;
  font-size:.82rem; font-weight:600; color:var(--muted); white-space:nowrap;
}
.trust-dot {
  width:6px; height:6px; border-radius:50%;
  background:var(--accent); flex-shrink:0;
}

/* ================================================================
   GIF-STYLE ANIMATED ELEMENTS
   ================================================================ */

/* ─ Live detection indicator ─ */
.live-detect {
  display:inline-flex; align-items:center; gap:.6rem;
  background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3);
  border-radius:20px; padding:.35rem .9rem;
  font-size:.78rem; font-weight:600; color:var(--green);
}
.live-detect-dot {
  width:8px; height:8px; border-radius:50%; background:var(--green);
  animation:blink 1.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* ─ CSS waveform bars (GIF-like animation) ─ */
.waveform {
  display:inline-flex; align-items:center; gap:3px;
  height:36px; padding:0 2px;
}
.waveform-bar {
  width:4px; border-radius:3px;
  background:var(--grad);
  animation:wavebar 1.2s ease-in-out infinite;
  transform-origin:bottom;
}
.waveform-bar:nth-child(1)  { height:14px; animation-delay:0s }
.waveform-bar:nth-child(2)  { height:22px; animation-delay:.1s }
.waveform-bar:nth-child(3)  { height:30px; animation-delay:.2s }
.waveform-bar:nth-child(4)  { height:18px; animation-delay:.15s }
.waveform-bar:nth-child(5)  { height:34px; animation-delay:.05s }
.waveform-bar:nth-child(6)  { height:26px; animation-delay:.25s }
.waveform-bar:nth-child(7)  { height:20px; animation-delay:.1s }
.waveform-bar:nth-child(8)  { height:28px; animation-delay:.2s }
.waveform-bar:nth-child(9)  { height:16px; animation-delay:.3s }
.waveform-bar:nth-child(10) { height:24px; animation-delay:.08s }
.waveform-bar:nth-child(11) { height:32px; animation-delay:.18s }
.waveform-bar:nth-child(12) { height:20px; animation-delay:.22s }
@keyframes wavebar {
  0%,100% { transform:scaleY(.3); opacity:.5 }
  50%      { transform:scaleY(1);  opacity:1 }
}

/* Large waveform for hero */
.waveform-lg .waveform-bar { width:5px; gap:4px }
.waveform-lg { gap:4px; height:52px }

/* ─ Animated detection ring ─ */
.detect-ring {
  position:relative; width:80px; height:80px;
  display:grid; place-items:center; flex-shrink:0;
}
.detect-ring::before,
.detect-ring::after {
  content:'';
  position:absolute; inset:0; border-radius:50%;
  border:2px solid rgba(59,130,246,.5);
  animation:ringpulse 2s ease-out infinite;
}
.detect-ring::after { animation-delay:1s }
.detect-ring-inner {
  width:52px; height:52px; border-radius:50%;
  background:var(--grad); display:grid; place-items:center;
  font-size:1.4rem; z-index:1;
  box-shadow:0 0 24px rgba(59,130,246,.45);
}
@keyframes ringpulse {
  0%   { transform:scale(1);    opacity:.8 }
  100% { transform:scale(2.2);  opacity:0 }
}

/* ─ Animated audio spectrum (canvas-like bar chart) ─ */
.spectrum-bars {
  display:flex; align-items:flex-end; gap:2px;
  height:48px; padding:0 4px;
}
.spec-bar {
  width:6px; border-radius:3px 3px 0 0;
  background:linear-gradient(to top,#3b82f6,#22d3ee);
  animation:specbar 1.8s ease-in-out infinite;
}
.spec-bar:nth-child(1)  { height:20%; animation-delay:.00s }
.spec-bar:nth-child(2)  { height:55%; animation-delay:.05s }
.spec-bar:nth-child(3)  { height:80%; animation-delay:.10s }
.spec-bar:nth-child(4)  { height:60%; animation-delay:.15s }
.spec-bar:nth-child(5)  { height:95%; animation-delay:.07s }
.spec-bar:nth-child(6)  { height:70%; animation-delay:.20s }
.spec-bar:nth-child(7)  { height:45%; animation-delay:.12s }
.spec-bar:nth-child(8)  { height:85%; animation-delay:.03s }
.spec-bar:nth-child(9)  { height:50%; animation-delay:.17s }
.spec-bar:nth-child(10) { height:30%; animation-delay:.08s }
@keyframes specbar {
  0%,100% { transform:scaleY(.25); opacity:.6 }
  50%      { transform:scaleY(1);   opacity:1 }
}

/* ─ Snore detected animated card ─ */
.snore-card {
  background:var(--bg-elev); border:1px solid rgba(59,130,246,.3);
  border-radius:var(--r); padding:1.25rem 1.5rem;
  display:flex; align-items:center; gap:1rem;
  box-shadow:0 0 32px rgba(59,130,246,.15);
  animation:cardglow 3s ease-in-out infinite;
}
@keyframes cardglow {
  0%,100% { box-shadow:0 0 32px rgba(59,130,246,.15) }
  50%      { box-shadow:0 0 56px rgba(59,130,246,.35) }
}

/* ─ Animated masking icon ─ */
.masking-anim {
  display:flex; gap:4px; align-items:center;
}
.masking-wave {
  width:3px; border-radius:2px;
  background:linear-gradient(to top,#a855f7,#ec4899);
  animation:maskwave 1s ease-in-out infinite;
}
.masking-wave:nth-child(1) { height:12px; animation-delay:0s }
.masking-wave:nth-child(2) { height:20px; animation-delay:.1s }
.masking-wave:nth-child(3) { height:28px; animation-delay:.2s }
.masking-wave:nth-child(4) { height:22px; animation-delay:.15s }
.masking-wave:nth-child(5) { height:16px; animation-delay:.3s }
.masking-wave:nth-child(6) { height:24px; animation-delay:.08s }
.masking-wave:nth-child(7) { height:14px; animation-delay:.25s }
@keyframes maskwave {
  0%,100% { transform:scaleY(.4); opacity:.6 }
  50%      { transform:scaleY(1);  opacity:1 }
}

/* ─ Scanning beam animation ─ */
.scan-anim {
  position:relative; height:4px; border-radius:2px;
  background:rgba(59,130,246,.2); overflow:hidden;
}
.scan-beam {
  position:absolute; top:0; left:-100%;
  width:60%; height:100%;
  background:var(--grad); border-radius:2px;
  animation:scan 2s ease-in-out infinite;
}
@keyframes scan { 0%{left:-60%} 100%{left:110%} }

/* ─ Floating sleep-quality badge animation ─ */
.quality-badge {
  display:inline-flex; align-items:center; gap:.6rem;
  background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3);
  border-radius:20px; padding:.4rem 1rem;
  font-size:.82rem; font-weight:700; color:var(--green);
  animation:floatbadge 3s ease-in-out infinite;
}
@keyframes floatbadge {
  0%,100% { transform:translateY(0) }
  50%      { transform:translateY(-6px) }
}

/* ─ Orbit ring for privacy icon ─ */
.orbit-wrap {
  position:relative; width:120px; height:120px;
  display:grid; place-items:center; flex-shrink:0;
}
.orbit-ring {
  position:absolute; inset:0; border-radius:50%;
  border:1.5px dashed rgba(59,130,246,.35);
  animation:orbitrot 8s linear infinite;
}
.orbit-ring::after {
  content:'';
  position:absolute; top:-5px; left:50%;
  width:10px; height:10px; border-radius:50%;
  background:var(--accent); margin-left:-5px;
}
@keyframes orbitrot { to{transform:rotate(360deg)} }
.orbit-icon {
  font-size:2.4rem; z-index:1;
  filter:drop-shadow(0 0 16px rgba(59,130,246,.5));
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.steps-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.5px; background:var(--border); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden; margin-top:2.5rem;
}
.step-cell {
  background:var(--bg-card); padding:2.2rem 1.6rem; text-align:center;
  transition:background .2s;
}
.step-cell:hover { background:var(--bg-elev) }
.step-icon { font-size:2.2rem; margin-bottom:.85rem; display:block }
.step-num {
  display:inline-flex; align-items:center; justify-content:center;
  width:2.6rem; height:2.6rem; border-radius:50%;
  background:var(--grad); font-family:var(--display);
  font-weight:800; font-size:.95rem; color:#fff; margin-bottom:1.1rem;
}
.step-cell h3 { font-size:1rem; margin-bottom:.4rem }
.step-cell p  { font-size:.87rem; color:var(--muted) }

/* ================================================================
   FEATURE BLOCKS
   ================================================================ */
.feature-block {
  display:grid; grid-template-columns:1fr 1fr;
  gap:4rem; align-items:center;
  padding:4.5rem 0; border-top:1px solid var(--border);
}
.feature-block:first-child { border-top:none }
.feature-block.flip { direction:rtl }
.feature-block.flip > * { direction:ltr }
@media(max-width:780px) {
  .feature-block,.feature-block.flip {
    grid-template-columns:1fr; direction:ltr; gap:2.5rem; padding:3rem 0;
  }
}
.feature-block h2 {
  font-size:clamp(1.5rem,3vw,2rem); margin-bottom:.7rem;
}
.feature-block p { color:var(--muted); margin-bottom:1.1rem; font-size:.97rem }
.feature-block .check-list { margin-top:.5rem }
.check-list li {
  display:flex; align-items:flex-start; gap:.6rem;
  padding:.42rem 0; color:var(--muted); font-size:.93rem;
}
.check-list li::before {
  content:'✓'; color:var(--green); font-weight:700;
  flex-shrink:0; margin-top:.18rem; font-size:.88rem;
}

/* Feat image frame */
.feat-img { display:flex; justify-content:center; align-items:center }
.feat-img-inner {
  max-width:100%; border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--border);
  background:var(--bg-card);
  box-shadow:var(--shadow-card);
}
.feat-img-inner img {
  width:100%; display:block;
  object-fit:contain; max-height:460px;
}

/* ================================================================
   BEFORE / AFTER
   ================================================================ */
.ba-wrap {
  border-radius:var(--r-xl); overflow:hidden;
  border:1px solid var(--border-med);
  box-shadow:0 12px 64px rgba(59,130,246,.12);
  background:var(--bg-card); margin-top:2.5rem;
}
.ba-wrap img { width:100%; display:block; object-fit:contain }

/* ================================================================
   APP SCREENS
   ================================================================ */
.screens-img-wrap {
  display:flex; justify-content:center; margin-top:2.5rem;
}
.screens-img-wrap img {
  max-width:900px; width:100%;
  border-radius:var(--r-lg); border:1px solid var(--border);
  box-shadow:0 8px 60px rgba(59,130,246,.12);
  background:var(--bg-card);
}

/* Phone mockup */
.phone-wrap { display:flex; justify-content:center; margin-top:3.5rem }
.phone-frame {
  position:relative; width:250px;
  background:var(--bg-card);
  border-radius:38px; overflow:hidden;
  box-shadow:
    0 0 0 2px rgba(99,179,237,.28),
    0 0 0 8px rgba(59,130,246,.07),
    0 28px 80px rgba(59,130,246,.22),
    0 4px 24px rgba(0,0,0,.7);
}
.phone-notch  { height:22px; background:var(--bg); margin:0 65px; border-radius:0 0 14px 14px }
.phone-screen { padding:0; line-height:0 }
.phone-screen img { width:100%; display:block }
.phone-home   { height:6px; background:rgba(99,179,237,.2); margin:10px 85px; border-radius:3px }

/* ================================================================
   STATS ROW
   ================================================================ */
.stat-row {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:1.5px; background:var(--border); border:1px solid var(--border);
  border-radius:var(--r-lg); overflow:hidden;
}
.stat-cell { background:var(--bg-card); padding:2rem 1.5rem; text-align:center }
.stat-cell strong {
  display:block; font-family:var(--display); font-size:2.1rem; font-weight:800;
  background:var(--grad); -webkit-background-clip:text;
  -webkit-text-fill-color:transparent; background-clip:text; margin-bottom:.3rem;
}
.stat-cell span { font-size:.82rem; color:var(--muted) }

/* ================================================================
   FEATURE CARDS GRID
   ================================================================ */
.cards-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.25rem; margin-top:2.5rem;
}
.feat-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--r); overflow:hidden;
  transition:border-color .2s, transform .22s, box-shadow .22s;
}
.feat-card:hover {
  border-color:rgba(59,130,246,.4);
  transform:translateY(-4px);
  box-shadow:0 16px 48px rgba(59,130,246,.12);
}
.feat-card-img { overflow:hidden; background:var(--bg-elev) }
.feat-card-img img {
  width:100%; display:block;
  object-fit:cover; height:200px;
  transition:transform .38s ease;
}
.feat-card:hover .feat-card-img img { transform:scale(1.05) }
.feat-card-body { padding:1.2rem 1.25rem 1.4rem }
.feat-card-body h3 { font-size:1rem; margin-bottom:.4rem }
.feat-card-body p  { font-size:.88rem; color:var(--muted) }

/* ================================================================
   PRICING
   ================================================================ */
.pricing-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
  gap:1.5rem; margin-top:2.5rem;
}
.price-card {
  position:relative; background:var(--bg-card);
  border:1px solid var(--border); border-radius:var(--r-lg);
  padding:2.2rem 1.9rem 1.9rem;
  transition:border-color .2s, box-shadow .2s, transform .2s;
}
.price-card:hover {
  border-color:rgba(59,130,246,.3);
  box-shadow:0 8px 40px rgba(59,130,246,.1);
  transform:translateY(-3px);
}
.price-card.featured {
  border-color:rgba(59,130,246,.6);
  box-shadow:0 0 60px rgba(59,130,246,.2);
  background:linear-gradient(180deg,rgba(59,130,246,.1),var(--bg-card));
}
.popular-badge {
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:var(--grad); color:#fff;
  font-size:.68rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
  padding:.3rem 1rem; border-radius:20px; white-space:nowrap;
}
.price-card h3 { font-size:1.25rem; margin-bottom:.4rem }
.price-big {
  font-family:var(--display); font-size:2.6rem; font-weight:800;
  background:var(--grad); -webkit-background-clip:text;
  -webkit-text-fill-color:transparent; background-clip:text;
  line-height:1; margin:.6rem 0 .25rem;
}
.price-per { font-size:.83rem; color:var(--muted); margin-bottom:1.4rem }
.price-card > ul {
  margin:0 0 1.75rem; padding:0;
}
.price-card li {
  padding:.48rem 0 .48rem 1.6rem; position:relative;
  color:var(--text-dim); font-size:.9rem;
  border-bottom:1px solid var(--border);
}
.price-card li:last-child { border-bottom:none }
.price-card li::before {
  content:''; position:absolute; left:0; top:.95rem;
  width:8px; height:8px; border-radius:50%; background:var(--accent2);
}

/* ================================================================
   CTA BAND
   ================================================================ */
.cta-band {
  background:linear-gradient(135deg,rgba(59,130,246,.22),rgba(34,211,238,.13));
  border:1px solid rgba(59,130,246,.28);
  border-radius:var(--r-xl); padding:4rem 2rem;
  text-align:center; position:relative; overflow:hidden;
}
.cta-band::before {
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(ellipse 80% 60% at 50% 0%,rgba(59,130,246,.2),transparent);
  pointer-events:none;
}
.cta-band h2 { font-size:clamp(1.55rem,3.2vw,2.1rem); margin-bottom:.65rem; position:relative }
.cta-band > p { color:var(--muted); margin-bottom:1.75rem; max-width:52ch; margin-left:auto; margin-right:auto; font-size:1rem; position:relative }
.cta-actions { display:flex; flex-wrap:wrap; gap:.85rem; justify-content:center; position:relative }

/* ================================================================
   IMAGE CONTAINERS  (never stretch beyond natural size)
   ================================================================ */
.img-contained { display:flex; justify-content:center }
.img-contained img {
  max-width:100%; height:auto; display:block;
  border-radius:var(--r-lg); border:1px solid var(--border);
  box-shadow:0 4px 40px rgba(59,130,246,.1);
  background:var(--bg-card);
}

/* ================================================================
   PAGE HEADER  (inner pages)
   ================================================================ */
.page-header {
  padding:3.5rem 0 2.5rem; border-bottom:1px solid var(--border);
  margin-bottom:3rem;
}
.page-header h1 { font-size:clamp(2rem,4.5vw,2.8rem); font-weight:800; margin-bottom:.5rem }
.page-header p  { color:var(--muted); max-width:60ch; font-size:1rem }

/* ── Pill row under page-header ─ */
.page-header-pills { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.25rem }
.page-pill {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:20px; padding:.28rem .8rem;
  font-size:.78rem; color:var(--muted); font-weight:500;
}

/* ================================================================
   PROSE  (legal, policy pages)
   ================================================================ */
.prose { max-width:72ch }
.prose h2 { font-size:1.25rem; margin:2.2rem 0 .75rem }
.prose h2:first-child { margin-top:0 }
.prose p,.prose li { color:var(--muted); font-size:.95rem; line-height:1.75 }
.prose ul,.prose ol { padding-left:1.5rem; list-style:disc }
.prose li { margin:.3rem 0 }
.prose strong { color:var(--text) }
.prose a { color:var(--accent2) }
.prose blockquote {
  margin:1.5rem 0; padding:1rem 1.35rem;
  border-left:3px solid var(--accent); border-radius:0 var(--r-sm) var(--r-sm) 0;
  background:rgba(59,130,246,.07); color:var(--muted); font-size:.93rem;
}
.prose table { width:100%; border-collapse:collapse; font-size:.88rem; margin:1rem 0 }
.prose th,.prose td { border:1px solid var(--border); padding:.65rem .9rem; text-align:left }
.prose th { background:var(--bg-elev); color:var(--text) }

/* ================================================================
   FAQ
   ================================================================ */
.faq-list { margin-top:2rem }
.faq-item { border-bottom:1px solid var(--border); padding:1.3rem 0 }
.faq-q {
  font-family:var(--display); font-size:1rem; font-weight:600;
  color:var(--text); margin-bottom:.5rem;
  display:flex; align-items:flex-start; gap:.75rem;
}
.faq-q::before {
  content:'Q'; flex-shrink:0;
  background:var(--grad); color:#fff; font-size:.68rem; font-weight:800;
  width:1.5rem; height:1.5rem; border-radius:6px;
  display:grid; place-items:center; margin-top:.2rem;
}
.faq-a { color:var(--muted); font-size:.92rem; padding-left:2.25rem; line-height:1.72 }

/* ================================================================
   SETUP STEPS
   ================================================================ */
.setup-steps { list-style:none; padding:0; counter-reset:step; margin-top:1.5rem }
.setup-step {
  counter-increment:step;
  display:grid; grid-template-columns:2.6rem 1fr;
  gap:1.1rem; align-items:flex-start;
  padding:1.2rem 0; border-bottom:1px solid var(--border);
  color:var(--muted);
}
.setup-step::before {
  content:counter(step);
  background:rgba(59,130,246,.15); color:var(--accent);
  font-family:var(--display); font-weight:800; font-size:.85rem;
  width:2.6rem; height:2.6rem; border-radius:10px;
  display:grid; place-items:center; flex-shrink:0;
}
.setup-step strong { color:var(--text); display:block; margin-bottom:.22rem }

/* ================================================================
   COMPARE TABLE
   ================================================================ */
.compare-table { width:100%; border-collapse:collapse; font-size:.88rem }
.compare-table th,.compare-table td {
  border:1px solid var(--border); padding:.65rem .95rem;
  text-align:left; vertical-align:middle;
}
.compare-table thead tr { background:var(--bg-elev) }
.compare-table thead th:not(:first-child) { text-align:center }
.compare-table td:not(:first-child) { text-align:center }
.compare-table tbody tr:nth-child(even) { background:rgba(59,130,246,.03) }
.check { color:var(--green); font-weight:700 }
.dash  { color:var(--muted) }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background:var(--bg-card);
  border-top:1px solid var(--border);
  padding:4rem 1.5rem 1.75rem;
}
.footer-grid {
  max-width:var(--max); margin:0 auto;
  display:grid; grid-template-columns:2.2fr repeat(3,1fr);
  gap:2.5rem; padding-bottom:2.5rem; border-bottom:1px solid var(--border);
}
@media(max-width:880px) {
  .footer-grid { grid-template-columns:repeat(2,1fr) }
  .footer-brand { grid-column:1/-1 }
}
@media(max-width:480px) {
  .footer-grid { grid-template-columns:1fr }
  .footer-brand { grid-column:1 }
}
.footer-brand p { color:var(--muted); font-size:.88rem; margin:.75rem 0 1.25rem; max-width:38ch }
.footer-col h4 {
  font-family:var(--display); font-size:.76rem; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted); margin-bottom:.9rem;
}
.footer-col a { display:block; color:var(--muted); font-size:.86rem; margin:.35rem 0 }
.footer-col a:hover { color:var(--text); text-decoration:none }
.footer-bottom {
  max-width:var(--max); margin:1.5rem auto 0;
  display:flex; flex-wrap:wrap; gap:.55rem;
  align-items:center; justify-content:space-between;
  font-size:.78rem; color:var(--muted);
}
.footer-bottom a { color:var(--muted) }
.footer-bottom a:hover { color:var(--accent2) }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity:0; transform:translateY(24px);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity:1; transform:none }
.reveal-up {
  opacity:0; transform:translateY(40px);
  transition:opacity .6s ease, transform .6s ease;
}
.reveal-up.visible { opacity:1; transform:none }
.reveal-left {
  opacity:0; transform:translateX(-32px);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal-left.visible { opacity:1; transform:none }
.reveal-right {
  opacity:0; transform:translateX(32px);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal-right.visible { opacity:1; transform:none }

/* ================================================================
   UTILITY MARGINS
   ================================================================ */
.mt-1{margin-top:.5rem}  .mt-2{margin-top:1rem}   .mt-3{margin-top:1.5rem}
.mt-4{margin-top:2rem}   .mt-5{margin-top:3rem}
.mb-1{margin-bottom:.5rem} .mb-2{margin-bottom:1rem} .mb-3{margin-bottom:1.5rem}
.mb-4{margin-bottom:2rem}  .mb-5{margin-bottom:3rem}
.gap-sm{gap:.5rem} .gap-md{gap:1rem} .gap-lg{gap:1.5rem}

/* ================================================================
   ANIMATED GIF CANVAS SECTION
   ================================================================ */
.gif-demo-wrap {
  background:var(--bg-elev); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:2.5rem 2rem;
  text-align:center; position:relative; overflow:hidden;
}
.gif-demo-wrap::before {
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(ellipse 60% 40% at 50% 0%,rgba(59,130,246,.15),transparent);
  pointer-events:none;
}
.canvas-demo {
  display:block; margin:0 auto;
  border-radius:var(--r); border:1px solid var(--border);
  background:var(--bg-card);
}

/* ================================================================
   EXTRA RESPONSIVE
   ================================================================ */
@media(max-width:600px) {
  .py-section { padding:3.5rem 0 }
  .hero-section { padding:3.5rem 0 4.5rem }
  .section-heading { font-size:1.7rem }
  .btn-lg,.btn-xl { padding:.85rem 1.5rem; font-size:.95rem }
  .pricing-grid { grid-template-columns:1fr }
  .stat-row { grid-template-columns:repeat(2,1fr) }
}
