@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Archivo; src: url(assets/fonts/Archivo-ExtraBold.ttf) format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(assets/fonts/IBMPlexMono-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(assets/fonts/IBMPlexSansArabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(assets/fonts/IBMPlexSansArabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url(assets/fonts/IBMPlexSansArabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Archivo; src: url(assets/fonts/IBMPlexSansArabic-700.woff2) format("woff2"); font-weight: 800; unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Archivo; src: url(assets/fonts/IBMPlexSansArabic-600.woff2) format("woff2"); font-weight: 600 700; unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  /* the company follows the Avex Barber palette (ink + brass); Beauty keeps its rose in its own panel */
  --bg: #0c0d13;
  --surface: #14151e;
  --surface-2: #1c1d28;
  --ivory: #f4f2ec;
  --muted: #a7a6b4;
  --tertiary: #82828f;
  --brass-light: #e6cd92;
  --brass-deep: #ad8845;
  --hairline: rgba(255, 255, 255, 0.08);
  --brass: #c9a45c;
  --brass-top: #d8b871;
  --barber-ink: #0c0d13;
  --barber-navy: #1a1a2e;
  --rose: #d89aa8;
  --rose-top: #e3aeb9;
  --beauty-plum: #151217;
  --beauty-deep: #3d1626;
  --max: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--ivory); background: var(--bg); font: 16px/1.55 "IBM Plex Sans Arabic", system-ui, sans-serif; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: Archivo, sans-serif; margin: 0; letter-spacing: -0.03em; line-height: 1.02; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .directional { transform: scaleX(-1); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--ivory); color: var(--bg); padding: 8px 14px; border-radius: 8px; }

.eyebrow { margin: 0 0 18px; font: 600 0.78rem "IBM Plex Mono", monospace; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 0.9rem; }

/* ── header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100% - var(--max)) / 2));
  background: rgba(12, 13, 19, 0.78); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline);
}
.brand img { width: 118px; height: auto; }
.nav { display: flex; gap: 24px; margin-inline-start: auto; font: 600 0.86rem Archivo, sans-serif; color: var(--muted); }
.nav a:hover { color: var(--ivory); }
.header-tools { display: flex; gap: 10px; }
.pill-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hairline); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.pill-switch button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: 600 0.78rem Archivo, sans-serif; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pill-switch button[aria-pressed="true"] { background: linear-gradient(180deg, var(--brass-top), var(--brass)); color: #160f04; }
.pill-switch .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.pill-switch button[aria-pressed="true"] .dot { background: #160f04; opacity: 0.8; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(201, 164, 92, 0.14), transparent 70%),
    radial-gradient(48% 60% at 50% 80%, rgba(26, 26, 46, 0.9), transparent 75%);
}
.hero-copy { position: relative; text-align: center; max-width: 860px; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 800; }
.hero h1 span {
  background: linear-gradient(180deg, var(--brass-light), var(--brass) 70%, var(--brass-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px auto 0; max-width: 620px; font-size: 1.12rem; color: var(--muted); }
.geo-note { margin: 18px 0 0; font: 600 0.78rem "IBM Plex Mono", monospace; letter-spacing: 0.08em; color: var(--tertiary); }
[dir="rtl"] .geo-note { font-family: inherit; letter-spacing: 0; }
.geo-note button { border: 0; background: none; padding: 0; color: var(--brass-light); text-decoration: underline; text-underline-offset: 3px; font: inherit; }

/* ── the two app panels ───────────────────────────────────────────────── */
.apps { position: relative; display: flex; gap: 20px; margin-top: 64px; min-height: 560px; }
.app-panel {
  position: relative; flex: 1 1 0; display: flex; align-items: stretch; overflow: hidden; border-radius: 28px;
  border: 1px solid var(--hairline); isolation: isolate;
  transition: flex-grow 0.7s var(--ease), border-color 0.4s, transform 0.7s var(--ease);
}
.apps:hover .app-panel { flex-grow: 0.86; }
.apps .app-panel:hover { flex-grow: 1.14; }
.app-panel.barber { background: linear-gradient(160deg, var(--barber-navy) 0%, var(--barber-ink) 62%); }
.app-panel.beauty { background: linear-gradient(160deg, var(--beauty-deep) 0%, var(--beauty-plum) 62%); }
.app-panel.barber:hover { border-color: rgba(201, 164, 92, 0.45); }
.app-panel.beauty:hover { border-color: rgba(216, 154, 168, 0.45); }
.panel-glow { position: absolute; inset: 0; z-index: -1; opacity: 0.55; transition: opacity 0.6s; }
.barber .panel-glow { background: radial-gradient(60% 55% at 78% 58%, rgba(201, 164, 92, 0.24), transparent 70%); }
.beauty .panel-glow { background: radial-gradient(60% 55% at 78% 58%, rgba(216, 154, 168, 0.26), transparent 70%); }
.app-panel:hover .panel-glow { opacity: 1; }
.panel-copy { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 40px 0 40px 40px; width: 58%; }
[dir="rtl"] .panel-copy { padding: 40px 40px 40px 0; }
.panel-brand { display: flex; align-items: center; gap: 12px; font: 700 1.05rem Archivo, sans-serif; }
.panel-brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; }
.beauty .panel-brand img { background: #201a22; padding: 6px; }
.panel-kicker { margin: 30px 0 12px; font: 600 0.74rem "IBM Plex Mono", monospace; letter-spacing: 0.18em; text-transform: uppercase; }
[dir="rtl"] .panel-kicker { letter-spacing: 0; font-family: inherit; font-size: 0.9rem; }
.barber .panel-kicker { color: var(--brass); }
.beauty .panel-kicker { color: var(--rose); }
.app-panel h2 { font-size: clamp(2rem, 3.1vw, 2.9rem); font-weight: 800; }
.app-panel ul { list-style: none; margin: 26px 0 32px; padding: 0; display: grid; gap: 11px; color: #cfcdd6; font-size: 0.97rem; }
.app-panel li { display: flex; gap: 10px; align-items: baseline; }
.app-panel li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; transform: translateY(-2px); }
.barber li::before { background: var(--brass); }
.beauty li::before { background: var(--rose); }
.panel-phone {
  position: absolute; z-index: 1; width: 66%; max-width: none; height: auto; right: -9%; top: 50%; margin-top: -14%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6)); transition: transform 0.9s var(--ease);
}
[dir="rtl"] .panel-phone { right: auto; left: -9%; }
.app-panel:hover .panel-phone { transform: translate(-4%, -4%) rotate(-2deg); }
[dir="rtl"] .app-panel:hover .panel-phone { transform: translate(4%, -4%) rotate(2deg); }

