:root {
  --bg: #fbfbfd;
  --bg-elev: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(251, 251, 253, 0.72);
  --shot-shadow: 0 24px 60px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  --tint-strength: 0.16;
  --radius: 32px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elev: #0e0e10;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.14);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --shot-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
    --tint-strength: 0.26;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand span { color: var(--muted); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang button.active {
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.nav-mail {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Type ---------- */

h1, h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }

.kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--tint, 110 110 115));
}

.lede {
  margin: 22px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

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

.btn-fill {
  background: rgb(var(--tint, 29 29 31));
  color: #fff;
}

.btn-fill:hover { opacity: 0.86; }

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  color: rgb(var(--tint, 29 29 31));
  text-decoration: none;
}

.btn-text::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.btn-text:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */

.hero {
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 110px);
  text-align: center;
}

.hero .kicker { color: var(--muted); }
.hero .lede { margin-inline: auto; text-align: center; max-width: 40rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- App sections ---------- */

.app {
  width: min(100% - 40px, 1120px);
  margin: 0 auto 24px;
  padding: clamp(44px, 5vw, 72px);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(var(--tint) / var(--tint-strength)), transparent 62%),
    radial-gradient(110% 80% at 92% 100%, rgba(var(--tint-2) / calc(var(--tint-strength) * 0.85)), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--hairline);
}

.app-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

/* Sections alternate: screenshots swap sides down the page. */
.app:nth-of-type(odd) .app-copy { order: 2; }
.app:nth-of-type(odd) .shots { order: 1; }

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 17px;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

/* ---------- Screenshots ---------- */

.shots {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 20px);
}

.shot {
  width: min(46%, 232px);
  height: auto;
  aspect-ratio: 600 / 1298;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shot-shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.shot:first-child { transform: translateY(-14px); }
.shot:last-child { transform: translateY(14px); }

.app:hover .shot:first-child { transform: translateY(-20px); }
.app:hover .shot:last-child { transform: translateY(20px); }

/* ---------- Contact ---------- */

.contact {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 100px);
  text-align: center;
}

.contact .lede { margin-inline: auto; text-align: center; }

/* ---------- Footer ---------- */

.footer {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  padding: 26px 0 44px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer a { color: inherit; }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot, .app:hover .shot { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }

  .app-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* Stacked: copy always leads, screenshots follow, regardless of desktop side. */
  .app .app-copy,
  .app:nth-of-type(odd) .app-copy { order: 1; text-align: center; }

  .app .shots,
  .app:nth-of-type(odd) .shots { order: 2; }

  .app-copy .lede { margin-inline: auto; }
  .app-icon { margin-inline: auto; }
  .app-actions { justify-content: center; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }

  .nav-inner { height: 52px; gap: 12px; }
  .nav-mail { display: none; }

  .app {
    padding: 40px 22px;
    border-radius: 26px;
  }

  .shot { width: min(48%, 190px); }

  .btn { width: 100%; }
  .app-actions { flex-direction: column; align-items: center; gap: 18px; }
  .app-actions .btn { width: 100%; }
}
