/* ===============================
   Base theme (with hard fallbacks)
   =============================== */

/* Optional: base tokens (used if no data-theme set) */
:root{
  --fallback-a: #7C3AED; /* brand purple */
  --fallback-b: #22D3EE; /* cyan accent */

  --bg: #0D0B12;       /* near-black w/ purple bias */
  --bg-soft: #141124;  /* dark purple navy */
  --text: #ECEAF6;     /* light text */
  --muted: #B6B0CC;    /* muted gray-purple */
  --primary: #7C3AED;  /* Modlee purple */
  --primary-strong: #6D28D9; /* deeper purple for hover/active */
  --accent: #22D3EE;   /* cyan accent */

  --hue: 268; /* purple hue */
  --grad-a: hsl(var(--hue), 80%, 55%); /* purple gradient */
  --grad-b: hsl(calc(var(--hue) + 40), 85%, 52%); /* purple → fuchsia/blue */

  --nav-h: 64px;
  --nav-border: rgba(255,255,255,0.10);
  --nav-bg: rgba(13,11,18,0.55); /* frosted dark */
}



* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

html { scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.page { overflow-x: hidden; }

/* Make anchor jumps account for fixed nav */
section { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ===============================
  Gradient background sections (brand-connected)
  =============================== */

/* Enable animatable custom props (widely supported; safely ignored if not) */
@property --gradient-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg;
}
@property --hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 230; /* your default */
}
@property --glow-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}
@property --glow-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 20%;
}

/* Animated gradient background */


/* Animated gradient background (brand-tuned) */

/* === Seamless animated brand gradient (purple ↔ dark) === */
.gradient-bg {
  position: relative;

  /* Base vars (can be overridden by your theme) */
  --base-h: var(--hue, 268);        /* brand hue (purple) */
  --sat-a: 80%;
  --sat-b: 70%;

  /* animated variables (driven by keyframes) */
  --angle: 0deg;                    /* gradient angle */
  --dh: 0deg;                       /* small hue wobble around base */
  --l-a: 52%;                       /* lightness of color stop A */
  --l-b: 12%;                       /* lightness of color stop B (dark) */

  /* colors computed from variables */
  --c-a: hsl(calc(var(--base-h) + var(--dh)) var(--sat-a) var(--l-a));
  --c-b: hsl(calc(var(--base-h) + var(--dh) + 8deg) var(--sat-b) var(--l-b));

  background: linear-gradient(var(--angle), var(--c-a), var(--c-b));
  animation: gradient-cycle 26s linear infinite;
}

/* Soft, brand-tinted glow */
.gradient-bg::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;

  /* animated glow position via custom props  */
  --glow-x: 20%;
  --glow-y: 22%;
  --glow-alpha: .75;

  background:
    radial-gradient(
      1200px 600px at var(--glow-x) var(--glow-y),
      color-mix(in srgb, var(--primary) 22%, transparent),
      transparent 60%
    );
  opacity: var(--glow-alpha);
  animation: gradient-cycle 26s linear infinite; /* same timeline => no seams */
}

