/* ============================================================
   Wheels — Landing Page
   ============================================================ */

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

:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --surface-elevated: #1a1a1c;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f5f5f7;
  --text-secondary: #8e8e93;
  --accent: #bf5af2;
  --accent-dim: rgba(191, 90, 242, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 22px;
  border-radius: 100px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 28px 80px;
}

.hero-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(191, 90, 242, 0.22) 0%,
    rgba(191, 90, 242, 0.06) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 72px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding: 5px 12px;
  background: var(--accent-dim);
  border-radius: 100px;
  border: 1px solid rgba(191, 90, 242, 0.25);
}

.hero-headline {
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 44px;
}

.appstore-btn {
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s;
}

.appstore-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.appstore-btn img {
  height: 52px;
  width: auto;
  border-radius: 11px;
}

.hero-media {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  width: clamp(260px, 32vw, 380px);
  border-radius: 40px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 48px 100px rgba(0, 0, 0, 0.7),
    0 0 100px rgba(191, 90, 242, 0.1);
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 28px;
  background: var(--surface);
}

.stats-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 36px;
}

/* ============================================================
   PRESS
   ============================================================ */

.press {
  padding: 110px 28px;
}

.press-inner {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.press-logo {
  height: 26px;
  width: auto;
  opacity: 0.6;
  filter: brightness(2);
}

.press-quote-wrap {
  position: relative;
  padding: 0 24px;
}

.press-quote-mark {
  position: absolute;
  top: -32px;
  left: 0;
  font-size: 96px;
  color: var(--accent);
  opacity: 0.25;
  font-style: normal;
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.press-quote {
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--text);
  font-style: italic;
}

.press-cite {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: normal;
  font-weight: 500;
}

.press-link {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}

.press-link:hover {
  opacity: 0.8;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
  padding: 80px 28px 100px;
}

.features-header {
  padding: 0;
  max-width: 1060px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.features-heading {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Carousel arrows */
.feat-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.feat-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
}

.feat-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.feat-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Horizontal scroll track */
.features-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 28px 32px;
  scrollbar-width: none;
}

.features-track::-webkit-scrollbar {
  display: none;
}

/* Individual cards */
.feature-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(191, 90, 242, 0.3);
  transform: translateY(-4px);
}

.feature-card-media {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.feature-card-screenshot {
  width: 180px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.5);
}

.feature-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feature-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */

.cta-bottom {
  padding: 110px 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bottom::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse,
    rgba(191, 90, 242, 0.16) 0%,
    transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(191, 90, 242, 0.2);
  margin-bottom: 8px;
}

.cta-inner h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cta-inner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  flex: 1;
}

.footer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
  width: 100%;
  text-align: center;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ============================================================
   CHANGELOG — paginated viewer
   ============================================================ */

.changelog {
  padding: 80px 28px 100px;
  border-top: 1px solid var(--border);
}

.changelog-header {
  max-width: 560px;
  margin: 0 auto 40px;
}

.changelog-heading {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Viewer card */
.cl-viewer {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Pages container */
.cl-pages {
  padding: 44px 40px 32px;
  min-height: 200px;
  position: relative;
}

/* Individual version pages */
.cl-page {
  display: none;
  flex-direction: column;
  gap: 10px;
  animation: cl-fade-in 0.3s ease;
}

.cl-page.active {
  display: flex;
}

@keyframes cl-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cl-page-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.cl-page-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

.cl-page-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 420px;
}

/* Controls row */
.cl-controls {
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cl-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cl-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.cl-nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.cl-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.cl-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  min-width: 36px;
  text-align: center;
}

/* Scrubber */
.cl-scrubber {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 4px;
}

.cl-tick {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.25s, transform 0.25s;
}

.cl-tick.active {
  background: var(--accent);
  transform: scaleY(1.4);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
  padding: 80px 28px 100px;
  border-top: 1px solid var(--border);
}

.testimonials-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.testimonials-heading {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 48px;
  line-height: 1.1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.testimonial {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.25s;
}

.testimonial:hover {
  border-color: rgba(191, 90, 242, 0.25);
}

.testimonial--featured {
  border-color: rgba(191, 90, 242, 0.2);
  background: linear-gradient(145deg, var(--surface-elevated), rgba(191, 90, 242, 0.05));
}

.t-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.t-stars {
  color: #FFD60A;
  font-size: 12px;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.t-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.55;
  font-style: normal;
  text-align: right;
}

.t-quote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */

@media (max-width: 860px) {
  .hero {
    padding: 64px 24px 56px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    gap: 48px;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .appstore-btn {
    display: flex;
    justify-content: center;
  }

  .hero-screenshot {
    width: min(300px, 72vw);
  }

  .stat-divider {
    margin: 0 24px;
  }

  .features-track {
    padding: 12px 20px 28px;
    gap: 16px;
  }

  .feature-card {
    flex: 0 0 260px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .cl-viewer {
    border-radius: var(--radius-md);
  }

  .cl-pages {
    padding: 32px 28px 24px;
  }

  .cl-controls {
    padding: 16px 28px;
  }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */

@media (max-width: 480px) {
  .stat-divider {
    margin: 0 16px;
  }

  .stat-value {
    font-size: 22px;
  }

  .stat-label {
    font-size: 11px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .press-quote-mark {
    display: none;
  }
}
