/* Connected -- the brand site. One stylesheet for both languages: every
   side is a logical property (inline-start/end), so Arabic mirrors itself. */

@font-face { font-family: "Tajawal"; src: url("/fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("/fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* The brand's own colours, from the icon and the wordmark: cyan into indigo
   into violet, on a deep navy. Everything coloured on the page draws from
   these three, so the site reads as the same thing as the app. */
:root {
  --bg: #05070f;
  --bg-2: #080b1a;
  --surface: #0e1227;
  --surface-2: #141a36;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0ff;
  --muted: #a0a8c6;
  --faint: #6f7798;
  --cyan: #00d1ff;
  --indigo: #5865ff;
  --violet: #a855f7;
  --pink: var(--violet);
  --green: #22c55e;
  --amber: #f5b301;
  --brand: linear-gradient(100deg, #00d1ff 0%, #5865ff 52%, #a855f7 100%);
  --brand-soft: linear-gradient(135deg, rgba(0, 209, 255, 0.16), rgba(88, 101, 255, 0.16) 50%, rgba(168, 85, 247, 0.16));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --wrap: 1180px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Tajawal", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--surface-2); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* -- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 34px -12px rgba(88, 101, 255, 0.85); }
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(0, 209, 255, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(0, 209, 255, 0.55); background: rgba(0, 209, 255, 0.06); }
.wa-ic { width: 1.35em; height: 1.35em; flex: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

/* -- header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(5, 7, 15, 0.9); }
/* A hairline in the brand gradient under the header once the page moves. */
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: var(--brand); opacity: 0; transition: opacity .25s ease;
}
.site-header.scrolled::after { opacity: 0.6; }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.2px; }
/* The lockup: the icon, and the wordmark as the brand's own lettering. Never squeezed:
   a narrow header folds its menu instead. */
.brand { gap: 10px; flex: none; direction: ltr; }
/* The header runs a little wider than the page, so the full menu fits beside the lockup. */
.site-header .wrap { width: min(1320px, 100% - 2 * var(--gutter)); }
.brand img { display: block; }
.brand .brand-mark { width: 38px; height: 38px; }
.brand .brand-word { height: 28px; width: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--muted); padding: 8px 11px; border-radius: 10px; font-weight: 500; font-size: 0.98rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
/* The phone app's link: first in the menu, in the brand colours, with a live dot. */
.nav a.nav-live { color: #bdefff; display: inline-flex; align-items: center; gap: 7px; }
.nav a.nav-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.2); flex: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { text-decoration: none; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; min-height: 42px; min-width: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; font-weight: 700; }
.lang:hover { color: var(--text); border-color: var(--cyan); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .when-open { display: none; }
.menu-open .menu-toggle .when-open { display: block; }
.menu-open .menu-toggle .when-closed { display: none; }

@media (max-width: 1340px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 2px;
    background: rgba(9, 11, 22, 0.98); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px; margin: 0;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav a { padding: 12px 10px; font-size: 1.05rem; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
  .brand .brand-mark { width: 32px; height: 32px; }
  .brand .brand-word { height: 23px; }
}

/* -- hero ------------------------------------------------------------------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.glow-1 { width: 520px; height: 520px; background: #4338ca; top: -180px; inset-inline-end: -120px; }
.glow-2 { width: 420px; height: 420px; background: #7e22ce; bottom: -160px; inset-inline-start: -140px; opacity: 0.35; }
.glow-3 { width: 320px; height: 320px; background: #0284c7; top: 38%; inset-inline-start: 38%; opacity: 0.3; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px;
  background: rgba(88, 101, 255, 0.12); border: 1px solid rgba(88, 101, 255, 0.35); color: #d6dcff;
  font-weight: 700; font-size: 0.9rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
/* With the announcement above it, the category is a quiet line, not a second pill. */
.announce + .eyebrow { display: flex; width: fit-content; margin-top: 22px; padding: 0; background: none; border: 0; color: #9fb0ff; }

/* The brand's connector: a line with a node at each end, drawn in the three brand colours. */
.connector { width: 34px; height: 10px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; overflow: visible; }
.connector path { stroke: var(--indigo); }
.connector circle { stroke: var(--cyan); fill: var(--bg); }
.connector circle:last-of-type { stroke: var(--violet); }
html[dir="rtl"] .connector { transform: scaleX(-1); }

/* "New: Connected Live", above the headline, to the phone app's section. */
.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--brand) border-box;
  border: 1px solid transparent; color: var(--text); font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 10px 34px -14px rgba(0, 209, 255, 0.6); transition: transform .2s ease, box-shadow .2s ease;
}
html[dir="rtl"] .announce { padding: 6px 6px 6px 14px; }
.announce:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(88, 101, 255, 0.8); }
.announce img { width: 24px; height: 24px; flex: none; }
.announce b { background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 0.82rem; flex: none; }
.announce span { min-width: 0; }
.announce .icon { width: 18px; height: 18px; color: var(--cyan); }
html[dir="rtl"] .announce .icon { transform: scaleX(-1); }
.hero h1, .section-head h2, .applive h2, .online h2, .contact h2 { text-wrap: balance; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.55rem); line-height: 1.18; font-weight: 700; margin: 20px 0 18px; letter-spacing: -0.5px; }
html[lang="en"] .hero h1 { line-height: 1.08; letter-spacing: -1.2px; }
.hero .lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.97rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks .icon { color: var(--green); width: 18px; height: 18px; stroke-width: 2.4; }

.hero-visual { position: relative; padding-bottom: 40px; }
.window {
  position: relative; border-radius: 16px; overflow: hidden; background: #0c1020;
  border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(88, 101, 255, 0.12), 0 40px 120px -40px rgba(88, 101, 255, 0.5);
}
span.window, .window picture { display: block; }
.window-bar { display: flex; gap: 7px; padding: 11px 14px; background: #10142a; border-bottom: 1px solid var(--line); direction: ltr; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3150; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.hero .window { transform: perspective(1600px) rotateY(var(--tilt, -7deg)) rotateX(3deg); transform-origin: center; }
html[dir="rtl"] .hero .window { --tilt: 7deg; }
.phone {
  position: absolute; width: 31%; max-width: 210px; bottom: -6px; inset-inline-start: -5%;
  border-radius: 28px; padding: 7px; background: #04050b; border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(88, 101, 255, 0.22), 0 0 50px -12px rgba(0, 209, 255, 0.45);
}
.phone img { border-radius: 22px; }

/* The phone app beside the till: as large as the screen allows, standing in
   the icon's neon ring, with the kind of alert it raises. */
/* On the picture's outer edge, so neither it nor its ring reaches the text. */
.hero-phone { position: absolute; width: 34%; max-width: 245px; bottom: -18px; inset-inline-end: -3%; z-index: 2; }
.hero-phone .phone { position: relative; width: 100%; max-width: none; inset: auto; bottom: auto; }
.ring {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1; width: 140%;
  top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 200deg, #00d1ff, #5865ff, #a855f7, #5865ff, #00d1ff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 14px rgba(0, 209, 255, 0.7)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
  opacity: 0.85;
}
.toast {
  position: absolute; top: 10%; inset-inline-end: 72%; z-index: 3; width: max-content; max-width: 250px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(14, 18, 39, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background-clip: padding-box; border: 1px solid rgba(0, 209, 255, 0.45);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.95), 0 0 30px -10px rgba(0, 209, 255, 0.55);
  line-height: 1.3;
}
html[dir="rtl"] .toast { padding: 10px 10px 10px 14px; }
.toast img { width: 34px; height: 34px; flex: none; }
.toast small { display: block; color: #9fdcff; font-size: 0.78rem; font-weight: 700; }
.toast b { display: block; font-size: 0.98rem; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(17, 20, 42, 0.86); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); font-size: 0.9rem; line-height: 1.3;
}
.chip b { display: block; font-size: 1.05rem; }
.chip small { color: var(--muted); }
.chip .badge-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip-1 { top: 18%; inset-inline-end: -4%; }
.chip-1 .badge-ic { background: rgba(34, 197, 94, 0.14); color: var(--green); }
.chip-2 { bottom: 16%; inset-inline-end: 6%; }
.chip-2 .badge-ic { background: rgba(245, 179, 1, 0.14); color: var(--amber); }
.hero-visual:has(.hero-phone) .chip-1 { top: -5%; inset-inline-end: auto; inset-inline-start: 4%; }
.hero-visual:has(.hero-phone) .chip-2 { bottom: 8%; inset-inline-end: auto; inset-inline-start: -3%; }
@media (prefers-reduced-motion: no-preference) {
  .chip-1 { animation: float 6s ease-in-out infinite; }
  .chip-2 { animation: float 7s ease-in-out -2s infinite; }
  .hero-visual > .phone, .hero-phone { animation: float 8s ease-in-out -4s infinite; }
  .toast { animation: toast-in .7s cubic-bezier(.2, .8, .2, 1) .6s both, float 6s ease-in-out 1.3s infinite; }
  .ring { animation: spin 18s linear infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(1turn); } }

@media (max-width: 980px) {
  .hero { padding: 40px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero .window { transform: none; }
  .chip-1 { inset-inline-end: 2%; top: -6%; }
  .hero-visual { padding-bottom: 70px; }
  .hero-phone { inset-inline-end: 0; }
  .hero-visual:has(.hero-phone) .chip-2 { inset-inline-start: 0; }
}
@media (max-width: 560px) {
  .chip { font-size: 0.8rem; padding: 8px 10px; }
  .chip .badge-ic { width: 30px; height: 30px; }
  .chip-2 { display: none; }
  .phone { width: 34%; inset-inline-start: -2%; border-radius: 20px; padding: 5px; }
  .phone img { border-radius: 16px; }
  .hero-visual { padding-bottom: 96px; }
  .hero-phone { width: 40%; bottom: -10px; inset-inline-end: 2%; }
  .hero-visual:has(.hero-phone) .chip-1 { inset-inline-start: 0; top: -9%; }
  .hero-phone .phone { width: 100%; inset-inline-start: auto; }
  .toast { top: auto; bottom: 14%; inset-inline-end: 80%; max-width: 190px; padding: 8px 10px 8px 8px; gap: 8px; border-radius: 13px; }
  html[dir="rtl"] .toast { padding: 8px 8px 8px 10px; }
  .toast img { width: 26px; height: 26px; }
  .toast small { font-size: 0.7rem; }
  .toast b { font-size: 0.86rem; }
  .announce { font-size: 0.86rem; }
}

/* -- strip of what is inside ------------------------------------------------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip ul { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; color: var(--muted); font-weight: 500; }
.strip li { display: inline-flex; align-items: center; gap: 10px; }
.strip .icon { color: var(--cyan); }

/* -- sections ---------------------------------------------------------------- */
section { scroll-margin-top: 80px; }
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.kicker { color: var(--cyan); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.4px; display: inline-flex; align-items: center; gap: 10px; }
/* Pages published before the connector was drawn into the kicker keep their bar. */
.kicker:not(:has(.connector))::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head.center .kicker:not(:has(.connector))::after { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section-head.center .kicker .connector:last-child { transform: none; }
html[dir="ltr"] .section-head.center .kicker .connector:last-child { transform: scaleX(-1); }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.25; margin: 12px 0 14px; font-weight: 700; }
html[lang="en"] .section-head h2 { letter-spacing: -0.6px; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 700px) { .section { padding: 76px 0; } .section-head { margin-bottom: 40px; } }

/* -- feature cards ----------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: transform .25s ease, border-color .25s ease, background .25s ease; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(88, 101, 255, 0.13), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(88, 101, 255, 0.4); }
.feature:hover::after { opacity: 1; }
.feature .ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--brand-soft);
  border: 1px solid rgba(88, 101, 255, 0.35); color: #c8e9ff;
}
.feature .ic .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature { padding: 22px; } }

/* -- tour rows ------------------------------------------------------------- */
.tour { display: grid; gap: 110px; }
.row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; align-items: center; }
.row.flip .row-text { order: 2; }
.row-text h3 { font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.3; margin: 10px 0 14px; }
.row-text > p { color: var(--muted); font-size: 1.06rem; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #9fdcff; font-size: 0.92rem; }
.tag .icon { width: 18px; height: 18px; }
.list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; color: #d6dbf0; }
.list .icon { color: var(--cyan); margin-top: 4px; width: 18px; height: 18px; stroke-width: 2.4; }
.shot { cursor: zoom-in; display: block; padding: 0; border: 0; background: none; width: 100%; text-align: inherit; color: inherit; font: inherit; }
.shot .window { transition: transform .3s ease, box-shadow .3s ease; }
.shot:hover .window { transform: translateY(-4px); }
.stack { position: relative; }
.stack .window + .window { position: absolute; width: 58%; bottom: -12%; inset-inline-start: -8%; }
@media (max-width: 980px) {
  .tour { gap: 80px; }
  .row { grid-template-columns: 1fr; gap: 30px; }
  .row.flip .row-text { order: 0; }
  .stack .window + .window { display: none; }
}

/* -- leagues ------------------------------------------------------------------- */
.league-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.league-grid .big { grid-column: span 7; }
.league-grid .side { grid-column: span 5; display: grid; gap: 18px; align-content: start; }
.league-points { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.point { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.point .icon { color: var(--amber); width: 22px; height: 22px; margin-bottom: 10px; }
.point h4 { margin: 0 0 6px; font-size: 1.05rem; }
.point p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 980px) {
  .league-grid .big, .league-grid .side { grid-column: 1 / -1; }
  .league-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .league-points { grid-template-columns: 1fr; } }

/* -- online add-on ----------------------------------------------------------- */
.online {
  position: relative; border-radius: 28px; padding: 60px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #16123a 0%, #0f1530 55%, #0a1a24 100%); border: 1px solid rgba(88, 101, 255, 0.3);
}
.online::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #4f46e5; filter: blur(120px); opacity: 0.35; top: -200px; inset-inline-start: -160px; z-index: -1; }
.online-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.addon { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(245, 179, 1, 0.12); border: 1px solid rgba(245, 179, 1, 0.4); color: #fde68a; font-weight: 700; font-size: 0.88rem; }
.online h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.25; margin: 16px 0 14px; }
.online .lead { color: #c9cde6; font-size: 1.08rem; }
.address { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 1px dashed rgba(0, 209, 255, 0.45); font-weight: 700; direction: ltr; }
.address .icon { color: var(--cyan); }
.address em { font-style: normal; color: var(--cyan); }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; position: relative; min-height: 460px; }
.phones .phone { position: relative; inset: auto; width: 46%; max-width: 230px; animation: none; }
.phones .phone:nth-child(1) { transform: rotate(-6deg) translate(18%, 26px); z-index: 1; opacity: 0.92; }
.phones .phone:nth-child(2) { z-index: 2; }
.phones .phone:nth-child(3) { transform: rotate(6deg) translate(-18%, 26px); z-index: 1; opacity: 0.92; }
@media (max-width: 980px) {
  .online { padding: 40px 24px; }
  .online-grid { grid-template-columns: 1fr; }
  .phones { min-height: 0; }
}
@media (max-width: 560px) {
  .phones .phone:nth-child(1), .phones .phone:nth-child(3) { display: none; }
  .phones .phone:nth-child(2) { width: 62%; }
}

/* -- steps ----------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  font-weight: 700; font-size: 1.15rem; background: var(--brand); color: #fff;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.97rem; }
.needs { margin-top: 30px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.needs strong { font-size: 1.02rem; }
.needs span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.needs .icon { color: var(--cyan); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* -- customers ------------------------------------------------------------------ */
.customers { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.customer {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  padding: 28px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: transform .25s ease, border-color .25s ease;
  flex: 0 1 260px; min-width: 0;
}
a.customer:hover { transform: translateY(-4px); border-color: rgba(0, 209, 255, 0.45); }
.customer .mark { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.customer .mark img { width: 100%; height: 100%; object-fit: contain; }
.customer .mark.mono { background: linear-gradient(135deg, #3b1d6e, #1d2b5a); color: #fff; font-weight: 700; font-size: 1.6rem; direction: ltr; }
.customer h3 { font-size: 1.08rem; }
.customer .city { color: var(--muted); font-size: 0.93rem; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 700; color: #86efac; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); padding: 3px 10px; border-radius: 999px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.customer.join { border-style: dashed; border-color: rgba(88, 101, 255, 0.45); background: rgba(88, 101, 255, 0.05); justify-content: center; }
.customer.join .mark { background: rgba(88, 101, 255, 0.15); color: #c8d0ff; }
.customer.join .mark .icon { width: 34px; height: 34px; }
.customer.join p { color: var(--muted); font-size: 0.95rem; }

/* -- faq -------------------------------------------------------------------------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: rgba(88, 101, 255, 0.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.06rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s ease; color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--cyan); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* -- contact ---------------------------------------------------------------------- */
.contact {
  border-radius: 28px; padding: 64px; text-align: center; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(800px 300px at 50% 0%, rgba(88, 101, 255, 0.35), transparent 70%), var(--surface);
  border: 1px solid rgba(88, 101, 255, 0.3);
}
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.25; margin-bottom: 14px; }
.contact-mark {
  width: 112px; height: 112px; margin: 0 auto 22px;
  filter: drop-shadow(0 0 28px rgba(0, 209, 255, 0.45)) drop-shadow(0 0 50px rgba(168, 85, 247, 0.35));
}
@media (max-width: 700px) { .contact-mark { width: 84px; height: 84px; } }
.contact > p { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin-inline: auto; }
.contact-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-lines { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 30px; color: var(--muted); }
.contact-lines a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.contact-lines a:hover { color: var(--text); }
.btn-wa { background: #25d366; color: #052e16; box-shadow: 0 12px 34px -14px rgba(37, 211, 102, 0.8); }
@media (max-width: 700px) { .contact { padding: 44px 20px; } }

/* -- footer ----------------------------------------------------------------------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 48px 0 30px; background: var(--bg-2); }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: -1px; height: 1px; background: var(--brand); opacity: 0.7; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid p { color: var(--muted); font-size: 0.95rem; margin-top: 12px; max-width: 380px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* -- floating WhatsApp -------------------------------------------------------------- */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7); transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* -- lightbox --------------------------------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1500px, 96vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 4, 10, 0.86); backdrop-filter: blur(6px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; border: 1px solid var(--line-2); margin: auto; }
.lightbox button { position: absolute; top: -50px; inset-inline-end: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.lightbox figcaption { color: var(--muted); text-align: center; margin-top: 10px; }

/* -- Connected Live, the phone app ---------------------------------------------------- */
/* Straight after the hero, and the boldest panel on the page: a frame in the
   brand gradient, the three phones large, the icon's ring behind them. */
.section-live { padding-top: 70px; }
.applive {
  position: relative; border-radius: 32px; padding: 64px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0, 209, 255, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(168, 85, 247, 0.20), transparent 60%),
    linear-gradient(135deg, #08132f 0%, #0c1030 50%, #150c30 100%) padding-box,
    var(--brand) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 120px -50px rgba(88, 101, 255, 0.7);
}
.applive::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 20%, transparent 75%);
}
.applive-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 56px; row-gap: 0;
  grid-template-areas: "head phones" "body phones";
}
.applive-head { grid-area: head; align-self: end; }
.applive-body { grid-area: body; align-self: start; }
.applive-phones { grid-area: phones; align-self: center; }
.applive-badge {
  display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(0, 209, 255, 0.10); border: 1px solid rgba(0, 209, 255, 0.40); color: #bdefff; font-weight: 700; font-size: 0.95rem;
}
html[dir="rtl"] .applive-badge { padding: 6px 8px 6px 14px; }
.applive-badge img { width: 28px; height: 28px; }
.applive h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.2; margin: 18px 0 16px; font-weight: 700; }
html[lang="en"] .applive h2 { letter-spacing: -0.8px; line-height: 1.1; }
.applive .lead { color: #c9cde6; font-size: clamp(1.04rem, 1.4vw, 1.15rem); }
.applive-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.applive-point {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm);
  background: rgba(5, 7, 15, 0.5); border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color .25s ease;
}
.applive-point:hover { border-color: rgba(0, 209, 255, 0.4); }
.applive-point .icon {
  flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 11px; color: #c8e9ff;
  background: var(--brand-soft); border: 1px solid rgba(88, 101, 255, 0.35);
}
.applive-point h3 { margin: 0 0 4px; font-size: 1.02rem; }
.applive-point p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
.applive .hero-cta { margin-top: 28px; }
.applive-note { margin: 18px 0 0; color: var(--faint); font-size: 0.92rem; display: flex; gap: 8px; align-items: center; }
.applive-note .icon { color: #3ddc84; width: 20px; height: 20px; }
/* Three phones, the middle one in front: fixed widths that overlap by their
   margins, rather than flex items squeezed to fit the column. */
.applive-phones { min-height: 600px; align-items: center; }
.applive-phones .phone { position: relative; inset: auto; flex: none; width: 36%; max-width: 225px; animation: none; opacity: 0.9; z-index: 1; }
.applive-phones .phone:nth-child(2) { transform: rotate(-7deg) translateY(30px); margin-inline-end: -9%; }
.applive-phones .phone:nth-child(4) { transform: rotate(7deg) translateY(30px); margin-inline-start: -9%; }
html[dir="rtl"] .applive-phones .phone:nth-child(2) { transform: rotate(7deg) translateY(30px); }
html[dir="rtl"] .applive-phones .phone:nth-child(4) { transform: rotate(-7deg) translateY(30px); }
.applive-phones .phone:nth-child(3) {
  display: block; width: 45%; max-width: 280px; transform: none; opacity: 1; z-index: 3;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 209, 255, 0.3), 0 0 70px -10px rgba(88, 101, 255, 0.7);
}
.applive-phones .ring { width: 80%; }
@media (max-width: 1100px) { .applive { padding: 48px 36px; } }
@media (max-width: 980px) {
  .section-live { padding-top: 40px; }
  .applive { padding: 40px 22px; border-radius: 26px; }
  .applive-grid { grid-template-columns: 1fr; grid-template-areas: "head" "phones" "body"; }
  .applive-phones { min-height: 0; padding: 36px 0 40px; }
}
@media (max-width: 620px) { .applive-points { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .applive-phones { padding: 24px 0 30px; }
  .applive-phones .phone:nth-child(2), .applive-phones .phone:nth-child(4) { display: block; width: 34%; }
  .applive-phones .phone:nth-child(3) { width: 48%; }
  .applive-phones .phone:nth-child(2) { margin-inline-end: -12%; }
  .applive-phones .phone:nth-child(4) { margin-inline-start: -12%; }
  .applive-phones .ring { width: 96%; }
  .applive .btn { white-space: normal; text-align: center; min-height: 54px; }
}

/* -- reveal on scroll (only when the script runs) ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* -- 404 ------------------------------------------------------------------------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost h1 { font-size: clamp(3rem, 10vw, 6rem); line-height: 1; margin-bottom: 10px; }
.lost p { color: var(--muted); margin-bottom: 26px; }
.lost .hero-cta { justify-content: center; }
.lost .brand { margin-bottom: 30px; }

/* -- the admin panel's draft preview ------------------------------------------- */
.preview-banner { position: sticky; top: 0; z-index: 100; background: #f5b301; color: #1a1300; text-align: center; font-weight: 700; padding: 6px 12px; }
