/* ============================================
   RallyTrax Landing Page — Flighty-inspired
   Dark-mode-first, Inter font, Pixel 10 mockups
   ============================================ */

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

:root {
  --bg: #08080f;
  --bg-surface: #0e0e1a;
  --bg-card: #141425;
  --bg-card-hover: #1a1a32;
  --text: #f0f0f5;
  --text-secondary: #8888a0;
  --accent: #1A73E8;
  --accent-glow: rgba(26, 115, 232, 0.15);
  --accent-dim: #1259b5;
  --orange: #FF6B35;
  --red: #E63946;
  --green: #2EC486;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --max-width: 1200px;
  --phone-width: 280px;
  --phone-height: 600px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

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

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

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.nav-github {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-github:hover {
  color: var(--text);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 115, 232, 0.3);
}

.btn-primary.large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 60px;
}

.hero-bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(26, 115, 232, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 540px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(26, 115, 232, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #5DADE2 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.hero-phone-wrapper {
  flex-shrink: 0;
  z-index: 1;
}

/* ---- Pixel 10 Phone Mockup ---- */
.pixel-phone {
  width: var(--phone-width);
  height: var(--phone-height);
  background: #1a1a1a;
  border-radius: 36px;
  padding: 8px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(26, 115, 232, 0.08);
}

.pixel-phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #0a0a0a;
  border-radius: 10px;
  z-index: 10;
}

.pixel-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-surface);
}

/* ---- Mock App Screens ---- */
.mock-app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  position: relative;
}

.mock-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 16px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
}

.mock-statusbar.dark {
  color: white;
}

.mock-statusbar-icons {
  display: flex;
  gap: 4px;
  font-size: 8px;
}

/* -- Home Screen -- */
.mock-home {
  background: var(--bg-surface);
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 12px;
}

.mock-greeting {
  font-size: 11px;
  color: var(--text-secondary);
}

.mock-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #5DADE2);
}

.mock-stats-row {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}

