@import url("fonts.css");
@import url("../icons/regular.css");
@import url("../icons/light.css");
@import url("../icons/fill.css");
@import url("../icons/bold.css");
@import url("../icons/duotone.css");

:root {
  /* Brand */
  --navy-950: #081029;
  --navy-900: #0b1738;
  --navy-800: #10204d;
  --navy-700: #142a66;
  --blue-700: #1942ba;
  --blue-600: #1d4fd8;
  --blue-500: #3b6cf0;
  --blue-100: #dbe7fd;
  --blue-50: #e9effd;
  --gold-600: #b97d0c;
  --gold-500: #e3a11c;
  --gold-400: #f0ba48;
  --gold-50: #fdf5e1;

  /* Status */
  --green-600: #0f8a55;
  --green-500: #16a467;
  --green-50: #e8f6ef;
  --red-600: #c93a3f;
  --red-500: #e0484d;
  --red-50: #fcecec;
  --amber-600: #b46d06;
  --amber-500: #f0a020;
  --amber-50: #fef4e0;

  --purple-600: #6a3ae8;
  --purple-500: #7c4dff;
  --purple-50: #f1ebff;
  --pink-400: #f472b6;

  /* Neutrals: one cool grey family */
  --ink: #0b1533;
  --ink-2: #475069;
  --muted: #7b849a;
  --faint: #a3adbf;
  --hair: rgba(12, 26, 54, .08);
  --line: #e3e7ee;
  --line-2: #d5dbe7;
  --surface: #ffffff;
  --bg: #f5f6f9;
  --bg-2: #ebeff5;

  /* Shape */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;

  /* Depth: one soft light source from above */
  --shadow-xs: 0 1px 2px rgba(10, 31, 74, .04);
  --shadow-soft: 0 0 0 1px var(--hair), 0 1px 2px rgba(10, 31, 74, .03), 0 14px 36px -18px rgba(10, 31, 74, .14);
  --shadow-float: 0 0 0 1px var(--hair), 0 4px 10px -4px rgba(10, 31, 74, .08), 0 32px 64px -28px rgba(10, 31, 74, .3);
  --shadow-pop: 0 0 0 1px var(--hair), 0 30px 70px -24px rgba(6, 19, 48, .45), 0 4px 12px rgba(6, 19, 48, .06);

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Inter", "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --display: "Inter", "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", sans-serif;

  /* Eight-point star tile, used as a quiet texture on navy surfaces */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M36 8 44.2 27.8 64 36 44.2 44.2 36 64 27.8 44.2 8 36 27.8 27.8Z'/%3E%3Cpath d='M16.2 16.2 36 24.4 55.8 16.2 47.6 36 55.8 55.8 36 47.6 16.2 55.8 24.4 36Z'/%3E%3Cpath d='M0 0 8 0M0 0 0 8M72 0 64 0M72 0 72 8M0 72 8 72M0 72 0 64M72 72 64 72M72 72 72 64'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--navy-900); color: #fff; }

:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: var(--r-xs); }

/* Duotone icons stack two glyphs with a left margin, so keep them LTR inside RTL text */
.ph-duotone { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; top: 10px; inset-inline-start: 10px; z-index: 300;
  background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 999px;
  transform: translateY(-300%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* Scroll reveal: only active once JS has marked the document. Uses `translate` so it never fights hover transforms. */
.js [data-reveal] {
  opacity: 0; translate: 0 28px; filter: blur(6px);
  transition: opacity 1s var(--ease-out), translate 1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; translate: none; filter: none; }

.toast {
  position: fixed; inset-block-end: 28px; inset-inline-start: 50%;
  transform: translate(50%, 20px) scale(.96);
  background: rgba(10, 31, 74, .94); color: #fff; backdrop-filter: blur(12px);
  padding: 12px 20px 12px 22px; border-radius: 999px;
  font-weight: 500; font-size: 14.5px;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  z-index: 200; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
}
.toast i { color: var(--gold-400); font-size: 20px; flex: none; }
.toast.show { opacity: 1; transform: translate(50%, 0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; translate: none; filter: none; }
}
