:root {
  --bg: #02050d;
  --panel: rgba(11, 18, 32, .78);
  --panel2: rgba(16, 25, 43, .82);
  --line: rgba(148, 163, 184, .17);
  --text: #f8fbff;
  --muted: #a9b4c8;
  --soft: #728198;
  --red: #ef1d24;
  --red2: #8c1016;
  --gold: #f9c743;
  --purple: #8b5cf6;
  --blue: #2f80ff;
  --cyan: #22d3ee;
  --green: #22c55e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 18%, rgba(239, 29, 36, .22), transparent 28%),
    radial-gradient(circle at 86% 5%, rgba(34, 211, 238, .18), transparent 30%),
    radial-gradient(circle at 70% 85%, rgba(139, 92, 246, .16), transparent 32%),
    linear-gradient(180deg, #050914 0%, #02050d 65%, #050508 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.landing-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  margin-bottom: 28px;
  backdrop-filter: blur(18px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: fit-content; }
.brand img {
  width: 58px; height: 58px; object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  padding: 7px;
  box-shadow: 0 14px 36px rgba(239, 29, 36, .16);
}
.brand strong { display: block; font: 900 28px/1 "Plus Jakarta Sans", Inter, sans-serif; letter-spacing: .02em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-weight: 800; font-size: 12px; }
.nav-links { display: flex; gap: 8px; align-items: center; justify-content: center; flex: 1; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #c8d2e4;
  font-weight: 800;
  font-size: 14px;
}
.nav-links a:hover { background: rgba(255,255,255,.07); color: white; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-select {
  height: 44px;
  min-width: 136px;
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(5, 10, 22, .88);
  color: white;
  border-radius: 15px;
  padding: 0 14px;
  font-weight: 800;
  outline: none;
}
.header-cta {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--red), #ff7a18);
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(239,29,36,.22);
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.13);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, var(--red), #ff3d3d 48%, #ff9f1c);
  box-shadow: 0 20px 46px rgba(239, 29, 36, .25);
}
.btn.secondary { background: rgba(255,255,255,.07); color: #e8eefb; }

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139,92,246,.42);
  background: rgba(139,92,246,.12);
  color: #e7dcff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }
.eyebrow.red { border-color: rgba(239,29,36,.38); background: rgba(239,29,36,.13); color: #ffd0d0; }
.eyebrow.green { border-color: rgba(34,197,94,.38); background: rgba(34,197,94,.13); color: #caffdf; }

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, .9fr);
  gap: 24px;
  align-items: center;
  min-height: calc(100vh - 140px);
}
.hero-copy {
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 16%, rgba(239,29,36,.18), transparent 26%),
    linear-gradient(145deg, rgba(15, 23, 42, .9), rgba(5, 10, 21, .78));
  box-shadow: 0 30px 90px rgba(0,0,0,.36);
}
.hero-copy h1 {
  margin: 22px 0 16px;
  max-width: 780px;
  font: 900 clamp(44px, 6vw, 84px)/.95 "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: -.06em;
}
.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: #c7d0e3;
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.65;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.quick-stats span {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(5, 10, 22, .58);
}
.quick-stats b { display: block; font-size: 18px; }
.quick-stats small { display: block; margin-top: 5px; color: var(--muted); font-weight: 800; }

.hero-preview {
  position: relative;
  border-radius: 34px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(239,29,36,.38), transparent 28%),
    linear-gradient(315deg, rgba(249,199,67,.34), transparent 28%),
    rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 36px 110px rgba(0,0,0,.42);
}
.hero-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.preview-badge {
  position: absolute;
  left: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 999px;
  background: rgba(4, 9, 18, .82);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(14px);
  font-weight: 900;
}
.preview-badge span { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }

.install-panel, .feature-grid, .screens-section, .pricing-section, .compatible-section, .final-cta {
  margin-top: 24px;
}
.install-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, .85fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.13);
  background:
    radial-gradient(circle at 100% 0%, rgba(249,115,22,.18), transparent 34%),
    linear-gradient(145deg, rgba(13, 20, 36, .88), rgba(5, 10, 20, .8));
}
.install-content h2, .section-head h2, .final-cta h2 {
  margin: 16px 0 10px;
  font: 900 clamp(28px, 3.2vw, 48px)/1 "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: -.04em;
}
.install-content p { max-width: 700px; color: #c9d2e5; font-weight: 700; line-height: 1.65; }
.download-code {
  max-width: 360px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(249,115,22,.42);
  background: rgba(249,115,22,.08);
}
.download-code small { display: block; color: #ffbd81; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.download-code strong { display: block; margin-top: 6px; font-size: clamp(42px, 6vw, 74px); line-height: .95; color: #ff7a18; letter-spacing: .04em; }
.install-steps { display: grid; gap: 12px; align-content: center; }
.install-steps div {
  display: flex; align-items: center; gap: 12px;
  min-height: 74px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
}
.install-steps b { color: #ff7a18; font-size: 22px; }
.install-steps span { color: #f6f8fc; font-weight: 900; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-card, .price-card, .compatible-section, .final-cta, .screens-section {
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(5, 10, 20, .78));
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.feature-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
}
.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  box-shadow: 0 18px 34px rgba(239,29,36,.2);
  font-weight: 900;
}
.feature-card h3 { margin: 22px 0 10px; font-size: 22px; }
.feature-card p { margin: 0; color: var(--muted); font-weight: 700; line-height: 1.55; }

.screens-section { border-radius: 30px; padding: 28px; }
.section-head { margin-bottom: 22px; }
.section-head.centered { text-align: center; display: grid; justify-items: center; }
.screen-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}
.screen-card {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(4, 9, 18, .78);
}
.screen-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
}
.screen-card figcaption {
  display: grid;
  gap: 5px;
  padding: 16px;
}
.screen-card figcaption b { font-size: 20px; }
.screen-card figcaption span { color: var(--muted); font-weight: 700; }

