:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --elevated: #fdfdfe;
  --text: #111827;
  --muted: #667085;
  --border: #e5e7eb;
  --primary: #2563eb;
  --success: #16a34a;
  --warning: #f59e0b;
  --pro: #7c3aed;
  --ink-soft: #eef2ff;
  --shadow: 0 20px 55px rgba(17, 24, 39, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080a0f;
    --surface: #111827;
    --elevated: #171c26;
    --text: #f9fafb;
    --muted: #9ca3af;
    --border: #2a3140;
    --primary: #3b82f6;
    --success: #22c55e;
    --warning: #fbbf24;
    --pro: #a78bfa;
    --ink-soft: #121826;
    --shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink-soft) 58%, transparent), transparent 520px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark,
.logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.22);
}

.logo {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.lang-button,
.button,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.status-pill {
  cursor: default;
}

.status-pill.primary {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary);
}

.lang-button {
  cursor: pointer;
}

.hero {
  overflow: hidden;
  padding: 54px 0 46px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 670px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 12px 7px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.app-badge img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.proof-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.proof-grid div,
.card,
.policy-panel,
.download-panel,
.screen-card {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.proof-grid div {
  border-radius: 16px;
  padding: 14px;
}

.proof-grid strong,
.proof-grid span,
.card strong,
.card p {
  display: block;
}

.proof-grid span,
.card p,
.section-head p,
.download-panel p,
.policy-panel p,
.policy-panel li {
  color: var(--muted);
}

.hero-media {
  position: relative;
  min-height: 420px;
}

.device {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, #151923, #05070d 62%, #202532);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 30px 80px rgba(17, 24, 39, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65);
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.phone-shot {
  position: absolute;
  right: 0;
  top: 10px;
  width: min(28vw, 190px);
  aspect-ratio: 414 / 900;
  border-radius: 34px;
  padding: 10px;
  z-index: 2;
}

.phone-shot img {
  border-radius: 25px;
}

.ipad-shot {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: min(42vw, 440px);
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  padding: 12px;
}

.ipad-shot img {
  border-radius: 14px;
}

.iphone-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 3.8%;
  min-height: 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #02030a;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.45);
}

.iphone-frame::after {
  content: "";
  position: absolute;
  top: 14%;
  right: -3px;
  width: 3px;
  height: 12%;
  border-radius: 0 999px 999px 0;
  background: #1c2230;
}

.ipad-frame::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 3;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #4f5f7a, #02030a 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.section {
  padding: 62px 0;
}

.section-head {
  max-width: 900px;
  margin-bottom: 26px;
}

.section-head.compact {
  max-width: 650px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-height: 220px;
  border-radius: 20px;
  padding: 20px;
}

.card strong {
  margin: 18px 0 7px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-icon.green {
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
}

.feature-icon.gold {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: #9a6200;
}

.feature-icon.purple {
  background: color-mix(in srgb, var(--pro) 16%, transparent);
  color: var(--pro);
}

.privacy-band {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.screens-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.34fr 0.78fr;
  gap: 16px;
  align-items: end;
}

.screen-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 26px;
  padding: 12px;
}

.screen-card img {
  width: 100%;
  object-fit: cover;
  background: #050815;
}

.screen-card.iphone-frame {
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(145deg, #151923, #05070d 62%, #202532);
}

.screen-card.iphone-frame img {
  border-radius: 25px;
}

.screen-card.ipad-frame {
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(145deg, #151923, #05070d 62%, #202532);
}

.screen-card.ipad-frame img {
  border-radius: 16px;
}

.screen-card.tall img {
  aspect-ratio: 414 / 900;
}

.screen-card.portrait img {
  aspect-ratio: 3 / 4;
}

.screen-card.wide img {
  aspect-ratio: 4 / 3;
}

.screen-card figcaption {
  padding: 12px 6px 3px;
  color: color-mix(in srgb, #ffffff 82%, transparent);
  font-size: 0.94rem;
  font-weight: 700;
}

.download-panel {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 42px);
}

.download-panel img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.download-panel p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 1.06rem;
}

.download-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.policy-hero {
  padding: 64px 0 24px;
}

.policy-panel {
  border-radius: 22px;
  padding: clamp(20px, 4vw, 42px);
  margin: 28px 0 60px;
}

.policy-panel h2 {
  margin-top: 34px;
  font-size: 1.35rem;
}

.policy-panel h2:first-child {
  margin-top: 0;
}

.policy-panel p {
  max-width: 820px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
}

.footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

[data-lang] {
  display: none;
}

html[lang="en"] [data-lang="en"],
html[lang="ru"] [data-lang="ru"] {
  display: revert;
}

html[lang="en"] .nav-link[data-lang="en"],
html[lang="ru"] .nav-link[data-lang="ru"],
html[lang="en"] .button[data-lang="en"],
html[lang="ru"] .button[data-lang="ru"],
html[lang="en"] .status-pill[data-lang="en"],
html[lang="ru"] .status-pill[data-lang="ru"] {
  display: inline-flex;
}

html[lang="en"] .proof-grid strong[data-lang="en"],
html[lang="ru"] .proof-grid strong[data-lang="ru"],
html[lang="en"] .proof-grid span[data-lang="en"],
html[lang="ru"] .proof-grid span[data-lang="ru"],
html[lang="en"] .card strong[data-lang="en"],
html[lang="ru"] .card strong[data-lang="ru"],
html[lang="en"] .card p[data-lang="en"],
html[lang="ru"] .card p[data-lang="ru"],
html[lang="en"] .screen-card figcaption[data-lang="en"],
html[lang="ru"] .screen-card figcaption[data-lang="ru"],
html[lang="en"] .device[data-lang="en"],
html[lang="ru"] .device[data-lang="ru"],
html[lang="en"] .screen-card[data-lang="en"],
html[lang="ru"] .screen-card[data-lang="ru"] {
  display: block;
}

html[lang="en"] .app-badge span[data-lang="en"],
html[lang="ru"] .app-badge span[data-lang="ru"] {
  display: inline;
}

html[lang="en"] [data-lang="ru"],
html[lang="ru"] [data-lang="en"] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-layout,
  .privacy-layout,
  .screens-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-media {
    min-height: 400px;
  }

  .phone-shot {
    width: min(36vw, 200px);
  }

  .ipad-shot {
    width: min(64vw, 500px);
  }

  .feature-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-card.tall {
    max-width: 430px;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 4px;
  }

  html[lang="en"] .nav-actions .nav-link[data-lang="en"],
  html[lang="ru"] .nav-actions .nav-link[data-lang="ru"] {
    display: none;
  }

  .hero {
    padding: 30px 0 36px;
  }

  h1 {
    font-size: 2.14rem;
    line-height: 1.04;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-media {
    display: none !important;
  }

  .feature-grid,
  .proof-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 46px 0;
  }

  .download-panel img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}