.mock-stat-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-stat-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mock-stat-value {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

.mock-stat-value span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mock-section-label {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px 6px;
  color: var(--text-secondary);
}

.mock-track-card {
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  align-items: center;
}

.mock-track-map {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #1a2540, #0d1a30);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.mock-track-map::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(15deg);
}

.mock-track-map.map2::after {
  border-color: var(--green);
  border-right-color: transparent;
  border-top-color: transparent;
  transform: rotate(-10deg);
}

.mock-track-info {
  flex: 1;
  min-width: 0;
}

.mock-track-name {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
}

.mock-track-meta {
  font-size: 10px;
  color: var(--text-secondary);
}

.mock-fab {
  position: absolute;
  bottom: 64px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
}

.mock-bottomnav {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 12px;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: var(--text-secondary);
}

.mock-nav-item.active {
  color: var(--accent);
}

.mock-nav-item svg {
  width: 18px;
  height: 18px;
}

/* -- Recording Screen -- */
.mock-recording {
  background: #0a0a14;
}

.mock-map-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.mock-map-bg {
  width: 100%;
  height: 100%;
}

.mock-recording-hud {
  background: rgba(10, 10, 20, 0.95);
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-rec-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 10px;
}

.rec-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: rec-pulse 1.5s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.mock-rec-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mock-rec-stat-value {
  font-size: 18px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: white;
}

.mock-rec-stat-value small {
  font-size: 10px;
  color: var(--text-secondary);
}

.mock-rec-stat-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-rec-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mock-rec-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.mock-rec-btn.pause {
  background: rgba(255, 255, 255, 0.1);
}

.mock-rec-btn.stop {
  background: var(--red);
}

/* -- Library Screen -- */
.mock-library {
  background: var(--bg-surface);
}

.mock-lib-header {
  padding: 4px 16px 8px;
}

.mock-lib-header .mock-title {
  margin-bottom: 10px;
}

.mock-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-filter-row {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.mock-chip {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.mock-lib-list {
  flex: 1;
  overflow: hidden;
  padding: 4px 0;
}

.mock-lib-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
}

.mock-lib-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: linear-gradient(135deg, #1a2540, #0d1a30);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mock-lib-thumb::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(20deg);
}

.mock-lib-thumb.t2::after {
  border-color: var(--green);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-15deg);
}

.mock-lib-thumb.t3::after {
  border-color: var(--orange);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(35deg);
}

.mock-lib-thumb.t4::after {
  border-color: #9B59B6;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-25deg);
}

.mock-lib-info {
  flex: 1;
  min-width: 0;
}

.mock-lib-name {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
}

.mock-lib-meta {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mock-lib-tags {
  display: flex;
  gap: 4px;
}

.mock-tag {
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 500;
  background: rgba(26, 115, 232, 0.15);
  color: var(--accent);
}

.mock-lib-date {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* -- Pace Notes Screen -- */
.mock-pacenotes {
  background: var(--bg-surface);
}

.mock-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 16px 8px;
  font-weight: 600;
  font-size: 14px;
}

.mock-detail-map {
  height: 120px;
  overflow: hidden;
}

.mock-detail-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 16px;
}

.mock-detail-tab {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.mock-detail-tab.active {
  color: var(--accent);
}

.mock-detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.mock-notes-list {
  flex: 1;
  overflow: hidden;
  padding: 4px 0;
}

.mock-note-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
}

.mock-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-note-icon.left-turn { background: var(--accent); }
.mock-note-icon.right-turn { background: var(--orange); }
.mock-note-icon.hairpin-icon { background: var(--red); }
.mock-note-icon.straight-icon { background: var(--green); }

.mock-note-content {
  flex: 1;
}

.mock-note-call {
  font-weight: 600;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.mock-note-dist {
  font-size: 10px;
  color: var(--text-secondary);
}

.mock-note-severity {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.mock-note-severity.s1 { background: rgba(46, 196, 134, 0.15); color: var(--green); }
.mock-note-severity.s2 { background: rgba(26, 115, 232, 0.15); color: var(--accent); }
.mock-note-severity.s3 { background: rgba(255, 107, 53, 0.15); color: var(--orange); }
.mock-note-severity.s4 { background: rgba(255, 107, 53, 0.2); color: var(--orange); }
.mock-note-severity.s6 { background: rgba(230, 57, 70, 0.15); color: var(--red); }

/* -- Replay Screen -- */
.mock-replay {
  background: #0a0a14;
}

.mock-replay-note-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px;
  padding: 10px 14px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-sm);
  z-index: 2;
}

.mock-replay-note-icon {
  width: 32px;
  height: 32px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-replay-note-call {
  font-weight: 700;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}

.mock-replay-note-dist {
  font-size: 10px;
  color: var(--text-secondary);
}

.mock-replay-map {
  flex: 1;
  overflow: hidden;
}

.mock-replay-speed {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 4px 0;
}

.mock-replay-speed-value {
  font-size: 40px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
}

.mock-replay-speed-unit {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mock-replay-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 12px;
  border-radius: 2px;
  overflow: hidden;
}

.mock-replay-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.mock-replay-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 12px;
  font-size: 10px;
  color: var(--text-secondary);
}

.mock-replay-mute {
  opacity: 0.6;
}

/* -- Explore Screen -- */
.mock-explore {
  display: flex;
  flex-direction: column;
}

.mock-explore-map {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.mock-explore-layers {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-explore-layers .mock-chip {
  font-size: 9px;
  padding: 3px 10px;
}

/* -- Garage Screen -- */
.mock-garage {
  display: flex;
  flex-direction: column;
}

.mock-garage-header {
  padding: 12px 16px 8px;
}

.mock-garage-list {
  flex: 1;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.mock-vehicle-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.mock-vehicle-card.active-vehicle {
  border-color: rgba(26, 115, 232, 0.3);
  background: rgba(26, 115, 232, 0.06);
}

.mock-vehicle-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mock-vehicle-info {
  flex: 1;
  min-width: 0;
}

.mock-vehicle-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-vehicle-meta {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mock-vehicle-tags {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.mock-vehicle-tags .mock-tag {
  font-size: 8px;
  padding: 1px 6px;
}

.mock-vehicle-tags .mock-tag.accent {
  background: rgba(26, 115, 232, 0.15);
  color: var(--accent);
  border-color: rgba(26, 115, 232, 0.3);
}

.mock-vehicle-warning {
  flex-shrink: 0;
  animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- Feature Sections ---- */
.feature-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
  max-width: 480px;
}

.feature-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-phone-wrapper {
  flex-shrink: 0;
}

.feature-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.feature-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* -- Pace Note Examples -- */
.pace-note-examples {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pace-note-example {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.pace-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pace-icon.left { background: var(--accent); }
.pace-icon.right { background: var(--orange); }
.pace-icon.hairpin { background: var(--red); }

.pace-call {
  font-weight: 600;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}

.pace-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---- Steps Section ---- */
.steps-section {
  padding: 100px 24px;
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.steps-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

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

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
  animation-delay: var(--delay, 0s);
}

.step-card:hover {
  border-color: rgba(26, 115, 232, 0.2);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 48px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}

.step-icon {
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---- Specs Section ---- */
.specs-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  text-align: center;
}

.spec-item {
  padding: 24px 16px;
}

.spec-value {
  font-size: 32px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---- CTA Section ---- */
.cta-section {
  padding: 120px 24px;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(26, 115, 232, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.cta-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 16px !important;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

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

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

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.6;
  width: 100%;
  text-align: center;
  margin-top: 16px;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll[data-animation="fade-right"] {
  transform: translateX(-40px);
}

.animate-on-scroll[data-animation="fade-left"] {
  transform: translateX(40px);
}

.animate-on-scroll[data-animation="fade-up"] {
  transform: translateY(30px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.step-card.visible {
  transition-delay: var(--delay, 0s);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .feature-text {
    max-width: 100%;
  }

  .feature-details {
    align-items: center;
  }

  .pace-note-examples {
    align-items: stretch;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links a:not(.nav-cta):not(.nav-github) {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --phone-width: 240px;
    --phone-height: 510px;
  }

  .pixel-phone {
    border-radius: 30px;
  }

  .pixel-screen {
    border-radius: 24px;
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }
}