/* One timeline to rule them all: 0% and 100% are IDENTICAL */
@keyframes gradient-cycle {
  0% {
    /* angle rotates smoothly; 360deg == 0deg so no jump */
    --angle: 0deg;

    /* tiny hue wobble around base hue (keeps it “alive” but on brand) */
    --dh: -6deg;

    /* subtle breathing in lightness (both stops) */
    --l-a: 50%;
    --l-b: 10%;

    /* glow path start */
    --glow-x: 18%;
    --glow-y: 24%;
    --glow-alpha: .78;
  }

  25% {
    --angle: 90deg;
    --dh: 0deg;
    --l-a: 54%;
    --l-b: 12%;
    --glow-x: 78%;
    --glow-y: 28%;
    --glow-alpha: .72;
  }

  50% {
    --angle: 180deg;
    --dh: +6deg;
    --l-a: 56%;
    --l-b: 14%;
    --glow-x: 64%;
    --glow-y: 70%;
    --glow-alpha: .80;
  }

  75% {
    --angle: 270deg;
    --dh: 0deg;
    --l-a: 54%;
    --l-b: 12%;
    --glow-x: 26%;
    --glow-y: 72%;
    --glow-alpha: .74;
  }

  100% {
    /* same as 0% so loop is undetectable */
    --angle: 360deg;
    --dh: -6deg;
    --l-a: 50%;
    --l-b: 10%;
    --glow-x: 18%;
    --glow-y: 24%;
    --glow-alpha: .78;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .gradient-bg,
  .gradient-bg::after {
    animation: none !important;
  }
}



/* ===============================
   Nav (fixed, translucent, mobile-ready)
   =============================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;

  /* layout */
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
}
.nav::before {
  /* full-width translucent backdrop under the centered nav */
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 100vw; height: 100%;
  background: linear-gradient(180deg, var(--nav-bg), rgba(12,14,22,0.35));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--nav-border);
  z-index: -1;
  transition: box-shadow .3s ease;       /* ✨ smooth shadow on scroll */
}
.nav.scrolled::before { box-shadow: 0 8px 24px rgba(0,0,0,.28); } /* ✨ */

.logo { font-weight: 800; letter-spacing: 0.3px; }
.nav-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav a { opacity: 0.9; }
.nav a:hover { opacity: 1; }

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block; width: 20px; height: 2px;
  background: var(--text); margin: 3px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.open .nav-toggle .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu */
@media (max-width: 960px) {
  .nav { padding: 8px 14px; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    display: none;              /* hidden by default */
    flex-direction: column;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(16,19,26,0.96);
    border-bottom: 1px solid var(--nav-border);
  }
  .nav.open .nav-links { display: flex; }

  /* keep the CTA compact on mobile */
  .nav .btn { padding: 8px 12px; border-radius: 10px; }
}

/* ===============================
   Hero
   =============================== */
.hero {
  /* push content below fixed nav */
  /* padding: calc(80px + var(--nav-h)) 20px 120px; */
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 75vh;
  overflow: hidden;
  z-index: 1;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.hero-text-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content h1,
.hero-content p {
  color: white;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 10px 0 8px; }
.hero .muted { color: var(--text); opacity: 0.8; margin: 6px auto 24px; max-width: 760px; }
/* .cta-row { display: inline-flex; gap: 14px; } */
.cta-row {
  display: inline-flex;
  gap: 14px;
  align-items: center; /* ← vertically center children */
}

/* ===============================
   Buttons
   =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
  font-weight: 600; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary-strong); color: white; box-shadow: 0 8px 24px rgba(59,130,246,.25); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.12); color: var(--text); }
.btn-invert { background: white; color: #111827; }
.btn-ghost-invert { background: transparent; border: 1px solid rgba(255,255,255,.5); color: white; }

/* ===============================
   Sections
   =============================== */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }

/* Subtle tinted background so the site never looks grayscale */
.section-light {
  background: linear-gradient(180deg, rgba(59,130,246,0.08), rgba(139,92,246,0.06));
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-heading { text-align: center; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 10px; }
.section-heading p { margin: 0; color: var(--muted); }

/* ===============================
   Grid utilities
   =============================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 960px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ===============================
   Cards / panels
   =============================== */
.card, .panel {
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.card.lift:hover { transform: translateY(-3px); transition: transform .2s ease; }

.feature-card .icon { font-size: 28px; margin-bottom: 8px; }

.feature-image {
  width: 90%;
  object-fit: cover;
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
}

.feature-image-small {
  width: 60%;
  object-fit: cover;
  display: block;
  margin: 1rem auto;
  border-radius: 12px;
}

/* ===============================
   Stats
   =============================== */
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 22px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
}
.stat .number { font-size: 2rem; font-weight: 800; }
.stat .label { color: var(--muted); margin-top: 6px; }

/* ===============================
   Pricing
   =============================== */
.pricing .price-tag { font-size: 2rem; font-weight: 800; margin: 8px 0 12px; }
.price.highlight {
  outline: 2px solid rgba(106,160,255,.5);
  background: linear-gradient(180deg, rgba(106,160,255,.12), rgba(139,92,246,.10));
}

/* ===============================
   Footer
   =============================== */
.footer {
  opacity: .9; max-width: 1200px; margin: 0 auto; padding: 40px 20px 80px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.footer-links { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }
.muted { color: var(--muted); }

/* ===============================
   Checklists
   =============================== */
.checklist { margin: 12px 0 0; padding-left: 18px; }
.checklist li { margin: 6px 0; }

/* ===============================
   Reveal & expand animations (✨ polished)
   =============================== */
.reveal { opacity: 1; transform: none; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(0);
  transition:
    opacity .6s ease,
    transform .6s cubic-bezier(.2,.8,.2,1),
    filter .6s ease;
  will-change: opacity, transform, filter;
  transform-origin: 50% 60%;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

/* Variants */
.js .reveal-up    { transform: translateY(22px); }
.js .reveal-left  { transform: translateX(-22px); }
.js .reveal-right { transform: translateX(22px); }
.js .reveal-zoom  { transform: scale(.985); }
.js .reveal-blur  { filter: blur(6px); transform: translateY(12px) scale(.995); }

.js .reveal-up.visible,
.js .reveal-left.visible,
.js .reveal-right.visible,
.js .reveal-zoom.visible,
.js .reveal-blur.visible {
  transform: none; filter: blur(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .20s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .28s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .36s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .44s; }

/* Elevate cards on visible */
.js .card.reveal,
.js .panel.reveal {
  transform: translateY(14px) scale(.995);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.js .card.reveal.visible,
.js .panel.reveal.visible {
  transform: none;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  transition: transform .6s cubic-bezier(.2,.8,.2,1),
              box-shadow .6s ease,
              opacity .6s ease;
}

/* Heading underline on reveal */
.section-heading.reveal h2 { position: relative; }
.section-heading.reveal.visible h2::after {
  content: "";
  position: absolute; left: 50%; bottom: -10px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--text));
  animation: underline-grow .6s .15s ease forwards;
}
@keyframes underline-grow { to { transform: translateX(-50%) scaleX(1); } }

/* Parallax helper */
.parallax-y { transform: translateY(10px); transition: transform .8s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.visible .parallax-y, .parallax-y.visible { transform: translateY(0); }

/* Section divider flourish */
.section.reveal::before{
  content:"";
  display:block;
  height:1px;
  margin:0 auto 22px;
  max-width:220px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  opacity:0; transform: translateY(-6px);
  transition: opacity .6s ease, transform .6s ease;
}
.section.reveal.visible::before{ opacity:1; transform:none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .reveal-stagger > *,
  .card.reveal,
  .panel.reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

.expand-on-visible { transform: none; }
.js .expand-on-visible { transform: scale(.98); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.js .expand-on-visible.visible { transform: scale(1); }

/* Subtle section separators in light areas */
.section-light .card, .section-light .panel { border-color: rgba(255,255,255,0.08); }

/* ===============================
  Simple "routing": show home by default
  =============================== */
.route { display: none; }
#route-home { display: block; } /* default view when no hash */

/* ===============================
    Blog dashboard & post styles
    =============================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card .card-title { margin: 4px 0 8px; }
.blog-card .card-meta { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

.post-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 6px 0 10px; }
.post-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  font-size: 0.85rem; color: var(--text);
}
.post-body p { line-height: 1.75; margin: 14px 0; }

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.hidden { display: none; }

.modal-content {
  background: var(--surface, #fff);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.modal-content .close {
  float: right;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Fullscreen overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

/* Centered form container */
.modal-content {
  background: var(--card-bg, #fff);
  color: var(--text-color, #222);
  border-radius: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 650px;   /* wider form */
  min-height: 300px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: fadeInUp 0.25s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: inherit;
  cursor: pointer;
}

/* Form styling */
.form-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.form-body input,
.form-body textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 0.6rem;
  font-size: 1rem;
  width: 100%;
  background: var(--input-bg, #fafafa);
}

.form-body .btn {
  margin-top: 1rem;
  border-radius: 0.6rem;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  width: fit-content;
}

.card.price {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spreads content */
}

.card.price .btn {
  margin-top: auto; /* pushes the button down */
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
  padding: 1rem 2rem;
}

.footer .logo { justify-self: start; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .muted { justify-self: end; }

.button-group {
  display: flex;
  gap: 1rem;   /* adjust spacing between buttons */
}

:root{ --nav-h:64px; }
html{ scroll-behavior:smooth; }

/* Sticky translucent nav already present; ensure anchor spacing */
section{ scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Social proof strip */
.social-strip{ border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); }
.social-strip ul{ max-width:1200px; margin:0 auto; padding:12px 20px; display:flex; gap:28px; justify-content:center; list-style:none; color:var(--muted); }
.social-strip li{ white-space:nowrap; opacity:.9 }

/* Blocks illustration (simple animated dots/blocks) */
.blocks-illustration{ display:flex; justify-content:center; }
.blocks{ width:240px; height:120px; position:relative; filter:drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.blocks::before, .blocks::after{ content:""; position:absolute; inset:auto; display:block; width:80px; height:80px; border-radius:12px; background:linear-gradient(135deg,var(--grad-a),var(--grad-b)); animation: float 6s ease-in-out infinite; }
.blocks::before{ left:10px; top:10px; }
.blocks::after{ right:10px; bottom:10px; animation-delay:1.2s; }
@keyframes float { 0%,100%{ transform:translateY(0)} 50%{ transform:translateY(-6px)} }

/* Stepper */
.stepper{ counter-reset: step; display:grid; gap:16px; max-width:980px; margin:0 auto; padding:0; list-style:none; }
.step-card{ background:var(--bg-soft); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:18px; box-shadow:0 8px 30px rgba(0,0,0,.25); }
.step-card h3{ margin:.2rem 0 .4rem; }

/* Tools grid */
.tools-grid .tool-card h3{ margin-top:0 }
.tool-card .btn{ margin-top:8px }

/* Testimonials */
.testimonials{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.tcard{ background:var(--bg-soft); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:18px; box-shadow:0 8px 30px rgba(0,0,0,.25); }
@media (max-width:960px){ .testimonials{ grid-template-columns:1fr } }

/* Pricing two-col */
.two-col{ align-items:stretch }
.card.price{ display:flex; flex-direction:column }
.card.price .btn{ margin-top:auto }

/* CTA contrast */
.cta .btn{ margin: 0 6px }

/* Active nav link on scroll */
.nav a.active{ opacity:1; text-decoration:underline; text-underline-offset:6px }

/* Modal helpers (already present in your base) */
.hidden{ display:none }

/* Accessibility */
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px }


/* ===== Social Proof Carousel ===== */
.social-carousel {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.sp-viewport {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* .sp-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 44px;
} */


/* Base track: use a variable for column width */
.sp-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--sp-col, minmax(280px, 1fr)); /* default if not set */
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 44px;
}
.sp-track::-webkit-scrollbar { display: none; }

/* Keep desktop override but point at the same var (no-op if var already set) */
@media (min-width: 1000px) {
  .sp-track { grid-auto-columns: var(--sp-col, minmax(320px, 1fr)); }
}


.sp-track::-webkit-scrollbar { display: none; }

/* ===== Row Layout for Social Proof Item ===== */
.sp-item {
  flex: 0 0 clamp(300px, 40%, 500px);
  scroll-snap-align: center;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;              /* <-- row layout */
  align-items: center;        /* vertical center */
  justify-content: center;    /* horizontal center */
  gap: 14px;                  /* space between logo + quote */
  min-height: 100px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sp-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
}

.sp-logo {
  max-width: 110px;    /* smaller when side by side */
  max-height: 32px;
  object-fit: contain;
  flex-shrink: 0;      /* don’t shrink the logo */
  filter: grayscale(100%) contrast(1.05) opacity(.9);
  transition: filter .25s ease, transform .2s ease;
}
.sp-item:hover .sp-logo,
.sp-item:focus-visible .sp-logo {
  filter: none;
}

.sp-quote {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: var(--text);
  text-align: left;      /* align text next to logo */
}

/* arrows */
.sp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(16,19,26,.72);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
  transition: transform .15s ease, background .2s ease, opacity .2s ease;
}
.sp-prev { left: 12px; }
.sp-next { right: 12px; }
.sp-arrow:hover { transform: translateY(-50%) scale(1.05); }
@media (max-width: 960px) {
  .sp-arrow { height: 34px; width: 34px; font-size: 20px; }
  .sp-track { padding: 8px 40px; }
}

/* show 3 tiles desktop, 1-2 mobile naturally via width;
   ensure a nice min width for tiles */
/* @media (min-width: 1000px) {
  .sp-track { grid-auto-columns: minmax(320px, 1fr); }
} */

/* Reduced motion: fall back to a simple grid */
@media (prefers-reduced-motion: reduce) {
  .sp-track {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    gap: 16px;
    padding: 0;
  }
  .sp-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 960px) {
  .sp-track { grid-template-columns: repeat(2, 1fr); }
}


/* Stepper rows: media (1/4) + card (3/4) */
.stepper { 
  display: grid; 
  gap: 18px; 
  max-width: 980px; 
  margin: 0 auto; 
  padding: 0; 
  list-style: none; 
}

.step-row {
  display: grid;
  grid-template-columns: 10% 90%;  /* 10% : 90% */
  gap: 16px;
  align-items: center;
}

/* Square media placeholder (drop an <img> inside later if you want) */
.step-media {
  width: 100%;
  aspect-ratio: 1 / 1;                 /* perfect square */
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(135deg, var(--muted), var(--bg));
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}

/* Optional subtle pattern overlay */
.step-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 20%, rgba(255,255,255,.08), transparent 60%);
  pointer-events: none;
}

/* Keep your existing .step-card style; you already have one.
   If you want a bit more breathing room: */
.step-card { padding: 20px; }

/* Mobile: stack image above text */
@media (max-width: 800px) {
  .step-row {
    display: grid;
    grid-template-columns: 25% 75%;  /* 10% : 90% */
    gap: 16px;
    align-items: center;
  }
}

/* Center the CTA button inside each tool card */
.tools-grid .btn-row.center {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* Accordion container: closed by default */
.tool-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height .35s ease,
    opacity .28s ease,
    transform .35s ease,
    padding .25s ease;
  padding: 0; /* avoid jump */
}

/* Open state (tweak max-height if your content is taller) */
.tool-extra.open {
  max-height: 520px;     /* big enough for the row + content */
  opacity: 1;
  transform: translateY(0);
  padding-top: 12px;      /* small breathing room when opened */
}

/* The 1-row layout: 50% media | 50% body */
.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 50% : 50% */
  gap: 16px;
  align-items: center;
}

/* Media tile (square) */
.tool-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, var(--primary), var(--bg));
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  overflow: hidden;
}
.tool-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area */
.tool-body .checklist { margin-top: 4px; }

/* Mobile: stack under the button */
@media (max-width: 900px) {
  .tool-row {
    grid-template-columns: 1fr;
  }
  .tool-extra.open {
    max-height: 900px; /* more headroom when stacked */
  }
}

/* Two-column layout inside each testimonial card */
.trow {
  display: grid;
  grid-template-columns: 1fr 3fr; /* left meta : right body */
  gap: 16px;
  align-items: center;
}

.tmeta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.tname { margin: 6px 0 0; font-size: 1rem; }
.ttitle, .tcompany { margin: 0; }
.tcompany.muted { color: var(--muted); }

/* Keep your existing card aesthetics */
.tcard { padding: 18px; }

/* Stack on mobile */
@media (max-width: 960px) {
  .trow { grid-template-columns: 1fr; justify-items: stretch; }
  .tmeta { justify-items: start; text-align: left; grid-template-columns: 72px 1fr; column-gap: 12px; }
  .tmeta .avatar { grid-row: span 3; }
}

/* WIDER tiles inside the same social carousel track */


@media (min-width: 1200px) {
  /* on large screens, allow nice wide cards; you’ll typically see 2 at a time */
  .sp-track { grid-auto-columns: minmax(640px, 1fr); }
}

/* Testimonial tile look */
.sp-item.tcard-wide {
  padding: 20px;
  border-radius: 16px;
}

/* Two-column layout INSIDE each tile */
.trow {
  display: grid;
  grid-template-columns: 1fr 2fr; /* meta : body */
  gap: 20px;
  align-items: center;
}

.tmeta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.tname { margin: 6px 0 0; font-size: 1rem; }
.ttitle, .tcompany { margin: 0; }
.tcompany.muted { color: var(--muted); }

/* Story body */
.tbody strong { display: block; margin-bottom: 6px; }
.tbody p { margin: 8px 0 12px; line-height: 1.6; }

/* Stack on mobile */
@media (max-width: 960px) {
  .sp-track { grid-auto-columns: minmax(88vw, 1fr); }
  .trow { grid-template-columns: 1fr; }
  .tmeta { justify-items: start; text-align: left; grid-template-columns: 80px 1fr; column-gap: 12px; }
  .tmeta .avatar { grid-row: span 3; }
}


/* Default (top social proof strip) */
/* .social-carousel .sp-track {
  grid-auto-columns: minmax(280px, 1fr); 
} */

/* Make social-carousel tiles wider */
.social-carousel { --sp-col: minmax(560px, 1fr); }

@media (min-width: 1200px) {
  .social-carousel { --sp-col: minmax(640px, 1fr); }
}

/* Mobile: full-ish width still works */
@media (max-width: 960px) {
  .social-carousel { --sp-col: minmax(88vw, 1fr); }
}


/* Stories section gets wider testimonial cards */
.stories-carousel .sp-track {
  grid-auto-columns: minmax(560px, 1fr);
}

@media (min-width: 1200px) {
  .stories-carousel .sp-track {
    grid-auto-columns: minmax(640px, 1fr);
  }
}

/* On mobile, both collapse naturally */
@media (max-width: 960px) {
  .stories-carousel .sp-track {
    grid-auto-columns: minmax(88vw, 1fr);
  }
}

.subheading {
  margin-top: 16px;
  text-align: center;
  max-width: 720px;     /* keeps text readable */
  margin-left: auto;    /* center block */
  margin-right: auto;
  color: var(--text-muted, #888); /* optional, falls back to muted gray */
  font-size: 1rem;      /* slightly smaller than h2/h3 */
  line-height: 1.4;
}


/* ===== Nav dropdown ===== */
.nav-links { position: relative; }
.nav-dropdown { position: relative; }

.nav-dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: .9;
}
.nav-dropbtn:hover { opacity: 1; }

.nav-caret { font-size: .9em; line-height: 1; }

/* Submenu panel */
.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  background: var(--nav-bg, rgba(12,14,22,0.72));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  display: none;                /* hidden by default */
  z-index: 1001;
}

.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  opacity: .95;
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: rgba(255,255,255,.08);
  opacity: 1;
}

/* Open state */
.nav-dropdown.open > .nav-submenu { display: block; }
.nav-dropdown.open > .nav-dropbtn .nav-caret { transform: rotate(180deg); }


/* Mobile: submenu should be inline within the slide-down menu */
@media (max-width: 960px) {
  .nav-dropdown { width: 100%; }
  .nav-submenu {
    position: static;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0 10px;  /* slight indent */
    display: none;
  }
  .nav-dropdown.open > .nav-submenu { display: block; }
  .nav-submenu a { padding: 8px 10px; }
}


/* Match sp-viewport box behavior for the solutions scroller */
.solutions-viewport {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* If you want the same horizontal track feel as sp-track */
.solutions-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 44px;
}
.solutions-track::-webkit-scrollbar { display: none; }


/* ===== Solutions carousel cards (use testimonial vibe) ===== */

/* wider tiles inside the solutions scroller */

@media (min-width: 1200px) {
  .solutions-track { grid-auto-columns: minmax(640px, 1fr); }
}
@media (max-width: 960px) {
  .solutions-track { grid-auto-columns: minmax(88vw, 1fr); }
}

/* item wrapper – reuse .sp-item base and adjust slightly */
.scard-wide {
  padding: 20px;
  border-radius: 16px;
}

/* internal grid (media | body) */
.srow {
  display: grid;
  grid-template-columns: 1fr 2fr; /* media : body */
  gap: 20px;
  align-items: center;
}

/* left column */
.smeta {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
}

.smedia {
  width: 100%;
  aspect-ratio: 16 / 10;                /* landscape tile */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, var(--muted), var(--bg));
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  overflow: hidden;
}
.smedia img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* right column */
.sbody .solution-title { margin: 0 0 6px; }
.sbody p { margin: 8px 0 10px; line-height: 1.55; }

