:root {
  --bg: #06080f;
  --bg-2: #0c1220;
  --fg: #f3f5fb;
  --muted: #8a93a8;
  --accent-blue: #4d8cff;
  --accent-blue-2: #7ab1ff;
  --accent-yellow: #ffd233;
  --accent-yellow-2: #ffb800;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100vw;
}

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

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(77, 140, 255, 0.22), transparent 60%),
    radial-gradient(50% 40% at 90% 30%, rgba(255, 210, 51, 0.10), transparent 60%),
    radial-gradient(50% 40% at 50% 100%, rgba(77, 140, 255, 0.18), transparent 60%);
  filter: blur(20px);
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 15, 0.7);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* MAIN */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; position: relative; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent-yellow);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

/* Yellow shimmer gradient on section h2s */
.how h2,
.features h2,
.preview h2,
.contact h2 {
  background: linear-gradient(110deg,
    #fff 0%, #fff 30%,
    #ffd84d 45%, #facc15 50%, #ffd84d 55%,
    #fff 70%, #fff 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-shimmer 5s linear infinite;
}

@keyframes title-shimmer {
  0%   { background-position: 150% 0; }
  60%  { background-position: -150% 0; }
  100% { background-position: -150% 0; }
}

/* Scroll-reveal — slide in from below, slide out upward when scrolled past.
   Only active when JS has run, so no-JS users see content normally. */
html.js-ready .reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

html.js-ready .reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal-up.is-above {
  opacity: 0;
  transform: translateY(-60px);
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tile roll-in — each tile tumbles in from a random off-screen position
   with a big rotation, then rolls back out the same way when the section
   leaves the viewport. JS assigns the per-tile --roll-tx / --roll-ty /
   --roll-rot / --roll-dur variables once on init.

   Uses standalone `translate` + `rotate` properties (not `transform`) so
   each tile's hover effect (which uses `transform: translateY/scale`)
   still applies on top, no conflict. */
html.js-ready .roll-in {
  opacity: 0;
  translate: var(--roll-tx, 0) var(--roll-ty, 100vh);
  rotate: var(--roll-rot, 0deg);
  transition:
    opacity var(--roll-dur, 1s) cubic-bezier(0.2, 0.7, 0.2, 1),
    translate var(--roll-dur, 1s) cubic-bezier(0.2, 0.7, 0.2, 1),
    rotate var(--roll-dur, 1s) cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: translate, rotate, opacity;
}

html.js-ready .roll-in.rolled-in {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .roll-in {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
    transition: none;
  }
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.grad {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}

.lede strong { color: var(--fg); font-weight: 600; }

/* HERO */
.hero {
  text-align: center;
  padding: 5rem 0 3rem;
  position: relative;
  isolation: isolate;
}

.hero-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(80vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.55;
  z-index: -1;
  mask-image: radial-gradient(circle at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 75%);
}

.hero-radar .ring-big { border-color: rgba(250, 204, 21, 0.10); }
.hero-radar .ring-med { border-color: rgba(250, 204, 21, 0.14); }
.hero-radar .ring-sm  { border-color: rgba(250, 204, 21, 0.18); }

.hero-radar .beam {
  background: linear-gradient(to bottom, rgba(250, 204, 21, 0.55), transparent);
}

.hero > *:not(.hero-radar) { position: relative; z-index: 1; }

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.cta {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn.small { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn.big { padding: 1rem 1.7rem; font-size: 1rem; }

.btn.primary {
  background: linear-gradient(135deg, var(--accent-yellow), var(--accent-yellow-2));
  color: #000;
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 184, 0, 0.32);
}

.hint { color: var(--muted); font-size: 0.9rem; }
.hint a { color: var(--accent-blue-2); text-decoration: none; }
.hint a:hover { text-decoration: underline; }

/* Social pill buttons — circular badges with background + border, icons sit
   inside without scaling up huge. Used for Instagram and LinkedIn anywhere
   they appear (hero hint, contact, footer). */
.ig-link,
.li-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  vertical-align: middle;
  margin: 0 0.25rem;
  text-decoration: none;
  color: var(--muted);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.ig-link .ig-icon,
.li-link .li-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: fill 0.25s ease;
}

.ig-link:hover {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45);
}

.li-link:hover {
  background: #0a66c2;
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.45);
}

.hero-visual {
  margin: 4rem auto 0;
  max-width: 460px;
  position: relative;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -10% -15%;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(77, 140, 255, 0.35), transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

.hero-visual img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* HOW IT WORKS */
.how { text-align: center; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transform-origin: center bottom;
  transition: transform 0.5s cubic-bezier(0.25, 1.7, 0.45, 0.9),
              border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%),
                              rgba(250, 204, 21, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.step:hover {
  transform: translateY(-14px) scale(1.1);
  border-color: rgba(250, 204, 21, 0.4);
  background: var(--card-hover);
  box-shadow: 0 32px 70px -10px rgba(250, 204, 21, 0.25);
  z-index: 2;
}

.step:hover::before { opacity: 1; }

.num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-2));
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s, box-shadow 0.4s;
}

