/* ==========================================================================
   SahabX services site
   One stylesheet for the Arabic (RTL) and English (LTR) pages.
   Logical properties keep both directions working from the same rules.
   ========================================================================== */

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo-arabic.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+2010-2011,
    U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: 'Cairo';
  src: url('/assets/fonts/cairo-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070b14;
  --bg-soft: #0a101d;
  --surface: #0d1422;
  --surface-2: #121b2c;
  --surface-3: #182338;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #e8eef8;
  --muted: #9fb0c8;
  --faint: #71839c;
  --brand: #38bdf8;
  --brand-2: #0ea5e9;
  --brand-3: #2563eb;
  --accent: #fbbf24;
  --ok: #34d399;
  --danger: #f87171;
  --grad: linear-gradient(120deg, #38bdf8 0%, #0ea5e9 55%, #2563eb 100%);
  --grad-soft: linear-gradient(120deg, rgba(56, 189, 248, 0.18), rgba(37, 99, 235, 0.06));
  --radius-xl: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 30px 70px -38px rgba(2, 8, 23, 0.95);
  --shadow-soft: 0 18px 40px -26px rgba(2, 8, 23, 0.85);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --max: 1160px;
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f6f8fc;
  --bg-soft: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f4f7fd;
  --surface-3: #e9eff9;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.2);
  --text: #0b132b;
  --muted: #43536a;
  --faint: #56677e;
  --brand: #0284c7;
  --brand-2: #0ea5e9;
  --brand-3: #2563eb;
  --accent: #b45309;
  --ok: #047857;
  --shadow: 0 30px 70px -40px rgba(15, 23, 42, 0.35);
  --shadow-soft: 0 18px 40px -30px rgba(15, 23, 42, 0.25);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 640px at 88% -12%, rgba(56, 189, 248, 0.16), transparent 62%),
    radial-gradient(760px 520px at -4% 26%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(900px 640px at 52% 112%, rgba(251, 191, 36, 0.06), transparent 62%),
    var(--bg);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 20%, transparent 78%);
}

[data-theme='light'] body::after {
  background-image: linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

code,
kbd {
  font-family: 'Cairo', ui-monospace, SFMono-Regular, Menlo, monospace;
}

::selection {
  background: rgba(56, 189, 248, 0.32);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

[dir='rtl'] .icon--arrow {
  transform: scaleX(-1);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #04121f;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--grad);
  color: #04121f;
  box-shadow: 0 18px 38px -18px rgba(14, 165, 233, 0.9);
}

.btn--primary:hover {
  box-shadow: 0 22px 46px -16px rgba(14, 165, 233, 0.9);
  filter: saturate(1.08);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line-strong));
  background: var(--surface-2);
}

.btn--small {
  padding: 11px 18px;
  font-size: 13.5px;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.18s ease;
}

.link-arrow:hover {
  color: var(--text);
}

.link-arrow .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.18s ease;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

[dir='rtl'] .link-arrow:hover .icon {
  transform: translateX(-3px);
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 8px 18px rgba(14, 165, 233, 0.35));
}

.brand__word {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.nav__link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav__link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
}

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

