:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-card: #fafafa;
  --text: #0d0d0d;
  --text-2: #5d5d5d;
  --text-3: #8e8e93;
  --border: rgba(13, 13, 13, 0.08);
  --border-strong: rgba(13, 13, 13, 0.14);
  --shadow-card: 0 1px 2px rgba(13, 13, 13, 0.04),
    0 8px 24px -8px rgba(13, 13, 13, 0.08);
  --shadow-window: 0 4px 12px rgba(13, 13, 13, 0.06),
    0 24px 64px -12px rgba(13, 13, 13, 0.14);
  --radius-pill: 999px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --content: 1080px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 24px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}

@supports (font-variation-settings: normal) {
  body {
    font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI',
      Helvetica, Arial, sans-serif;
  }
}

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

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

::selection {
  background: rgba(13, 13, 13, 0.92);
  color: #fff;
}

/* ───────── Nav ───────── */

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  max-width: 1320px;
  margin: 0 auto;
}

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

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

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

.nav-cta {
  display: flex;
  justify-content: flex-end;
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease), background 160ms var(--ease),
    box-shadow 160ms var(--ease);
  user-select: none;
}

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

.btn-lg {
  font-size: 15px;
  padding: 14px 26px;
}

.btn-primary {
  background: var(--text);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(13, 13, 13, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ───────── Hero ───────── */

.hero {
  text-align: center;
  padding: 96px 24px 72px;
  max-width: 920px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.8vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 28px;
}

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ───────── Steps ───────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--content);
  margin: 24px auto 0;
  padding: 0 24px;
}

.step {
  text-align: center;
}