.step:hover .num {
  transform: scale(1.15) rotate(-8deg);
  background: linear-gradient(135deg, #facc15, #eab308);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
}

.step h3 {
  transition: color 0.3s,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              letter-spacing 0.4s;
  transform-origin: left center;
}

.step:hover h3 {
  color: #facc15;
  transform: scale(1.08) translateX(4px);
  letter-spacing: 0.01em;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.step:hover p { color: var(--fg); }

/* FEATURES */
.features { text-align: center; }

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
  text-align: left;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transform-origin: center bottom;
  transition: transform 0.5s cubic-bezier(0.25, 1.7, 0.45, 0.9),
              border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%),
                              rgba(250, 204, 21, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-14px) scale(1.08);
  border-color: rgba(250, 204, 21, 0.4);
  background: var(--card-hover);
  box-shadow: 0 32px 70px -10px rgba(250, 204, 21, 0.22);
  z-index: 2;
}

.card:hover::before { opacity: 1; }

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(77, 140, 255, 0.25), rgba(255, 210, 51, 0.18));
  border: 1px solid var(--border-strong);
  margin-bottom: 1.25rem;
  color: var(--fg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.4s, box-shadow 0.4s;
}

.card:hover .icon {
  transform: scale(1.15) rotate(-8deg);
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #000;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
}

.card h3 {
  transition: color 0.3s,
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              letter-spacing 0.4s;
  transform-origin: left center;
}

.card:hover h3 {
  color: #facc15;
  transform: scale(1.06) translateX(3px);
  letter-spacing: 0.01em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.card:hover p { color: var(--fg); }

/* LIVE RADAR */
.preview { text-align: center; }
.preview .lede { margin-bottom: 2.5rem; }

/* RADAR — matches the app's design (yellow rings + scanner beam) */
.radar-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  margin: 1rem auto 0;
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ring-big { width: 90%; height: 90%; border-color: rgba(250, 204, 21, 0.10); }
.ring-med { width: 65%; height: 65%; border-color: rgba(250, 204, 21, 0.15); }
.ring-sm  { width: 40%; height: 40%; border-color: rgba(250, 204, 21, 0.20); }

/* Vertical scanner beam — thin yellow gradient, rotates around center */
.scanner {
  position: absolute;
  top: 50%; left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  animation: spin 3s linear infinite;
  pointer-events: none;
  will-change: transform;
}

.beam {
  position: absolute;
  top: 0; left: 50%;
  width: 4px;
  height: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(250, 204, 21, 0.85), transparent);
  border-radius: 2px;
}

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Orbit container (rotates), inner counter-rotates so avatars stay upright */
.orbit {
  position: absolute;
  inset: 0;
  animation: orbit 45s linear infinite;
  pointer-events: none;
  will-change: transform;
}

@keyframes orbit { to { transform: rotate(360deg); } }

/* Pause radar animations while modal is open — saves CPU/GPU */
body.modal-open .scanner,
body.modal-open .orbit,
body.modal-open .dot-inner,
body.modal-open .me-dot { animation-play-state: paused; }

.user-dot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  font-family: inherit;
  transition: filter 0.25s ease;
}

.user-dot:hover { filter: brightness(1.15) drop-shadow(0 0 12px rgba(250, 204, 21, 0.6)); }

.dot-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  animation: orbit-counter 45s linear infinite;
  will-change: transform;
}

@keyframes orbit-counter { to { transform: rotate(-360deg); } }

.user-dot .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  object-fit: cover;
  background: var(--bg-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  display: block;
  transition: border-color 0.2s ease;
}

.user-dot:hover .avatar { border-color: #facc15; }

.emoji-bubble {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1px 6px;
  font-size: 14px;
  line-height: 1;
  z-index: 2;
  white-space: nowrap;
}

/* Center "Me" */
.me-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}

.me-dot {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 3px solid #facc15;
  background: linear-gradient(135deg, #facc15, #eab308);
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.5);
  animation: pulse-me 2.4s ease-out infinite;
}

@keyframes pulse-me {
  0%   { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55); }
  80%  { box-shadow: 0 0 0 28px rgba(250, 204, 21, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

.range-text {
  text-align: center;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1rem;
}

/* Download Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  animation: fade-in 0.18s ease;
}

.modal-content {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  animation: pop-in 0.18s ease-out;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.96); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.12); }

.modal-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
}

.modal-avatar-wrap img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  object-fit: cover;
}

.modal-emoji {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 16px;
  line-height: 1;
}

.modal-content h3 {
  font-size: 1.4rem;
  color: #facc15;
  margin-bottom: 0.25rem;
}

.modal-vibe {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.modal-msg {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.modal-cta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.modal-cta .btn { justify-content: center; }


/* DOWNLOAD */
.download { padding: 4rem 0; }

@property --grad-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.download-card {
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
  animation: dl-breathe 6s ease-in-out infinite;
}

/* Rotating conic-gradient border ring */
.download-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--grad-angle),
    #facc15 0%,
    rgba(77, 140, 255, 0.7) 25%,
    transparent 40%,
    #facc15 60%,
    rgba(77, 140, 255, 0.7) 80%,
    #facc15 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: dl-spin 6s linear infinite;
  z-index: 1;
  pointer-events: none;
}

/* Inner gradient fill */
.download-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 0%, rgba(250, 204, 21, 0.18), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(77, 140, 255, 0.22), transparent 55%),
    linear-gradient(135deg, #15101f, #0c1220);
  z-index: 0;
}

.download-card > * { position: relative; z-index: 2; }

@keyframes dl-spin { to { --grad-angle: 360deg; } }

@keyframes dl-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 60px -20px rgba(250, 204, 21, 0.25); }
  50%      { transform: scale(1.008); box-shadow: 0 30px 80px -20px rgba(250, 204, 21, 0.4); }
}

/* Floating sparkles */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  overflow: hidden;
}

.spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 10px #facc15, 0 0 20px rgba(250, 204, 21, 0.6);
  opacity: 0;
  animation: spark-twinkle 4.5s ease-in-out infinite;
}

.spark:nth-child(1) { top: 18%;  left: 12%; animation-delay: 0s;   }
.spark:nth-child(2) { top: 65%;  left: 8%;  animation-delay: 0.9s; }
.spark:nth-child(3) { top: 25%;  left: 88%; animation-delay: 1.6s; background: #7ab1ff; box-shadow: 0 0 10px #7ab1ff, 0 0 20px rgba(122, 177, 255, 0.6); }
.spark:nth-child(4) { top: 75%;  left: 82%; animation-delay: 2.4s; }
.spark:nth-child(5) { top: 48%;  left: 22%; animation-delay: 3.1s; background: #7ab1ff; box-shadow: 0 0 10px #7ab1ff, 0 0 20px rgba(122, 177, 255, 0.6); }
.spark:nth-child(6) { top: 35%;  left: 70%; animation-delay: 3.7s; }

@keyframes spark-twinkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  40%, 60% { opacity: 1; transform: scale(1.4); }
}

/* Free download badge */
.download-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 999px;
  margin-bottom: 1rem;
  animation: dl-badge-pulse 2.5s ease-in-out infinite;
}

