:root {
  --bg: #0e1116;
  --bg-top: #141a22;
  --bg-card: #171b22;
  --bg-elevated: #1e2430;
  --text: #e8e4dc;
  --text-muted: #9aa3b2;
  --accent: #2f9b8f;
  --accent-soft: rgba(47, 155, 143, 0.16);
  --accent-muted: #1f6f67;
  --border: rgba(232, 228, 220, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans", sans-serif;
  --header-h: 72px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(100% - 40px, var(--max-w));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(14, 17, 22, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  appearance: none;
  background: var(--bg-card)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa3b2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 8px 36px 8px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  max-width: 160px;
}

.lang-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

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

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

.btn-primary:hover {
  background: #38b3a5;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-top);
  border-bottom: 1px solid var(--border);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text);
  font-size: 1.05rem;
  text-decoration: none;
}

.hero {
  padding: calc(var(--header-h) + 72px) 0 88px;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(47, 155, 143, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 155, 143, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.phone {
  width: min(280px, 100%);
  margin-inline: auto;
  padding: 10px;
  background: #0a0d12;
  border-radius: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-card);
  padding: 18px 14px 14px;
}

.phone-bar {
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 16px;
}

.phone-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.poster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.poster {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
}

.poster:nth-child(1) { background: linear-gradient(160deg, #3d4a6b, #1a2030); }
.poster:nth-child(2) { background: linear-gradient(160deg, #4a3d2a, #1c1610); }
.poster:nth-child(3) { background: linear-gradient(160deg, #2a4a44, #101c1a); }
.poster:nth-child(4) { background: linear-gradient(160deg, #4a2a3a, #1c1014); }

section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 48px;
}

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

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

.feature-card:hover {
  border-color: rgba(47, 155, 143, 0.4);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

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

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

.steps {
  background: var(--bg-top);
}

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

.step-num {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
}

.download-section {
  text-align: center;
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.download-box .section-desc {
  margin-inline: auto;
}

.store-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #000;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  min-width: 200px;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-icon {
  flex-shrink: 0;
}

.store-btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

.store-btn.disabled {
  opacity: 0.48;
  pointer-events: none;
}

.store-btn small {
  font-size: 0.7rem;
  opacity: 0.7;
}

.store-btn strong {
  font-size: 1.05rem;
}

.disclaimer {
  margin: 24px auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 560px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-top);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-page {
  padding: calc(var(--header-h) + 40px) 0 80px;
}

.legal-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 48px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-container h1 {
  margin-top: 0;
  font-size: 1.75rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 12px;
}

.legal-container h2 {
  margin-top: 32px;
  font-size: 1.25rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

.legal-container h3,
.legal-container h4 {
  margin-top: 20px;
  color: var(--text-muted);
}

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

.legal-meta {
  color: var(--text-muted);
  font-style: italic;
}

.contact-info {
  background: var(--bg-elevated);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.legal-loading {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

html[dir="rtl"] .legal-container h2 {
  border-left: none;
  border-right: 4px solid var(--accent);
  padding-left: 0;
  padding-right: 12px;
}

html[dir="rtl"] .lang-select {
  background-position: left 12px center;
  padding: 8px 14px 8px 36px;
}

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

  .hero-grid {
    text-align: center;
  }

  .hero-lead,
  .section-desc {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .legal-container {
    padding: 28px 24px;
  }
}

@media (max-width: 480px) {
  .header-actions .btn-primary {
    display: none;
  }
}
