:root {
  --bg: #070812;
  --bg-soft: #0b0d1c;
  --panel: #101226;
  --panel-2: #171a33;
  --line: #242848;
  --text: #eceefb;
  --muted: #9aa0c0;
  --accent: #7b6cff;
  --accent-2: #4b8bff;
  --accent-soft: rgba(123, 108, 255, 0.14);
  --green: #45d6a3;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.wrap.narrow { max-width: 760px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 18, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img { border-radius: 9px; }

nav { display: flex; align-items: center; gap: 18px; font-size: 14.5px; flex-wrap: wrap; }

nav a { color: var(--muted); text-decoration: none; }

nav a:hover, nav a.on { color: var(--text); }

nav a.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 76px 0 36px; text-align: center; }

.hero .glow {
  position: absolute;
  inset: -40% 0 auto 50%;
  width: 820px;
  height: 820px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(107, 89, 255, 0.24), transparent 62%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.app-icon {
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 auto 18px;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.meta { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

.cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(107, 89, 255, 0.35);
}

.button:hover { filter: brightness(1.08); }

.quiet-link { color: var(--muted); font-size: 14.5px; }

/* Screenshot stage */
.stage-wrap { padding-top: 18px; }

.stage {
  position: relative;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(75, 139, 255, 0.20), transparent 60%),
    radial-gradient(70% 60% at 90% 15%, rgba(123, 108, 255, 0.20), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--bg-soft));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.shot-main {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.85);
}

.shot-picker {
  position: absolute;
  width: 36%;
  left: 4%;
  bottom: -9%;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.55));
}

/* Sections */
section { padding: 52px 0; }

h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }

.section-lede { color: var(--muted); max-width: 640px; margin: 0 0 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
}

.card p { color: var(--muted); margin: 0; font-size: 14.8px; }

.card .ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.card .ic svg { width: 18px; height: 18px; display: block; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.steps li {
  counter-increment: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  background: var(--panel);
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.8px; }

/* Screenshot gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-top: 24px;
  align-items: start;
}

.gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 12px;
}

.gallery img { display: block; width: 100%; border-radius: 10px; }

.gallery figcaption { color: var(--muted); font-size: 13.5px; padding: 10px 4px 2px; }

/* Download */
.download-inner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(107, 89, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--bg-soft));
}

.download-inner > img { border-radius: 22px; }

.download h2 { margin-bottom: 6px; }
.download p { color: var(--muted); }
.download .cta { justify-content: flex-start; margin: 18px 0 12px; }

.fineprint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
  color: #cfd2ec;
}

/* Documents */
body.doc main { padding: 48px 0 64px; }

body.doc h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 6px; }

.updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }

body.doc h2 { font-size: 21px; margin: 34px 0 8px; }

body.doc p, body.doc li { color: #c8cbe4; }

body.doc ul { padding-left: 20px; }

body.doc li { margin: 6px 0; }

.table { overflow-x: auto; margin: 16px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14.5px; }

th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

th { color: var(--muted); font-weight: 600; }

.faq { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }

.faq h3 { margin-top: 22px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 13.5px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero { padding-top: 54px; }
  .stage { padding: 14px; border-radius: 18px; }
  .shot-picker { width: 46%; left: 3%; bottom: -6%; }
  .gallery { grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; }
  .download-inner > img { width: 72px; height: 72px; }
  nav { gap: 12px; font-size: 13.5px; }
  nav a:not(.lang) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