.nav + .header__actions {
  margin-inline-start: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.lang-switch .icon {
  width: 17px;
  height: 17px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.theme-toggle .icon--moon {
  display: none;
}

[data-theme='light'] .theme-toggle .icon--sun {
  display: none;
}

[data-theme='light'] .theme-toggle .icon--moon {
  display: block;
}

/* JS-only controls stay hidden with JS disabled. */
.theme-toggle {
  display: none;
}

.js .theme-toggle {
  display: inline-flex;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.hero__copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[lang='ar'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.hero__title {
  font-size: clamp(2.4rem, 5.1vw, 4.3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

[lang='ar'] .hero__title {
  line-height: 1.28;
  letter-spacing: 0;
}

@media (min-width: 641px) {
  [lang='ar'] .hero__title {
    font-size: clamp(2.5rem, 4.6vw, 3.85rem);
  }
}

.text-gradient {
  display: inline-block;
  padding-bottom: 0.08em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 54ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.8;
}

[lang='en'] .hero__lead {
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
}

.stat__value {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat__label {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
}

/* -------------------------------------------------------------- hero art */

.hero__art {
  position: relative;
  min-height: 500px;
}

.art-glow {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 55% 40%, rgba(56, 189, 248, 0.34), transparent 62%),
    radial-gradient(circle at 30% 80%, rgba(37, 99, 235, 0.22), transparent 60%);
  filter: blur(42px);
  z-index: 0;
}

.art-card {
  position: absolute;
  z-index: 1;
  width: min(310px, 82%);
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  transform: rotate(var(--rot, 0deg));
  animation: float 9s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.art-card--streamflow {
  --rot: -4deg;
  top: 2%;
  inset-inline-end: 0;
}

.art-card--kahoot {
  --rot: 3deg;
  inset-inline-start: 0;
  bottom: 23%;
  width: min(286px, 78%);
  animation-delay: -3s;
}

.art-card--brew {
  --rot: -2deg;
  inset-inline-end: 10%;
  bottom: 0;
  width: min(232px, 64%);
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(var(--rot, 0deg)) translateY(0);
  }
  50% {
    transform: rotate(var(--rot, 0deg)) translateY(-9px);
  }
}

.art-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.art-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.art-pill,
.art-timer {
  margin-inline-start: auto;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 11px;
}

.art-timer {
  color: var(--accent);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.1);
}

.art-url {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  color: var(--muted);
  font-size: 11.5px;
  direction: ltr;
  text-align: start;
}

.art-url__play {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 5px;
  background: var(--grad);
}

.art-progress {
  height: 7px;
  margin-top: 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  overflow: hidden;
}

.art-progress__fill {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.art-card__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--faint);
  font-size: 11px;
}

.art-question {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.art-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.ans {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 9px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.ans--red {
  background: linear-gradient(145deg, #ef4444, #b91c1c);
}

.ans--blue {
  background: linear-gradient(145deg, #38bdf8, #1d4ed8);
}

.ans--amber {
  background: linear-gradient(145deg, #fbbf24, #b45309);
  color: #1f1300;
}

.ans--green {
  background: linear-gradient(145deg, #34d399, #047857);
  color: #022c22;
}

.art-brew {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  text-align: center;
}

.art-brew strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
  direction: ltr;
}

.art-brew span {
  color: var(--faint);
  font-size: 10.5px;
}

.art-brew__ratio {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  direction: ltr;
}

/* --------------------------------------------------------------- section */

.section {
  padding-block: clamp(56px, 7.5vw, 100px);
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__title {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

[lang='ar'] .section__title {
  line-height: 1.35;
  letter-spacing: 0;
}

.section__lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.8;
}

/* -------------------------------------------------------------- services */

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

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 88%, transparent), var(--surface));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--service-accent, var(--brand)), transparent);
  opacity: 0.7;
}

.service:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--service-accent, var(--brand)) 45%, var(--line));
}

.service--hosting {
  --service-accent: #38bdf8;
}

.service--bots {
  --service-accent: #a78bfa;
}

.service--apps {
  --service-accent: #fbbf24;
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid color-mix(in srgb, var(--service-accent, var(--brand)) 35%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--service-accent, var(--brand)) 13%, transparent);
  color: var(--service-accent, var(--brand));
}

.service__icon .icon {
  width: 22px;
  height: 22px;
}

.service__title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.service__body {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.ticks {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.ticks .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--service-accent, var(--brand));
}

/* -------------------------------------------------------------- products */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.filter:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.filter.is-active {
  border-color: transparent;
  background: var(--grad);
  color: #04121f;
}

.filters__status {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
}

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

.product {
  --accent-product: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-product) 45%, var(--line));
  box-shadow: 0 32px 64px -34px color-mix(in srgb, var(--accent-product) 35%, transparent);
}

.product--streamflow {
  --accent-product: #38bdf8;
}

.product--skyvault {
  --accent-product: #60a5fa;
}

.product--email {
  --accent-product: #a78bfa;
}

.product--kahoot {
  --accent-product: #fbbf24;
}

.product--brewmaster {
  --accent-product: #34d399;
}