.step-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.visual-1 {
  background:
    radial-gradient(120% 90% at 0% 100%, #cfe3ff 0%, transparent 55%),
    radial-gradient(120% 100% at 100% 0%, #e6dcff 0%, transparent 55%),
    linear-gradient(135deg, #b8cdff 0%, #7d97ff 100%);
}

.visual-2 {
  background:
    radial-gradient(110% 90% at 100% 100%, #d9c9ff 0%, transparent 60%),
    linear-gradient(150deg, #eaf0ff 0%, #cdd9ff 60%, #b3c4ff 100%);
}

.visual-3 {
  background:
    radial-gradient(120% 100% at 50% 0%, #ffffff 0%, transparent 50%),
    linear-gradient(165deg, #a6bbff 0%, #6e87ff 65%, #5a6ee8 100%);
}

.step-num {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  max-width: 280px;
  margin-inline: auto;
}

/* Mock visuals inside steps */
.mock {
  width: 78%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px -8px rgba(13, 13, 13, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.mock-install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
}

.mock-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.mock-tile-a {
  background: linear-gradient(135deg, #ff8a65, #c54aff);
}

.mock-tile-b {
  background: linear-gradient(135deg, #0d0d0d, #3a3a3a);
  position: relative;
}

.mock-tile-b::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 3px;
  background: #fff;
}

.mock-arrow {
  color: var(--text-2);
  font-size: 16px;
}

.mock-dock {
  display: none;
}

.mock-sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  color: var(--text);
}

.src-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.src-msg {
  background: linear-gradient(135deg, #2ecc71, #00b85a);
}
.src-cal {
  background: linear-gradient(135deg, #ffffff, #e2e2e2);
  border: 1px solid #d4d4d4;
  position: relative;
}
.src-cal::after {
  content: '';
  position: absolute;
  inset: 4px 3px auto 3px;
  height: 3px;
  background: #ff3b30;
  border-radius: 2px;
}
.src-photos {
  background: conic-gradient(
    from 0deg,
    #ffcc00,
    #ff3b30,
    #ff2d55,
    #af52de,
    #5856d6,
    #34c759,
    #ffcc00
  );
}
.src-strava {
  background: linear-gradient(135deg, #fc5200, #e64600);
}

.src-label {
  font-weight: 500;
}

.src-check {
  color: #34c759;
  font-size: 13px;
  font-weight: 600;
}

.src-check-soft {
  color: var(--text-3);
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-bubble {
  font-size: 12px;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 85%;
  width: fit-content;
}

.mock-bubble-user {
  background: #0d0d0d;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.mock-bubble-ai {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

/* ───────── Mid section ───────── */

.mid {
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 1180px;
  margin: 0 auto;
}

.mid h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 56px;
}

.showcase {
  position: relative;
  border-radius: 22px;
  padding: 40px;
  background:
    radial-gradient(80% 80% at 50% 0%, #eef2ff 0%, transparent 60%),
    linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.showcase-window {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  text-align: left;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #fbfbfc;
}

.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.win-red {
  background: #ff5f57;
}
.win-amber {
  background: #febc2e;
}
.win-green {
  background: #28c840;
}

.window-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 360px;
}

.window-side {
  background: #f7f8fa;
  border-right: 1px solid var(--border);
  padding: 16px 12px;
}

.side-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px 8px;
}

.side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
}

.side-item.side-active {
  background: rgba(13, 13, 13, 0.06);
  font-weight: 500;
}

.side-bullet {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e9ecf3, #cfd4df);
  flex-shrink: 0;
}

.side-item:nth-child(2) .side-bullet {
  background: linear-gradient(135deg, #2ecc71, #00b85a);
}
.side-item:nth-child(3) .side-bullet {
  background: linear-gradient(135deg, #ffffff, #d4d4d4);
  border: 1px solid #d4d4d4;
}
.side-item:nth-child(4) .side-bullet {
  background: conic-gradient(
    from 0deg,
    #ffcc00,
    #ff3b30,
    #af52de,
    #34c759,
    #ffcc00
  );
}
.side-item:nth-child(5) .side-bullet {
  background: linear-gradient(135deg, #fc5200, #e64600);
}
.side-item:nth-child(6) .side-bullet {
  background: linear-gradient(135deg, #1f1f1f, #4a4a4a);
}
.side-item:nth-child(7) .side-bullet {
  background: linear-gradient(135deg, #ff9500, #ff6a00);
}

.window-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 78%;
}

.chat-user {
  background: #0d0d0d;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.chat-ai {
  background: var(--bg-soft);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.chat-ai p {
  margin: 0;
}

.chat-meta {
  margin-top: 4px !important;
  font-size: 12px;
  color: var(--text-3);
}

.chat-loading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
}

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

.dot-pulse:nth-child(2) {
  animation-delay: 0.15s;
}

.dot-pulse:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  30% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ───────── Features ───────── */

.features {
  max-width: var(--content);
  margin: 40px auto 0;
  padding: 80px 24px 40px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

/* ───────── CTA ───────── */

.cta {
  text-align: center;
  padding: 120px 24px 120px;
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0 0 36px;
}

.small-print {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--text-3);
}

/* ───────── Footer ───────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 32px 56px;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  transition: color 160ms var(--ease);
}

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

.footer-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
}

.dot-sep {
  color: var(--text-3);
}

/* ───────── Responsive ───────── */

@media (max-width: 900px) {
  .steps {
    gap: 16px;
  }

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

  .hero {
    padding: 64px 20px 48px;
  }

  .mid {
    padding: 96px 20px 56px;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .window-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .nav {
    grid-template-columns: 1fr;
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    letter-spacing: -0.03em;
  }

  .steps {
    gap: 10px;
    padding: 0 16px;
  }

  .step-visual {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .step-num {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .step h3 {
    font-size: 13px;
  }

  .step p {
    font-size: 12px;
    line-height: 1.45;
  }

  .mock {
    padding: 8px;
    width: 88%;
  }

  .mock-tile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .mock-arrow {
    font-size: 12px;
  }

  .mock-row {
    padding: 5px 6px;
    font-size: 10px;
    gap: 6px;
  }

  .src-icon {
    width: 14px;
    height: 14px;
    border-radius: 4px;
  }

  .mock-bubble {
    font-size: 10px;
    padding: 6px 8px;
  }

  .showcase {
    padding: 20px;
  }

  .window-main {
    padding: 16px;
  }

  .chat-bubble {
    max-width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
