:root {
  --bg: #ffffff;
  --fg: #1c1c1e;
  --muted: #6e6e73;
  --card: #f5f5f7;
  --accent: #d64528;
  --line: #e5e5ea;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --card: #1c1c1e;
    --line: #2c2c2e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

a { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--fg);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
header.site nav a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--fg); }

.hero {
  text-align: center;
  padding: 72px 0 48px;
}
.hero img.icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 24px 0 8px; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }

.button {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.launch-note {
  display: block;
  margin: 14px auto 0;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--card);
  font-weight: 600;
}
.launch-note[hidden] { display: none; }
.hero {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(242, 102, 13, 0.45), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(140, 64, 217, 0.45), transparent 70%),
    linear-gradient(160deg, #0d3b2e, #0a1f19);
}
.hero h1 { letter-spacing: -0.02em; }
.hero p { color: rgba(255, 255, 255, 0.78); }
.hero .soon, .hero .soon a { color: rgba(255, 255, 255, 0.7); }
.hero .button {
  background: #f2660d;
  color: #fff;
  box-shadow: 0 8px 22px rgba(242, 102, 13, 0.45);
  transition: transform 0.15s ease;
}
.hero .button:hover { transform: translateY(-2px); }
.hero { padding: 72px 24px 48px; }
.road { display: flex; height: 10px; margin: 56px -24px -48px; }
.road i { flex: 1; }
.road i:nth-child(1) { background: #4d1a8c; }
.road i:nth-child(2) { background: #8c40d9; }
.road i:nth-child(3) { background: #8c5c26; }
.road i:nth-child(4) { background: #c2852e; }
.road i:nth-child(5) { background: #f2660d; }
.road i:nth-child(6) { background: #0d664d; }
.road i:nth-child(7) { background: #d11a1a; }
.screens {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 8px 0 48px;
}
.phone { margin: 0; text-align: center; }
.phone img {
  width: 260px;
  border-radius: 36px;
  border: 8px solid #111;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  display: block;
}
.phone figcaption { margin-top: 14px; font-weight: 600; color: var(--muted); }
.tilt-left img { transform: rotate(-3deg); }
.tilt-right img { transform: rotate(3deg); }
.feature { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
@media (prefers-reduced-motion: reduce) {
  .tilt-left img, .tilt-right img, .feature:hover { transform: none; }
}
.soon { display: block; margin-top: 10px; color: var(--muted); font-size: 0.9rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 24px 0 64px;
}
.feature {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  border-top: 5px solid var(--c, var(--accent));
}
.feature:nth-child(1) { --c: #8c40d9; }
.feature:nth-child(2) { --c: #f2660d; }
.feature:nth-child(3) { --c: #4d1a8c; }
.feature:nth-child(4) { --c: #c2852e; }
.feature:nth-child(5) { --c: #8c5c26; }
.feature:nth-child(6) { --c: #0d664d; }
.feature:nth-child(7) { --c: #d11a1a; }
.feature:nth-child(8) { --c: #fc4c02; }
.feature h3 { color: var(--c); }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }

main.doc { padding: 40px 0 64px; max-width: 760px; }
main.doc h1 { margin-top: 0; }
main.doc h2 { margin-top: 36px; font-size: 1.25rem; }
main.doc .effective { color: var(--muted); }

details {
  background: var(--card);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
}
summary { font-weight: 600; cursor: pointer; }

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  padding: 24px 20px;
}
footer.site a { color: var(--muted); }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.toc a {
  background: var(--card);
  border-radius: 999px;
  padding: 4px 12px;
  text-decoration: none;
  font-size: 0.9rem;
}
main.doc h2 { scroll-margin-top: 16px; }
main.doc li { margin: 6px 0; }
ul.levels { list-style: none; padding: 0; }
ul.levels li { display: flex; align-items: center; gap: 10px; }
.swatch {
  width: 28px;
  height: 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
