/* =========================================================
   SPOTZO — Design tokens
   ========================================================= */
:root {
  /* Brand colors — teal-to-blue signal, like a location resolving on a map */
  --indigo: #16C7C8;
  --indigo-dark: #0FA3A4;
  --marigold: #2F80ED;
  --terracotta: #1E6FD9;
  --cyan: #6EE7F7;
  --navy: #08121E;

  /* Surfaces */
  --bg: #F8FCFD;
  --bg-soft: #EFFAFB;
  --surface: #E7F6F8;
  --line: #DCEEF2;
  --line-strong: #B7DEE6;

  /* Text */
  --ink: #08121E;
  --ink-soft: #44586A;
  --ink-faint: #7C93A3;

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', 'Inter', sans-serif;

  /* Shape / motion */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, .16);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .22);

  --container: 1180px;
  --nav-h: 76px;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   Loader (Custom Logo)
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.loader.is-hidden { 
  opacity: 0; 
  visibility: hidden; 
}

.loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Pulsing logo effect */
.loader__logo {
  height: clamp(36px, 8vw, 52px);
  width: auto;
  animation: logoPulse 1.2s ease-in-out infinite alternate;
}

/* Accent line loading indicator under the logo */
.loader__bar {
  width: 60px;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader__bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, var(--indigo), var(--marigold));
  border-radius: 3px;
  animation: loaderBarMove 1.2s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

@keyframes loaderBarMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--indigo-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
.btn--large { padding: 15px 28px; font-size: 16px; }
.btn--small { padding: 9px 16px; font-size: 13.5px; }
.btn--full { width: 100%; }

.ripple::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  opacity: 0;
  pointer-events: none;
}
.ripple.is-rippling::after {
  animation: ripple .6s var(--ease);
}
@keyframes ripple {
  0% { opacity: .6; width: 10px; height: 10px; }
  100% { opacity: 0; width: 400px; height: 400px; }
}

/* =========================================================
   Eyebrow / labels
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  font-weight: 500;
  color: var(--indigo);
  background: color-mix(in srgb, var(--indigo) 10%, transparent);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 0 rgba(47, 128, 237, .5);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(47, 128, 237, .5); }
  70% { box-shadow: 0 0 0 7px rgba(47, 128, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 128, 237, 0); }
}
.eyebrow--muted { color: var(--ink-soft); background: var(--surface); }
.eyebrow--on-dark { color: #B9DEE6; background: rgba(255,255,255,.08); }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 64px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) {
  /* Blurred, fixed-position elements are expensive to repaint during momentum
     scrolling on phones — this is the most common cause of the "smooth while
     touching, jumps once you let go" stutter. Swap to a cheap solid fill here. */
  .nav.is-scrolled {
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.nav__logo-img { height: clamp(22px, 5.4vw, 34px); width: auto; }
.footer__logo-img { height: clamp(20px, 4.6vw, 28px); width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--indigo);
  transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.nav__burger span {
  height: 2px; width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav__mobile a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav__mobile .btn { margin-top: 12px; text-align: center; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 0 100px;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 900px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 50% 20%, black 20%, transparent 75%);
  opacity: .6;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  letter-spacing: -0.02em;
}
.hero__title--accent {
  background: linear-gradient(100deg, var(--indigo), var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 22px;
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 520px;
}
.hero__ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero__proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.hero__avatars { display: flex; }
.hero__avatars span {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--indigo), var(--marigold));
}
.hero__avatars span:first-child { margin-left: 0; }
.hero__proof p { font-size: 13.5px; color: var(--ink-faint); }

