:root {
  --bg1: #1b1456;
  --bg2: #0b0a24;
  --card: #1a1452;
  --line: rgba(108, 85, 255, .55);
  --text: #f4f1ff;
  --muted: #b9a6ff;
  --mint: #22d99a;
  --amber: #ffb020;
  --violet: #6c55ff;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg2) linear-gradient(180deg, var(--bg1), var(--bg2) 720px) no-repeat;
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: #7bf2c6; }
img { max-width: 100%; height: auto; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: 1080px; margin: 0 auto; padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 7px 14px; border-radius: 999px; border: 2px solid transparent;
}
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); background: var(--card); border-color: var(--line); }
nav a.lang { border-color: var(--line); margin-left: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px; }
.doc { max-width: 760px; padding-bottom: 64px; }
.doc.center { text-align: center; padding-top: 80px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 12px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 44px 0 14px; }
h3 { font-size: 19px; margin: 28px 0 8px; color: #fff; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc p, .doc li { color: #e4defc; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
em { font-style: normal; color: var(--amber); }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 13px; color: var(--muted); opacity: .8; }

.hero {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px 40px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.app-icon { border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.45); margin-bottom: 18px; }
.lead { font-size: 20px; color: #e4defc; max-width: 34em; }
.badge {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 800; font-size: 18px;
  color: #1b1456; background: linear-gradient(180deg, #7bf2c6, #22d99a);
  border: 3px solid rgba(255,255,255,.6); box-shadow: 0 8px 24px rgba(34,217,154,.3);
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg {
  width: 100%; max-width: 380px; height: auto;
  background: linear-gradient(180deg, #2a1f7a, #0f0c33); border-radius: 36px;
  border: 3px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card, .panel {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card p, .panel p { margin: 0; color: #d8d0fa; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 56px; }
.panel h2 { margin: 0 0 8px; font-size: 24px; }

.faq details {
  background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { color: var(--mint); }
.faq p { margin: 0 0 16px; }

.foot {
  max-width: 1080px; margin: 0 auto; padding: 32px 20px 48px; text-align: center;
  border-top: 2px solid rgba(108, 85, 255, .25); color: var(--muted);
}
.foot p { margin: 4px 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .split { grid-template-columns: 1fr; }
  .top { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
