:root {
  --bg: #0b1122;
  --bg-2: #1f2432;
  --card: #181c28;
  --card-2: #181d2c;
  --border: #23272e;
  --primary: #b91c1c;
  --primary-2: #d52424;
  --primary-deep: #240606;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --gold: #ffd700;
  --radius: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #070b16;
}

html,
body {
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  overflow-x: hidden;
}

body {
  background-color: #070b16;
  background-image:
    radial-gradient(ellipse 70% 55% at 85% -10%, rgba(185, 28, 28, 0.38), transparent 58%),
    radial-gradient(ellipse 50% 45% at 0% 15%, rgba(30, 58, 138, 0.28), transparent 52%),
    radial-gradient(ellipse 45% 35% at 50% 100%, rgba(185, 28, 28, 0.14), transparent 55%),
    linear-gradient(165deg, #0a1224 0%, #070b16 42%, #0b1122 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 10%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 10%, #000 18%, transparent 72%);
}

header,
main,
footer,
.modal {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 8px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 46px;
  width: auto;
  mix-blend-mode: screen;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  margin-right: 6px;
}

.lang img {
  width: 22px;
  height: auto;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.4px;
  border-radius: 999px;
  padding: 12px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(185, 28, 28, 0.32);
}

.hero {
  padding: 36px 0 72px;
  min-height: calc(100vh - 90px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 16px 0 28px;
}

.hero-kicker {
  margin: 48px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 18px 0 36px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 180px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(#b91c1c, #240606);
  flex-shrink: 0;
}

.feature p {
  font-size: 17px;
  color: var(--muted);
  font-weight: 500;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}

.store-btn {
  display: block;
  line-height: 0;
  transition: transform 0.2s ease;
}

.store-btn img {
  width: 210px;
  height: auto;
  display: block;
}

.store-btn:hover {
  transform: translateY(-3px);
}

.desktop-note {
  width: 100%;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  text-align: center;
}

.hero-visual {
  position: relative;
  min-height: 0;
  overflow: visible;
  border-radius: 0;
}

.hero-visual img.hero-art {
  position: static;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.guide {
  padding: 80px 0 40px;
}

.guide h2 {
  font-family: "DM Sans", sans-serif;
  text-align: center;
  font-size: clamp(2.05rem, 4.2vw, 3.35rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.guide .lead {
  text-align: center;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto 56px;
  font-size: 1.2rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  gap: 18px 28px;
  align-items: center;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 34px;
}

.step.right {
  flex-direction: row-reverse;
  text-align: right;
}

.step-num {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px 16px 16px 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
}

.step.right .step-num {
  border-radius: 16px 16px 0 16px;
}

.step h3 {
  font-family: "DM Sans", sans-serif;
  margin-bottom: 8px;
  font-size: 22px;
}

.step p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 17px;
}

.phone {
  width: min(320px, 100%);
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.final {
  padding: 70px 0 80px;
  text-align: center;
}

.final-art {
  max-width: 420px;
  margin: 0 auto 28px;
}

.final-art img {
  width: 100%;
}

.final h2 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
  font-weight: 900;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.final p {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin: 0 auto 28px;
  max-width: 640px;
}

.final .download-row {
  justify-content: center;
}

.seo {
  padding: 40px 0 80px;
  max-width: 860px;
}

.seo-block {
  margin-bottom: 36px;
}

.seo-block h2 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.seo-block p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: #fff;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  z-index: 50;
  padding: 16px;
}

.modal.is-open {
  display: grid;
}

.modal-card {
  width: min(420px, 100%);
  background: #2a2a2a;
  border-radius: 18px;
  padding: 18px 18px 24px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h2 {
  font-size: 18px;
  font-weight: 700;
  width: 100%;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.warn {
  background: rgba(6, 6, 6, 0.7);
  color: #ff3b3b;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.install-logo {
  width: 92px;
  height: 92px;
  margin: 8px auto 16px;
  border-radius: 22px;
}

.install-status .btn {
  width: 100%;
  margin-top: 8px;
}

.ios-mini-steps {
  text-align: left;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.install-fallback,
.desktop-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .hero-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .guide h2,
  .final {
    text-align: center;
  }

  .features,
  .download-row,
  .top-actions {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .features {
    flex-direction: column;
    align-items: flex-start;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature {
    flex: none;
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .step,
  .step.right {
    flex-direction: row;
    text-align: left;
  }

  .final p {
    margin-left: auto;
    margin-right: auto;
  }

  .phone {
    margin: 10px auto 28px;
  }

  .topbar {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .download-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .store-btn,
  .store-btn img {
    width: 220px;
    max-width: 220px;
  }

  .brand img {
    height: 40px;
  }
}