.product--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.product__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 130% at 18% 0%, color-mix(in srgb, var(--accent-product) 24%, transparent), transparent 62%),
    radial-gradient(90% 100% at 100% 100%, color-mix(in srgb, var(--accent-product) 10%, transparent), transparent 65%),
    var(--bg-soft);
  overflow: hidden;
}

.product--featured .product__visual {
  min-height: 100%;
  padding: clamp(26px, 4vw, 44px);
  border-bottom: 0;
  border-inline-end: 1px solid var(--line);
}

.product__visual::after {
  content: '';
  position: absolute;
  inset: auto 12% -40% 12%;
  height: 90px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-product) 28%, transparent);
  filter: blur(46px);
  pointer-events: none;
  z-index: 0;
}

.product__visual > .mock {
  position: relative;
  z-index: 1;
}

.product__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 28px);
}

.product__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.product__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8);
}

.product__kicker {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
}

.product__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
}

.product__latin {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge {
  align-self: start;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge--live {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.1);
}

.badge--invite {
  color: var(--accent);
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.1);
}

.badge--account {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(125, 211, 252, 0.1);
}

[data-theme='light'] .badge--live {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

[data-theme='light'] .badge--invite {
  color: #92400e;
  border-color: #fde68a;
  background: #fffbeb;
}

[data-theme='light'] .badge--account {
  color: #0369a1;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.product__pitch {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.product__desc {
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.8;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.product__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 6px;
}

/* Product mini-mockups (decorative; aria-hidden). */

.mock {
  width: 100%;
  max-width: 340px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #0a1220;
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  direction: ltr;
}

.product--featured .mock {
  max-width: 400px;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #8aa0bb;
  font-size: 10.5px;
  font-weight: 600;
}

.mock__dots {
  display: inline-flex;
  gap: 4px;
}

.mock__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #334155;
}

.mock__dots i:first-child {
  background: #f87171;
}

.mock__dots i:nth-child(2) {
  background: #fbbf24;
}

.mock__dots i:nth-child(3) {
  background: #34d399;
}

.mock__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock__body {
  padding: 13px;
}

.mock__url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: #9db1c9;
  font-size: 10.5px;
}

.mock__play {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.mock__url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: ltr;
}

.mock__row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.mock__row--meta {
  justify-content: space-between;
  color: #7f93ab;
  font-size: 10px;
  margin-top: 7px;
}

.mock__ok {
  color: #34d399;
}

.mock .chip {
  padding: 3px 7px;
  border-color: rgba(148, 163, 184, 0.2);
  color: #8aa0bb;
  font-size: 9.5px;
}

.mock .chip--active {
  border-color: transparent;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #04121f;
  font-weight: 700;
}

