:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --accent: #7d1d22;
  --accent-text: #ffffff;
  --pill-bg: #ececf0;
  --pill-text: #55555b;
  --soon-bg: #f6e7e7;
  --soon-text: #7d1d22;
  --shadow: 0 10px 30px rgba(0, 0, 0, .10);
  --icon-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #161617;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --accent: #e0b85a;
    --accent-text: #1d1d1f;
    --pill-bg: #2c2c2e;
    --pill-text: #c7c7cc;
    --soon-bg: #3a2416;
    --soon-text: #e9c46a;
    --shadow: 0 10px 30px rgba(0, 0, 0, .6);
    --icon-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -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, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.brand-logo { width: 30px; height: 30px; border-radius: 22.37%; }
.hero-logo { width: 120px; height: 120px; margin: 0 auto 36px; border-radius: 22.37%; box-shadow: var(--icon-shadow); }
.top nav { display: flex; gap: 24px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top nav { align-items: center; }
.lang {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--pill-bg);
}
.top nav .lang a {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pill-text);
}
.top nav .lang a[aria-current="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

/* Hero */
.hero { text-align: center; padding-top: 88px; padding-bottom: 72px; }
.hero h1 {
  margin: 0;
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  text-wrap: balance;
}
.icon {
  border-radius: 22.37%;
  box-shadow: var(--icon-shadow);
}

/* Pills */
.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill-soon { background: var(--soon-bg); color: var(--soon-text); }

/* Featured app */
.feature {
  background: var(--bg-soft);
  border-radius: 28px;
  padding: 48px 48px 40px;
  overflow: hidden;
}
.feature-head { display: flex; align-items: center; gap: 24px; }
.feature-head .icon { width: 112px; height: 112px; flex: none; }
.feature h2, .card h2 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.tagline { margin: 6px 0 0; color: var(--muted); font-size: 19px; }
.body { margin: 28px 0 0; max-width: 680px; font-size: 19px; }

.points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  max-width: 820px;
}
.points li { position: relative; padding-left: 26px; color: var(--muted); }
.points li strong { color: var(--text); font-weight: 600; }
.points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Screenshots */
.shots {
  display: flex;
  gap: 24px;
  margin: 40px -48px 0;
  padding: 8px 48px 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; flex: none; width: 218px; scroll-snap-align: center; }
.shots img {
  width: 100%;
  border-radius: 34px;
  border: 6px solid #1d1d1f;
  background: #1d1d1f;
  box-shadow: var(--shadow);
}
.shots figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.card {
  background: var(--bg-soft);
  border-radius: 28px;
  padding: 40px;
}
.card .icon { width: 96px; height: 96px; margin-bottom: 24px; }
.card h2 { font-size: 28px; }
.card p { margin: 10px 0 0; color: var(--muted); }

/* Contact */
.contact { text-align: center; padding-top: 96px; padding-bottom: 96px; }
.contact h2 { margin: 0; font-size: 34px; letter-spacing: -.02em; }
.contact p { margin: 10px 0 0; color: var(--muted); }
.button {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Footer */
.foot {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.foot p { margin: 0; }
.badge { width: 220px; height: auto; margin: 8px auto 20px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 720px) {
  .top nav { gap: 14px; }
  .wrap.top-row { padding: 0 16px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .hero-logo { width: 96px; height: 96px; margin-bottom: 28px; }
  .feature { padding: 32px 24px 24px; border-radius: 24px; }
  .feature-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .feature-head .icon { width: 88px; height: 88px; }
  .feature h2 { font-size: 30px; }
  .body, .tagline { font-size: 17px; }
  .points { grid-template-columns: 1fr; }
  .shots { margin: 32px -24px 0; padding: 8px 24px 20px; gap: 16px; }
  .shots figure { width: 200px; }
  .shots img { border-radius: 30px; border-width: 5px; }
  .cards { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .card { padding: 32px 24px; border-radius: 24px; }
  .contact { padding-top: 64px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.brand { white-space: nowrap; }
@media (max-width: 480px) {
  .top nav > a[href="#apps"] { display: none; }
}
