:root {
  --bg: #070A12;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --muted-2: rgba(255, 255, 255, 0.55);
  --brand: #0B5FFF;
  --brand-2: #7C3AED;
  --ok: #22C55E;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 4px rgba(11, 95, 255, 0.25);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}
html {
  scroll-behavior: smooth;
  /* ensures anchor targets aren't hidden under the sticky header */
  scroll-padding-top: 96px;
}

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

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1000px 600px at 15% 15%, rgba(124, 58, 237, .18), transparent 60%),
              radial-gradient(1000px 600px at 85% 35%, rgba(11, 95, 255, .20), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.5;
}

html[dir="rtl"] body {
  font-family: Cairo, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}
.skip:focus { left: 10px; outline: none; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(11, 95, 255, 0.25);
  color: #fff;
  font-weight: 800;
}

.brand__name { letter-spacing: 0.2px; }

.nav__links {
  display: flex;
  gap: 14px;
  margin-inline-start: 6px;
}

.nav__links a {
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
}

.nav__links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.06); }
.btn:active { transform: translateY(0px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: rgba(255, 255, 255, 0.16);
}

.btn--dark {
  background: rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.10);
}

.btn--sm { padding: 10px 12px; border-radius: 12px; }

.lang-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  width: 28px;
  height: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nav__burger {
  display: none;
  margin-inline-start: auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  margin: 5px auto;
}

.mobile {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(14px);
}

.mobile__inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile__inner a {
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
}

.mobile__row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }

/* Hero */
.hero {
  position: relative;
  overflow: clip;
}

.hero__bg {
  position: absolute;
  inset: -1px;
  background: radial-gradient(1000px 500px at 25% 15%, rgba(11, 95, 255, 0.20), transparent 60%),
              radial-gradient(900px 500px at 80% 40%, rgba(124, 58, 237, 0.18), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.hero__grid {
  position: relative;
  padding: 64px 0 46px;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  margin: 14px 0 12px;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
}

.cta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.store {
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  min-height: 64px;
  display: grid;
  align-content: center;
}

.store:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); }

.store__small { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.store__big { font-size: 15px; font-weight: 800; letter-spacing: 0.1px; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.trust__item {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.trust__k { font-weight: 900; letter-spacing: -0.01em; }
.trust__v { color: var(--muted); font-weight: 600; font-size: 13px; }

.hero__art {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.glass {
  width: min(380px, 96%);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 12px;
  transform: translateY(6px);
}

.hero__image {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

.blob {
  position: absolute;
  width: 280px;
  height: 280px;
  filter: blur(32px);
  opacity: 0.55;
  border-radius: 999px;
  z-index: -1;
}

.blob--1 { background: rgba(11, 95, 255, 0.55); top: 22%; inset-inline-start: 4%; }
.blob--2 { background: rgba(124, 58, 237, 0.55); bottom: 8%; inset-inline-end: 6%; }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: rgba(255, 255, 255, 0.02); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }

.section__head { margin-bottom: 20px; }
.h2 { font-size: clamp(26px, 3.0vw, 36px); margin: 0 0 6px; letter-spacing: -0.01em; }
.muted { color: var(--muted); margin: 0; }

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

.card {
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow);
}

.card .icon { font-size: 20px; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); }

/* Carousel */
.carousel {
  display: grid;
  align-items: center;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
}

.carousel__btn {
  width: 40px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

.carousel__btn:hover { background: rgba(255, 255, 255, 0.06); }
.carousel__btn:focus-visible { outline: none; box-shadow: var(--ring); }

.carousel__viewport {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  /* smoother swipe/drag on mobile */
  touch-action: pan-y;
}

.carousel__track {
  display: flex;
  gap: 14px;
  padding: 14px;
  transition: transform 300ms ease;
  will-change: transform;
}

/* Dynamic page feel */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Back-to-top FAB (icon only) */
.fab-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--panel-2);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.fab-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
}

.fab-top:focus-visible {
  outline: none;
  box-shadow: var(--shadow), var(--ring);
}

.fab-top[hidden] { display: none; }

.fab-top__icon {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .fab-top { transition: none; }
  .fab-top:hover { transform: none; }
}

.shot {
  width: min(260px, 72vw);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
  background: rgba(255, 255, 255, 0.02);
}

.screens__meta { margin-top: 12px; }

/* Final */
.final {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.final__cta {
  display: grid;
  gap: 10px;
}

/* Footer */
.footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.footer__inner {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
}

.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__name { font-weight: 900; }
.footer__tag { font-size: 13px; color: var(--muted); }

.footer__links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.footer__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.footer__copy { color: var(--muted-2); font-weight: 700; }

/* Legal pages */
.legal {
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { text-decoration-thickness: 2px; }

.h2--sm { font-size: 18px; margin-top: 18px; }
.legal ul { padding-inline-start: 18px; }
.legal li { margin: 6px 0; }
.legal__back { margin-top: 18px; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; padding-top: 44px; }
  .hero__art { order: -1; min-height: auto; }
  .cta { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; justify-items: start; }
  .footer__links { justify-content: start; }

  .nav__links { display: none; }
  .nav__actions { display: none; }
  .nav__burger { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .carousel__track { transition: none; }
  .btn, .store { transition: none; }
}
