/* LifeOS Landing — dark premium, бренд-градиент приложения */
:root {
  --bg: #0B0A12;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.09);
  --text: #F5F5F7;
  --dim: rgba(245, 245, 247, 0.68);
  --accent: #8E7CF8;
  --accent-deep: #6C5CE7;
  --gold: #E8B54D;
  --radius: 20px;
  --radius-sm: 14px;
  --hero-grad: linear-gradient(135deg, #1B1340 0%, #4A3AB4 55%, #6C5CE7 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; }
body {
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
section { padding: 88px 20px; max-width: 1120px; margin: 0 auto; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--dim); font-size: 1.05rem; }

/* ---------- Навбар ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(11, 10, 18, 0.75);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--dim); font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 13px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
}
.lang-switch:hover { background: var(--panel-strong); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 99px; font-weight: 600; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #6C5CE7, #8E7CF8);
  color: #fff; padding: 14px 28px; font-size: 1rem;
  box-shadow: 0 8px 28px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 36px rgba(108, 92, 231, 0.55); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line); color: var(--text);
  padding: 14px 24px; font-size: 1rem; background: var(--panel);
}
.btn-ghost:hover { background: var(--panel-strong); }
.btn-small { padding: 8px 16px; font-size: 0.88rem; background: var(--panel); border: 1px solid var(--line); }
.btn-small:hover { background: var(--panel-strong); }
.btn-big { padding: 17px 36px; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 72px; padding-bottom: 40px; overflow: visible; }
.hero-glow {
  position: absolute; inset: -40% -20% auto;
  height: 130%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(56% 46% at 72% 22%, rgba(108, 92, 231, 0.32), transparent 68%),
    radial-gradient(40% 36% at 18% 8%, rgba(74, 58, 180, 0.25), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center;
}
.badge-soon {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--panel);
  padding: 7px 14px; border-radius: 99px;
  font-size: 0.85rem; font-weight: 600; color: var(--dim);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin-bottom: 18px; }
.hero-sub { color: var(--dim); font-size: 1.15rem; max-width: 30em; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { list-style: none; display: grid; gap: 9px; }
.hero-points li { color: var(--dim); font-size: 0.95rem; padding-left: 24px; position: relative; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 99px;
  background: linear-gradient(135deg, #6C5CE7, #8E7CF8);
}

/* ---------- iPhone-рамка (чистый CSS) ---------- */
.iphone {
  position: relative;
  border-radius: 46px;
  padding: 10px;
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6);
  max-width: 320px; margin: 0 auto;
}
.iphone img { border-radius: 37px; }
.iphone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 99px; background: #000; z-index: 2;
}
.iphone-sm { max-width: 260px; }
.iphone-sm { border-radius: 40px; }
.iphone-sm img { border-radius: 32px; }
.iphone-sm .iphone-notch { top: 17px; width: 78px; height: 21px; }

/* ---------- Флагман: голос → записи ---------- */
.voice-demo {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.speech-bubble {
  background: var(--hero-grad);
  border-radius: var(--radius); border-bottom-left-radius: 6px;
  padding: 18px 20px; font-size: 1.02rem; line-height: 1.55;
  min-height: 118px; position: relative;
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.25);
}
.mic-ico { flex-shrink: 0; margin-top: 3px; opacity: 0.85; }
.caret {
  display: inline-block; width: 2px; height: 1.1em;
  background: #fff; margin-left: 2px; vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.entry-cards { display: grid; gap: 10px; margin-top: 20px; }
.entry-card {
  display: flex; align-items: center; gap: 13px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 15px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.45s, transform 0.45s;
}
.entry-card.shown { opacity: 1; transform: none; }
.entry-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--tint); background: color-mix(in srgb, var(--tint) 16%, transparent);
}
.entry-card b { display: block; font-size: 0.96rem; }
.entry-card small { color: var(--dim); font-size: 0.85rem; }
.voice-note { color: var(--dim); font-size: 0.9rem; margin-top: 18px; }

/* ---------- Фичи ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color 0.25s, background 0.25s;
}
.feature:hover { border-color: rgba(142, 124, 248, 0.45); background: var(--panel-strong); }
.f-ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 16px;
  color: var(--accent);
  background: rgba(108, 92, 231, 0.16);
}
.f-ico.big { width: 54px; height: 54px; margin: 0 auto 18px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--dim); font-size: 0.93rem; }

/* ---------- Карусель скринов ---------- */
.carousel {
  display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 22px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--panel-strong); border-radius: 99px; }
.carousel figure { scroll-snap-align: center; flex-shrink: 0; text-align: center; }
.carousel figcaption { color: var(--dim); font-size: 0.88rem; margin-top: 14px; }

/* ---------- Приватность ---------- */
.privacy-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 44px 40px; text-align: center;
}
.privacy-card h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 26px; }
.priv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  text-align: left; margin-bottom: 26px;
}
.priv-grid p { color: var(--dim); font-size: 0.93rem; }
.priv-grid b { color: var(--text); display: block; margin-bottom: 4px; }
.text-link { color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.text-link:hover { text-decoration: underline; }

/* ---------- Тарифы ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column;
}
.price-card.featured {
  background: linear-gradient(160deg, rgba(108, 92, 231, 0.22), rgba(255, 255, 255, 0.05) 55%);
  border-color: rgba(142, 124, 248, 0.55);
  box-shadow: 0 18px 60px rgba(108, 92, 231, 0.22);
}
.pop-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #6C5CE7, #8E7CF8); color: #fff;
  font-size: 0.78rem; font-weight: 700; padding: 4px 14px; border-radius: 99px;
}
.price-card h3 { font-size: 1.05rem; margin-bottom: 12px; }
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.price span { font-size: 1rem; font-weight: 500; color: var(--dim); }
.price-year { color: var(--gold); font-size: 0.86rem; font-weight: 600; margin-top: 4px; }
.price-card ul { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.price-card li { color: var(--dim); font-size: 0.92rem; padding-left: 24px; position: relative; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 1rem;
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); color: var(--accent);
  font-size: 1.3rem; font-weight: 400; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--dim); font-size: 0.95rem; }

/* ---------- Финальный CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--hero-grad);
  border-radius: calc(var(--radius) + 8px);
  padding: 64px 24px; margin-top: 20px; margin-bottom: 40px;
}
.final-cta h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 28px; }
.final-cta .btn-primary { background: #fff; color: #1B1340; box-shadow: 0 10px 34px rgba(0,0,0,0.3); }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 20px; }
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  color: var(--dim); font-size: 0.88rem;
}
.footer nav { display: flex; gap: 20px; }
.footer a:hover { color: var(--text); }

/* ---------- Reveal-анимации ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .entry-card { opacity: 1 !important; transform: none !important; transition: none !important; }
  .caret { animation: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero-inner, .voice-demo { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-points { max-width: 340px; margin: 0 auto; text-align: left; }
  .feature-grid, .price-grid, .priv-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .voice-right { order: -1; }
  section { padding: 60px 18px; }
}
