/* ============================================================
   SELF-CARE AMRUN 5K 2026 — shared design system
   Cinematic Bali night palette (from reference HTML) crossed
   with the AMRun brand greens / navy and a hot-yellow price pop.
   ============================================================ */

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

:root {
  /* base — deep Bali night */
  --bg-900: #02141d;
  --bg-850: #04202d;
  --bg-800: #062b3a;
  --bg-700: #0a3a4a;
  --line:   rgba(126,233,226,0.14);

  /* ink */
  --ink:      #f4ede1;
  --ink-soft: rgba(244,237,225,0.64);
  --ink-dim:  rgba(244,237,225,0.40);

  /* brand + accents */
  --green:        #1fb35a;
  --green-bright: #46e08a;
  --navy:         #2360c9;
  --blue-bright:  #4f9bff;
  --aqua:         #7ee9e2;
  --yellow:       #ecec3d;

  /* signature gradients */
  --grad-run:  linear-gradient(105deg, #1fb35a 0%, #46e08a 42%, #7ee9e2 100%);
  --grad-cool: linear-gradient(115deg, #2360c9 0%, #4f9bff 55%, #7ee9e2 100%);

  --glow-green: 0 0 0 1px rgba(70,224,138,0.35), 0 18px 50px -12px rgba(31,179,90,0.55);

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-900);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--green); color: #03161e; }

/* ---------- shared atoms ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--aqua);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--aqua);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(34px, 5.4vw, 76px);
  text-wrap: balance;
}
.italic-speed { font-style: italic; padding-right: 0.2em; }

.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }

/* buttons */
.btn {
  --pad-y: 16px;
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  padding: var(--pad-y) 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  position: relative;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-run);
  color: #03161e;
  box-shadow: var(--glow-green);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(70,224,138,0.5), 0 26px 60px -14px rgba(31,179,90,0.8); }

.btn-ghost {
  background: rgba(244,237,225,0.04);
  color: var(--ink);
  border-color: rgba(244,237,225,0.20);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--aqua); color: #fff; transform: translateY(-3px); }

.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* arrow / chevron used inline via svg */

/* chip / pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(126,233,226,0.05);
  color: var(--aqua);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

