/* ============================================================
   IcePulse Fitness — marketing site
   Brand: deep arena navy + electric ice blue (#4FD9FF)
   ============================================================ */

:root {
  --ice: #4fd9ff;
  --ice-deep: #0d6ba6;
  --navy-0: #030710;
  --navy-1: #050b16;
  --navy-2: #0a1524;
  --navy-3: #101f33;
  --text: #eaf4fb;
  --text-dim: #9db4c8;
  --frost: #f2f8fc;
  --frost-2: #e2eef7;
  --ink: #0b1826;
  --ink-dim: #47617a;
  --positive: #38d18c;
  --radius: 20px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-1);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

h1, h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

h1 { font-size: clamp(3.2rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; }

.accent {
  color: var(--ice);
  text-shadow: 0 0 34px rgba(79, 217, 255, 0.55);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.15rem;
  color: #04121d;
  background: linear-gradient(135deg, var(--ice) 0%, #2ea8dd 100%);
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(79, 217, 255, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 36px rgba(79, 217, 255, 0.5); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: transparent;
  color: var(--ice);
  border: 1.5px solid rgba(79, 217, 255, 0.5);
  box-shadow: none;
}
.btn-ghost:hover { box-shadow: 0 6px 24px rgba(79, 217, 255, 0.2); }
.btn-small { font-size: 1rem; padding: 9px 22px; }
.btn-big { font-size: 1.4rem; padding: 18px 44px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(4, 9, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(79, 217, 255, 0.12);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand img { border-radius: 9px; }
.brand-name {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-name em { color: var(--ice); font-style: italic; }
.brand-sub { font-weight: 500; font-size: 0.95rem; color: var(--text-dim); letter-spacing: 0.14em; }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ice); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 78% 18%, rgba(13, 107, 166, 0.4), transparent 65%),
    radial-gradient(800px 500px at 12% 85%, rgba(79, 217, 255, 0.1), transparent 60%),
    linear-gradient(180deg, var(--navy-0) 0%, var(--navy-1) 55%, var(--navy-2) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 600px at 60% 40%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 60% 40%, black, transparent 75%);
}
.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(79, 217, 255, 0.08);
  border: 1px solid rgba(79, 217, 255, 0.25);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ice);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 217, 255, 0.6); }
  50% { box-shadow: 0 0 0 7px rgba(79, 217, 255, 0); }
}
.lede {
  margin-top: 24px;
  font-size: 1.13rem;
  color: var(--text-dim);
  max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 34px;
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 600;
}
.hero-art { position: relative; }
.hero-glow {
  position: absolute;
  inset: -8% -12%;
  background: radial-gradient(closest-side, rgba(79, 217, 255, 0.22), transparent 72%);
  filter: blur(8px);
  animation: glow-breathe 5s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.hero-art img {
  position: relative;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(79, 217, 255, 0.15);
  animation: float-slow 7s ease-in-out infinite;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(0.4deg); }
}

/* ---------- Stat strip ---------- */
.strip {
  border-top: 1px solid rgba(79, 217, 255, 0.12);
  border-bottom: 1px solid rgba(79, 217, 255, 0.12);
  background: linear-gradient(180deg, var(--navy-2), var(--navy-1));
}
.strip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--ice);
  text-shadow: 0 0 26px rgba(79, 217, 255, 0.4);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ---------- Feature sections ---------- */
.feature { padding: 110px 24px; position: relative; }
.feature:nth-of-type(odd) { background: var(--navy-1); }
.feature-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.feature.flip .feature-inner { direction: rtl; }
.feature.flip .feature-inner > * { direction: ltr; }
.kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 14px;
}
.feature-copy p { color: var(--text-dim); font-size: 1.05rem; }
.checks {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 13px;
}
.checks li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
  font-size: 0.99rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  border-radius: 6px;
  background: rgba(79, 217, 255, 0.12);
  border: 1px solid rgba(79, 217, 255, 0.4);
}
.checks li::after {
  content: "✓";
  position: absolute;
  left: 4px; top: 1px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ice);
}

/* ---------- iPhone shell ---------- */
.feature-media { display: flex; justify-content: center; }
.iphone {
  position: relative;
  width: min(292px, 78vw);
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2c3846, #10161e 60%, #1d2733);
  box-shadow:
    0 0 0 2px #0a0f16,
    0 0 0 3.5px rgba(140, 165, 190, 0.35),
    0 34px 70px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(79, 217, 255, 0.09);
  animation: float-slow 8s ease-in-out infinite;
}
.iphone-island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 27%;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.screen-video {
  width: 100%;
  border-radius: 36px;
  background: #dfe7ee;
  aspect-ratio: 540 / 1098;
}

/* Train duo */
.train-section { background: var(--navy-2); }
.feature-media.duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.feature-media.duo .iphone { width: min(248px, 62vw); z-index: 2; }
.feature-media.duo .iphone-back {
  margin-left: -58px;
  transform: scale(0.9) rotate(4deg);
  z-index: 1;
  opacity: 0.96;
  animation: float-slow 9s ease-in-out infinite reverse;
}

/* ---------- Watch section (light, so fallback video blends) ---------- */
.watch-section {
  background:
    radial-gradient(900px 500px at 22% 30%, rgba(79, 217, 255, 0.14), transparent 65%),
    linear-gradient(180deg, #ffffff 0%, var(--frost) 55%, var(--frost-2) 100%);
  padding: 110px 24px;
}
.watch-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.watch-media { display: flex; justify-content: center; }
.watch-video {
  width: min(340px, 82vw);
  filter: drop-shadow(0 32px 44px rgba(11, 24, 38, 0.32));
  animation: float-slow 7.5s ease-in-out infinite;
}
.kicker-dark { color: var(--ice-deep); }
.dark-text { color: var(--ink) !important; }
.watch-section .feature-copy p.dark-text { color: var(--ink-dim) !important; }
.checks-dark li { color: var(--ink); }
.checks-dark li::before { background: rgba(13, 107, 166, 0.08); border-color: rgba(13, 107, 166, 0.45); }
.checks-dark li::after { color: var(--ice-deep); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 130px 24px;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(13, 107, 166, 0.45), transparent 70%),
    linear-gradient(180deg, var(--navy-2), var(--navy-0));
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 217, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 217, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(600px 400px at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(600px 400px at 50% 30%, black, transparent 75%);
}
.cta-inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta-logo {
  border-radius: 22px;
  margin: 0 auto 26px;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 217, 255, 0.25);
}
.cta p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 34px; }
.cta-fine { font-size: 0.85rem !important; margin-top: 20px !important; margin-bottom: 0 !important; opacity: 0.7; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-0);
  border-top: 1px solid rgba(79, 217, 255, 0.1);
  padding: 44px 24px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.footer p { color: var(--text-dim); font-size: 0.95rem; }
.footer .fine { font-size: 0.78rem; opacity: 0.65; max-width: 640px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.7s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img, .iphone, .watch-video, .iphone-back { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .feature-inner, .watch-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 110px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .feature { padding: 76px 20px; }
  .watch-inner { text-align: left; }
  .feature-media.duo .iphone-back { margin-left: -70px; }
}