/* mobile: stack */
@media (max-width: 960px) {
  .srow { grid-template-columns: 1fr; }
  .smeta { justify-items: stretch; }
}


/* Transparent section (inherits global background) */
.section-transparent {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  background: transparent; /* no background tint */
}

/* Ensure the content aligns center vertically */
.section-transparent .cta-row {
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* horizontal centering */
  gap: 1rem; /* optional spacing */
  margin-top: 16px; /* keep spacing from heading */
}


/* === Blocks SVG (replaces .blocks) === */
.blocks-illustration { display: flex; justify-content: center; }

.blocks-svg {
  /* Tunables */
  --blocks-w: clamp(220px, 28vw, 360px);
  --blocks-r: 14px;

  /* Layout & sizing */
  width: var(--blocks-w);
  height: auto;                 /* responsive <img> */
  aspect-ratio: 1 / 1;          /* matches 240x120 */
  display: block;
  border-radius: var(--blocks-r);

  /* Aesthetic: align with cards/panels */
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  background:
    radial-gradient(400px 200px at 20% 20%,
      color-mix(in srgb, var(--primary) 12%, transparent),
      transparent 60%);

  /* Polished hover lift (keeps your vibe) */
  transition: transform .2s ease, box-shadow .2s ease;
}
.blocks-svg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0,0,0,.32);
}