/* ---- Interactive search demo ---- */
.search-demo { margin-top: 34px; max-width: 460px; }
.search-demo__box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 15px 20px;
  box-shadow: var(--shadow-md);
  
  /* Add this to lock the height when the text is completely deleted */
  min-height: 58px; 
}
.search-demo__box svg { flex-shrink: 0; color: var(--indigo); }
.search-demo__text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}
.search-demo__cursor {
  width: 2px; height: 17px;
  background: var(--indigo);
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}
@keyframes blink { 50% { opacity: 0; } }
.search-demo__results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-demo__result {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.search-demo__result.is-visible { opacity: 1; transform: translateY(0); }
.search-demo__result-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.search-demo__result-name { font-size: 13.5px; font-weight: 600; flex: 1; }
.search-demo__result-dist { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.search-demo__result-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--indigo-dark);
  background: color-mix(in srgb, var(--indigo) 14%, transparent);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.hero__visual { position: relative; }
.radar { width: 100%; height: auto; }
.radar__ring {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
}
.radar__sweep {
  animation: sweep 6s linear infinite;
  animation-play-state: paused;
  transform-origin: 240px 240px; /* pivot on the radar's own center, matching the dot */
}
.hero--in-view .radar__sweep { animation-play-state: running; }
@keyframes sweep { to { transform: rotate(360deg); } }
.pulse-ring { animation: pulseOut 2.4s ease-out infinite; animation-play-state: paused; transform-box: fill-box; transform-origin: center; }
.hero--in-view .pulse-ring { animation-play-state: running; }
@keyframes pulseOut {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(3.2); }
}

/* Pins sit dim by default and glow bright exactly when the sweep's leading
   edge passes over their angle, so discovery reads as continuous scanning
   rather than a one-off entrance. Percentages are each pin's angle around
   the center, mapped onto the sweep's 6s rotation. */
.pin { cursor: default; }
.pin--1 { animation: discover1 6s linear infinite; animation-play-state: paused; }
.pin--2 { animation: discover2 6s linear infinite; animation-play-state: paused; }
.pin--3 { animation: discover3 6s linear infinite; animation-play-state: paused; }
.hero--in-view .pin--1, .hero--in-view .pin--2, .hero--in-view .pin--3 { animation-play-state: running; }

@keyframes discover1 {
  0%, 7.5% { opacity: .3; }
  12.5% { opacity: 1; }
  22.5% { opacity: 1; }
  37.5%, 100% { opacity: .3; }
}
@keyframes discover2 {
  0%, 77.3% { opacity: .3; }
  82.3% { opacity: 1; }
  88% { opacity: 1; }
  96%, 100% { opacity: .3; }
}
@keyframes discover3 {
  0%, 36.3% { opacity: .3; }
  41.3% { opacity: 1; }
  48% { opacity: 1; }
  58%, 100% { opacity: .3; }
}

