/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1b2a;
  --bg2:       #112233;
  --bg3:       #0a1520;
  --teal:      #00e5c8;
  --amber:     #ffb347;
  --teal-dim:  rgba(0, 229, 200, 0.12);
  --text:      #e8f0f8;
  --muted:     #7a9ab8;
  --card:      rgba(255,255,255,0.05);
  --border:    rgba(255,255,255,0.08);
  --radius:    16px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Semi-transparent section backgrounds — let the shader show through */
  --sec-a:  rgba(13,  27,  42,  0.78);   /* features, how-it-works, privacy */
  --sec-b:  rgba(10,  21,  32,  0.82);   /* screenshots, footer */
  --sec-c:  rgba(17,  34,  51,  0.78);   /* watch */
}

html { scroll-behavior: smooth; }

body {
  /* Fallback colour if WebGL canvas doesn't load — black matches the shader background */
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Fixed WebGL background canvas ────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
  display: block;
  pointer-events: none;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 200, 0.1);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Transparent — the fixed #bg-canvas shows through */
  background: transparent;
}

/* Gradient overlay — darkens left/text side, smooth bottom transition */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.55) 38%,
      rgba(0, 0, 0, 0.15) 62%,
      transparent 100%
    ),
    linear-gradient(
      to top,
      var(--sec-a) 0%,
      transparent 16%
    );
}

/* Content wrapper */
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-text { flex: 1; }
.hero-text h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(232, 240, 248, 0.72);
  max-width: 440px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.btn-appstore img { height: 52px; }
.btn-appstore:hover { opacity: 0.85; }

/* Phone images + teal glow behind them */
.hero-phones {
  flex: 0 0 auto;
  position: relative;
  width: 340px;
  height: 520px;
}

/* Radial teal glow — shader bleeds through this */
.hero-phones-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 229, 200, 0.18) 0%,
    rgba(255, 179, 71, 0.06) 50%,
    transparent 75%
  );
  z-index: 0;
  pointer-events: none;
}

.phone {
  position: absolute;
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65),
              0 0 0 1px rgba(255,255,255,0.06);
  z-index: 1;
}
.phone-main {
  width: 220px;
  left: 60px;
  top: 0;
  z-index: 2;
}
.phone-back {
  width: 200px;
  left: 0;
  top: 60px;
  z-index: 1;
  opacity: 0.55;
  filter: blur(1px);
}

/* Subtle scroll hint chevron */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.4;
}
.hero-scroll-hint span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ─── Features ─────────────────────────────────────────── */
.features {
  background: var(--sec-a);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 100px 24px;
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.features h2, .screenshots h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 52px;
  color: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: var(--teal);
  background: var(--teal-dim);
  transform: translateY(-3px);
}
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: #fff; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ─── Screenshots ──────────────────────────────────────── */
.screenshots {
  padding: 100px 24px;
  background: var(--sec-b);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.screenshots-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.screenshots-row figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.screenshots-row img {
  width: 160px;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55),
              0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.screenshots-row img:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 64px rgba(0,0,0,0.65),
              0 0 24px rgba(0, 229, 200, 0.12);
}
.screenshots-row figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ─── Privacy Section ──────────────────────────────────── */
.privacy-section {
  background: var(--sec-a);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 100px 24px;
}
.privacy-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.privacy-icon { font-size: 3rem; margin-bottom: 16px; }
.privacy-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 28px;
  color: #fff;
}
.privacy-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  margin-bottom: 36px;
}
.privacy-list li {
  color: var(--muted);
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 0.95rem;
}
.privacy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--bg);
  text-decoration: none;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--sec-b);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { color: var(--muted); font-size: 0.8rem; }

