:root {
  --bg: #fbf7f3;
  --fg: #1a1318;
  --muted: #5a4f56;
  --accent: #9447ad;
  --accent-hover: #7d3895;
  --card: #ffffff;
  --border: rgba(26, 19, 24, 0.08);
  --radius: 14px;
  --maxw: 980px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150e15;
    --fg: #f3eef1;
    --muted: #b3a6ae;
    --accent: #c084d8;
    --accent-hover: #d6a3e8;
    --card: #1f1620;
    --border: rgba(243, 238, 241, 0.08);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
nav .brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
nav ul {
  display: flex; gap: 22px;
  list-style: none; padding: 0; margin: 0;
}
nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
nav ul a:hover { color: var(--accent); }

main { max-width: var(--maxw); margin: 0 auto; padding: 60px 22px 80px; }

.hero { text-align: center; padding: 40px 0 56px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.hero .accent { color: var(--accent); }
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 30px;
}
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.btn {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease;
}
.btn.primary {
  background: var(--fg);
  color: var(--bg);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary .btn-pre { font-size: 0.7rem; opacity: 0.7; font-weight: 500; line-height: 1; }
.btn.primary .btn-store { font-size: 1.05rem; line-height: 1.2; }
.btn.ghost {
  align-self: center;
  flex-direction: row;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 18px 22px;
}
.btn.ghost:hover { background: var(--card); }

.meta { font-size: 0.9rem; color: var(--muted); }

section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 32px;
}

.screens {
  margin: 30px auto 60px;
}
.screens-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
}
.screen img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 36px;
  box-shadow: 0 30px 60px -20px rgba(80, 30, 110, 0.35),
              0 12px 24px -10px rgba(80, 30, 110, 0.25);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.screen img:hover {
  transform: translateY(-4px) scale(1.01);
}
.screen-alt img {
  max-width: 260px;
  opacity: 0.85;
  transform: translateY(20px);
}
@media (max-width: 540px) {
  .screen-alt { display: none; }
}

.how ol {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.how li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.how h3 { margin: 0 0 8px; font-size: 1.05rem; }
.how p { margin: 0; color: var(--muted); }

.formats { margin-top: 80px; }
.formats .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 14px;
}
.formats .grid span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.trust { margin-top: 80px; max-width: 600px; margin-inline: auto; }
.trust ul { color: var(--muted); padding-left: 22px; }
.trust li { margin-bottom: 8px; }

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 22px;
  color: var(--muted);
  font-size: 0.9rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer p { margin: 6px 0; }

@media (max-width: 540px) {
  .formats .grid { grid-template-columns: repeat(2, 1fr); }
}
