@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("assets/fonts/Cairo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("assets/fonts/Cairo-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cairo"; src: url("assets/fonts/Cairo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* DI palette */
  /* Sampled from the official logo (brand/final/palette.md).
     Indigo, Violet and Blue are for fills, borders and glows only (too dark for text on black).
     Text uses Ice, the greys below, or Aqua (8.4:1 on black). */
  --indigo: #1C2585;
  --violet: #8243CF;
  --blue: #0F4494;
  --aqua: #30AEEB;
  --ice: #FCFBFF;
  --navy: #00031A;
  --black: #000000;

  --text: var(--ice);
  --body: #C9CCD6;
  --muted: #8C93A3;
  --line: rgba(28, 37, 133, 0.75);
  --card: linear-gradient(160deg, rgba(28, 37, 133, 0.22), rgba(0, 3, 26, 0.9) 60%);
  --card-hover: linear-gradient(160deg, rgba(28, 37, 133, 0.38), rgba(0, 3, 26, 0.95) 60%);
  --grad: linear-gradient(120deg, var(--blue) 0%, var(--violet) 100%);
  --tikeez-gradient: linear-gradient(135deg, #BF5AF2 0%, #E23670 100%);

  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 1160px;
  --latin: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: Cairo, "Noto Sans Arabic", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--latin);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: var(--arabic); font-size: 17.5px; line-height: 1.8; }
