:root {
  --bg: #0a0712;
  --bg-soft: #130d1f;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f4f2fa;
  --muted: #a29cb8;
  --blue: #29b6f6;
  --blue-deep: #1857d1;
  --magenta: #d946ef;
  --violet-deep: #7c3aed;
  --gradient: linear-gradient(120deg, var(--blue) 0%, var(--violet-deep) 55%, var(--magenta) 100%);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-headline: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Custom scrollbar — branded, not the bare OS default ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--magenta) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-image: var(--gradient);
  border-radius: 999px;
  border: 2px solid var(--bg);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { border-width: 1px; }

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

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- Spotlight-glow hover (cursor-tracked radial highlight) ----------
   Replaces a trailing custom cursor — research flagged trailing cursors as a
   dated, low-value pattern; a cursor-tracked glow *within* interactive cards
   is the current premium pattern for dark dashboard-style UI and reads as
   more purposeful since it responds to what you're actually hovering. */
.spotlight-card, .tilt-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card::before, .tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(217, 70, 239, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight-card:hover::before, .tilt-card:hover::before { opacity: 1; }
.spotlight-card > *, .tilt-card > * { position: relative; z-index: 1; }

/* ---------- Scroll progress ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 60;
}

/* ---------- Live indicator dot (eyebrow) ---------- */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5d8f;
  margin-right: 8px;
  animation: blink-dot 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 93, 143, 0.8);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 7, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
}

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

.nav-cta {
  position: relative;
  color: var(--text);
  background: #14101c;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  opacity: 0.55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.2s ease;
  z-index: -1;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(217, 70, 239, 0.25); }
.nav-cta:hover::before { opacity: 1; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 16px; gap: 10px; }
  .brand-mark { height: 26px; }
  .nav-cta { padding: 8px 14px; font-size: 0.8rem; }
  .hero-content { margin-top: 50px; margin-bottom: 50px; }
  #bg-canvas { opacity: 0.9; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 24px 60px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.hero-content { max-width: 720px; }

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 18px;
}

.headline {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2.8rem, 7.5vw, 5.6rem);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}
/* Type-collage: the second line leans lighter + italic against the heavy
   first line, giving the headline internal contrast instead of one uniform
   weight — a current alternative to oversized-but-flat display type. */
.headline .reveal-line:last-child .reveal {
  font-weight: 500;
  font-style: italic;
}

.reveal-line { display: block; overflow: hidden; }
.reveal-line .reveal { display: inline-block; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 30px rgba(41, 182, 246, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(41, 182, 246, 0.5); }
.btn-primary svg { transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Hero visual: live demo card ---------- */
.hero-visual {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(38vw, 400px);
  perspective: 1200px;
}

/* ---------- Phone device frame — a real product mockup, not an abstract card.
   Research: premium hero mockups show the actual app inside a device frame;
   the frame itself idles with ambient float + responds to cursor with a
   subtle 3D tilt (input-coupled motion, not a fire-once entrance). */
.phone-frame {
  position: relative;
  width: 300px;
  height: 622px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 52px;
  background: linear-gradient(155deg, #2a2632, #0f0c16 45%, #050308);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  animation: demo-float 6s ease-in-out infinite;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(-10deg) rotateX(4deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-frame::before {
  /* faint edge highlight simulating a metal/glass bezel catching light */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.35), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.phone-notch {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #050308;
  border-radius: 20px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg);
}
.phone-screen-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%; /* keep her face centered in frame at phone-screen proportions */
  z-index: 0;
}

/* ---------- Live call UI overlay — reads like a real in-call HUD sitting
   on top of the video feed, not a solid app screen ---------- */
/* Bottom-anchored HUD, like a real video-call overlay: the photo reads
   clearly at the top, info panel sits low against a scrim that's solid at
   the bottom and fades to nothing by mid-screen — never flat dark top-to-bottom. */
.demo-card {
  padding: 20px;
  height: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(5, 3, 8, 0.92) 0%, rgba(5, 3, 8, 0.75) 28%, rgba(5, 3, 8, 0.25) 58%, transparent 85%);
}
.phone-home-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 3;
}