.pricing-section {
  border-radius: 30px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(85, 8, 12, .62), rgba(7, 12, 24, .9));
  border: 1px solid rgba(239,29,36,.2);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.price-card {
  padding: 24px;
  border-radius: 24px;
  text-align: center;
}
.price-card span { display: block; color: #cfd8e9; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.price-card strong { display: block; margin: 12px 0 8px; font-size: clamp(34px, 5vw, 58px); color: var(--red); }
.price-card.highlight strong { color: var(--gold); }
.price-card.free strong { color: #fff; font-size: clamp(26px, 3vw, 40px); }
.price-card small { color: var(--muted); font-weight: 800; }

.compatible-section { border-radius: 30px; padding: 28px; }
.device-list { display: flex; flex-wrap: wrap; gap: 12px; }
.device-list span {
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.055);
  color: #e6edf8;
  font-weight: 900;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 50%, rgba(239,29,36,.2), transparent 28%),
    linear-gradient(145deg, rgba(15, 23, 42, .9), rgba(5, 10, 20, .82));
}
.final-cta p { margin: 0; color: var(--muted); font-weight: 700; }

body[dir="rtl"] { font-family: Cairo, Inter, sans-serif; }
body[dir="rtl"] .site-header, body[dir="rtl"] .hero-section, body[dir="rtl"] .install-panel, body[dir="rtl"] .final-cta { direction: rtl; }

@media (max-width: 1100px) {
  .landing-shell { width: min(100% - 28px, 980px); }
  .site-header { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-preview { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-panel { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .landing-shell { width: min(100% - 20px, 620px); padding-top: 10px; }
  .site-header { margin-bottom: 18px; }
  .brand img { width: 48px; height: 48px; border-radius: 15px; }
  .brand strong { font-size: 21px; }
  .header-actions { width: 100%; }
  .language-select, .header-cta { flex: 1; min-width: 0; }
  .hero-copy { padding: 24px; border-radius: 26px; }
  .hero-copy h1 { font-size: clamp(36px, 12vw, 54px); }
  .hero-buttons, .quick-stats { grid-template-columns: 1fr; display: grid; }
  .btn { width: 100%; }
  .quick-stats { gap: 10px; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .install-panel, .screens-section, .pricing-section, .compatible-section, .final-cta { padding: 20px; border-radius: 24px; }
  .download-code strong { font-size: 48px; }
  .final-cta { display: grid; }
}

/* v29 mobile + app compatibility refinements */
.screen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.screen-card.large { grid-column: span 1; }
.compatible-section .device-list span:first-child,
.compatible-section .device-list span:nth-child(2) { border-color: rgba(34,197,94,.30); background: rgba(34,197,94,.08); }
@media (max-width: 1100px) {
  .screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { position: relative; }
}
@media (max-width: 760px) {
  .landing-shell { width: min(100% - 18px, 620px); padding-top: 8px; }
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 14px;
  }
  .brand { min-width: 0; }
  .brand img { width: 48px; height: 48px; padding: 6px; }
  .brand strong { font-size: clamp(22px, 7vw, 30px); letter-spacing: 0; }
  .header-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .language-select, .header-cta { width: 100%; min-width: 0; height: 48px; }
  .nav-links { order: 3; width: 100%; display: flex; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; padding: 10px 13px; font-size: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
  .hero-section { gap: 16px; }
  .hero-preview { order: 0; border-radius: 24px; padding: 10px; }
  .hero-preview img { border-radius: 18px; }
  .preview-badge { left: 18px; bottom: 18px; max-width: calc(100% - 36px); font-size: 13px; }
  .hero-copy { padding: 22px; border-radius: 24px; }
  .hero-copy h1 { margin-top: 18px; font-size: clamp(38px, 13vw, 58px); }
  .hero-copy p { font-size: 15px; line-height: 1.55; }
  .quick-stats span { padding: 13px; }
  .install-panel, .screens-section, .pricing-section, .compatible-section, .final-cta { margin-top: 16px; padding: 18px; border-radius: 22px; }
  .screen-grid { grid-template-columns: 1fr; }
  .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .download-code { max-width: none; }
  .download-code strong { font-size: clamp(46px, 16vw, 64px); }
}
@media (max-width: 420px) {
  .header-actions { grid-template-columns: 1fr; }
  .brand strong { font-size: 22px; }
}