[dir="ltr"] .t-ar { display: none; }
[dir="rtl"] .t-en { display: none; }
[lang="ar"]:not(html), .official-name [lang="ar"] { font-family: var(--arabic); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
[dir="rtl"] :is(h1, h2, h3, h4) { letter-spacing: 0; line-height: 1.45; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: -999px; top: 0; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 50; background: var(--ice); color: var(--navy); padding: 8px 12px; border-radius: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  display: flex; align-items: center; gap: 0.75rem 2rem;
  padding: 0.7rem 0;
}
.lockup {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 0.15rem; margin-inline-end: auto; flex-shrink: 0;
}
.lockup-mark { height: 74px; width: auto; }
.lockup-cap {
  font-family: var(--latin);
  font-size: 0.5rem; font-weight: 400; line-height: 1;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #D0D0D0; white-space: nowrap;
  margin-inline-start: 0.24em; /* optically centre the tracked caption */
}
[dir="rtl"] .lockup-cap { font-family: var(--arabic); font-size: 0.68rem; letter-spacing: 0.02em; margin: 0; }
.nav-links { display: flex; gap: 0.25rem 1.6rem; flex-wrap: wrap; }
.nav-links a { color: var(--body); font-size: 0.93rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang-btn {
  border: 0; background: transparent; color: var(--muted);
  font: 600 0.78rem/1 var(--latin); padding: 0.45rem 0.8rem; border-radius: 999px; cursor: pointer;
}
.lang-btn[data-lang="ar"] { font-family: var(--arabic); font-size: 0.85rem; }
.lang-btn[aria-pressed="true"] { background: var(--ice); color: var(--navy); }

/* ---------- Layout ---------- */
.hero-inner, .footer-inner { width: min(var(--max), calc(100% - var(--pad) * 2)); margin: 0 auto; }
/* Sections span the full width; the shared container gutter lives in padding-inline,
   so content never touches the edge in LTR or RTL. */
.section {
  --gutter: max(var(--pad), calc((100% - var(--max)) / 2));
  padding-block: clamp(4rem, 9vw, 7.5rem);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--line);
}
.eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 1.1rem;
}
.eyebrow.small { font-size: 0.68rem; color: var(--aqua); margin-bottom: 0.8rem; }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.section-lede { color: var(--body); font-size: 1.1rem; max-width: 60ch; margin-top: 1.3rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(15, 68, 148, 0.38), transparent 70%),
    radial-gradient(40% 50% at 70% 30%, rgba(130, 67, 207, 0.2), transparent 70%),
    var(--black);
}
[dir="rtl"] .hero {
  background:
    radial-gradient(60% 70% at 22% 45%, rgba(15, 68, 148, 0.38), transparent 70%),
    radial-gradient(40% 50% at 30% 30%, rgba(130, 67, 207, 0.2), transparent 70%),
    var(--black);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: 2rem; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero h1 { font-size: clamp(3rem, 7.4vw, 5.6rem); letter-spacing: -0.045em; line-height: 1; }
[dir="rtl"] .hero h1 { line-height: 1.25; }
.official-name { margin-top: 0.8rem; font-size: 1.35rem; color: var(--aqua); font-weight: 600; }
[dir="rtl"] .official-name { font-family: var(--latin); font-size: 1.15rem; letter-spacing: 0.02em; }
.lede { margin-top: 1.6rem; color: var(--body); font-size: 1.15rem; max-width: 44ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; transition: transform .2s, filter .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: var(--ice); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(28, 37, 133, 0.35); }
.hero-mark { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-mark img { width: 100%; mix-blend-mode: screen; } /* black field melts into the glow */

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.statement { padding: 2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.statement h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 500; line-height: 1.35; }
[dir="rtl"] .statement h3 { font-weight: 600; line-height: 1.7; }

/* ---------- Cards ---------- */
.cards { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; gap: 1rem; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 1.6rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card);
  transition: background .25s, border-color .25s;
}
.card:hover { background: var(--card-hover); border-color: rgba(48, 174, 235, 0.45); }
.card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.card p { color: var(--body); font-size: 0.95rem; }
.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--blue), var(--violet));
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ice); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.values .card h3 { color: var(--aqua); }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; margin-top: 3rem; }
.product-card { padding: 2.2rem; border: 1px solid var(--line); border-radius: 24px; background: var(--card); display: flex; flex-direction: column; gap: 1.6rem; }
.tikeez-card { background: radial-gradient(80% 90% at 0% 0%, rgba(191, 90, 242, 0.14), transparent 60%), var(--card); }
[dir="rtl"] .tikeez-card { background: radial-gradient(80% 90% at 100% 0%, rgba(191, 90, 242, 0.14), transparent 60%), var(--card); }
.status { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid rgba(226, 54, 112, 0.5); color: #F08AB0; }
[dir="rtl"] .status { letter-spacing: 0; font-size: 0.85rem; }
.status.quiet { border-color: var(--line); color: var(--muted); }
.product-identity { display: flex; align-items: center; gap: 1.1rem; }
.tikeez-mark { width: 64px; height: 64px; border-radius: 16px; }
.tikeez-name { font-family: var(--latin); font-size: 2.3rem; letter-spacing: -0.04em; line-height: 1; }
.tikeez-tag { font-family: var(--latin); margin-top: 0.35rem; font-size: 1.15rem; background: var(--tikeez-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.btn-tikeez { align-self: flex-start; background: var(--tikeez-gradient); color: #fff; }
.btn-tikeez:hover { filter: brightness(1.08); }
.btn-sub { font-family: var(--latin); font-weight: 500; font-size: 0.8rem; opacity: 0.85; }
.coming-card h3 { font-size: 1.6rem; }
.coming-card p { color: var(--body); }

/* ---------- Approach ---------- */
.sub-title { font-size: 1.35rem; margin: 4rem 0 0; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; }
.steps li { padding-top: 1.2rem; border-top: 2px solid; border-image: var(--grad) 1; }
.step-n { font-family: var(--latin); font-size: 0.8rem; font-weight: 600; color: var(--aqua); letter-spacing: 0.1em; }
.steps h4 { font-size: 1.1rem; margin: 0.4rem 0; }
.steps p { color: var(--body); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.contact-item { padding: 1.8rem; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.label { color: var(--muted); font-size: 0.85rem; margin-bottom: 0.5rem; }
.email, .value { font-size: 1.25rem; font-weight: 500; }
.email a { text-decoration: underline; text-decoration-color: rgba(48, 174, 235, 0.6); text-underline-offset: 6px; overflow-wrap: anywhere; }
.email a:hover { color: var(--aqua); }
.ph {
  display: inline-block; padding: 0.3rem 0.75rem; border: 1px dashed #E0B341; border-radius: 8px;
  color: #F2CF6B; background: rgba(224, 179, 65, 0.08); font-size: 1rem; font-weight: 500;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--black), var(--navy) 40%, #0B0F45); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; flex-wrap: wrap; padding: 3rem 0 3.5rem; }
.by-di { display: flex; align-items: center; gap: 0.9rem; }
.by-di img { height: 52px; width: auto; }
.by-di p { color: var(--muted); font-size: 0.92rem; }
.by-line { color: var(--text) !important; font-family: var(--latin); font-weight: 600; letter-spacing: 0.06em; }
.footer-meta p { color: var(--muted); font-size: 0.9rem; }
.footer-meta { text-align: end; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards-4, .cards-3, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 0.5rem; padding-top: 1.5rem; }
  .hero-mark { order: -1; width: min(78vw, 400px); }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .split, .product-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero, [dir="rtl"] .hero { background: radial-gradient(80% 45% at 50% 22%, rgba(15,68,148,.4), transparent 70%), var(--black); }
}
/* 840px covers 768px tablets: a single-row nav with five links was a few pixels too tight. */
@media (max-width: 840px) {
  html { scroll-padding-top: 150px; }
  .nav-inner { flex-wrap: wrap; padding: 0.6rem 0 0.5rem; }
  .lockup-mark { height: 60px; }
  .lockup-cap { font-size: 0.46rem; letter-spacing: 0.2em; margin-inline-start: 0.2em; }
  [dir="rtl"] .lockup-cap { font-size: 0.62rem; }
  .nav-links {
    order: 3; width: 100%; flex-wrap: nowrap; justify-content: space-between;
    gap: 0.5rem 0.7rem; padding: 0.4rem 0 0.2rem;
    overflow-x: auto; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; font-size: 0.82rem; padding: 0.35rem 0; }
}
@media (max-width: 760px) {
  .cards-4, .cards-3, .steps { grid-template-columns: 1fr; }
  .product-card { padding: 1.6rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: start; }
}
@media (max-width: 420px) {
  .nav-links { gap: 0.45rem 0.55rem; }
  .nav-links a { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }
