/* Matrix Secure Technologies — first-light page */

@font-face { font-family: "Manrope"; src: url(fonts/manrope-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-arabic-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-arabic-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url(fonts/plex-arabic-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Pure, rich orange — the brand's new primary. */
  --orange: #ff7a00;
  --orange-hi: #ffa347;
  --orange-lo: #e86a00;
  --black: #050505;
  --ink: #0b0b0c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --faint: rgba(255, 255, 255, 0.46);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--black); scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--black);
  min-height: 100svh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-family: "Plex Arabic", "Manrope", system-ui, sans-serif; }
html[lang="en"] .t-ar, html[lang="ar"] .t-en { display: none !important; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--orange); color: #0a0a0a; }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 10px; }

/* Film grain + a warm wash at the top, behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 50% at 50% -10%, rgba(255, 122, 0, 0.13), transparent 70%),
    radial-gradient(60% 40% at 100% 100%, rgba(255, 122, 0, 0.05), transparent 70%),
    var(--black);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Top bar                                                              */
/* ------------------------------------------------------------------ */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 16px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, padding 0.4s var(--ease);
}
/* Once the page moves, the bar becomes frosted glass so it never sits on top of the content. */
.bar.solid {
  padding-bottom: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  background: rgba(8, 8, 9, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
}
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; direction: ltr; }
.wordmark b { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 0.32em; }
.wordmark b i { font-style: normal; color: var(--orange); }
.wordmark small { font-family: "Manrope", sans-serif; font-size: 8.5px; font-weight: 600; letter-spacing: 0.42em; color: var(--faint); margin-top: 6px; }
.bar-end { display: flex; align-items: center; gap: 18px; }
.live { display: none; align-items: center; gap: 9px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .live { letter-spacing: 0; font-size: 12.5px; }
.live time { font-variant-numeric: tabular-nums; color: #fff; direction: ltr; unicode-bidi: isolate; }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--orange); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }
@media (min-width: 640px) { .live { display: inline-flex; } }

.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.chip .t-ar { font-family: "Plex Arabic", sans-serif; }
.chip .t-en { font-family: "Manrope", sans-serif; }

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(4px, 1.2svh, 18px);
  padding: calc(72px + 1svh) var(--pad) clamp(64px, 9svh, 110px);
  text-align: center;
  overflow-x: clip; /* the lens glow may spill past the screen edge, but never widens the page */
}
.stage {
  position: relative;
  width: min(72vw, 34svh, 560px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  will-change: transform;
}
.stage canvas { position: absolute; inset: -22%; width: 144%; height: 144%; }
/* Viewfinder corners and the lens readout. */
.vf { position: absolute; inset: -6%; pointer-events: none; }
.vf i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 255, 255, 0.5); }
.vf i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.vf span {
  display: none; /* shown beside the lens on wide screens; on phones it would crowd the headline */
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--faint);
  direction: ltr;
}
.vf span b { color: var(--orange-hi); font-weight: 600; }

.copy { position: relative; z-index: 2; max-width: 760px; margin-top: clamp(14px, 3svh, 40px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-hi);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange)); }
.eyebrow::after { transform: scaleX(-1); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14.5px; }
@media (max-width: 480px) {
  .eyebrow { font-size: 11px; letter-spacing: 0.15em; }
  .eyebrow::before, .eyebrow::after { display: none; }
}

