:root {
  --bg: #0c0a0f;
  --bg-soft: #120f17;
  --panel: #18141f;
  --panel-2: #211b2a;
  --line: #2f263a;
  --text: #f3eff7;
  --muted: #b2a7be;
  --accent: #ff6b63;
  --accent-2: #d92638;
  --accent-soft: rgba(255, 107, 99, 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; }

code, kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--text);
  line-height: 1.35;
}

.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(12, 10, 15, 0.88);
  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;
  padding: 6px 2px;
}

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

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

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

.hero .glow {
  position: absolute;
  inset: -42% 0 auto 50%;
  width: 860px;
  height: 860px;
  transform: translateX(-50%);
  background: radial-gradient(circle at center, rgba(217, 38, 56, 0.24), transparent 62%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.app-icon {
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  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: 650px;
  color: var(--muted);
  font-size: 18px;
}

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

.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 24px;
  min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(217, 38, 56, 0.35);
}

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

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

.quiet-link:hover { color: var(--text); }

/* Canvas preview stage */
.stage-wrap { padding-top: 28px; }

.stage {
  position: relative;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(80% 60% at 18% 0%, rgba(255, 107, 99, 0.18), transparent 60%),
    radial-gradient(70% 60% at 88% 15%, rgba(217, 38, 56, 0.2), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--bg-soft));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.stage-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
}

/* 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: 650px;
  margin: 0 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 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; }

/* Shortcuts strip */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  background: var(--panel);
  font-size: 14px;
  color: var(--muted);
}

/* 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(217, 38, 56, 0.2), 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 0;
  color: #e4d8e8;
  font-size: 14.5px;
}

/* 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 h3 { font-size: 16.5px; margin: 22px 0 6px; }

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

body.doc ul, body.doc ol { padding-left: 22px; }

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; }

/* 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: 12px; border-radius: 18px; }
  .download-inner { grid-template-columns: 1fr; }
  .download-inner > img { width: 72px; height: 72px; }
  nav { gap: 12px; font-size: 13.5px; }
  nav a:not(.lang):not(.keep-mobile) { display: none; }
}

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