/* If you later inline the SVG (<svg class="blocks-svg">), keep it fluid */
svg.blocks-svg { width: var(--blocks-w); height: auto; }

/* Reduced motion: we can’t pause CSS-in-SVG via <img>,
   but we can soften emphasis around it */
@media (prefers-reduced-motion: reduce) {
  .blocks-svg { filter: opacity(.9) saturate(.9); }
}






/* =========================================
   Blog Prose Styles (dark-theme friendly)
   ========================================= */

/* Layout & readable width */
.post {
  max-width: 860px;
  margin: 0 auto;
}
.post-title {
  letter-spacing: 0.2px;
}
.post-meta {
  gap: 10px;
  font-size: 0.98rem;
}

/* Core typography */
.post-body {
  font-size: clamp(1rem, 1.05vw + .8rem, 1.125rem);
  line-height: 1.8;
  color: var(--text);
}

.post-body h2,
.post-body h3,
.post-body h4 {
  line-height: 1.25;
  margin: 28px 0 10px;
}

.post-body h2 {
  font-size: clamp(1.35rem, 1.2vw + 1rem, 1.75rem);
}
.post-body h3 {
  font-size: clamp(1.15rem, 0.8vw + 1rem, 1.35rem);
  color: color-mix(in srgb, var(--text) 88%, white 12%);
}
.post-body h4 {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--text) 82%, white 18%);
}