.pin__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--ink);
  text-anchor: middle;
  opacity: 0;
}
.pin--1 .pin__label { animation: labelFade1 6s linear infinite; animation-play-state: paused; }
.pin--2 .pin__label { animation: labelFade2 6s linear infinite; animation-play-state: paused; }
.pin--3 .pin__label { animation: labelFade3 6s linear infinite; animation-play-state: paused; }
.hero--in-view .pin--1 .pin__label,
.hero--in-view .pin--2 .pin__label,
.hero--in-view .pin--3 .pin__label { animation-play-state: running; }
@keyframes labelFade1 { 0%, 10% { opacity: 0; } 15%, 22.5% { opacity: 1; } 37.5%, 100% { opacity: 0; } }
@keyframes labelFade2 { 0%, 79.3% { opacity: 0; } 84.3%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes labelFade3 { 0%, 38.3% { opacity: 0; } 43.3%, 48% { opacity: 1; } 58%, 100% { opacity: 0; } }
.dark-invert { fill: var(--ink); }

/* =========================================================
   Section shared
   ========================================================= */
.section { padding: 108px 0; }
.section__head { max-width: 620px; margin-bottom: 56px; }
.section__head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.section__sub { margin-top: 16px; font-size: 16.5px; color: var(--ink-soft); }
.text-gradient {
  background: linear-gradient(100deg, var(--indigo), var(--marigold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Illustrations — hand-drawn flat 2D figures + organic accents
   ========================================================= */
.illustration { position: relative; }
.illustration--float svg { animation: illoFloat 5s ease-in-out infinite; }
@keyframes illoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.illustration__blob {
  position: absolute;
  inset: -18% -14%;
  background: radial-gradient(circle at 40% 35%, color-mix(in srgb, var(--indigo) 22%, transparent), transparent 65%),
              radial-gradient(circle at 65% 70%, color-mix(in srgb, var(--marigold) 16%, transparent), transparent 60%);
  filter: blur(6px);
  z-index: -1;
  border-radius: 50%;
}
.illustration--corner {
  position: absolute;
  right: -34px;
  bottom: -30px;
  width: 128px;
  filter: drop-shadow(0 12px 20px rgba(8,18,30,.18));
}

.problem__head-row {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
}
.section__head--flush { margin-bottom: 0; max-width: none; }

/* =========================================================
   Problem
   ========================================================= */
.problem { background: var(--bg-soft); }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 26px 26px 26px 8px;
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.problem__card:nth-child(3n+2) { border-radius: 26px 8px 26px 26px; }
.problem__card:nth-child(3n+3) { border-radius: 8px 26px 26px 26px; }
.problem__card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.problem__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--terracotta) 12%, transparent);
  color: var(--terracotta);
  margin-bottom: 18px;
}
.problem__card h3 { font-size: 17px; margin-bottom: 8px; }
.problem__card p { color: var(--ink-soft); font-size: 14.5px; }
.problem__card--stat {
  background: var(--ink);
  border-color: var(--ink);
  display: flex; align-items: center;
}
.problem__stat-line {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 19px;
  line-height: 1.4;
}
.problem__stat-line span { color: var(--terracotta); }

/* =========================================================
   Carousel — Swiping Stack Cards
   ========================================================= */
.carousel { 
  background: var(--bg-soft); 
  overflow: hidden; 
  padding-bottom: 60px;
}

.cardSwiper {
  width: 100%;
  max-width: 340px; /* Card deck width */
  height: 280px;
  padding: 10px 0 40px;
}

.cardSwiper .swiper-slide {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
}

.carousel__card-icon {
  width: 44px; 
  height: 44px;
  border-radius: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  margin-bottom: 16px;
  color: #fff;
}

.carousel__card h3 { 
  font-size: 18px; 
  margin-bottom: 8px; 
}

.carousel__card p { 
  font-size: 14px; 
  color: var(--ink-soft); 
}

/* Custom styling for pagination dots */
.cardSwiper .swiper-pagination-bullet-active {
  background: var(--indigo) !important;
}
/* =========================================================
   Solution
   ========================================================= */
.solution__inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.solution__headline { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 6px 0 20px; }
.solution__copy p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.solution__type-text, .solution__shop-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
}
.solution__shop-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--ink-faint);
}
.solution__visual { position: relative; }
.solution__visual svg rect:first-child { filter: drop-shadow(var(--shadow-md)); }

/* =========================================================
   How it works
   ========================================================= */
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how__card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.how__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.how__index {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 13px;
}
.how__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo), var(--marigold));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 16px 0 20px;
}
.how__card h3 { font-size: 18.5px; margin-bottom: 8px; }
.how__card p { color: var(--ink-soft); font-size: 14.5px; }

/* =========================================================
   Why Spotzo
   ========================================================= */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why__card {
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.why__card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg); box-shadow: var(--shadow-sm); }
.why__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.why__icon--blue { background: color-mix(in srgb, var(--indigo) 12%, transparent); color: var(--indigo); }
.why__icon--orange { background: color-mix(in srgb, var(--marigold) 14%, transparent); color: var(--marigold); }
.why__icon--teal { background: color-mix(in srgb, var(--terracotta) 12%, transparent); color: var(--terracotta); }
.why__card h3 { font-size: 16.5px; margin-bottom: 6px; }
.why__card p { color: var(--ink-soft); font-size: 14px; }

/* =========================================================
   Vision (dark section)
   ========================================================= */