@keyframes dl-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(250, 204, 21, 0); }
}

.download-card h2 {
  margin-bottom: 0.75rem;
}

.download-card p {
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* Shine sweep on download buttons */
.btn.shine {
  position: relative;
  overflow: hidden;
  animation: dl-btn-pulse 2.4s ease-in-out infinite;
}

.btn.shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.5s ease-in-out infinite;
}

.btn.shine > * { position: relative; z-index: 1; }

.btn.shine:hover { animation-play-state: paused; transform: translateY(-3px) scale(1.04); }

@keyframes btn-shine {
  0%   { left: -120%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

@keyframes dl-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.5); }
  50%      { box-shadow: 0 0 0 12px rgba(250, 204, 21, 0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .download-card,
  .download-card::before,
  .spark,
  .download-badge,
  .btn.shine,
  .btn.shine::before { animation: none !important; }
}

/* TESTIMONIALS */
.testimonials { text-align: center; padding: 5rem 0 4rem; }
.testimonials .lede { margin-bottom: 2.5rem; }

/* Outer strip — full-bleed (escapes main's max-width) so the marquee
   stretches edge-to-edge regardless of viewport size. Soft fade masks
   on the left/right edges so cards bleed gracefully off-screen. */
.testimonials-strip {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0.5rem 0.5rem;
  animation: t-scroll 240s linear infinite;
  will-change: transform;
}

/* Pause on hover OR when JS adds .is-paused (click-to-pause) */
.testimonials-strip:hover .testimonials-track,
.testimonials-track.is-paused {
  animation-play-state: paused;
}

@keyframes t-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
}

.testimonial {
  flex: 0 0 320px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.25, 1.7, 0.45, 0.9),
              border-color 0.35s, background 0.35s, box-shadow 0.35s;
}

/* Same radial-glow tile effect as .card / .step */
.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%),
                              rgba(250, 204, 21, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-8px) scale(1.04);
  border-color: rgba(250, 204, 21, 0.4);
  background: var(--card-hover);
  box-shadow: 0 28px 60px -12px rgba(250, 204, 21, 0.22);
  z-index: 2;
}

.testimonial:hover::before { opacity: 1; }

.t-stars {
  color: #facc15;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.85rem;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.3);
}

.t-msg {
  color: var(--fg);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.15rem;
  font-weight: 400;
}

