/* Voicy.Now — сайт в палитре приложения (см. android ui/theme/Color.kt) */

:root {
  --bg: #0b0b12;
  --surface: #15151f;
  --surface-2: #20202e;
  --text: #ececf2;
  --muted: #9a9ab0;
  --indigo: #6d5ef8;
  --violet: #b14dff;
  --success: #35d07f;
  --danger: #ff5c72;
  --grad: linear-gradient(100deg, var(--indigo), var(--violet));
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Шапка ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-2);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ── Герой ── */
.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
}
.hero::before {
  /* мягкое брендовое свечение позади сферы */
  content: "";
  position: absolute; inset: -20% -30% auto;
  height: 130%;
  background:
    radial-gradient(600px 420px at 50% 30%, rgba(109, 94, 248, 0.22), transparent 65%),
    radial-gradient(500px 380px at 60% 45%, rgba(177, 77, 255, 0.14), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; }

/* Пульсирующая сфера — как PulsingOrb в приложении */
.orb-stage { display: flex; justify-content: center; margin-bottom: 36px; }
.orb {
  position: relative; width: 148px; height: 148px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(109, 94, 248, 0.45);
  animation: breathe 3.2s ease-in-out infinite;
}
.orb svg { width: 56px; height: 56px; fill: #fff; }
.orb::before, .orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(177, 77, 255, 0.5);
  animation: ripple 3.2s ease-out infinite;
}
.orb::after { animation-delay: 1.6s; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .orb::before, .orb::after { animation: none; }
}

.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
.hero .sub {
  max-width: 620px; margin: 18px auto 0;
  color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem);
}
.hero .cta-row {
  margin-top: 36px;
  display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
}
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(109, 94, 248, 0.35); }
.btn-grad:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--surface-2); }
.btn-ghost:hover { border-color: var(--indigo); text-decoration: none; }
.age-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--surface-2);
  color: var(--muted); font-size: 0.85rem;
}
.age-badge b { color: var(--danger); }

/* ── Секции ── */
section { padding: 72px 0; }
.section-label {
  color: var(--violet); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
}
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 44px; }

/* ── Шаги ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: var(--radius); padding: 26px 22px;
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ── Мокапы экранов ── */
.screens {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  /* По ВЕРХУ: телефоны одинаковой пропорции встают в ровную линию, а подписи
     разной высоты (1–2 строки) висят снизу, никого не сдвигая. */
  align-items: start;
}
@media (max-width: 900px) { .screens { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .screens { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; } }
.screen-card { text-align: center; }
.phone {
  background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: 28px; padding: 12px 10px; aspect-ratio: 9 / 18.5;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.phone .notch {
  width: 56px; height: 6px; border-radius: 3px; background: var(--surface-2);
  margin: 0 auto 14px; flex-shrink: 0;
}
.phone .mini { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.mini .mini-orb {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 26px rgba(109, 94, 248, 0.5);
}
.mini .mini-orb svg { width: 26px; height: 26px; fill: #fff; }
.mini .mini-orb.pulse { animation: breathe 2.6s ease-in-out infinite; }
.mini .t { font-size: 0.82rem; font-weight: 700; }
.mini .m { font-size: 0.68rem; color: var(--muted); max-width: 85%; }
.mini .pill {
  padding: 7px 18px; border-radius: 999px; background: var(--grad);
  color: #fff; font-size: 0.72rem; font-weight: 700;
}
.mini .row { display: flex; gap: 14px; margin-top: 6px; }
.mini .dot { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mini .dot svg { width: 15px; height: 15px; fill: #fff; }
.mini .dot.green { background: var(--success); }
.mini .dot.red { background: var(--danger); }
.mini .dot.grey { background: var(--surface-2); }
.mini .wave { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.mini .wave i {
  width: 4px; border-radius: 2px; background: var(--violet); display: block;
  animation: eq 1.1s ease-in-out infinite;
}
.mini .wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.mini .wave i:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.mini .wave i:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.mini .wave i:nth-child(4) { height: 20px; animation-delay: 0.45s; }
.mini .wave i:nth-child(5) { height: 9px; animation-delay: 0.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1); } }
.screen-card figcaption { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.screen-card figcaption b { color: var(--text); display: block; font-size: 0.98rem; }

/* ── Фичи ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: var(--radius); padding: 26px 22px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature:hover { border-color: var(--indigo); transform: translateY(-3px); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature .ico svg { width: 22px; height: 22px; fill: url(#gradIcon); }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ── Безопасность ── */
.safety {
  background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: var(--radius); padding: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
@media (max-width: 800px) { .safety { grid-template-columns: 1fr; } }
.safety ul { list-style: none; }
.safety li {
  display: flex; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 0.95rem;
}
.safety li::before { content: "✓"; color: var(--success); font-weight: 800; }

/* ── FAQ ── */
.faq details {
  background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: 16px; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 18px; color: var(--muted); font-size: 0.95rem; }

/* ── Футер ── */
footer {
  border-top: 1px solid var(--surface-2);
  padding: 40px 0; color: var(--muted); font-size: 0.9rem;
}
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

/* ── Появление при скролле ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Документы (privacy / terms) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.doc h2 { font-size: 1.2rem; margin: 34px 0 12px; }
.doc p, .doc li { color: var(--muted); font-size: 0.97rem; margin-bottom: 10px; }
.doc ul { padding-left: 22px; }
.doc strong { color: var(--text); }
.doc .back { display: inline-block; margin-bottom: 28px; color: var(--muted); }
.doc .back:hover { color: var(--text); }
