:root {
  --bg: #071018;
  --bg-2: #0d1a24;
  --fg: #eef4f8;
  --muted: #8fa3b5;
  --accent: #4f9bc8;
  --accent-2: #c9e4f5;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 1.1rem;
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 640px at 8% -10%, #16344a 0%, transparent 55%),
    radial-gradient(900px 520px at 92% 18%, #102838 0%, transparent 50%),
    radial-gradient(700px 480px at 50% 110%, #0a1c28 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0;
  max-width: 1180px;
  margin: 0 auto;
}

.lang-wrap select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: min(88vh, 860px);
  padding: 1.5rem 0 3rem;
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-mark {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-family: var(--font);
}

/* Two equal store columns: badge + QR stacked per store */
.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.75rem;
  align-items: start;
  justify-items: center;
  width: min(100%, 22rem);
  margin-inline: auto;
}

.store-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  line-height: 0;
  text-decoration: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.store-badge:hover { transform: translateY(-1px); filter: brightness(1.06); }

.store-badge img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

#btn-play img {
  height: 58px;
}

.qr {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.qr img {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.35rem;
}

.qr figcaption {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font);
}

.ios-note {
  margin: 1rem auto 0;
  max-width: 26rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  font-family: var(--font);
  text-align: center;
}

.hero-visual {
  display: grid;
  place-items: center;
}

/* Visible phone chrome (readable on dark page) */
.phone {
  display: inline-block;
  padding: 11px 10px 14px;
  border-radius: 2.35rem;
  background:
    linear-gradient(145deg, #f2f5f8 0%, #b7c0c9 42%, #6d7682 78%, #4a525c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 24px 50px rgba(0, 0, 0, 0.55);
  animation: float-in 0.9s ease both;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.hero-visual .phone {
  width: min(100%, 340px);
}

@keyframes float-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.shots,
.video {
  padding: 2.5rem 0 1rem;
}

.shots h2,
.video h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
}

.video-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-family: var(--font);
}

.shot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 210px);
  gap: 1.1rem;
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shot-rail .phone {
  width: 100%;
  scroll-snap-align: start;
  animation: float-in 0.8s ease both;
  padding: 9px 8px 11px;
  border-radius: 1.85rem;
}

.shot-rail .phone img {
  border-radius: 1.35rem;
}

.shot-rail .phone:nth-child(2) { animation-delay: 0.08s; }
.shot-rail .phone:nth-child(3) { animation-delay: 0.16s; }
.shot-rail .phone:nth-child(4) { animation-delay: 0.24s; }

.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
  max-width: 920px;
}

.video-frame video,
.youtube-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame video[hidden],
.youtube-embed[hidden] {
  display: none !important;
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  font-family: var(--font);
}

.site-footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

html[dir="rtl"] .topbar { justify-content: flex-start; }
html[dir="rtl"] .hero-copy { text-align: center; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 2rem;
    padding-top: 1rem;
  }

  .hero-visual { order: -1; }

  .hero-visual .phone { width: min(72vw, 260px); }

  .stores { max-width: 22rem; }

  .qr img {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 560px) {
  .qr { display: none; }
}