/* Subtle heading accent */
.post-body h2::after {
  content: "";
  display: block;
  width: 84px; height: 2px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: .7;
}

/* Paragraph rhythm */
.post-body > * + * { margin-top: 0.9rem; }
.post-body p { margin: 0; }

/* Lead paragraph */
.lead p {
  font-size: clamp(1.05rem, 0.9vw + 1rem, 1.25rem);
  line-height: 1.85;
  color: color-mix(in srgb, var(--text) 95%, white 5%);
  margin-bottom: .5rem;
}
.lead {
  position: relative;
  padding-left: 18px;
}
.lead::before {
  content: "";
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: .85;
}

/* Horizontal rule */
.post-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  margin: 22px 0;
}

/* Link treatment: elegant underline that animates */
.post-body a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size .25s ease, color .2s ease, opacity .2s ease;
  opacity: .95;
}
.post-body a:hover {
  color: color-mix(in srgb, var(--text) 85%, white 15%);
  background-size: 100% 2px;
  opacity: 1;
}

/* Lists */
.post-body ul, .post-body ol {
  padding-left: 1.2rem;
}
.post-body li + li { margin-top: .25rem; }

/* Callouts */
.callout {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 26px rgba(0,0,0,.22);
}
.callout p { margin: 0; }
.callout.info {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent) 10%, transparent),
    rgba(255,255,255,.02)
  );
}
.callout.success {
  --ok: #10B981;
  border-color: color-mix(in srgb, var(--ok) 40%, transparent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--ok) 10%, transparent),
    rgba(255,255,255,.02)
  );
}
.callout.warn {
  --warn: #F59E0B;
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--warn) 10%, transparent),
    rgba(255,255,255,.02)
  );
}