.mock__progress {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mock__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.mock__progress-fill--72 {
  width: 72%;
}

.mock__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.thumb--1 {
  background: linear-gradient(135deg, #0ea5e9, #1e3a8a);
}

.thumb--2 {
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.thumb--3 {
  background: linear-gradient(135deg, #34d399, #065f46);
}

.thumb--4 {
  background: linear-gradient(135deg, #a78bfa, #4c1d95);
}

.thumb--5 {
  background: linear-gradient(135deg, #f472b6, #831843);
}

.thumb--6 {
  background: linear-gradient(135deg, #38bdf8, #0f766e);
}

.mock__share {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: #bae6fd;
  font-size: 10px;
}

.mock__share .icon {
  width: 13px;
  height: 13px;
}

.mock__pill {
  margin-inline-start: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9db1c9;
  font-size: 9px;
}

.mock__alias {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.09);
  color: #ddd6fe;
  font-size: 10.5px;
  direction: ltr;
}

.mock__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.mock__mail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
}

.mock__mail-label {
  color: #7f93ab;
  font-size: 10px;
}

.mock__otp {
  color: #fbbf24;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  direction: ltr;
}

.mock__burn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fca5a5;
  font-size: 9.5px;
}

.mock__burn .icon {
  width: 12px;
  height: 12px;
}

.mock__count {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9db1c9;
  font-size: 9px;
}

.mock__timer {
  margin-inline-start: auto;
  min-width: 22px;
  padding: 2px 5px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 7px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.mock__question {
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.mock__answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.mock__answers .ans {
  min-height: 30px;
  font-size: 10px;
  border-radius: 7px;
}

.mock__brew {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: center;
}

.mock__brew-value strong {
  display: block;
  color: #e8eef8;
  font-size: 15px;
  font-weight: 800;
  direction: ltr;
}

.mock__brew-value span {
  color: #71839c;
  font-size: 8.5px;
}

.mock__brew-value--accent strong {
  color: #34d399;
}

.mock__brew-ratio {
  padding: 6px 9px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 999px;
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  direction: ltr;
}

/* -------------------------------------------------------------- platform */

.platform {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(37, 99, 235, 0.1), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}

.platform .section__title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

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

.tech__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--bg) 45%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.tech__item:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: var(--text);
}

.tech__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

/* ---------------------------------------------------------------- studio */

.studio {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.studio__copy {
  position: sticky;
  top: 108px;
}

.principles {
  display: grid;
  gap: 12px;
}

.principle {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.principle:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.principle__index {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  direction: ltr;
  padding-top: 4px;
}

.principle__title {
  font-size: 17px;
  font-weight: 800;
}

.principle__body {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(30px, 5vw, 60px);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(36px, 5vw, 56px) 34px;
}

.footer__brand .brand img {
  width: 34px;
  height: 34px;
}

.footer__tagline {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer__heading {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

[lang='ar'] .footer__heading {
  letter-spacing: 0;
  text-transform: none;
  font-size: 12.5px;
}

.footer__col ul {
  display: grid;
  gap: 9px;
}

.footer__col a {
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.18s ease;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.footer__running {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

/* ------------------------------------------------------------------- 404 */

.page--404 {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.not-found {
  width: 100%;
  max-width: 560px;
  margin-block: 10vh;
  padding-inline: 24px;
  text-align: center;
}

.not-found__mark {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  filter: drop-shadow(0 16px 30px rgba(14, 165, 233, 0.4));
}

.not-found__code {
  margin-top: 18px;
  font-size: clamp(3.4rem, 12vw, 5.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found__title {
  margin-top: 10px;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
}

.not-found__body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* --------------------------------------------------------------- reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.services .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.services .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.products .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__art {
    display: none;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services .service:last-child {
    grid-column: 1 / -1;
  }

  .product--featured {
    grid-template-columns: 1fr;
  }

  .product--featured .product__visual {
    min-height: 240px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform,
  .studio {
    grid-template-columns: 1fr;
  }

  .studio__copy {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .header__inner .header__actions {
    margin-inline-start: auto;
  }

  .header__actions {
    margin-inline-start: auto;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .product--featured {
    grid-column: auto;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header__inner {
    min-height: 66px;
    gap: 12px;
  }

  .brand__word {
    font-size: 18px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .lang-switch span {
    display: none;
  }

  .lang-switch {
    width: 42px;
    height: 42px;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
  }

  .hero {
    padding-block: 40px 44px;
  }

  .hero__title {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .stats {
    gap: 18px;
  }

  .stat {
    min-width: 92px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services .service:last-child {
    grid-column: auto;
  }

  .filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .product__visual {
    min-height: 190px;
    padding: 18px;
  }

  .tech {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .hero__actions {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------- light fixes */

[data-theme='light'] .mock {
  box-shadow: 0 24px 44px -32px rgba(15, 23, 42, 0.55);
}

[data-theme='light'] .art-card {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

[data-theme='light'] .hero__art .art-card {
  box-shadow: 0 30px 60px -38px rgba(15, 23, 42, 0.45);
}

/* --------------------------------------------------------------- motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- print */

@media print {
  body::before,
  body::after,
  .hero__art,
  .site-header,
  .site-footer,
  .filters {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .product,
  .service,
  .platform {
    break-inside: avoid;
    border-color: #ccc;
    box-shadow: none;
  }
}

/* Arabic content inside the decorative mockups should read RTL. */
[lang='ar'] .mock__question,
[lang='ar'] .mock__answers {
  direction: rtl;
}