.button { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto; padding: 14px 22px; border-radius: 12px; font: 700 0.95rem Archivo, sans-serif; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.button:hover { transform: translateY(-2px); }
.button.brass { background: linear-gradient(180deg, var(--brass-top), var(--brass)); color: #160f04; box-shadow: 0 10px 30px -10px rgba(201, 164, 92, 0.6); }
.button.rose { background: linear-gradient(180deg, var(--rose-top), var(--rose)); color: #151217; box-shadow: 0 10px 30px -10px rgba(216, 154, 168, 0.6); }
.button.ivory { background: linear-gradient(180deg, var(--brass-top), var(--brass)); color: #160f04; box-shadow: 0 10px 30px -10px rgba(201, 164, 92, 0.6); }
.button.ghost { border: 1px solid var(--hairline); color: var(--ivory); }

/* ── proof band ───────────────────────────────────────────────────────── */
.proof { border-block: 1px solid var(--hairline); background: var(--surface); }
.proof-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 0; font-size: 0.9rem; color: var(--muted); }

/* ── demo ─────────────────────────────────────────────────────────────── */
.demo { padding: 110px 0 40px; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.demo .section-head { text-align: center; }
.demo-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.demo-tabs button { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); font: 700 0.92rem Archivo, sans-serif; color: var(--muted); }
.demo-tabs button img { border-radius: 6px; background: #1b1b22; object-fit: contain; }
.demo-tabs button[aria-selected="true"] { color: var(--ivory); }
.demo-tabs button[data-demo="barber"][aria-selected="true"] { border-color: rgba(201, 164, 92, 0.55); box-shadow: inset 0 0 0 1px rgba(201, 164, 92, 0.2); }
.demo-tabs button[data-demo="beauty"][aria-selected="true"] { border-color: rgba(216, 154, 168, 0.55); box-shadow: inset 0 0 0 1px rgba(216, 154, 168, 0.2); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--hairline); background: #000; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; background: radial-gradient(40% 40% at 50% 50%, rgba(0, 0, 0, 0.35), transparent); font: 700 0.9rem Archivo, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; }
.play-icon { width: 84px; height: 84px; border-radius: 50%; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transition: transform 0.4s var(--ease); }
.play-icon::after { content: ""; position: absolute; left: 34px; top: 27px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #111; }
.video-frame[data-theme="barber"] .play-icon { background: linear-gradient(180deg, var(--brass-top), var(--brass)); }
.video-frame[data-theme="beauty"] .play-icon { background: linear-gradient(180deg, var(--rose-top), var(--rose)); }
.play:hover .play-icon { transform: scale(1.06); }
.video-frame.is-playing .play { display: none; }
.video-lang { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); background: rgba(10, 10, 13, 0.7); backdrop-filter: blur(8px); }
.video-frame.is-playing .video-lang { display: none; }

/* ── platform ─────────────────────────────────────────────────────────── */
.platform { padding: 90px 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 20px; border: 1px solid var(--hairline); background: var(--surface); }
.feature .icon { width: 26px; height: 26px; color: var(--brass); margin-bottom: 8px; }
.feature b { font: 700 1.05rem Archivo, sans-serif; }
.feature small { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ── countries ────────────────────────────────────────────────────────── */
.countries { padding: 30px 0 90px; }
.map-stage {
  position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--hairline);
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(201, 164, 92, 0.10), transparent 70%),
    linear-gradient(180deg, #10111a, #0b0c12);
}
.map-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 13, 19, 0.55), transparent 18%, transparent 82%, rgba(12, 13, 19, 0.55)),
              linear-gradient(180deg, rgba(12, 13, 19, 0.35), transparent 25%, transparent 75%, rgba(12, 13, 19, 0.6)); }
.map svg { display: block; width: 100%; height: auto; }
.map .dots-land { fill: rgba(255, 255, 255, 0.11); }
.map .dots-ca, .map .dots-ma { fill: rgba(201, 164, 92, 0.32); transition: fill 0.6s var(--ease), filter 0.6s; }
.map-stage[data-active="ca"] .map .dots-ca,
.map-stage[data-active="ma"] .map .dots-ma { fill: var(--brass-top); filter: drop-shadow(0 0 3px rgba(216, 184, 113, 0.7)); }
.map .arc-track { fill: none; stroke: rgba(201, 164, 92, 0.22); stroke-width: 1.5; stroke-dasharray: 2 7; }
.map .arc-flow { fill: none; stroke: var(--brass-top); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 90 1400; animation: flow 5.5s linear infinite; filter: drop-shadow(0 0 4px rgba(216, 184, 113, 0.8)); }
.map-stage[data-active="ca"] .map .arc-flow { animation-direction: reverse; }
@keyframes flow { from { stroke-dashoffset: 1490; } to { stroke-dashoffset: 0; } }

.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -50%); }
.pin i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--brass-light); box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.25); opacity: 0.6; transition: opacity 0.4s; }
.pin.major i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 1px solid var(--brass-top); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(4.6); opacity: 0; } }
.pin span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 600 0.7rem "IBM Plex Mono", monospace; letter-spacing: 0.08em; color: rgba(244, 242, 236, 0.55); text-shadow: 0 1px 8px #000; transition: color 0.4s; }
.pin.left span { left: auto; right: 14px; }
.map-stage[data-active="ca"] .pin.ca i, .map-stage[data-active="ma"] .pin.ma i { opacity: 1; }
.map-stage[data-active="ca"] .pin.ca span, .map-stage[data-active="ma"] .pin.ma span { color: var(--ivory); }
.map-stage:not([data-active="ca"]) .pin.ca.major i::after, .map-stage:not([data-active="ma"]) .pin.ma.major i::after { animation: none; opacity: 0; }

