/* ─── Reset & base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0f11;
  --surface:   #161a1e;
  --border:    #252a30;
  --text:      #e8eaed;
  --muted:     #8b949e;
  --accent:    #4f8ef7;
  --accent-h:  #3a78e8;
  --radius:    12px;
  --max-w:     1440px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ─── */
.header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

/* ─── Hero ─── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ─── Button ─── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover { background: var(--accent-h); }

/* ─── Moments ─── */
.moments {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.moments__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.moment:first-child { border-top: 1px solid var(--border); }

.moment dt {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.moment__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.moment dd {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .moment {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ─── Section title (shared) ─── */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  text-align: center;
}

/* ─── Screenshots ─── */
.screenshots {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

/* Large screens: all 4 in a row, break out of 720px container */
.screenshots__track {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.screenshot {
  flex-shrink: 0;
  width: clamp(180px, 18vw, 280px);
  text-align: center;
  scroll-snap-align: center;
}

.screenshot img {
  width: 100%;
  border-radius: 20px;
  display: block;
  border: 1px solid var(--border);
}

.screenshot figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ─── Carousel controls (mobile only) ─── */
.carousel-controls {
  display: none;
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.carousel-btn:hover { background: var(--border); }

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cdot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.cdot.active {
  width: 20px;
  background: var(--accent);
}

/* Small screens: carousel */
@media (max-width: 700px) {
  .screenshots__track {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 0 20px;
    gap: 16px;
  }

  .screenshots__track::-webkit-scrollbar { display: none; }

  .screenshot { width: 70vw; max-width: 230px; }

  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding: 0 24px;
  }
}

/* ─── Beta ─── */
.beta {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.beta__inner { text-align: center; }

.beta__sub {
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Footer ─── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__inner a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ─── Responsive ─── */
body { overflow-x: hidden; }

@media (max-width: 480px) {
  .hero { padding: 56px 0 44px; }
  .hero__subtitle { font-size: 1rem; }
  .footer__inner { flex-direction: column; gap: 8px; }
}