/* Blockquotes */
.post-body blockquote {
  margin: 1rem 0;
  padding: 12px 16px 12px 18px;
  border-left: 3px solid color-mix(in srgb, var(--primary) 70%, var(--accent) 30%);
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  color: color-mix(in srgb, var(--text) 90%, white 10%);
}
.post-body blockquote p { margin: 0; }

/* Code, pre, and inline code */
.post-body pre,
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.post-body code {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: .1rem .35rem;
  border-radius: 6px;
  font-size: .95em;
}
.post-body pre {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 16px;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.3);
}
.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: .95rem;
  line-height: 1.7;
}

/* Optional: faint top-right code label (set data-lang attr on <pre>) */
.post-body pre[data-lang]::after {
  content: attr(data-lang);
  position: absolute; top: 8px; right: 10px;
  font-size: .75rem; letter-spacing: .3px;
  color: var(--muted);
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.post-body thead th {
  text-align: left;
  font-weight: 700;
  font-size: .95rem;
  background: rgba(255,255,255,.05);
}
.post-body th, .post-body td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.post-body tbody tr:last-child td {
  border-bottom: 0;
}
.post-body tbody tr:hover {
  background: rgba(255,255,255,.03);
}

/* Figures & captions */
.post-body figure {
  margin: 18px 0;
}
.post-body figure img {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.post-body figcaption {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

/* Inline UI notes */
.post-body kbd {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0 .35rem;
  font-size: .9em;
}

/* Anchored headings (nice when your HTML has id=...) */
.post-body :target {
  scroll-margin-top: calc(var(--nav-h) + 16px);
  animation: target-pop .3s ease;
}
@keyframes target-pop {
  from { background: rgba(255,255,255,.05); }
  to   { background: transparent; }
}

/* “Back to Blog” button breathing space */
a.btn.btn-ghost { margin-bottom: 10px; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .post-body a { transition: none; }
  .post-body h2::after { animation: none; }
}
