:root {
  --mint: #3ef0c2;
  --mint-deep: #12a883;
  --navy: #0f2447;
  --navy-soft: #23395f;
  --orange: #fb8122;
  --bg: #f7faf9;
  --surface: #ffffff;
  --text: #0f1b2d;
  --muted: #55627a;
  --line: #dde5e2;
  --radius: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1424;
    --surface: #111e33;
    --text: #e9f0f7;
    --muted: #9cabc2;
    --line: #22324d;
    --navy: #e9f0f7;
    --navy-soft: #b7c6dc;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--mint-deep); }
@media (prefers-color-scheme: dark) { a { color: var(--mint); } }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: #fff; }
.site-header nav { margin-left: auto; display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-header nav a:hover { color: var(--text); }
@media (max-width: 560px) { .site-header nav a.optional { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #0f2447; color: #fff; box-shadow: 0 8px 24px rgba(15, 36, 71, .25); }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--mint); color: #062a20; box-shadow: none; } }
.btn-ghost { color: var(--text); border: 1.5px solid var(--line); }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; color: var(--navy); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #12c48f, #19b7d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 22px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.trust span::before { content: "✓ "; color: var(--mint-deep); font-weight: 800; }

.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .phone:first-child { left: 0; top: 40px; transform: rotate(-6deg); }
.hero-phones .phone:last-child { right: 0; top: 0; transform: rotate(5deg); }
.hero-phones::before {
  content: ""; position: absolute; inset: 60px 20px 20px;
  background: radial-gradient(circle at 50% 50%, rgba(62, 240, 194, .45), transparent 65%);
  filter: blur(20px);
}
.hero-phones::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 280px; height: 180px; left: 50%; top: 44%;
  border: 1px solid rgba(18, 168, 131, .38); border-radius: 50%;
  background: radial-gradient(ellipse at 42% 38%, rgba(62, 240, 194, .22), transparent 68%);
  box-shadow: inset 0 0 28px rgba(62, 240, 194, .14), 0 0 24px rgba(62, 240, 194, .12);
  transform: translate(-50%, -50%) perspective(500px) rotateX(68deg) rotateZ(-24deg);
  animation: abstract-orbit 18s ease-in-out infinite alternate;
}
.hero-phones .phone { z-index: 1; }

@keyframes abstract-orbit {
  from { transform: translate(-50%, -50%) perspective(500px) rotateX(68deg) rotateZ(-24deg) scale(.92); }
  to { transform: translate(-50%, -50%) perspective(500px) rotateX(68deg) rotateZ(12deg) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phones::after { animation: none; }
}

.phone {
  border-radius: 34px; padding: 8px; background: #0b1220;
  box-shadow: 0 30px 60px rgba(10, 20, 36, .28), inset 0 0 0 1.5px #2a3448;
}
.phone img { display: block; width: 100%; border-radius: 27px; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: 440px; max-width: 380px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: min(200px, 46vw); }
}

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: clamp(26px, 4vw, 36px); margin: 0 0 10px; color: var(--navy); letter-spacing: -.01em; }
.section-sub { color: var(--muted); margin: 0 0 36px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(62, 240, 194, .18); color: var(--mint-deep); }
.feature .icon.orange { background: rgba(251, 129, 34, .15); color: var(--orange); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Screenshot gallery */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 22px;
  overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-align: center; }

/* Privacy band */
.band { background: #0f2447; color: #e9f0f7; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.band h2 { margin: 0 0 10px; font-size: clamp(24px, 3.5vw, 32px); }
.band p { margin: 0; color: #b7c6dc; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.band li { padding-left: 28px; position: relative; }
.band li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); }
.band a { color: var(--mint); }
@media (prefers-color-scheme: dark) { .band { background: var(--surface); border: 1px solid var(--line); } }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 28px; } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal pages */
.doc { max-width: 760px; padding: 48px 16px 72px; margin: 0 auto; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); color: var(--navy); margin: 0 0 6px; letter-spacing: -.01em; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; color: var(--navy); }
.doc p, .doc li { color: var(--text); }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 12px; padding: 18px 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(62, 240, 194, .2); color: var(--mint-deep); font-weight: 800; display: grid; place-items: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 32px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