.map-card {
  position: absolute; z-index: 3; width: min(360px, 34%); display: grid; gap: 6px; text-align: start; padding: 22px 24px;
  border-radius: 20px; border: 1px solid var(--hairline); background: rgba(20, 21, 30, 0.78); backdrop-filter: blur(14px);
  transition: border-color 0.4s, transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s;
}
.map-card.ca { left: 3%; bottom: 7%; }
.map-card.ma { right: 3%; top: 7%; }
.map-card:hover { transform: translateY(-3px); border-color: rgba(201, 164, 92, 0.35); }
.map-card[aria-pressed="true"] { border-color: rgba(201, 164, 92, 0.65); background: rgba(28, 29, 40, 0.88); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(201, 164, 92, 0.15); }
.map-card-top { display: flex; justify-content: space-between; align-items: center; }
.country-tag { font: 600 0.72rem "IBM Plex Mono", monospace; letter-spacing: 0.2em; color: var(--tertiary); }
.live { display: inline-flex; align-items: center; gap: 7px; font: 600 0.68rem "IBM Plex Mono", monospace; letter-spacing: 0.06em; color: var(--tertiary); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--tertiary); }
.map-card[aria-pressed="true"] .live { color: var(--brass-light); }
.map-card[aria-pressed="true"] .live i { background: #56c77e; box-shadow: 0 0 0 3px rgba(86, 199, 126, 0.2); }
.map-card b { font: 800 1.9rem Archivo, sans-serif; letter-spacing: -0.03em; }
.map-card small { color: var(--muted); font-size: 0.95rem; }
.country-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.country-meta span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hairline); font-size: 0.8rem; color: #d5d3dc; }
.country-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 700 0.88rem Archivo, sans-serif; color: var(--muted); }
.country-cta .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.map-card:hover .country-cta .icon { transform: translateX(3px); }
.map-card[aria-pressed="true"] .country-cta { color: var(--brass); }
.map-legend { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(12, 13, 19, 0.7); border: 1px solid var(--hairline); font: 600 0.72rem "IBM Plex Mono", monospace; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
.arc-dot { width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brass-top)); }
[dir="rtl"] .pin span, [dir="rtl"] .live, [dir="rtl"] .map-legend, [dir="rtl"] .country-tag { font-family: inherit; letter-spacing: 0; }

