:root {
  --bg: #0E0E0F;
  --surface: #1A1A1C;
  --surface-2: #161618;
  --line: #2A2A2D;
  --line-soft: #1F1F21;
  --text: #F4F3F1;
  --text-2: #B8B6B3;
  --text-3: #A8A6A3;
  --muted: #8C8A88;
  --nav: #C9C7C4;
  --red: #E5262E;
  --red-hover: #FF3A41;
  --red-soft: #FF8A8D;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Archivo, 'Noto Sans Arabic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--red-soft); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }

.wrap { max-width: 1240px; margin: 0 auto; }
.stack-md { display: flex; flex-direction: column; gap: 36px; }
.stack-lg { display: flex; flex-direction: column; gap: 56px; }
.stack-xl { display: flex; flex-direction: column; gap: 96px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 7px; direction: ltr; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-word { font-weight: 900; font-stretch: 125%; font-size: 26px; letter-spacing: -0.035em; line-height: 1; }
.logo-tag {
  background: var(--red); color: #fff; font-weight: 900; font-stretch: 110%;
  font-size: 11px; line-height: 1; padding: 4px 5px 3px; border-radius: 5px;
}
.logo-sm .logo-word { font-size: 20px; }
.logo-sm .logo-tag { font-size: 9px; padding: 3px 4px 2px; border-radius: 4px; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 14, 15, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner { padding: 16px var(--gutter); display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav a { color: var(--nav); }
.nav a:hover { color: #fff; }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.lang {
  appearance: none; -webkit-appearance: none;
  background: var(--surface); color: var(--text);
  border: 1px solid #2E2E31; border-radius: 10px;
  padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.lang option { background: var(--surface); color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s; }
.btn-sm { font-size: 14px; padding: 10px 16px; border-radius: 10px; }
.btn-lg { font-size: 17px; padding: 16px 26px; border-radius: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); color: #fff; }
.btn-ghost { background: #1C1C1E; color: var(--text); font-weight: 600; border: 1px solid #2E2E31; }
.btn-ghost:hover { background: #262629; color: #fff; }
.btn-white { background: #fff; color: #121213; font-weight: 800; font-size: 18px; padding: 18px 28px; }
.btn-white:hover { background: #121213; color: #fff; }
.ver { font-size: 13px; font-weight: 500; opacity: .85; direction: ltr; }
:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }

/* Hero */
.hero { position: relative; padding: 96px var(--gutter) 40px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 0%, rgba(229, 38, 46, 0.22), transparent 70%);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.pill {
  font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-soft); border: 1px solid rgba(229, 38, 46, 0.45);
  padding: 7px 12px; border-radius: 999px;
}
.hero h1 {
  font-weight: 800; font-stretch: 112%;
  font-size: clamp(44px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.035em;
  max-width: 13ch; text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 58ch; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.note { font-size: 14px; color: var(--muted); }
.hero-shot { position: relative; max-width: 1180px; margin: 72px auto 0; }
.hero-shot-glow {
  position: absolute; left: 8%; right: 8%; bottom: -40px; height: 120px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(229, 38, 46, 0.35), transparent 70%);
  filter: blur(30px);
}
.frame {
  position: relative; padding: 10px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.frame img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 13px; background: #111; }

/* Sections */
.section { padding: 120px var(--gutter) 40px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.kicker { font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red-soft); }
.section h2 {
  font-weight: 800; font-stretch: 110%;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.section h2.h2-sm { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; }

/* Features */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px; align-items: center; }
.feature-text { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
@media (min-width: 960px) { .feature-rev .feature-text { order: 2; } }
.num { font: 700 14px var(--mono); color: var(--red); }
.feature h3 { font-weight: 700; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.feature p { font-size: 18px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.shot {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.smalls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px 32px; }
.small { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.small-t { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.small-d { font-size: 16px; line-height: 1.55; color: var(--text-3); }

/* Gallery */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.thumb {
  all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 8px;
  opacity: .55; transition: opacity .15s;
}
.thumb:hover, .thumb[aria-selected="true"] { opacity: 1; }
.thumb:focus-visible { outline: none; }
.thumb:focus-visible img { outline: 2px solid var(--red-soft); }
.thumb img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px;
  outline: 2px solid transparent; outline-offset: 2px;
}
.thumb[aria-selected="true"] img { outline-color: var(--red); }
.thumb span { font-size: 13px; font-weight: 600; color: var(--nav); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.step {
  background: var(--surface-2); border: 1px solid #242427; border-radius: 22px;
  padding: 36px 32px; display: flex; flex-direction: column; gap: 18px;
}
.step-n { font-weight: 900; font-stretch: 125%; font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: var(--red); }
.step-t { font-weight: 700; font-size: 24px; letter-spacing: -0.015em; }
.step-d { font-size: 17px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }

/* Devices */
.section.devices { padding: 80px var(--gutter) 120px; }
.devices-inner {
  border-top: 1px solid #242427; padding-top: 56px;
  display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between;
}
.devices-text { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.devices-text p { font-size: 17px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { font-weight: 700; font-size: 18px; padding: 16px 22px; border-radius: 14px; background: var(--surface); border: 1px solid #2E2E31; }

/* CTA */
.cta-section { padding: 0 var(--gutter); }
.cta {
  background: var(--red); border-radius: 28px; padding: clamp(40px, 6vw, 80px);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.cta-text { display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-weight: 900; font-stretch: 118%; font-size: clamp(34px, 5vw, 68px); line-height: 1; letter-spacing: -0.035em; color: #fff; }
.cta p { font-size: 19px; color: #fff; }

/* Footer */
.footer { padding: 80px var(--gutter) 48px; }
.legal { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.legal-t { font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--nav); }
.legal p { font-size: 14px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-soft); padding-top: 24px;
}
.copy { font-size: 13px; color: var(--muted); }

/* Phones */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar-inner { gap: 12px 16px; padding-block: 12px; }
  .nav { order: 3; width: 100%; gap: 18px; font-size: 14px; overflow-x: auto; }
  .btn-sm { padding: 9px 12px; }
  .lang { padding: 8px 10px; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-top: 48px; }
  .frame { padding: 6px; border-radius: 14px; }
  .frame img { border-radius: 9px; }
  .section { padding-top: 80px; }
  .stack-xl { gap: 64px; }
  .feature { gap: 28px; }
  .step { padding: 28px 24px; }
  .btn-lg, .btn-white { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
