/* ============================================================
   ASHA · Design System
   Modern, clean, fit, strong — high-end fitness brand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #60A5FA;
  --blue-glow: rgba(59, 130, 246, 0.45);
  --orange: #F97316;
  --green: #10B981;
  --red: #EF4444;

  /* Surfaces — dark */
  --navy: #0A0E1A;            /* hero / dark sections */
  --navy-2: #0F1424;          /* secondary dark */
  --navy-3: #161B2E;          /* dark cards */
  --navy-border: #1F2740;
  --navy-line: rgba(255,255,255,0.08);

  /* Surfaces — light */
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --bg-card: #FBFCFD;
  --line: #E7EAF0;
  --line-strong: #D8DDE6;

  /* Text — dark mode */
  --d-text: #F2F4FA;
  --d-text-2: #A8B0C2;
  --d-text-3: #6B7388;

  /* Text — light mode */
  --text: #0A0E1A;
  --text-2: #4E5667;
  --text-3: #8B92A4;

  /* Type */
  --font-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-sm: 8px;
  --r: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.dark .eyebrow { color: var(--d-text-3); }

h1, h2, h3, h4, .display, .h1, .h2, .h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.h1 { font-size: clamp(40px, 5.5vw, 72px); letter-spacing: -0.03em; line-height: 1.02; }
.h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.025em; }
.h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; line-height: 1.15; }

p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 60ch; }
.dark .lede { color: var(--d-text-2); }

.mono { font-family: var(--font-mono); }

/* ============================================================
   LAYOUT
   ============================================================ */

.wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .h2 { margin-bottom: 16px; }

.dark { background: var(--navy); color: var(--d-text); }
.dark .lede, .dark p:not(.eyebrow) { color: var(--d-text-2); }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--navy-line);
  color: var(--d-text);
}
.nav.light {
  background: rgba(255,255,255,0.8);
  border-bottom-color: var(--line);
  color: var(--text);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: 0.78;
  border-radius: 10px;
  transition: opacity 0.2s, background 0.2s;
}
.nav-links a:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.nav.light .nav-links a:hover { background: var(--bg-soft); }

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

.menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--navy-line);
  border-radius: 10px;
  color: inherit;
  align-items: center;
  justify-content: center;
}
.menu-btn span {
  display: block;
  width: 16px; height: 2px;
  background: currentColor;
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ''; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--navy);
  z-index: 49;
  padding: 40px 28px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--d-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--navy-line);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 0;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 24px -8px var(--blue-glow);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 32px -8px var(--blue-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: inherit;
  border: 1px solid var(--navy-line);
  backdrop-filter: blur(8px);
}
.nav.light .btn-ghost { background: var(--bg-soft); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.nav.light .btn-ghost:hover { background: var(--bg); border-color: var(--line-strong); }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* Store badges (in-flow) */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-3);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 10px 18px 10px 14px;
  color: var(--d-text);
  transition: all 0.2s var(--ease);
}
.store-btn:hover { background: var(--navy-2); border-color: rgba(96,165,250,0.4); transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.store-btn .sb-top { display: block; font-family: var(--font-mono); font-size: 10px; opacity: 0.6; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.store-btn .sb-name { display: block; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; margin-top: 4px; }

.light .store-btn { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
.light .store-btn:hover { background: var(--bg); border-color: var(--line-strong); }

/* Solo screen-stack — used in Leaderboard spotlight (single phone, no absolute overflow) */
.screen-stack.solo { height: auto; min-height: 0; padding: 20px 0; }
.screen-stack.solo .phone { position: relative; left: auto; right: auto; top: auto; transform: none; }
@media (max-width: 720px) { .screen-stack.solo { padding: 8px 0; } }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--navy);
  color: var(--d-text);
  padding: 80px 0 32px;
  border-top: 1px solid var(--navy-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-text-3);
  margin: 0 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--d-text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--d-text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--navy-border);
  font-size: 13px;
  color: var(--d-text-3);
  font-family: var(--font-mono);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; }
}

.footer-tagline { margin-top: 16px; color: var(--d-text-2); font-size: 14.5px; max-width: 32ch; line-height: 1.5; }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy-3);
  border: 1px solid var(--navy-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--d-text-2);
  transition: all 0.2s;
}
.socials a:hover { color: var(--d-text); border-color: var(--blue); }
.socials svg { width: 16px; height: 16px; }

/* ============================================================
   DEVICE / PHONE FRAMES
   ============================================================ */

.phone {
  --w: 280px;
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #1c2236 0%, #0a0d1a 100%);
  border-radius: calc(var(--w) * 0.14);
  padding: calc(var(--w) * 0.025);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 60px 120px -30px rgba(0,0,0,0.6),
    0 30px 60px -15px rgba(59,130,246,0.15);
}
.phone-screen {
  width: 100%; height: 100%;
  background: white;
  border-radius: calc(var(--w) * 0.115);
  overflow: hidden;
  position: relative;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone::before { /* notch */
  content: '';
  position: absolute;
  top: calc(var(--w) * 0.03);
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--w) * 0.3);
  height: calc(var(--w) * 0.04);
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

/* Floating screen (no bezel — just rounded screenshot) */
.float-screen {
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px -20px rgba(0,0,0,0.4),
    0 12px 32px -8px rgba(59,130,246,0.18);
  background: white;
}
.float-screen img { width: 100%; display: block; }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.08);
}
.dark .card, .card-dark {
  background: var(--navy-3);
  border-color: var(--navy-border);
  color: var(--d-text);
}
.dark .card:hover, .card-dark:hover {
  border-color: rgba(96,165,250,0.3);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.4);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(59,130,246,0.1);
  color: var(--blue);
  border: 1px solid rgba(59,130,246,0.25);
}
.dark .tag { background: rgba(96,165,250,0.1); color: var(--blue-light); border-color: rgba(96,165,250,0.3); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ============================================================
   HEX GRID BG MOTIF (subtle, echoes the logo)
   ============================================================ */

.hex-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(circle 800px at 80% 110%, rgba(96,165,250,0.1), transparent 60%);
  z-index: 0;
}
.hex-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 30%, transparent 80%);
}

/* Floating hex logo motif */
.hex-shape {
  position: absolute;
  width: 100px;
  height: 115px;
  background: linear-gradient(160deg, var(--blue-light), var(--blue));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0.12;
  filter: blur(0.5px);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============================================================
   ACTIVITY PILLS
   ============================================================ */

.activity-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--navy-border);
  background: var(--navy-3);
  color: var(--d-text);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}
.activity-pill:hover { border-color: rgba(96,165,250,0.4); transform: translateY(-2px); }
.activity-pill svg { width: 18px; height: 18px; color: var(--blue-light); }

/* ============================================================
   STAT NUMBERS
   ============================================================ */

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-text-3);
}
.light .stat-label { color: var(--text-3); }

/* ============================================================
   LEGAL DOC STYLES
   ============================================================ */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px 120px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}
.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}
.legal .legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.legal h2 {
  font-size: 24px;
  color: var(--text);
  margin: 56px 0 16px;
  letter-spacing: -0.015em;
}
.legal h3 {
  font-size: 18px;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { padding-left: 24px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); border-bottom: 1px solid rgba(59,130,246,0.3); }
.legal a:hover { border-bottom-color: var(--blue); }
.legal strong { color: var(--text); font-weight: 600; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

::selection { background: var(--blue); color: white; }