.t-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.t-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #000;
  background: var(--ag, linear-gradient(135deg, #facc15, #eab308));
  flex-shrink: 0;
}

.t-meta { display: flex; flex-direction: column; line-height: 1.25; }
.t-meta strong { font-size: 0.88rem; color: var(--fg); font-weight: 600; }
.t-meta small { font-size: 0.74rem; color: var(--muted); margin-top: 1px; }

.testimonials-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.testimonials-cta .btn {
  padding: 0.95rem 1.7rem;
  font-size: 1rem;
}

/* Review modal — re-uses .modal styles, adds a star icon header */
.review-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: #000;
  background: linear-gradient(135deg, #facc15, #eab308);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
}

@media (max-width: 768px) {
  .testimonial { flex: 0 0 280px; padding: 1.25rem 1.15rem; }
  .testimonials-track { gap: 1rem; animation-duration: 180s; }
  .testimonials-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
  .testimonials-strip {
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
}

/* CONTACT */
.contact { text-align: center; }

.contact-form {
  max-width: 580px;
  margin: 2.5rem auto 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
  width: 100%;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23facc15' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.contact-form select option { background: #1a1a1a; color: var(--fg); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-yellow);
  background: var(--card-hover);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 0.5rem;
  position: relative;
  min-width: 160px;
  justify-content: center;
}

.contact-form button[disabled] { opacity: 0.7; cursor: wait; }

.char-count {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

.char-count.warn { color: #ffb800; }
.char-count.bad  { color: #ff6b6b; }

.form-status {
  font-size: 0.9rem;
  color: var(--accent-yellow);
  min-height: 1.2em;
}

.form-status.error   { color: #ff6b6b; }
.form-status.success { color: #22c55e; }

.form-info {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.contact-alt { color: var(--muted); font-size: 0.95rem; }
.contact-alt a { color: var(--accent-blue-2); text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer-copy { font-size: 0.85rem; color: var(--muted); }

.footer-privacy {
  font-size: 0.85rem;
  color: var(--accent-blue-2);
  text-decoration: none;
}
.footer-privacy:hover { text-decoration: underline; }

.footer-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

.footer-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 0 0.25rem;
}

/* Download store pills — outlined dark, brand icon + two-line label */
.footer-stores { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.18);
  color: var(--fg);
}

.store-btn svg { flex-shrink: 0; }

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.store-btn small {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-btn strong {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* RESPONSIVE */

/* Prevent any text from breaking the layout */
h1, h2, h3, h4, p, a, span, button, label {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Large tablet & laptop */
@media (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.875rem; }
  .features .grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet & smaller */
@media (max-width: 900px) {
  main { padding: 0 1.5rem; }
  section { padding: 3.5rem 0; }
  nav { padding: 0.85rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding: 4rem 0 2.5rem; }
  h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
}

/* Phone */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  nav { padding: 0.75rem 1rem; }
  .logo { font-size: 1rem; }
  .logo img { width: 28px; height: 28px; }
  .btn.small { padding: 0.45rem 0.85rem; font-size: 0.8rem; }

  /* Layout */
  main { padding: 0 1rem; }
  section { padding: 3rem 0; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; }
  .hero .lede { font-size: 1rem; padding: 0 0.5rem; }
  .hero .cta { gap: 0.6rem; }
  .hero .cta .btn { width: 100%; justify-content: center; }
  .badge { font-size: 0.72rem; padding: 0.35rem 0.75rem; }

  /* Headings */
  h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  h3 { font-size: 1.05rem; }
  .lede { font-size: 1rem; }
  .kicker { font-size: 0.7rem; letter-spacing: 0.18em; }

  /* Cards / steps */
  .card, .step { padding: 1.4rem; }
  .features .grid, .steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .icon, .num { width: 36px; height: 36px; font-size: 1rem; }

  /* Disable expensive hover transforms (no hover on touch) */
  .card:hover, .step:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 12px 24px -8px rgba(250, 204, 21, 0.15);
  }
  .card:hover h3, .step:hover h3 {
    transform: none;
    letter-spacing: -0.025em;
  }

  /* Radar */
  .radar-stage { max-width: 320px; }
  .me { width: 60px; height: 60px; font-size: 0.7rem; border-width: 2px; }
  .user-dot { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .user-dot .avatar { width: 44px; height: 44px; }
  .emoji-bubble { top: -18px; font-size: 12px; }
  .distance { font-size: 0.55rem; }

  /* Download card */
  .download-card { padding: 2.5rem 1.25rem; border-radius: 22px; }
  .download-card .cta { flex-direction: column; }
  .download-card .btn.big { width: 100%; justify-content: center; }
  .download-badge { font-size: 0.7rem; }

  /* Contact */
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form button { width: 100%; }

  /* Modal */
  .modal-content { padding: 1.5rem 1.25rem; max-width: 100%; }
  .modal-avatar-wrap, .modal-avatar-wrap img { width: 80px; height: 80px; }
  .modal-cta .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
  }
  .footer-brand { align-items: center; }
  .footer-actions {
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
  }
  .footer-group { align-items: center; width: 100%; }
  .footer-stores { justify-content: center; }
  .footer-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
    margin: 0;
  }

  /* Hero radar background — keep under viewport width */
  .hero-radar { width: 90vw; opacity: 0.4; }

  /* Tile roll-in: tone down distance/rotation on small screens */
  html.js-ready .roll-in {
    transition-duration: 0.7s;
  }
}

/* Small phone */
@media (max-width: 380px) {
  main { padding: 0 0.75rem; }
  h1 { font-size: clamp(1.9rem, 12vw, 2.4rem); }
  .card, .step { padding: 1.2rem; }
  .download-card { padding: 2rem 1rem; }
  .modal-content { padding: 1.25rem 1rem; }
}
