:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --orange: #ff5a1f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .06);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f10;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, .1);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.top, main > section, footer {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; }
nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; font-weight: 500; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px;
  padding-top: clamp(40px, 8vw, 110px); padding-bottom: clamp(48px, 8vw, 110px);
}
.eyebrow { color: var(--orange); font-weight: 600; font-size: 15px; margin-bottom: 14px; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; font-weight: 800; }
h1 span { color: var(--muted); }
.lead { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px;
  border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--text); color: var(--bg); box-shadow: none; }

.hero-icons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px);
  max-width: 440px; justify-self: center; width: 100%;
}
.hero-icons img {
  width: 100%; aspect-ratio: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .16));
  animation: float 6s ease-in-out infinite;
}
.hero-icons img:nth-child(3n+2) { animation-delay: -2s; }
.hero-icons img:nth-child(3n) { animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-icons img { animation: none; } }

/* apps */
.apps { padding-top: 24px; padding-bottom: 96px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 32px; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.head p { color: var(--muted); max-width: 30em; }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px;
}
.grid li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
}
.grid img { width: 72px; height: 72px; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12)); }
.grid h3 { font-size: 19px; font-weight: 700; }
.grid p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.tag {
  display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 99px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg);
}
.tag.on { color: #fff; background: var(--orange); }

/* principles */
.principles { padding-bottom: 96px; }
.principles ol {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px;
  counter-reset: n;
}
.principles li {
  counter-increment: n; padding: 26px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.principles li::before {
  content: counter(n); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px;
  border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700;
}
.principles b { font-size: 19px; }
.principles span { color: var(--muted); font-size: 15px; }

/* os */
.os { padding-bottom: 96px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.os > img { width: 72px; height: 72px; border-radius: 18px; }
.os div { flex: 1 1 320px; }
.os h2 { font-size: clamp(26px, 3vw, 34px); }
.os p { margin-top: 6px; color: var(--muted); max-width: 40em; }

footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
footer a:hover, .os a:hover { color: var(--orange); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-icons { max-width: 320px; justify-self: start; }
  nav a:not(:last-child) { display: none; }
}
