:root {
  --bg: #f5f6f8;
  --fg: #1c1c1e;
  --muted: #6b6b73;
  --card: rgba(255, 255, 255, 0.74);
  --line: rgba(0, 0, 0, 0.09);
  --accent: #2f7bf5;
  --accent-fg: #fff;
  --code: rgba(0, 0, 0, 0.06);
  --glow: rgba(47, 123, 245, 0.2);
  --glow2: rgba(48, 209, 88, 0.1);
  --red: #ff453a;
  --yellow: #ffd60a;
  --green: #30d158;
  --phone: #1c1c1e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0e;
    --fg: #f2f2f5;
    --muted: #9a9aa5;
    --card: rgba(255, 255, 255, 0.055);
    --line: rgba(255, 255, 255, 0.11);
    --accent: #4d8fff;
    --code: rgba(255, 255, 255, 0.09);
    --glow: rgba(77, 143, 255, 0.22);
    --glow2: rgba(48, 209, 88, 0.08);
    --phone: #2c2c30;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60rem 32rem at 12% -6%, var(--glow), transparent 70%),
    radial-gradient(50rem 28rem at 96% 6%, var(--glow2), transparent 70%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: var(--code); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.92em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--fg); }
nav .brand:hover { text-decoration: none; }
nav .brand img { width: 30px; height: 30px; border-radius: 7px; }
nav .links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav .links a { color: var(--muted); }
nav .links a:hover { color: var(--fg); text-decoration: none; }
nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

/* hero */
.hero { text-align: center; padding: 48px 0 0; }
.hero img.icon { width: 112px; height: 112px; border-radius: 25px; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.25)); }
.hero h1 { font-size: clamp(38px, 7.4vw, 70px); line-height: 1.03; letter-spacing: -0.035em; margin: 22px 0 16px; font-weight: 750; }
.hero h1 .soft { color: var(--muted); font-weight: 650; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 600px; margin: 0 auto 28px; }
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 600;
  border: 1px solid var(--line); color: var(--fg); background: var(--card);
}
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--fg); color: var(--bg); border-color: transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.sub { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* phones */
.phones {
  display: flex; justify-content: center; align-items: flex-end; gap: 0;
  margin: 56px auto 0; padding-bottom: 10px; perspective: 1400px;
}
.phone {
  flex: none; width: 260px; aspect-ratio: 1320 / 2868; border-radius: 42px; padding: 9px;
  background: var(--phone); box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  position: relative;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phones .phone:nth-child(1) { transform: translateX(40px) translateY(26px) rotate(-7deg) scale(0.88); z-index: 1; }
.phones .phone:nth-child(2) { z-index: 2; width: 290px; }
.phones .phone:nth-child(3) { transform: translateX(-40px) translateY(26px) rotate(7deg) scale(0.88); z-index: 1; }

/* sections */
section { padding: 64px 0; }
section h2 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 10px; }
section p.intro { color: var(--muted); max-width: 640px; margin: 0 0 32px; font-size: 18px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* comparison */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.compare .card.hl { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 20px 50px -24px var(--glow); }
.compare .tag { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.compare h3 { font-size: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .ic { display: block; width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }

.more-label { margin: 44px 0 4px; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.more > div { padding: 16px 0; border-top: 1px solid var(--line); }
.more h3 { margin: 0 0 4px; font-size: 16px; }
.more p { margin: 0; color: var(--muted); font-size: 15px; }
.pro { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }

/* rings demo */
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ring-row { display: flex; align-items: center; gap: 16px; }
.ring {
  --c: var(--green); --p: 0.6;
  flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1turn), color-mix(in srgb, var(--c) 18%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 21px, #000 22px); mask: radial-gradient(circle, transparent 21px, #000 22px);
}
.ring-wrap { position: relative; width: 56px; height: 56px; flex: none; }
.ring-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
.ring-wrap.red { --c: var(--red); } .ring-wrap.red .ring { --c: var(--red); --p: 1; }
.ring-wrap.yellow { --c: #e8b800; } .ring-wrap.yellow .ring { --c: var(--yellow); --p: 1; }
.ring-wrap.green { --c: var(--green); } .ring-wrap.green .ring { --c: var(--green); --p: 0.7; }
@media (prefers-color-scheme: dark) { .ring-wrap.yellow { --c: var(--yellow); } }
.ring-row h3 { margin: 0 0 2px; font-size: 17px; }
.ring-row p { margin: 0; color: var(--muted); font-size: 15px; }

/* gallery */
.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px;
  margin: 0 -20px; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; text-align: center; }
.gallery .phone { width: 230px; border-radius: 38px; padding: 8px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
.gallery .phone img { border-radius: 31px; }
.gallery figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* stats & quotes */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stats b { display: block; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 15px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.quotes blockquote { margin: 0; font-size: 19px; line-height: 1.4; }
.quotes .stars { color: #ff9f0a; letter-spacing: 2px; font-size: 14px; margin-bottom: 8px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plans .card h3 { font-size: 22px; margin-bottom: 2px; }
.plans .price { font-size: 15px; color: var(--muted); margin: 0 0 16px; }
.plans ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15.5px; }
.plans li { display: flex; gap: 10px; }
.plans li::before { content: "✓"; color: var(--green); font-weight: 700; }
.plans .card.hl { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* final cta */
.cta { text-align: center; padding: 80px 0 90px; }
.cta img { width: 84px; height: 84px; border-radius: 19px; margin-bottom: 10px; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin: 0 0 24px; }

footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }

/* legal & support pages (generated from docs/) */
.legal { max-width: 740px; padding: 30px 0 50px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.02em; margin: 0 0 14px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin: 5px 0; }
.legal b { color: var(--fg); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }

@media (max-width: 820px) {
  .phones .phone:nth-child(1), .phones .phone:nth-child(3) { display: none; }
  .phones .phone:nth-child(2) { width: min(270px, 72vw); }
  .compare, .rings { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav .links a.hide-sm { display: none; }
  nav .links { gap: 16px; }
  .hero { padding-top: 26px; }
  body { font-size: 16px; }
  section { padding: 48px 0; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