.vision { position: relative; background: #08121E; overflow: hidden; } /* fixed dusk-indigo band, independent of light/dark toggle */
.vision__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(22,199,200,.35), transparent 60%),
    radial-gradient(500px circle at 85% 70%, rgba(47,128,237,.28), transparent 60%);
  pointer-events: none;
}
.section__head--light h2 { color: #fff; }
.section__sub--on-dark { color: #9CC3CE; }
.vision__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vision__item {
  background: #0E2534;
  padding: 34px 28px;
  transition: background-color .3s var(--ease);
}
.vision__item:hover { background: #123244; }
.vision__num {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--marigold);
  display: block;
  margin-bottom: 16px;
}
.vision__item h3 { color: #fff; font-size: 16.5px; margin-bottom: 8px; }
.vision__item p { color: #8FB4C0; font-size: 14px; }

/* =========================================================
   Waitlist
   ========================================================= */
.waitlist__card {
  position: relative;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.waitlist__intro {
  background: linear-gradient(160deg, var(--indigo), #0B3348 60%, #08121E);
  color: #fff;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.waitlist__intro .eyebrow--muted { background: rgba(255,255,255,.14); color: #D9F3F6; }
.waitlist__intro h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: 10px 0 14px; }
.waitlist__intro p { color: #C4E9EE; font-size: 15px; margin-bottom: 22px; }
.waitlist__list li {
  padding-left: 24px;
  position: relative;
  font-size: 14.5px;
  color: #D9F3F6;
  margin-bottom: 10px;
}
.waitlist__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--marigold);
  font-weight: 700;
}

.waitlist__form {
  background: var(--bg);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__field--full { grid-column: 1 / -1; }
.form__field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.form__field input, .form__field select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
.form__field input:focus, .form__field select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 14%, transparent);
  outline: none;
}
.form__field.has-error input, .form__field.has-error select { border-color: #EF4444; }
.form__error {
  font-size: 12.5px;
  color: #EF4444;
  min-height: 15px;
  display: block;
}
.form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
.form__checkbox input { width: 17px; height: 17px; accent-color: var(--indigo); }

.waitlist__success {
  grid-column: 1 / -1;
  padding: 70px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeUp .5s var(--ease);
}

/* Force hide when the hidden attribute or property is set */
.waitlist__success[hidden] {
  display: none !important;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.waitlist__success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--marigold) 15%, transparent);
  color: var(--marigold);
  display: flex; align-items: center; justify-content: center;
}
.waitlist__success h3 { font-size: 22px; }
.waitlist__success p { color: var(--ink-soft); max-width: 380px; }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--bg-soft); }
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.about__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}
.about__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--marigold);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.about__card p { margin-top: 14px; font-size: 16px; font-weight: 500; color: var(--ink); }

/* =========================================================
   FAQ
   ========================================================= */
.accordion__item {
  border-bottom: 1px solid var(--line);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  text-align: left;
}
.accordion__trigger svg { flex-shrink: 0; color: var(--ink-faint); transition: transform .3s var(--ease); }
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--indigo); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.accordion__panel p {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 640px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: 56px 0 0; border-top: 1px solid var(--line); }
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 40px;
}
.footer__tagline { margin-top: 8px; color: var(--ink-faint); font-size: 14px; }
.footer__links { display: flex; gap: 26px; }
.footer__links a { color: var(--ink-soft); font-size: 14.5px; transition: color .2s; }
.footer__links a:hover { color: var(--indigo); }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: color .2s, border-color .2s;
}
.footer__social a:hover { color: var(--indigo); border-color: var(--indigo); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  text-align: center;
}
.footer__bottom p { font-size: 13px; color: var(--ink-faint); padding:8px }

/* =========================================================
   Back to top
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 60;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--indigo); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .nav__links { display: none; }
  
  .nav__burger { 
    display: flex !important; 
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
  }

  .nav__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--ink); /* Ensures line contrast */
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
}

@media (max-width: 640px) {
  .nav__actions .btn--small {
    display: none; /* Hides desktop button in mobile header to fit burger button neatly */
  }
}
@media (max-width: 1024px) {
  .problem__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .how__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .vision__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .solution__inner { grid-template-columns: 1fr; }
  .solution__visual { order: -1; }
  .waitlist__card { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .problem__head-row { grid-template-columns: 1fr; }
  .problem__head-row .illustration { max-width: 200px; margin: 0 auto; order: -1; }
  .illustration--corner { width: 96px; right: -14px; bottom: -18px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .problem__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .vision__grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .waitlist__intro, .waitlist__form { padding: 34px 24px; }
  .footer__inner { flex-direction: column; padding-bottom: 10px;}
}
