[hidden] { display: none !important; }
/* ZeinTube — layout concept: "stage lights". A bright stage (white) lit by violet→pink spotlights,
   with the phone as the star of every section and cyan used only for small "LED" highlights. */
:root {
  --violet: #9400D3;
  --pink: #FF3D9A;
  --cyan: #00D4FF;
  --ink: #1B0B2E;
  --muted: #6E5C86;
  --bg: #FFFFFF;
  --bg-soft: #F8F2FE;
  --card: #FFFFFF;
  --line: #EADCF7;
  --accent-text: #8A00C4;
  --shadow: 0 18px 50px -18px rgba(148, 0, 211, .35);
  --grad: linear-gradient(120deg, var(--violet), var(--pink));
  --font-latin: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
  --font-arabic: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font: var(--font-latin);
  --radius: 22px;
  --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F6EEFF; --muted: #B9A6D1; --bg: #0F0718; --bg-soft: #180B27; --card: #1D0F2F;
    --line: #34204C; --accent-text: #D58BFF; --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F6EEFF; --muted: #B9A6D1; --bg: #0F0718; --bg-soft: #180B27; --card: #1D0F2F;
  --line: #34204C; --accent-text: #D58BFF; --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
html[lang="ar"] { --font: var(--font-arabic); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 212, 255, .2); }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad); color: #FFFFFF; box-shadow: 0 14px 34px -12px rgba(255, 61, 154, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 61, 154, .8); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--pink); }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 18px; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; font-family: var(--font-latin); }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang-btn svg { width: 18px; height: 18px; }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  display: grid; gap: 2px;
}
.lang-menu button {
  text-align: start; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent;
  color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer;
}
.lang-menu button[aria-checked="true"], .lang-menu button:hover { background: var(--bg-soft); color: var(--accent-text); }
.lang-menu [data-l="ar"] { font-family: var(--font-arabic); }
.lang-menu [data-l="en"], .lang-menu [data-l="tr"] { font-family: var(--font-latin); }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 120%;
  background:
    radial-gradient(40% 45% at 78% 30%, rgba(255, 61, 154, .22), transparent 70%),
    radial-gradient(38% 40% at 18% 20%, rgba(148, 0, 211, .20), transparent 70%),
    radial-gradient(20% 20% at 55% 80%, rgba(0, 212, 255, .14), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 64px 72px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.3; }
.hero-lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--pink); }
.hero-text { min-width: 0; }

