:root {
  --color-bg: #050118;
  --color-bg-alt: #0c051f;
  --color-surface: #140b2c;
  --color-surface-soft: rgba(139, 92, 246, 0.15);
  --color-primary: #8b5cf6;
  --color-primary-strong: #7c3aed;
  --color-text: #f9fafb;
  --color-muted: #9ca3af;
  --color-border: #27213f;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-elev-1: 0 10px 25px rgba(15, 23, 42, 0.55);
  --shadow-elev-2: 0 24px 60px rgba(15, 23, 42, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #312e81, #020617 55%);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.9);
  outline-offset: 3px;
}

#main-content:focus {
  outline: 2px solid rgba(139, 92, 246, 0.35);
  outline-offset: 10px;
  border-radius: var(--radius-lg);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(139, 92, 246, 0.6);
  color: #fff;
  z-index: 999;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 1, 24, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 33, 63, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 18px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(139, 92, 246, 0.8);
  background: rgba(15, 23, 42, 0.75);
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: rgba(229, 231, 235, 0.9);
  border-radius: 999px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 14px;
  color: var(--color-muted);
  padding: 8px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: #e5e7eb;
  background: rgba(148, 163, 184, 0.08);
}

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

.nav-download {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.nav-download:hover {
  background: var(--color-primary);
  border-color: var(--color-primary-strong);
  color: #fff;
  box-shadow: 0 8px 18px rgba(139, 92, 246, 0.4);
}

.lang-switch {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: var(--color-muted);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch.active {
  background: var(--color-primary);
  border-color: var(--color-primary-strong);
  color: #fff;
}

.lang-switch:hover:not(.active) {
  background: rgba(148, 163, 184, 0.1);
}

.hero {
  padding: 72px 0 56px;
}

section[id] {
  scroll-margin-top: 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-surface-soft);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--color-muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(30px, 4.8vw, 44px);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--color-muted);
  font-size: 16px;
  max-width: 460px;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
  color: #fff;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.55);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--color-text);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.6);
}

.age-note {
  font-size: 12px;
  color: var(--color-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 220px;
  height: 420px;
  border-radius: 32px;
  padding: 14px;
  background: radial-gradient(circle at top, #4c1d95, #020617);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-elev-2);
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.9));
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.phone-logo {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary-strong), #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.phone-caption {
  font-size: 13px;
  color: #e5e7eb;
  text-align: center;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: radial-gradient(circle at top right, rgba(76, 29, 149, 0.45), transparent 55%),
              linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
}

.section-title {
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-muted);
  max-width: 520px;
  margin-bottom: 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: rgba(243, 244, 246, 0.95);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--color-surface-soft);
  color: var(--color-muted);
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.screenshot-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 10px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 18px;
  box-shadow: var(--shadow-elev-1);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn.ghost.disabled,
.btn.ghost[aria-disabled="true"] {
  background: rgba(148, 163, 184, 0.06);
}

.prose p + p {
  margin-top: 10px;
}

.policy {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-elev-1);
}

.policy h1 {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.policy-meta {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.policy h2 {
  font-size: 18px;
  margin-top: 22px;
  margin-bottom: 10px;
}

.policy h3 {
  font-size: 15px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.policy p {
  margin-top: 10px;
  color: rgba(226, 232, 240, 0.92);
}

.policy ul {
  margin-top: 10px;
  padding-left: 22px;
}

.policy li {
  margin-top: 6px;
  color: rgba(226, 232, 240, 0.92);
}

.policy strong {
  color: #fff;
}

.policy a {
  color: rgba(196, 181, 253, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 10px 12px;
}

@media (hover: hover) {
  .feature-card:hover,
  .step-card:hover,
  .screenshot-card:hover,
  .card:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  }
}

details[open] {
  border-color: var(--color-primary);
}

summary {
  cursor: pointer;
  list-style: none;
  font-size: 14px;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

.site-footer {
  border-top: 1px solid rgba(39, 33, 63, 0.9);
  background: #020617;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0 18px;
}

.footer-left p {
  font-size: 12px;
  color: var(--color-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-muted);
}

.footer-links a:hover {
  color: #e5e7eb;
}

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
  }

  html.js .nav-toggle {
    display: inline-flex;
  }

  html.js .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(5, 1, 24, 0.98);
    border: 1px solid rgba(39, 33, 63, 0.9);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  html.js .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-download {
    flex: 1 1 100%;
    text-align: center;
    justify-content: center;
  }

  .lang-switch {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
  }

  html:not(.js) .main-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  html:not(.js) .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 44px;
  }

  .hero-visual {
    order: -1;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid,
  .steps-grid,
  .screenshots-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .policy {
    padding: 16px;
  }

  .header-inner {
    padding: 10px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
