/* =========
   THIQA360 — crisp, non-blurry UI
   ========= */

/* Reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid rgba(64, 210, 255, 0.9); outline-offset: 2px; }

:root{
  --bg: #070a12;
  --bg2:#0b1020;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --subtle: rgba(255,255,255,0.10);
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.12);

  --primary: #2fe2ff;
  --primary2:#39ffa7;

  --radius: 18px;
  --radius2: 14px;

  /* Important: NO blur filters here (keeps text sharp on mobile) */
}

body{
  background: radial-gradient(1200px 900px at 20% 10%, rgba(47,226,255,0.18), transparent 60%),
              radial-gradient(900px 700px at 80% 0%, rgba(57,255,167,0.12), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

html[lang="ar"] body{
  font-family: "Noto Kufi Arabic", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(7,10,18,0.72);
  backdrop-filter: saturate(1.2); /* ok */
  -webkit-backdrop-filter: saturate(1.2); /* ok */
}
.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,226,255,0.95), rgba(57,255,167,0.85));
  display: grid;
  place-items: center;
  color: #051018;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand__text{ line-height: 1.1; }
.brand__name{
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 14px;
}
.brand__tag{
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.topbar__actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Pills */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.pill--ghost{
  background: rgba(255,255,255,0.03);
}
.pill--primary{
  border-color: rgba(47,226,255,0.35);
  background: linear-gradient(135deg, rgba(47,226,255,0.20), rgba(57,255,167,0.10));
}
.pill:hover{ border-color: rgba(255,255,255,0.22); }

/* Language sections */
.lang{ display: none; }
.lang--active{ display: block; }

/* Hero */
.hero{
  padding: 56px 0 22px;
}
.hero__grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.eyebrow{
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero__title{
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero__lead{
  margin: 0 0 18px;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.7;
  max-width: 60ch;
}

.cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
.btn--primary{
  border-color: rgba(47,226,255,0.40);
  background: linear-gradient(135deg, rgba(47,226,255,0.22), rgba(57,255,167,0.10));
}
.btn--secondary{
  background: rgba(255,255,255,0.04);
}
.btn:hover{
  border-color: rgba(255,255,255,0.22);
}

/* Facts */
.facts{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.fact{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 12px 14px;
}
.fact__k{
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fact__v{
  margin-top: 6px;
  font-weight: 650;
  color: rgba(255,255,255,0.90);
}

/* Card */
.card{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 18px 18px;
}
.card__title{
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__name{
  font-size: 20px;
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 10px;
}
.card__text{
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

.divider{
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 16px 0;
}

/* Sections */
.section{
  padding: 44px 0;
}
.section--alt{
  padding: 50px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
  border-top: 1px solid rgba(255,255,255,0.06);
}
.section__title{
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.section__lead{
  margin: 0 0 22px;
  color: rgba(255,255,255,0.74);
  line-height: 1.7;
  max-width: 80ch;
}

/* Grids */
.grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Tiles */
.tile{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius2);
  padding: 16px;
}
.tile__num{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-weight: 800;
  margin-bottom: 10px;
}
.tile__title{
  margin: 0 0 6px;
  font-size: 18px;
}
.tile__text{
  margin: 0;
  color: rgba(255,255,255,0.74);
  line-height: 1.7;
}

/* Panels */
.panel{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius2);
  padding: 16px;
}
.panel__title{
  margin: 0 0 8px;
  font-size: 16px;
}
.panel__text{
  margin: 0;
  color: rgba(255,255,255,0.74);
  line-height: 1.7;
}

/* Callout */
.callout{
  margin-top: 18px;
  border: 1px solid rgba(47,226,255,0.22);
  background: linear-gradient(135deg, rgba(47,226,255,0.10), rgba(57,255,167,0.06));
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.callout__title{
  margin: 0 0 6px;
  font-size: 18px;
}
.callout__text{
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  color: rgba(255,255,255,0.72);
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand__mini{
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  margin-right: 8px;
  font-weight: 900;
}
.footer a{
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.30);
}
.footer a:hover{
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.55);
}

/* RTL polish */
html[dir="rtl"] .eyebrow{ letter-spacing: 0.06em; }
html[dir="rtl"] .brand__name{ letter-spacing: 0.10em; }

/* Responsive */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .container{ width: min(1120px, calc(100% - 28px)); }
  .hero{ padding-top: 42px; }
}