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

/* Apple-inspired marketing styles for Stride */

:root {
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --hero-hand-bg: #f5f5f7;
  --color-link: #0066cc;
  --color-button: #0071e3;
  --color-button-hover: #0077ed;
  --color-button-secondary-border: #0071e3;
  --nav-height: 44px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI",
    Roboto, sans-serif;
  --max-copy: 980px;
  --section-pad: clamp(48px, 8vw, 88px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--color-text);
  background: var(--color-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global nav */
.global-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--nav-height);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(251, 251, 253, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.global-nav-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}

.nav-logo img {
  display: block;
  height: 26px;
  width: auto;
  background: transparent;
}

.nav-logo:hover {
  text-decoration: none;
  opacity: 0.88;
}

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 28px);
}

.nav-links a {
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.8);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Hero sections */
.hero {
  text-align: center;
  padding: var(--section-pad) 22px 0;
  overflow: hidden;
  scroll-margin-top: var(--nav-height);
}

.hero-light {
  background: var(--color-bg);
}

#coin.hero {
  overflow: visible;
}

.hero-gray {
  background: var(--color-bg-alt);
}

.hero-copy {
  max-width: var(--max-copy);
  margin: 0 auto;
  padding-bottom: clamp(24px, 4vw, 40px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.21053;
  font-weight: 600;
  letter-spacing: 0.012em;
  color: var(--color-text-secondary);
}

.eyebrow-invert {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
.headline,
.headline-sm,
.tile-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.headline {
  margin: 0;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.0625;
}

.headline-sm {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.07143;
}

.subhead {
  margin: 6px auto 0;
  max-width: 28em;
  font-size: clamp(19px, 2.5vw, 28px);
  line-height: 1.14286;
  font-weight: 400;
  letter-spacing: 0.007em;
  color: var(--color-text-secondary);
}

.subhead-invert {
  color: rgba(255, 255, 255, 0.72);
}

.cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
}

/* Buttons: Apple pill style */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 11px 22px;
  border-radius: 980px;
  font-size: 17px;
  line-height: 1.17648;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--color-button);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-button-hover);
}

.button-secondary {
  background: transparent;
  color: var(--color-button);
  border-color: var(--color-button-secondary-border);
}

.button-secondary:hover {
  background: var(--color-button);
  color: #fff;
}

.link-chevron {
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--color-link);
  text-decoration: none;
}

.link-chevron::after {
  content: " ›";
  speak: none;
}

.link-chevron:hover {
  text-decoration: underline;
}

.link-chevron-invert {
  color: #2997ff;
}

/* Hero media */
.hero-media {
  max-width: 1068px;
  margin: 0 auto;
  padding-bottom: var(--section-pad);
}

.hero-media.hero-media-hand {
  max-width: none;
}

.hero-media-hand {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(22px, env(safe-area-inset-left)) max(22px, env(safe-area-inset-right));
  padding-bottom: clamp(32px, 5vw, 56px);
  background: var(--hero-hand-bg);
}

.hero-media-hand img,
.hero-media-compact img {
  width: min(1068px, 100%);
  margin: 0 auto;
  background: transparent;
}

.hero-media-compact {
  max-width: 720px;
}

.hero-media-compact img {
  width: 100%;
}

/* Decorative device mocks */
.device-card {
  margin: 0 auto;
  border-radius: 36px;
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.device-phone {
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19.5;
  padding: 14px;
}

.device-screen {
  height: 100%;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, #5c2b38, #1a0a10 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.stat-value {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-stock {
  font-size: 17px;
  color: #86efac;
  font-weight: 500;
}

.device-watch {
  width: min(220px, 55vw);
  aspect-ratio: 1;
  border-radius: 48px;
  padding: 18px;
}

.watch-face {
  position: relative;
  height: 100%;
  border-radius: 36px;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.watch-ring {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 6px solid #30d158;
  opacity: 0.85;
}

.watch-miles {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 1;
}

.watch-unit {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.65;
  z-index: 1;
}

/* Promo grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: var(--color-bg-alt);
}

.promo-tile {
  min-height: 420px;
  padding: clamp(40px, 6vw, 56px) clamp(24px, 4vw, 40px);
  border-radius: 18px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.promo-tile-dark {
  background: #000;
  color: #f5f5f7;
}

.tile-headline {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.tile-copy {
  margin: 8px 0 auto;
  max-width: 16em;
  font-size: 19px;
  line-height: 1.42105;
  color: var(--color-text-secondary);
}

.promo-tile-dark .tile-copy {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  padding: 24px 22px 40px;
  text-align: center;
  font-size: 12px;
  line-height: 1.33337;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.site-footer p {
  margin: 0;
  max-width: 40em;
  margin-inline: auto;
}

@media (max-width: 734px) {
  .nav-links {
    display: none;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .promo-tile {
    min-height: 360px;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 1068px) {
  .hero-media-hand img {
    transform: translateY(8px);
  }
}

/* Opening & scroll reveal motion */
@keyframes stride-reveal-up {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes stride-reveal-media {
  from {
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes stride-reveal-nav {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.motion-ready .reveal-item {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    will-change: opacity, transform;
  }

  html.motion-ready .global-nav .reveal-item {
    transform: translate3d(0, -10px, 0);
  }

  html.motion-ready .reveal.is-visible .reveal-item {
    animation: stride-reveal-up 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.04s + var(--i, 0) * 0.07s);
  }

  html.motion-ready .global-nav.reveal.is-visible .reveal-item {
    animation-name: stride-reveal-nav;
    animation-duration: 0.75s;
    animation-delay: calc(0.02s + var(--i, 0) * 0.05s);
  }

  html.motion-ready .reveal.is-visible .reveal-item--media {
    animation-name: stride-reveal-media;
    animation-duration: 1.1s;
    animation-delay: calc(0.12s + var(--i, 0) * 0.07s);
  }

  html.motion-ready .reveal.is-visible .hero-media-hand.reveal-item--media {
    animation-name: stride-reveal-media;
  }
}

html.motion-reduced .reveal-item {
  opacity: 1;
  transform: none;
}