h1 {
  margin-top: clamp(12px, 2svh, 22px);
  font-size: clamp(2.3rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffc27a 0%, var(--orange) 42%, #ff9124 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[lang="ar"] h1 { letter-spacing: 0; line-height: 1.32; font-weight: 700; font-size: clamp(2.1rem, 5.6vw, 4.8rem); }

.lede {
  margin: clamp(14px, 2.4svh, 24px) auto 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
html[lang="ar"] .lede { line-height: 1.85; }
/* The five specialities, given equal weight right under the headline. */
.pillars { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(16px, 2.4svh, 24px); }
.pillars li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.pillars li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px rgba(255, 122, 0, 0.85); }
html[lang="ar"] .pillars li { font-size: 14px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(20px, 3.2svh, 32px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.35s var(--ease), border-color 0.3s;
}
html[lang="ar"] .btn { font-weight: 700; font-size: 16px; }
.btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .btn .flip { transform: scaleX(-1); }
.btn-primary {
  background: var(--orange);
  color: #0a0a0a;
  box-shadow: 0 14px 44px -14px rgba(255, 122, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { background: #ff8a1c; transform: translateY(-2px); box-shadow: 0 20px 54px -14px rgba(255, 122, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

.cue {
  position: absolute;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: 50%;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35));
  overflow: hidden;
}
.cue::after { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: var(--orange); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { 0% { top: -14px; } 100% { top: 46px; } }

/* Wide screens: words on the start side, the lens on the end side. */
@media (min-width: 960px) and (min-aspect-ratio: 1/1) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    justify-items: start;
    align-items: center;
    column-gap: clamp(24px, 4vw, 80px);
    text-align: start;
    padding-top: 96px;
  }
  .stage { order: 2; justify-self: center; width: min(40vw, 66svh, 620px); }
  .vf span { display: block; }
  .copy { order: 1; margin-top: 0; }
  .eyebrow::before { display: none; }
  .lede { margin-inline: 0; }
  .pillars, .ctas { justify-content: flex-start; }
}

/* ------------------------------------------------------------------ */
/* Sections                                                             */
/* ------------------------------------------------------------------ */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 12svh, 140px) var(--pad) 0; }
.head { max-width: 760px; margin: 0 auto clamp(36px, 6svh, 60px); text-align: center; }
h2 {
  margin-top: 14px;
  font-size: clamp(1.95rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
html[lang="ar"] h2 { letter-spacing: 0; line-height: 1.35; font-weight: 700; }
.head p:not(.eyebrow) { margin: 16px auto 0; max-width: 54ch; color: var(--muted); line-height: 1.65; font-size: clamp(1rem, 1.3vw, 1.12rem); }
html[lang="ar"] .head p:not(.eyebrow) { line-height: 1.85; }

/* Five equal specialities: 1 column on phones, 2 on tablets (the last one full width),
   and 3 + 2 on wide screens so the row of two fills the width too. */
.tiles { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile { grid-column: span 2; }
  .tile:nth-child(4), .tile:nth-child(5) { grid-column: span 3; }
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 0, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s;
}
.tile:hover { border-color: rgba(255, 122, 0, 0.32); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  color: var(--orange-hi);
  background: linear-gradient(180deg, rgba(255, 122, 0, 0.18), rgba(255, 122, 0, 0.06));
  border: 1px solid rgba(255, 122, 0, 0.3);
}
.ic svg { width: 24px; height: 24px; }
.num { position: absolute; top: 26px; inset-inline-end: 26px; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--faint); }
.tile .kicker { margin-top: 22px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-hi); line-height: 1.4; }
html[lang="ar"] .tile .kicker { letter-spacing: 0; font-size: 14px; font-weight: 700; }
.tile h3 { margin-top: 8px; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.02em; }
html[lang="ar"] .tile h3 { letter-spacing: 0; font-weight: 700; font-size: 1.36rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
html[lang="ar"] .tags li { font-size: 13.5px; }
.tile p { margin-top: 9px; color: var(--muted); line-height: 1.62; font-size: 0.99rem; }
html[lang="ar"] .tile p { line-height: 1.85; }

/* First look */
.first {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(22px, 6vw, 76px);
  border-radius: 34px;
  text-align: center;
  border: 1px solid rgba(255, 122, 0, 0.24);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 122, 0, 0.24), rgba(255, 122, 0, 0.05) 45%, transparent 72%), var(--ink);
}
.first::before {
  /* the same lens rings, faint, behind the form */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -60%;
  width: 900px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 46px);
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%);
  mask: radial-gradient(circle, #000 30%, transparent 70%);
}
.first h2 { margin-top: 14px; }
.first > p:not(.eyebrow) { margin: 16px auto 0; max-width: 46ch; color: var(--muted); line-height: 1.65; font-size: clamp(1rem, 1.3vw, 1.12rem); }
html[lang="ar"] .first > p:not(.eyebrow) { line-height: 1.85; }
.join { display: flex; justify-content: center; margin-top: 34px; }
.btn-lg { height: 62px; padding: 0 36px; font-size: 16.5px; gap: 12px; }
.btn-lg svg { width: 20px; height: 20px; }
.note { margin-top: 16px; font-size: 13px; color: var(--faint); }
html[lang="ar"] .note { font-size: 14px; }
.or { margin-top: 26px; font-size: 14px; color: var(--faint); }
.or a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 122, 0, 0.6); padding-bottom: 1px; direction: ltr; unicode-bidi: isolate; }
.or a:hover { color: var(--orange-hi); }
@media (max-width: 520px) {
  .join .btn { width: 100%; }
}

footer {
  max-width: 1240px;
  margin: clamp(72px, 12svh, 130px) auto 0;
  padding: 30px var(--pad) max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  color: var(--faint);
  font-size: 13.5px;
}
html[lang="ar"] footer { font-size: 14.5px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--orange-hi); }
footer .tag { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Motion                                                               */
/* ------------------------------------------------------------------ */
html.js .rv { opacity: 0; transform: translateY(22px); }
/* Only the hero's words come into focus; large cards just fade and rise (cheaper, and no seams). */
html.js .hero .rv:not(.in) { filter: blur(8px); }
html.js .rv.in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.d1 { --d: 0.08s; }
.d2 { --d: 0.18s; }
.d3 { --d: 0.32s; }
.d4 { --d: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; filter: none; }
  .dot::after, .cue::after { animation: none; }
  .tile, .btn { transition: none; }
}