.demo-card {
  padding: 22px;
  padding-top: 46px;
  height: 100%;
}

.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #ff8fa8;
  font-weight: 700;
}
.demo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5d8f;
  animation: blink-dot 1.4s ease-in-out infinite;
}
.demo-timer { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Two named people + a central sync ring — the composite score visibly
   "belongs" to both sides, per the mirrored-layout pattern real duo-data
   products use (each person's own vitals flank a shared center metric). */
.demo-people {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.demo-person { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.demo-person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.demo-person-avatar-a { background: radial-gradient(circle at 35% 30%, #b3e9ff, var(--blue) 65%); }
.demo-person-avatar-b { background: radial-gradient(circle at 35% 30%, #f3c3ff, var(--magenta) 65%); }
.demo-person-name { font-size: 0.72rem; color: var(--muted); }
.demo-person-bpm { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
.demo-bpm-heart { color: #ff5d8f; font-size: 0.8rem; animation: heartbeat 1.1s ease-in-out infinite; }

.demo-sync-ring-wrap { position: relative; width: 76px; height: 76px; flex-shrink: 0; }
.demo-sync-ring { width: 100%; height: 100%; }
.demo-ring-track { stroke: rgba(255, 255, 255, 0.08); }
.demo-ring-progress {
  stroke: url(#ringGrad);
  stroke-dasharray: 327;
  stroke-dashoffset: 29;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.demo-sync-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.demo-sync-ring-label span { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.demo-sync-ring-label small { font-size: 0.55rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.demo-updated {
  text-align: center;
  font-size: 0.62rem;
  color: #6fd67f;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.demo-metric-block { margin-bottom: 12px; }
.demo-metric-block:last-child { margin-bottom: 0; }
.demo-metric-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.demo-metric-label-row span:last-child { color: var(--text); font-weight: 700; }

.demo-sync-track {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.demo-sync-fill { display: block; height: 100%; border-radius: 4px; background: var(--gradient); transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }

/* Mirrored talk-balance bar: two colors growing from opposite ends toward
   a shared midpoint, so "balance" reads as the meeting point, not two
   disconnected numbers. */
.demo-balance-track {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.demo-balance-fill { flex: none; display: block; height: 100%; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.demo-balance-a { background: var(--blue); border-radius: 4px 0 0 4px; }
.demo-balance-b { background: var(--magenta); border-radius: 0 4px 4px 0; }

.demo-float {
  position: absolute;
  background: rgba(20, 14, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.demo-float-1 { top: -6%; left: -18%; animation: demo-float-alt 5s ease-in-out infinite; }
.demo-float-2 { bottom: 4%; right: -10%; font-size: 1.3rem; padding: 10px 12px; animation: demo-float-alt 5s ease-in-out infinite 1.4s; }

@keyframes demo-float {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-14px) rotateX(1deg) rotateY(-1deg); }
}
@keyframes demo-float-alt {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; } 50% { opacity: 0.25; }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); } 25% { transform: scale(1.25); } 40% { transform: scale(1); }
}

@media (max-width: 900px) {
  .hero-visual { position: relative; top: auto; right: auto; transform: none; width: min(300px, 78vw); margin: 56px auto 0; }
  .hero { padding-top: 96px; padding-bottom: 40px; }
  .phone-frame { width: 260px; height: 540px; padding: 12px; }
  .phone-notch { top: 20px; width: 76px; height: 22px; }
  .demo-card { padding: 16px; padding-top: 38px; }
  .demo-float-1 { left: -8%; top: -4%; font-size: 0.72rem; padding: 6px 10px; }
  .demo-float-2 { right: -4%; }
}

@media (max-width: 480px) {
  .hero-content { text-align: left; }
  .subhead { margin-bottom: 32px; }
  .hero-actions { margin-bottom: 8px; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--blue), transparent);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* ---------- Stats ---------- */
.stats {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 24px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
}
.stat-icon-accounts { color: var(--blue); }
.stat-icon-secure { color: var(--magenta); }
.stat-icon-permanent { color: var(--violet-deep, #7c3aed); }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-infinity .stat-number { font-size: clamp(3rem, 7vw, 4.6rem); }
.stat p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Live connection counter ---------- */
.live-counter {
  max-width: 620px;
  margin: 36px auto 0;
  padding: 0 24px;
  text-align: center;
}
.live-counter-inner {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  background: linear-gradient(160deg, rgba(217, 70, 239, 0.12), rgba(41, 182, 246, 0.08));
  border: 1px solid rgba(217, 70, 239, 0.25);
  border-radius: 999px;
  padding: 12px 26px;
}
.live-counter-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
  align-self: center;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.live-counter-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.live-counter-label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Tilt cards (3D hover, JS-driven) ---------- */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ---------- Magnetic elements (JS-driven, transition softens release) ---------- */
.magnetic, .magnetic-sm { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- Sections ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin: 0 0 56px;
  font-weight: 700;
}

.how, .features, .privacy, .cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover { border-color: rgba(41, 182, 246,0.35); }

.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }

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

.features { padding: 100px 24px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  background: #131019;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 32px;
  transition: background 0.3s ease;
}
.feature-card:hover {
  background: #17131f;
}
.feature-card::after {
  /* border-gradient intensify on hover — flat elevation change + glow,
     not scale/lift (Linear-style restraint over 2022-era hover tricks) */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(217, 70, 239, 0), rgba(41, 182, 246, 0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.3s ease;
  pointer-events: none;
}
.feature-card:hover::after {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.5), rgba(41, 182, 246, 0.5));
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--gradient);
  position: relative;
}
.feature-icon::after {
  content: '';
  position: absolute;
  inset: 12px;
  background: var(--bg);
  border-radius: 6px;
  mask: radial-gradient(circle, transparent 30%, black 31%);
}

.feature-card h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }

.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.mini-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.mini-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--gradient);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mini-bar span.in-view { width: var(--w); }

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

/* ---------- Replay showcase ---------- */
.replay-showcase {
  max-width: 1180px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin: -36px 0 48px;
  font-size: 1rem;
}
.replay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.replay-showcase-card {
  background: #131019;
  border: 1px solid var(--card-border);
  border-radius: 22px;
  padding: 32px;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
}
.replay-showcase-card:hover { background: #17131f; }
.replay-showcase-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--magenta);
  margin-bottom: 10px;
}
.replay-showcase-card h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 1.2rem; }
.replay-showcase-card p { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.replay-mini-list { display: flex; flex-direction: column; gap: 8px; }
.replay-mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* margin:auto on a flex column item centers it in BOTH axes within
   whatever space is left after the text above it — so the ring sits
   centered in the remaining box height, not just centered horizontally
   flush under the paragraph. */
.pulse-mini-wrap { position: relative; width: 160px; height: 160px; margin: auto; flex-shrink: 0; }
.pulse-mini-ring { width: 100%; height: 100%; }
.pulse-mini-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pulse-mini-label span { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.pulse-mini-label small { color: var(--magenta); font-weight: 700; font-size: 0.78rem; margin-top: 6px; }

.streak-mini-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  background: linear-gradient(120deg, rgba(255, 140, 40, 0.18), rgba(217, 70, 239, 0.12));
  border: 1px solid rgba(255, 160, 60, 0.35);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.heatmap-mini {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  width: 100%;
  max-width: 320px;
  margin: 8px auto 0;
}
.heatmap-mini > span { aspect-ratio: 1; border-radius: 4px; }

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

/* ---------- Time capsule showcase — its own standalone block, deliberately
   heavier than a regular feature card since this is one of the product's
   most distinctive, shareable moments. ---------- */
.capsule-showcase {
  padding: 100px 24px 0;
}
.capsule-showcase-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 40px 56px;
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(circle at 30% 0%, rgba(41, 182, 246, 0.1), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(217, 70, 239, 0.1), transparent 55%), #131019;
  border: 1px solid var(--card-border);
}
.capsule-showcase-visual { margin-bottom: 24px; }
.capsule-showcase-icon {
  width: 132px;
  height: 132px;
  filter: drop-shadow(0 0 28px rgba(217, 70, 239, 0.4));
}
.capsule-showcase-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 14px;
}
.capsule-showcase-inner .section-title { margin-bottom: 14px; font-size: calc(clamp(1.8rem, 4vw, 2.6rem) + 2px); }
.capsule-showcase-body {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 36px;
}

.capsule-preview-card {
  max-width: 320px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 18px;
  text-align: left;
}
.capsule-preview-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--gradient);
  overflow: hidden;
}
.capsule-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.capsule-preview-text {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}
.capsule-preview-date { font-size: 0.85rem; color: var(--muted); }

@media (max-width: 600px) {
  .capsule-showcase { padding: 70px 16px 0; }
  .capsule-showcase-inner { padding: 48px 24px 40px; border-radius: 22px; }
  .capsule-showcase-icon { width: 68px; height: 68px; }
}

.privacy {
  text-align: center;
  padding: 100px 24px 0;
}
.privacy-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px;
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(41, 182, 246,0.06), rgba(217, 70, 239,0.04));
}
.privacy-inner h2 { margin-top: 0; }
.privacy-inner p { color: var(--muted); line-height: 1.7; font-size: 1.02rem; }

.cta { text-align: center; padding: 100px 24px; }
.cta-headline {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 40px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Contact ---------- */
.contact { padding: 0 24px 140px; text-align: center; }
.contact-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(41, 182, 246, 0.06), rgba(217, 70, 239, 0.04));
  backdrop-filter: blur(20px);
}
.contact-eyebrow { margin-bottom: 10px; }
.contact-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 10px;
}
.contact-sub { color: var(--muted); margin: 0 0 28px; font-size: 1rem; }

.contact-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }
.contact-input,
.contact-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.07);
}
.contact-submit {
  width: 100%;
  margin: 6px 0 0;
  border: none;
  cursor: pointer;
  justify-content: center;
}
.contact-status {
  margin: 4px 0 0;
  font-size: 0.88rem;
  text-align: center;
}
.contact-status.is-success { color: #34d399; }
.contact-status.is-error { color: #f87171; }

@media (max-width: 640px) {
  .contact-card { padding: 36px 24px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; }
.step, .feature-card, .replay-showcase-card, .privacy-inner, .cta-inner, .capsule-showcase-inner { opacity: 0; transform: translateY(24px); }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 24px 48px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-dot { opacity: 0.4; }
.footer-row { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 640px) {
  .footer { flex-direction: column; row-gap: 10px; padding: 28px 20px 40px; }
  .footer-dot-desktop { display: none; }
}
.hero-trial-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer a { color: #f0abfc; transition: color 0.15s ease; }
.footer a:visited { color: #f0abfc; }
.footer a:hover { color: #fbcfe8; }

/* ---------- Script-specific font fallbacks ---------- */
html[lang="ar"] body, html[lang="ar"] .headline, html[lang="ar"] .cta-headline { font-family: 'Noto Sans Arabic', var(--font-body); }
html[lang="zh"] body, html[lang="zh"] .headline, html[lang="zh"] .cta-headline { font-family: 'Noto Sans SC', var(--font-body); }

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-visual { right: auto; left: 2%; }
[dir="rtl"] .eyebrow .live-dot { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .scroll-cue { left: auto; right: 24px; }
[dir="rtl"] .btn-primary svg { transform: scaleX(-1); }
[dir="rtl"] .btn-primary:hover svg { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .step-num,
[dir="rtl"] .replay-showcase-eyebrow { text-align: right; }
[dir="rtl"] .demo-float-1 { left: auto; right: -18%; }
[dir="rtl"] .demo-float-2 { right: auto; left: -10%; }
@media (max-width: 900px) {
  [dir="rtl"] .hero-visual { left: auto; }
}