.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.stage .spot { position: absolute; width: 80%; aspect-ratio: 1; max-width: 100%; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .35; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 360 / 760; max-width: 100%;
  border-radius: 46px; padding: 10px; background: #120A1C;
  box-shadow: 0 40px 80px -30px rgba(70, 0, 110, .6), inset 0 0 0 2px #2A1E38;
}
.phone img { width: 100%; height: 100%; border-radius: 36px; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 20px; background: #120A1C; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  font-family: var(--font-latin); font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink);
}
.chip b { font-weight: 800; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.chip-1 { top: 16%; inset-inline-start: 0; }
.chip-2 { top: 48%; inset-inline-end: -2%; }
.chip-3 { bottom: 12%; inset-inline-start: 6%; }
.chip .tag { padding: 2px 8px; border-radius: 8px; background: rgba(255, 61, 154, .14); color: var(--pink); font-size: 12px; }

/* ---------- stats strip ---------- */
.stats { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 26px; text-align: center; }
.stat b { display: block; font-family: var(--font-latin); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section-head { max-width: 680px; margin-bottom: 44px; display: grid; gap: 12px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }
.soft { background: var(--bg-soft); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: grid; gap: 10px; align-content: start; min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #FFFFFF; }
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; font-weight: 800; }
.feature p { color: var(--muted); font-size: 15px; }
.g1 { background: linear-gradient(135deg, #9400D3, #FF3D9A); }
.g2 { background: linear-gradient(135deg, #00D4FF, #6D5BFF); }
.g3 { background: linear-gradient(135deg, #FF3D9A, #FF8A5B); }
.g4 { background: linear-gradient(135deg, #6D5BFF, #9400D3); }
.g5 { background: linear-gradient(135deg, #00B4D8, #00D4FF); }
.g6 { background: linear-gradient(135deg, #25D366, #128C7E); }
.g7 { background: linear-gradient(135deg, #8E7CFF, #5B3CC4); }
.g8 { background: linear-gradient(135deg, #C026D3, #00D4FF); }

/* quality ladder: the subject-specific detail */
.ladder { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ladder span {
  font-family: var(--font-latin); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.ladder span.hd { background: var(--grad); color: #FFFFFF; border-color: transparent; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; min-width: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #FFFFFF; font-family: var(--font-latin); font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shot { flex: 0 0 auto; width: 230px; scroll-snap-align: center; display: grid; gap: 12px; justify-items: center; }
.shot .phone { width: 230px; border-radius: 38px; padding: 8px; }
.shot .phone img { border-radius: 30px; }
.shot .phone::after { top: 14px; width: 64px; height: 18px; margin-left: -32px; }
.shot figcaption { font-weight: 700; font-size: 15px; }

/* sites */
.sites { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sites span {
  font-family: var(--font-latin); font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
}
.sites span.more { background: var(--grad); color: #FFFFFF; border-color: transparent; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; }
.faq details[open] { border-color: var(--pink); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 16px; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--accent-text); font-size: 20px; font-weight: 600; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* final cta */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; background: var(--grad); color: #FFFFFF; padding: 56px 32px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .12); top: -140px; inset-inline-end: -80px; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; position: relative; }
.cta-band p { opacity: .9; max-width: 36em; position: relative; }
.cta-band .btn { background: #FFFFFF; color: var(--violet); position: relative; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 88px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.footer-links a:hover { color: var(--accent-text); }
.copy { color: var(--muted); font-size: 13px; padding-bottom: 26px; }

/* ---------- download page ---------- */
.dl-hero { padding-block: 56px 40px; }
.dl-card {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 32px; box-shadow: var(--shadow);
}
.dl-card > img { width: 120px; height: 120px; border-radius: 30px; }
.dl-info { display: grid; gap: 12px; min-width: 0; }
.dl-info h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-row > span { padding: 6px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.meta-row b { color: var(--accent-text); }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.small-link { color: var(--accent-text); font-weight: 700; font-size: 14px; }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: rgba(0, 212, 255, .10); border: 1px solid rgba(0, 212, 255, .35); }
.note svg { width: 24px; height: 24px; flex: none; color: #0095B8; }
.note p { font-size: 15px; }
.install-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.install-steps figure { align-content: start; }
.install-steps figure { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; min-width: 0; }
.install-steps .phone { width: 100%; max-width: 210px; border-radius: 34px; padding: 7px; }
.install-steps .phone img { border-radius: 27px; }
.install-steps .phone::after { top: 13px; width: 56px; height: 16px; margin-left: -28px; }
.install-steps figcaption { display: grid; gap: 4px; }
.install-steps figcaption b { font-size: 16px; }
.install-steps figcaption span { color: var(--muted); font-size: 14px; }
.install-steps figcaption i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-inline: auto; border-radius: 50%; background: var(--grad); color: #FFFFFF; font-weight: 800; font-family: var(--font-latin); }

/* ---------- text pages ---------- */
.page-head { padding-block: 56px 18px; display: grid; gap: 10px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.page-head p { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; min-width: 0; }
.contact-card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #FFFFFF; }
.contact-card .ico svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 18px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.soon { justify-self: start; padding: 4px 10px; border-radius: 8px; background: var(--bg-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }

.notfound { text-align: center; padding-block: 90px; display: grid; gap: 16px; justify-items: center; }
.notfound .big { font-family: var(--font-latin); font-size: clamp(90px, 18vw, 170px); font-weight: 800; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; padding-block: 40px 56px; }
  .hero-lead { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .stage { min-height: 520px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .install-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-block: 8px 14px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding-block: 12px; font-size: 16px; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 26px 20px; }
  .meta-row, .dl-actions { justify-content: center; }
  .section { padding-block: 64px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .chip { font-size: 12px; padding: 8px 10px; }
  .chip-2 { inset-inline-end: 0; }
  .stage { min-height: 470px; }
  .install-steps { grid-template-columns: 1fr 1fr; gap: 14px; }
  .brand span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