/* ─── Prose (Privacy + Support pages) ─────────────────── */
.prose {
  max-width: 720px;
  margin: 60px auto;
  padding: 48px 52px 64px;
  background: rgba(13, 27, 42, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.prose h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 8px;
}
.prose .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 48px;
}
.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 40px 0 12px;
}
.prose p { color: var(--muted); margin-bottom: 16px; line-height: 1.75; }
.prose ul {
  color: var(--muted);
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose ul li { margin-bottom: 6px; line-height: 1.7; }
.prose a { color: var(--teal); }
.prose strong { color: var(--text); }

/* FAQ */
.faq { margin: 0 0 40px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 12px;
  background: var(--card);
}
.faq-item h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.faq-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.faq-item a { color: var(--teal); }

/* ─── How It Works ─────────────────────────────────────── */
.how-it-works {
  background: var(--sec-a);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 100px 24px;
}
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.how-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: #fff;
}
.how-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto 52px;
  line-height: 1.75;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
  position: relative;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.pillar-card:hover {
  border-color: var(--teal);
  background: var(--teal-dim);
  transform: translateY(-3px);
}
.pillar-card-bonus {
  border-color: rgba(0, 229, 200, 0.2);
  background: rgba(0, 229, 200, 0.03);
}
.pillar-weight {
  display: inline-block;
  background: var(--teal);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.pillar-weight-bonus {
  background: rgba(0, 229, 200, 0.18);
  color: var(--teal);
}
.pillar-icon { font-size: 1.6rem; margin-bottom: 8px; }
.pillar-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.pillar-card p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.58;
}
.how-footnote {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── Radial Orbital Timeline ───────────────────────────── */
.orbital-wrap {
  display: flex;
  justify-content: center;
  margin: 48px 0 12px;
  /* scale down on smaller screens via CSS var */
  --orb-scale: 1;
  transform: scale(var(--orb-scale));
  transform-origin: center top;
}

.orbital-container {
  position: relative;
  width:  560px;
  height: 560px;
  flex-shrink: 0;
}

/* Orbit track ring */
.orb-ring {
  position: absolute;
  width:  400px;   /* diameter = RADIUS * 2 */
  height: 400px;
  top:  50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

/* Centre sphere */
.orb-centre {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width:  72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.orb-ping {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 200, 0.25);
  animation: orbPing 2.4s ease-out infinite;
}
.orb-ping-1 { width: 88px;  height: 88px;  animation-delay: 0s; }
.orb-ping-2 { width: 108px; height: 108px; animation-delay: 1.2s; }

@keyframes orbPing {
  0%   { opacity: 0.7; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.15); }
}

.orb-core {
  width:  64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #00E5CC, #0066cc, #0D1B2A);
  box-shadow: 0 0 24px rgba(0, 229, 200, 0.4), 0 0 48px rgba(0, 102, 204, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.orb-core-text {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
}

/* Orbital nodes */
.orb-node {
  position: absolute;
  /*
   * Translate X by -50% to centre horizontally.
   * Translate Y by -22px = half of the 44px bubble height,
   * so the BUBBLE CENTRE sits exactly on the orbit track —
   * the label hangs below/outside the circle naturally.
   */
  transform: translate(-50%, -22px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.orb-node-bubble {
  width:  44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.25s, border-color 0.25s, background 0.25s,
              box-shadow 0.25s;
}

.orb-node-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  pointer-events: none;
}

.orb-node-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.orb-node-wt {
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.03em;
}

/* Active node */
.orb-node--active .orb-node-bubble {
  transform: scale(1.4);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
.orb-node--active .orb-node-name { color: #fff; }

/* Related (connected) nodes */
.orb-node--related .orb-node-bubble {
  border-color: var(--teal);
  background: rgba(0, 229, 200, 0.12);
  animation: nodeRelatedPulse 1.4s ease-in-out infinite;
}
.orb-node--related .orb-node-name { color: var(--teal); }

@keyframes nodeRelatedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0, 229, 200, 0);  }
}

/* Info card — centred over the orbit */
.orb-card {
  position: absolute;
  top:  50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  background: rgba(5, 12, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 200, 0.2);
  border-radius: 16px;
  padding: 20px 18px 16px;
  z-index: 200;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.04);
  animation: cardIn 0.2s ease;
}

@keyframes cardIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.orb-card-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.2s;
}
.orb-card-close:hover { color: #fff; }

.orb-card-icon  { font-size: 2rem; line-height: 1; margin-bottom: 4px; }

.orb-card-weight {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(0, 229, 200, 0.1);
  border: 1px solid rgba(0, 229, 200, 0.25);
  border-radius: 99px;
  padding: 2px 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.orb-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.orb-card-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0 0 12px;
}

.orb-card-related {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.orb-related-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 100%;
}

.orb-tag {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 2px 8px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

/* Hint text below orbital */
.orbital-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}

/* ─── Apple Watch Section ───────────────────────────────── */
.watch-section {
  background: var(--sec-c);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 100px 24px;
}
.watch-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}
.watch-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 16px;
}
.watch-text { flex: 1; }
.watch-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.watch-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 32px;
}
.watch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.watch-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.watch-bullet {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.watch-list strong { color: var(--text); }

.watch-visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated teal ring badge */
.watch-badge-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.watch-badge-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  background: var(--teal-dim);
  /* Slow pulse to match the calm shader animation */
  animation: ringPulse 4s ease-in-out infinite;
}
.watch-badge-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 200, 0.2);
  animation: ringPulse 4s ease-in-out infinite 2s;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.03); }
}
.watch-badge-icon {
  position: relative;
  font-size: 3rem;
  z-index: 1;
}
.watch-badge-label {
  position: relative;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}
