:root {
  --bg: #F7F7FB;
  --bg-alt: #EFEFF7;
  --surface: #FFFFFF;
  --text: #14151A;
  --muted: #5A5D6B;
  --line: #E0E1EA;
  --primary: #5B5BD6;
  --violet: #8B5CF6;
  --pink: #EC4899;
  --teal: #0D9488;
  --coral: #FF5A36;
  --grad: linear-gradient(120deg, #5B5BD6 0%, #8B5CF6 45%, #EC4899 100%);
  --shadow: 0 1px 2px rgba(20, 21, 40, .04), 0 12px 32px -12px rgba(40, 40, 120, .18);
  --shadow-phone: 0 30px 60px -20px rgba(40, 40, 120, .35), 0 0 0 1px rgba(20, 21, 40, .06);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F13;
    --bg-alt: #15161C;
    --surface: #1A1B22;
    --text: #E8E8EF;
    --muted: #A3A6B6;
    --line: #2C2E38;
    --primary: #A5A6FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-phone: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  background: var(--bg-alt);
  padding: .1em .35em;
  border-radius: 6px;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; text-decoration: none; letter-spacing: -0.01em;
}
.logo { width: 32px; height: 32px; color: var(--text); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(91, 91, 214, .6);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(91, 91, 214, .7); }
.btn svg { width: 20px; height: 20px; }
.btn-small { padding: 9px 18px; font-size: .9rem; }
.btn-ghost {
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.btn-light { background: #fff; color: #3A3AA6; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, .28), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(236, 72, 153, .22), transparent 55%),
              radial-gradient(circle at 40% 80%, rgba(13, 148, 136, .18), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .85rem; font-weight: 500; color: var(--muted);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; margin: 22px 0 20px; letter-spacing: -0.035em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 520px; }
.lead em { color: var(--text); font-style: normal; font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 8px; }

.hero-phones { position: relative; height: 620px; }
.phone {
  margin: 0;
  border-radius: 34px;
  padding: 8px;
  background: #0d0d12;
  box-shadow: var(--shadow-phone);
}
.phone img { border-radius: 27px; width: 100%; height: auto; }
.hero-phones .phone { position: absolute; width: 270px; }
.phone-front { left: 4%; top: 30px; z-index: 2; animation: float 7s ease-in-out infinite; }
.phone-back { right: 4%; top: 0; transform: rotate(6deg); opacity: .98; animation: float2 8s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(-4deg); } }
@keyframes float2 { 0%,100% { transform: translateY(0) rotate(6deg); } 50% { transform: translateY(12px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .phone-front, .phone-back { animation: none; }
  .phone-front { transform: rotate(-4deg); }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow-light { background: none; color: rgba(255,255,255,.75); }

/* Steps */
.steps-section { padding: 40px 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Features */
.feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
  margin-bottom: 120px;
}
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin: 14px 0 16px; }
.feature-copy p { color: var(--muted); font-size: 1.08rem; }
.chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.chip-indigo { background: rgba(99,102,241,.14); color: #6366F1; }
.chip-teal { background: rgba(13,148,136,.14); color: #0D9488; }
.chip-pink { background: rgba(236,72,153,.14); color: #EC4899; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 9px; height: 5px;
  border-left: 2.4px solid #fff; border-bottom: 2.4px solid #fff; transform: rotate(-45deg);
}
#features { overflow-x: clip; }
.feature-shot { justify-self: center; width: 300px; position: relative; }
.feature-shot.phone::before {
  content: ""; position: absolute; inset: 10% -30%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.22), transparent 65%);
}
.feature-shot.duo { width: auto; display: flex; gap: 20px; align-items: flex-start; }
.feature-shot.duo .phone { width: 240px; }
.feature-shot.duo .phone:last-child { margin-top: 48px; }

/* Widgets */
.widgets-section {
  background: linear-gradient(135deg, #1E1E5A 0%, #3A2A86 50%, #6B2468 100%);
  color: #fff; position: relative; overflow: hidden;
}
.widgets-section::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  right: -200px; top: -200px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%);
}
.widgets-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.widgets-copy h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 12px 0 18px; }
.widgets-copy > p { color: rgba(255,255,255,.82); font-size: 1.1rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.sizes span {
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.muted-light { color: rgba(255,255,255,.65) !important; font-size: .95rem !important; }
.widgets-shot { margin: 0; }
.widgets-shot img { border-radius: 28px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }

/* Use cases */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.case:hover { transform: translateY(-4px); }
.case-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
}
.case h3 { font-size: 1.1rem; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: .95rem; }

/* Data */
.data-section { background: var(--bg-alt); }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.data-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 18px;
}
.data-icon svg { width: 24px; height: 24px; }
.data-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.data-card p { color: var(--muted); font-size: .97rem; }

/* Gallery */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 28px;
  overflow-x: auto; padding: 10px 4px 30px; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery .phone { border-radius: 28px; padding: 6px; }
.gallery .phone img { border-radius: 23px; }
.gallery figcaption { text-align: center; margin-top: 14px; font-weight: 600; font-size: .92rem; color: var(--muted); }

/* FAQ */
.faq-section { padding-top: 40px; }
details {
  background: var(--surface); border-radius: 18px; margin-bottom: 12px;
  box-shadow: var(--shadow); overflow: hidden;
}
summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--muted); }

/* Download */
.download {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 36px; padding: 72px 32px;
  background: var(--grad);
}
.download-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.25), transparent 45%),
              radial-gradient(circle at 90% 100%, rgba(255,255,255,.18), transparent 40%);
}
.download > * { position: relative; }
.download-logo { width: 72px; height: 72px; margin: 0 auto 18px; }
.download h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.download p { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }
.download .small { font-size: .88rem; margin: 22px auto 0; color: rgba(255,255,255,.72); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.brand-small .logo { width: 26px; height: 26px; }
.muted { color: var(--muted); font-size: .9rem; }
.footer-inner .muted:last-child { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cases { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero-inner, .feature, .widgets-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .lead { margin: 0 auto; }
  .cta-row, .hero-points { justify-content: center; }
  .hero-phones { height: 500px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 210px; }
  .feature { margin-bottom: 88px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature-shot { width: 260px; }
  .feature-shot.duo .phone { width: 46%; }
  .feature-shot.duo { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .cases, .data-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 420px; }
  .hero-phones .phone { width: 175px; padding: 6px; border-radius: 26px; }
  .hero-phones .phone img { border-radius: 21px; }
  .gallery { grid-auto-columns: 180px; }
  .download { padding: 56px 20px; border-radius: 28px; }
  .footer-inner .muted:last-child { margin-left: 0; }
}