/* ── contact + footer ─────────────────────────────────────────────────── */
.contact { border-top: 1px solid var(--hairline); background: radial-gradient(60% 90% at 50% 0%, rgba(201, 164, 92, 0.1), transparent 70%); }
.contact-inner { padding: 100px 0; text-align: center; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; max-width: 760px; margin-inline: auto; }
.contact-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.contact-actions .button { margin-top: 0; }
.footer { border-top: 1px solid var(--hairline); }
.footer-inner { display: flex; align-items: center; gap: 24px; padding: 26px 0; font-size: 0.85rem; color: var(--tertiary); flex-wrap: wrap; }
.footer-geo { margin-inline-start: auto; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 380px) {
  .demo-tabs button img { display: none; }
  .hero h1 { font-size: 2.45rem; }
}
@media (max-width: 1040px) {
  .map-stage { display: grid; gap: 12px; padding-bottom: 16px; }
  .map-card { position: relative; inset: auto; width: auto; margin: 0 16px; }
  .map-card.ca, .map-card.ma { left: auto; right: auto; top: auto; bottom: auto; }
  .map-legend { position: relative; left: auto; bottom: auto; transform: none; justify-self: center; white-space: normal; text-align: center; }
  .pins { display: none; }
  .map-legend { margin: 0 16px; }
  .nav { display: none; }
  .header-tools { margin-inline-start: auto; }
  .apps { flex-direction: column; }
  .apps:hover .app-panel, .apps .app-panel:hover { flex: none; }
  .app-panel { flex: none; }
  .app-panel { min-height: 520px; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pill-switch button { min-height: 36px; }
  .geo-note button { padding: 8px 4px; }
  .proof-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; text-align: center; font-size: 0.84rem; }
  .demo-tabs button { padding: 12px 10px; gap: 8px; font-size: 0.86rem; white-space: nowrap; }
  .map-card b { font-size: 1.6rem; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-geo { margin-inline-start: 0; }
  .site-header { gap: 12px; padding-inline: 16px; }
  .brand img { width: 92px; }
  .pill-switch button { padding: 6px 9px; font-size: 0.72rem; }
  .pill-switch .dot { display: none; }
  .hero { padding-top: 56px; }
  .apps { margin-top: 40px; }
  .app-panel { min-height: 0; flex-direction: column; }
  .panel-copy { width: 100%; padding: 28px 28px 0; }
  [dir="rtl"] .panel-copy { padding: 28px 28px 0; }
  .app-panel ul { margin-bottom: 26px; }
  .panel-phone { position: relative; width: 96%; right: auto; top: auto; margin: 0 -8% -14% auto; }
  [dir="rtl"] .panel-phone { left: auto; margin: 0 auto -14% -8%; }
  .app-panel:hover .panel-phone, [dir="rtl"] .app-panel:hover .panel-phone { transform: none; }
  .features { grid-template-columns: 1fr; }
  .video-frame { aspect-ratio: 9 / 16; }
}
