:root {
  --teal-50: #e0f2f1;
  --teal-100: #b2dfdb;
  --teal-300: #4db6ac;
  --teal-500: #009688;
  --teal-700: #00796b;
  --teal-900: #004d40;

  --bg: #f4faf9;
  --bg-elevated: #ffffff;
  --bg-muted: #e8f5f3;
  --text: #102321;
  --text-muted: #4a6360;
  --border: rgba(0, 105, 92, 0.14);
  --shadow: 0 24px 64px rgba(0, 77, 64, 0.12);
  --hero-glow: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(77, 182, 172, 0.35), transparent 70%);
  --accent: var(--teal-700);
  --accent-hover: var(--teal-900);
  --accent-soft: rgba(0, 121, 107, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1413;
    --bg-elevated: #121c1b;
    --bg-muted: #172422;
    --text: #e8f5f3;
    --text-muted: #8aa9a4;
    --border: rgba(77, 182, 172, 0.16);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    --hero-glow: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(77, 182, 172, 0.18), transparent 70%);
    --accent: var(--teal-300);
    --accent-hover: var(--teal-100);
    --accent-soft: rgba(77, 182, 172, 0.12);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #0c1413;
  }
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Phone mockup */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phone-mockup {
  justify-self: end;
  width: min(100%, 300px);
  margin: 0;
  padding: 0.75rem;
  border-radius: 2rem;
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-muted));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.phone-screen {
  border-radius: 1.35rem;
  overflow: hidden;
  background: #101c1c;
  border: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 0;
}

.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* App screenshots */

.screenshots {
  padding-top: 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: end;
}

.screenshots-grid--two {
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
}

.screenshot-card {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 77, 64, 0.08);
  background: var(--bg-elevated);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}

/* Sections */

section {
  padding: 4rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem;
  border-radius: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-band {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.privacy-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.privacy-list svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--accent);
}

.download-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: #e0f2f1;
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .download-card {
    background: linear-gradient(135deg, #0a2e29, #124a42);
  }
}

.download-card h2 {
  margin: 0 0 0.75rem;
  color: #fff;
}

.download-card p {
  margin: 0 0 1.5rem;
  color: rgba(224, 242, 241, 0.82);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.download-card .btn-primary {
  background: #e0f2f1;
  color: var(--teal-900);
}

.download-card .btn-primary:hover {
  background: #fff;
}

.download-card .btn-secondary {
  background: transparent;
  color: #e0f2f1;
  border-color: rgba(224, 242, 241, 0.35);
}

.download-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(224, 242, 241, 0.65);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* Legal pages */

.legal-page .legal-main {
  padding: 2.5rem 0 4rem;
}

.legal-container {
  max-width: 760px;
}

.legal-header h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-summary {
  margin: 1.75rem 0 2rem;
  padding: 1.1rem 1.25rem;
  border-radius: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

.legal-summary p {
  margin: 0;
}

.legal-content section {
  padding: 0;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content p {
  margin: 0 0 0.85rem;
}

.legal-content ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.legal-content li + li {
  margin-top: 0.35rem;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

/* i18n */

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

/* Responsive */

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

  .phone-mockup {
    justify-self: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .header-inner .btn-secondary {
    display: none;
  }
}
