:root {
  --bg: #F3F5FB;
  --surface: #FFFFFF;
  --surface2: #F7F8FC;
  --stroke: #EBEEF6;
  --text: #151A2D;
  --soft: #5E6478;
  --mute: #A2A7B9;
  --primary: #5468FF;
  --primary-dark: #4353E8;
  --primary-light: #8C99FF;
  --primary-soft: #E9ECFF;
  --violet: #8B6CFF;
  --cyan: #1FB6D9;
  --pink: #FF6B9A;
  --amber: #FFAD1F;
  --emerald: #1EC28B;
  --orange: #FF8A4C;
  --grad: linear-gradient(135deg, #8C99FF 0%, #5468FF 55%, #4353E8 100%);
  --radius: 24px;
  --shadow: 0 18px 50px -18px rgba(67, 83, 232, .35);
  --shadow-soft: 0 8px 30px -12px rgba(21, 26, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 245, 251, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(235, 238, 246, .8);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--soft); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 16px; font-weight: 700; font-size: 16px;
  border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-white { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-soft); }
.btn-ghost { background: var(--primary-soft); color: var(--primary-dark); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .8; line-height: 1.1; }
.btn .two { text-align: left; line-height: 1.2; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero::before { width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(140,153,255,.35), rgba(140,153,255,0) 70%); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -120px; background: radial-gradient(circle, rgba(31,182,217,.18), rgba(31,182,217,0) 70%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px;
  background: #fff; border: 1px solid var(--stroke); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--soft); box-shadow: var(--shadow-soft);
}
.pill b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.03em; margin: 22px 0 18px; font-weight: 800; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--soft); max-width: 540px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; color: var(--soft); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; font-style: normal; font-size: 12px; color: #fff; }

.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 270px; border-radius: 38px; padding: 9px; background: #10142a;
  box-shadow: 0 40px 80px -30px rgba(21, 26, 45, .55), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 540 / 1199; object-fit: cover; object-position: top; }
.phone.p1 { left: 50%; top: 0; transform: translateX(-62%) rotate(-5deg); z-index: 2; }
.phone.p2 { left: 50%; top: 60px; transform: translateX(8%) rotate(6deg); z-index: 1; opacity: .97; }

/* sections */
section { padding: 90px 0; }
.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.025em; margin: 10px 0 14px; font-weight: 800; }
.sub { color: var(--soft); font-size: 18px; max-width: 640px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -10px; }
.stat { background: #fff; border: 1px solid var(--stroke); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--soft); font-size: 14px; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--soft); font-size: 15px; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.icon svg { width: 26px; height: 26px; }
.g-primary { background: var(--grad); }
.g-orange { background: linear-gradient(135deg, #FFAD1F, #FF8A4C); }
.g-emerald { background: linear-gradient(135deg, #3BD9A0, #1EC28B); }
.g-violet { background: linear-gradient(135deg, #B39DFF, #8B6CFF); }
.g-cyan { background: linear-gradient(135deg, #5AD3EE, #1FB6D9); }
.g-pink { background: linear-gradient(135deg, #FF9DBB, #FF6B9A); }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 100px; }
.split.rev .media { order: 2; }
.media { display: flex; justify-content: center; position: relative; }
.media::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 48px; background: var(--grad); opacity: .14; transform: rotate(-4deg);
}
.media .phone { position: relative; transform: none; left: auto; top: auto; width: 290px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-size: 16px; }
.ticks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--primary-soft);
  color: var(--primary-dark); font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 1px;
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--stroke); position: relative; }
.step::before {
  counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 14px; background: var(--grad);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow);
}
.step h3 { margin: 18px 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--soft); font-size: 15px; }


/* privacy block */
.privacy-box {
  background: #10142a; color: #fff; border-radius: 36px; padding: 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  position: relative; overflow: hidden;
}
.privacy-box::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(84,104,255,.45), rgba(84,104,255,0) 70%); }
.privacy-box h2 { color: #fff; }
.privacy-box .sub { color: rgba(255,255,255,.72); }
.plist { display: grid; gap: 14px; position: relative; z-index: 1; }
.plist div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px 18px; }
.plist b { display: block; font-size: 16px; }
.plist span { color: rgba(255,255,255,.7); font-size: 14px; }

/* windows */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: #fff; border: 1px solid var(--stroke); border-radius: 36px; padding: 52px; box-shadow: var(--shadow-soft); }
.pc-art { background: var(--surface2); border-radius: 26px; padding: 28px; border: 1px solid var(--stroke); }
.win { background: #fff; border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.win-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--track, #E8EBF5); }
.win-body { padding: 18px; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--surface2); font-weight: 700; font-size: 14px; }
.row small { display: block; color: var(--mute); font-weight: 600; font-size: 12px; }
.row .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.bar { height: 8px; border-radius: 99px; background: #E8EBF5; overflow: hidden; margin-top: 6px; }
.bar b { display: block; height: 100%; width: 68%; background: var(--grad); border-radius: 99px; }
.soon { display: inline-block; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }

/* faq */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--stroke); border-radius: 18px; padding: 4px 22px; }
summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--primary); font-size: 24px; line-height: 1; font-weight: 600; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--soft); }

