:root {
  --strava-orange: #fc5200;
  --strava-orange-hover: #e04a00;
  --strava-orange-light: rgba(252, 82, 0, 0.12);
  --midnight-ink: #000000;
  --ash-charcoal: #21211f;
  --cloudburst-gray: #43423f;
  --pebble-gray: #e0e0de;
  --summit-cream: #f9f8f5;
  --whisper-white: #ffffff;
  --link-blue: #0060d0;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ash-charcoal);
  background: var(--whisper-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-orange {
  color: var(--strava-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: var(--strava-orange);
  color: var(--whisper-white);
  border-color: var(--strava-orange);
}

.btn-primary:hover {
  background: var(--strava-orange-hover);
  border-color: var(--strava-orange-hover);
}

.btn-outline {
  background: transparent;
  color: var(--whisper-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--whisper-white);
  background: rgba(255, 255, 255, 0.08);
}

.section-cream .btn-outline {
  color: var(--ash-charcoal);
  border-color: var(--pebble-gray);
}

.section-cream .btn-outline:hover {
  border-color: var(--ash-charcoal);
  background: var(--summit-cream);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(33, 33, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--whisper-white);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--strava-orange);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--whisper-white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--whisper-white);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--ash-charcoal);
  color: var(--whisper-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-route {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(252, 82, 0, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(252, 82, 0, 0.08) 0%, transparent 50%);
}

.hero-route::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--ash-charcoal), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--strava-orange-light);
  color: var(--strava-orange);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(252, 82, 0, 0.25);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--strava-orange);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-cream {
  background: var(--summit-cream);
}

.section-dark {
  background: var(--ash-charcoal);
  color: var(--whisper-white);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--cloudburst-gray);
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.65);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px;
  background: var(--whisper-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--pebble-gray);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--strava-orange);
  color: var(--whisper-white);
  font-weight: 800;
  font-size: 18px;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--cloudburst-gray);
  line-height: 1.65;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  padding: 32px;
  background: var(--summit-cream);
  border: 1px solid var(--pebble-gray);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  width: 48px;
  height: 48px;
  color: var(--strava-orange);
  margin-bottom: 20px;
}

.product-icon svg {
  width: 100%;
  height: 100%;
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 15px;
  color: var(--cloudburst-gray);
  line-height: 1.65;
}

.product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  background: var(--strava-orange);
  color: var(--whisper-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 100px;
}

/* Feature split */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 3px solid var(--strava-orange);
}

.feature-list strong {
  font-size: 1rem;
  font-weight: 600;
}

.feature-list span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* Sign preview */
.sign-preview {
  background: var(--whisper-white);
  color: var(--ash-charcoal);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--strava-orange);
}

.sign-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sign-preview-badge {
  background: var(--strava-orange);
  color: var(--whisper-white);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.sign-preview-distance {
  font-size: 13px;
  color: var(--cloudburst-gray);
  font-weight: 500;
}

.sign-preview-name {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.sign-preview-record {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.sign-preview-time {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--strava-orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sign-preview-athlete {
  font-size: 1rem;
  color: var(--cloudburst-gray);
  font-weight: 500;
}

.sign-preview-route svg {
  width: 100%;
  height: 60px;
}

/* CTA */
.section-cta {
  background: var(--summit-cream);
  padding: 96px 0;
}

.cta-box {
  text-align: center;
  max-width: 600px;
}

.cta-box h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-box > p {
  font-size: 1.1rem;
  color: var(--cloudburst-gray);
  margin-bottom: 32px;
  line-height: 1.7;
}

.signup-form {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  border: 2px solid var(--pebble-gray);
  border-radius: var(--radius);
  background: var(--whisper-white);
  transition: border-color var(--transition);
  min-width: 0;
}

.form-row input:focus {
  outline: none;
  border-color: var(--strava-orange);
}

.form-note {
  font-size: 13px;
  color: var(--cloudburst-gray);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  padding: 16px 24px;
  background: rgba(234, 67, 53, 0.12);
  color: #c5221f;
  border-radius: var(--radius);
  font-weight: 500;
}

.form-success {
  padding: 16px 24px;
  background: rgba(52, 168, 83, 0.12);
  color: #1e7e34;
  border-radius: var(--radius);
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--ash-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
  display: block;
  color: var(--whisper-white);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
}

.footer-company strong {
  color: var(--whisper-white);
}

.footer-disclaimer {
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.6;
}

.footer-links a {
  color: var(--strava-orange);
  font-weight: 500;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--whisper-white);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.5;
}

/* Mobile nav */
.nav-open .nav-links {
  display: flex;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 900px) {
  .steps,
  .product-grid,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-split {
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ash-charcoal);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .nav-links .btn {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: relative;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .form-row .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }
}