.watch-badge-sub {
  position: relative;
  font-size: 0.75rem;
  color: var(--teal);
  text-align: center;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM ANIMATION LAYER
   Ported from 21st.dev components (magicui, aceternity) to
   pure vanilla CSS — no Tailwind, no Framer Motion.
═══════════════════════════════════════════════════════════ */

/* ── 1. Eyebrow pill shine sweep ─────────────────────────── */
.hero-eyebrow {
  position: relative;
  overflow: hidden;
}
.eyebrow-dot {
  display: inline-block;
  width:  6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  margin-right: 6px;
  vertical-align: middle;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1;   transform: scale(1);    }
  50%       { opacity: 0.5; transform: scale(0.75); }
}
.hero-eyebrow::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: eyebrowShine 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes eyebrowShine {
  0%, 35%  { left: -80%;  }
  65%, 100% { left: 140%; }
}

/* ── 2. Word rotate (hero h1) ────────────────────────────── */
#hero-word-rotate {
  display: inline-block;
  /* Animated gradient: teal → violet → amber */
  background: linear-gradient(90deg, #00E5CC, #a78bfa, #FFB347, #00E5CC);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s linear infinite;
}
@keyframes gradientFlow {
  to { background-position: -300% 0; }
}
.word-exit {
  animation: wordSlideOut 0.35s ease forwards !important;
}
.word-enter {
  animation: wordSlideIn 0.45s ease forwards !important;
}
@keyframes wordSlideOut {
  from { opacity: 1; transform: translateY(0);    }
  to   { opacity: 0; transform: translateY(24px); }
}
@keyframes wordSlideIn {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0);     }
}
/* Gradient text utility */
.gradient-text {
  background: linear-gradient(90deg, #00E5CC, #a78bfa, #FFB347);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 6s linear infinite;
}

/* ── 3. Stats strip ──────────────────────────────────────── */
.stats-strip {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top:    1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.stat-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  /* Gradient number colour */
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
  flex-shrink: 0;
}

/* ── 4. Blur-fade scroll reveal ──────────────────────────── */
.blur-fade {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
  will-change: opacity, transform, filter;
}
.blur-fade--in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

/* ── 5. Shine border on feature cards (CSS @property) ───── */
@property --shine-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.shine-card {
  position: relative;
  isolation: isolate;
}
.shine-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--shine-angle),
    transparent      0deg,
    rgba(0,229,200,0.6) 45deg,
    rgba(167,139,250,0.5) 90deg,
    transparent      135deg
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  animation: shineSpin 3s linear infinite paused;
}
.shine-card:hover::before {
  opacity: 1;
  animation-play-state: running;
}
@keyframes shineSpin {
  to { --shine-angle: 360deg; }
}
/* Inner fill so the card face stays opaque */
.shine-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--card-radius, 16px) - 1px);
  background: inherit;
  z-index: -1;
}

/* ── 6. App Store button glow pulse ─────────────────────── */
.btn-appstore {
  position: relative;
}
.btn-appstore::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.4);
  animation: ctaGlow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.0); }
  50%       { box-shadow: 0 0 24px 6px rgba(0, 229, 200, 0.22); }
}

/* ── 7. Screenshot figure hover lift ────────────────────── */
.screenshots-row figure {
  cursor: default;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
  border-radius: 16px;
}
.screenshots-row figure:hover {
  transform: translateY(-10px) scale(1.04);
  filter: drop-shadow(0 20px 40px rgba(0, 229, 200, 0.18));
}

/* ── 8. Nav scroll blur (glassmorphism on scroll) ───────── */
.nav--scrolled {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    padding: 100px 20px 60px;
    gap: 48px;
    text-align: center;
  }
  .hero-overlay {
    /* On mobile the overlay covers more of the canvas */
    background:
      rgba(0, 0, 0, 0.72),
      linear-gradient(to top, var(--sec-a) 0%, transparent 18%);
  }
  .hero-sub { margin: 0 auto 36px; }
  .hero-phones {
    width: 280px;
    height: 420px;
  }
  .phone-main { width: 180px; left: 50px; }
  .phone-back { width: 160px; left: 0; top: 48px; }

  .nav-links { display: none; }
  .screenshots-row img { width: 130px; }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .watch-inner {
    flex-direction: column;
    gap: 48px;
    text-align: center;
  }
  .watch-text p { margin: 0 auto 28px; }
  .watch-list li { text-align: left; }
  .watch-visual { order: -1; }

  .prose {
    margin: 24px 16px;
    padding: 32px 24px 48px;
    border-radius: 14px;
  }

  /* Stats strip stacks vertically */
  .stats-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
  }
  .stat-divider { display: none; }
  .stat-item    { flex: 0 0 40%; }

  /* Scale the orbital down so it fits the viewport */
  .orbital-wrap { --orb-scale: 0.62; margin-bottom: calc(560px * (0.62 - 1) + 12px); }
}

@media (max-width: 480px) {
  .stat-item { flex: 0 0 100%; }
  .orbital-wrap { --orb-scale: 0.50; margin-bottom: calc(560px * (0.50 - 1) + 12px); }
}