/* final cta */
.final { background: var(--grad); border-radius: 36px; padding: 64px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); right: -100px; bottom: -160px; }
.final h2 { color: #fff; }
.final .sub { color: rgba(255,255,255,.85); margin: 0 auto 30px; }
.final img.logo { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 10px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.35); }

/* footer */
footer { padding: 50px 0 40px; color: var(--soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-weight: 600; }
footer nav a { color: var(--soft); }

/* legal pages */
.legal { max-width: 820px; margin: 40px auto 80px; background: #fff; border: 1px solid var(--stroke); border-radius: 28px; padding: 48px; box-shadow: var(--shadow-soft); }
.legal h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 6px; }
.legal h2 { font-size: 21px; margin: 34px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: #2c3247; }
.legal .muted { color: var(--mute); font-weight: 600; margin: 0 0 22px; }
.legal .note { background: var(--primary-soft); border-radius: 16px; padding: 16px 20px; color: var(--text); }
.legal code { background: var(--surface2); border: 1px solid var(--stroke); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 980px) {
  .hero .wrap, .split, .privacy-box, .pc { grid-template-columns: 1fr; }
  .split.rev .media { order: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 20px; }
  .lead { font-size: 17px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .phones { height: 470px; }
  .phone { width: 210px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .phone.p1 { transform: translateX(-75%) rotate(-5deg); }
  .phone.p2 { transform: translateX(-10%) rotate(6deg); top: 50px; }
  .media .phone { width: 240px; }
  .privacy-box, .pc { padding: 30px 22px; border-radius: 28px; }
  .final { padding: 48px 22px; border-radius: 28px; }
  .legal { padding: 28px 20px; margin: 20px 16px 60px; border-radius: 22px; }
  .wrap { padding: 0 16px; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ───────── clay 3D kit (same shapes, gradients and shadows as the app's ClayBall / ClayCloud / ClayBox / ClayPhone) ───────── */
.ball {
  --l: #A9B3FF; --c: #5B6CFF; --d: #2338FF; --sh: rgba(35, 56, 255, .35);
  width: var(--b, 56px); height: var(--b, 56px); font-size: var(--b, 56px);
  border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
  background: radial-gradient(circle at 32% 27%, var(--l) 0%, var(--c) 55%, var(--d) 100%);
  box-shadow: 0 .14em .3em var(--sh), inset 0 -.06em .12em rgba(0,0,0,.08), inset 0 .05em .1em rgba(255,255,255,.35);
}
.ball svg { width: 46%; height: 46%; }
.b-blue   { --l: #A9B3FF; --c: #5B6CFF; --d: #2338FF; --sh: rgba(35, 56, 255, .35); }
.b-orange { --l: #FFC2A1; --c: #FF8A4C; --d: #F25A0D; --sh: rgba(242, 90, 13, .35); }
.b-violet { --l: #C8B9FF; --c: #8B6CFF; --d: #5A33FF; --sh: rgba(90, 51, 255, .35); }
.b-green  { --l: #6BEBC0; --c: #1EC28B; --d: #138057; --sh: rgba(19, 128, 87, .35); }
.b-yellow { --l: #FFE7B0; --c: #FFC94D; --d: #F5A800; --sh: rgba(245, 168, 0, .35); }
.b-pink   { --l: #FFB8CE; --c: #FF6B9A; --d: #F0225F; --sh: rgba(240, 34, 95, .35); }
.b-cyan   { --l: #84DFF3; --c: #1FB6D9; --d: #157F98; --sh: rgba(21, 127, 152, .35); }

.cloud { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(51, 65, 184, .28)); overflow: visible; }

/* a scene is a square; children are placed in % of its size (font-size = 1% of the scene for the em shadows) */
.scene { position: relative; width: var(--s, 180px); height: var(--s, 180px); }
.scene > * { position: absolute; }
.halo { position: relative; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,.06) 70%); }
.halo.on-light { background: radial-gradient(circle, rgba(84,104,255,.16), rgba(84,104,255,.04) 70%); }

.streaks { display: grid; gap: 4%; }
.streaks i { display: block; height: calc(var(--s) * .035); border-radius: 10px; background: rgba(255,255,255,.55); }

.clay-box {
  border-radius: 8%; display: grid; place-items: center;
  background: linear-gradient(135deg, #FFFFFF, #EDEFFA 55%, #D3D8F0);
  box-shadow: 0 calc(var(--s) * .07) calc(var(--s) * .12) rgba(43, 55, 168, .3);
}
.clay-box i { width: 28%; height: 13%; border-radius: 99px; background: #C9CFEA; }
.clay-doc { border-radius: calc(var(--s) * .064); background: linear-gradient(135deg, #FFB49A, #FF8A65 55%, #F26A3F); box-shadow: 0 calc(var(--s) * .03) calc(var(--s) * .08) rgba(255, 138, 101, .4); }
.clay-phone {
  border-radius: calc(var(--s) * .1); padding: calc(var(--s) * .04);
  background: linear-gradient(135deg, #FFFFFF, #E6E9F8 55%, #C7CEEE);
  box-shadow: 0 calc(var(--s) * .07) calc(var(--s) * .12) rgba(43, 55, 168, .3);
}
.clay-phone > div { height: 100%; border-radius: calc(var(--s) * .07); background: linear-gradient(#E9FFF6, #BDF2DD); display: flex; align-items: flex-end; padding: calc(var(--s) * .04); }
.clay-phone > div i { display: block; width: 100%; height: calc(var(--s) * .36); border-radius: calc(var(--s) * .04); background: rgba(30, 194, 139, .25); }

/* hero art */
.hero-art { position: relative; height: 600px; }
.hero-art .halo { position: absolute; width: 560px; height: 560px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.hero-art .deco { position: absolute; z-index: 3; }
.hero-art .d-cloud { width: 210px; left: 2%; bottom: 40px; }
.hero-art .d-bolt { right: 6%; top: 18px; }
.hero-art .d-violet { left: 8%; top: 120px; z-index: 0; }
.hero-art .d-check { right: 2%; bottom: 120px; }
.hero-art .d-yellow { left: 44%; bottom: 6px; z-index: 0; }
.phones { position: absolute; inset: 0; height: auto; }

/* feature card balls */
.card .ball { --b: 56px; }

/* step art */
.step-art { background: var(--grad); border-radius: 20px; display: grid; place-items: center; padding: 26px 0 18px; margin-bottom: 18px; overflow: hidden; }
.step .num { position: absolute; top: 18px; left: 18px; z-index: 2; width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--primary-dark); font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.steps .step::before { content: none; }
.step h3 { margin-top: 0; }

.final .scene { margin: 0 auto 6px; }

@media (max-width: 980px) {
  .hero-art { height: 560px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-art .halo { width: 480px; height: 480px; }
}
@media (max-width: 720px) {
  .hero-art { height: 470px; }
  .hero-art .halo { width: 360px; height: 360px; }
  .hero-art .d-cloud { width: 140px; left: 0; bottom: 30px; }
  .hero-art .d-bolt { right: 2%; top: 6px; }
  .hero-art .d-bolt { --b: 66px !important; }
  .hero-art .d-check { --b: 52px !important; }
  .hero-art .d-check { right: 0; bottom: 80px; }
  .hero-art .d-violet { left: 2%; top: 80px; }
}
