:root {
  --bg: #fbf9f7; --surface: #fff; --text: #2c1d36; --muted: #6e6377; --border: #ece6ee;
  --accent: #f6c227; --button: #2c1d36; --button-ink: #fff; --link: #6b3fa0;
  --glow-a: #d8c9ff; --glow-b: #ffdcb8; --icon: #b7791f; --icon-bg: #fdf1cf;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141016; --surface: #1e1922; --text: #f2eef5; --muted: #a99fb1; --border: #2f2834;
    --button: #f2eef5; --button-ink: #1a141d; --link: #c9b2f2;
    --glow-a: #3a2a5c; --glow-b: #4a3020; --icon: #f6c227; --icon-bg: #3a2f14;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
img { max-width: 100%; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; font-size: 15px; }
.top a { text-decoration: none; }
.home { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.home img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 18px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); }

.hero { position: relative; text-align: center; padding: 72px 0 40px; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(80px); opacity: .7; }
.hero::before { background: var(--glow-a); left: -120px; top: 0; }
.hero::after { background: var(--glow-b); right: -120px; top: 60px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgb(44 29 54 / .18); }
h1 { margin: 24px 0 12px; font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -.025em; }
.lead { max-width: 560px; margin: 0 auto 28px; color: var(--muted); font-size: 19px; }

.store { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 14px; background: var(--button); color: var(--button-ink); font-weight: 600; text-decoration: none; transition: transform .15s; }
.store:hover { transform: translateY(-1px); }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.store span { text-align: left; line-height: 1.15; }

.screens { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 24px; margin: 0 -16px; scrollbar-width: none; }
.screens::-webkit-scrollbar { display: none; }
.screens img { flex: none; width: 220px; height: auto; aspect-ratio: 660 / 1431; border-radius: 26px; scroll-snap-align: center; box-shadow: 0 10px 30px rgb(44 29 54 / .12); background: var(--surface); }
@media (min-width: 1100px) { .screens { justify-content: center; overflow: visible; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 32px 0 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.feature .ico { display: block; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--icon-bg); stroke: var(--icon); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h2 { margin: 8px 0 6px; font-size: 18px; line-height: 1.3; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.cta { text-align: center; padding: 48px 0 56px; }
.cta h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.015em; }

.legal { max-width: 720px; margin: 40px auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 36px; line-height: 1.65; overflow-wrap: anywhere; }
.legal h1 { margin: 0 0 6px; font-size: 32px; }
.legal .meta { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.legal h2 { font-size: 20px; line-height: 1.3; margin: 32px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal li { margin: 6px 0; }

.notfound { text-align: center; padding: 96px 0; }
.notfound h1 { font-size: 36px; }

footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 24px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
footer a { color: inherit; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav { gap: 14px; }
  .hero { padding-top: 48px; }
  .lead { font-size: 17px; }
  .screens img { width: 200px; }
  .legal { margin: 20px 0; padding: 22px 18px; border-radius: 18px; }
  .legal h1 { font-size: 26px; }
}
