@font-face {
  font-family: 'ThmanyahSans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/thmanyahsans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'ThmanyahSans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/thmanyahsans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'ThmanyahSans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/thmanyahsans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'ThmanyahSerifDisplay';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/thmanyahserifdisplay-Bold.woff2') format('woff2');
}

:root {
  --navy-950: #031220;
  --navy-900: #061b31;
  --navy-850: #08223d;
  --navy-800: #0a2747;
  --emerald: #16c79a;
  --emerald-700: #0e9f80;
  --gold: #f9a825;
  --white: #ffffff;
  --muted: rgba(255,255,255,.68);
  --quiet: rgba(255,255,255,.48);
  --line: rgba(142,214,255,.16);
  --panel: rgba(7,28,50,.82);
  --panel-soft: rgba(10,39,71,.58);
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0,0,0,.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'ThmanyahSans', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy-950);
  color: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.mono {
  direction: ltr;
  unicode-bidi: embed;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(142,214,255,.13);
  background: rgba(3,18,32,.92);
  backdrop-filter: blur(20px);
}
.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand img {
  height: 52px;
  max-width: 230px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255,255,255,.74);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  padding-block: 26px 23px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  border-color: var(--emerald);
  outline: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(22,199,154,.18);
}
.btn-primary:hover { background: var(--emerald-700); }
.btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.34);
  background: rgba(255,255,255,.06);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.1); }

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(3,18,32,.98), rgba(8,34,61,.92) 52%, rgba(3,18,32,.98)),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(142,214,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142,214,255,.14) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero-wrap {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding: 92px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  align-items: center;
  gap: 58px;
}
.hero-copy h1 {
  font-family: 'ThmanyahSerifDisplay', 'ThmanyahSans', serif;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
  max-width: 760px;
}
.hero-copy h1 span { color: var(--emerald); display: block; }
.hero-copy p {
  margin-top: 24px;
  max-width: 650px;
  color: rgba(255,255,255,.78);
  font-size: 20px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.proof-line {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: rgba(255,255,255,.64);
  font-size: 14px;
}
.proof-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.proof-line span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}
.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-top b { font-size: 22px; }
.panel-top span { color: var(--quiet); font-size: 13px; }
.status-pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(22,199,154,.16);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 700;
}
.watch-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.watch-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid rgba(142,214,255,.11);
  color: rgba(255,255,255,.78);
}
.watch-row:last-child { border-bottom: 0; }
.watch-row b { color: var(--white); }
.watch-row .up { color: var(--emerald); direction: ltr; }
.watch-row .down { color: #ff6f7a; direction: ltr; }
.watch-row[data-live="true"] b::after {
  content: " live";
  color: var(--emerald);
  font-size: 10px;
  font-weight: 800;
  margin-inline-start: 6px;
  text-transform: uppercase;
}
.panel-note {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(249,168,37,.22);
  border-radius: var(--radius);
  color: rgba(255,255,255,.72);
  background: rgba(249,168,37,.07);
}
.live-status {
  margin-top: 16px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.55;
}
.live-status[data-state="live"] { color: rgba(22,199,154,.82); }
.live-status[data-state="stale"] { color: rgba(249,168,37,.82); }
.data-health-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(142,214,255,.15);
  border-radius: var(--radius);
  background: rgba(142,214,255,.10);
}
.data-health-card div {
  min-height: 70px;
  padding: 12px 14px;
  background: rgba(3,18,32,.62);
}
.data-health-card span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
}
.data-health-card b {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.4;
}
.data-health-card b[data-state="live"] { color: var(--emerald); }
.data-health-card b[data-state="stale"] { color: var(--gold); }

.section {
  padding: 86px 0;
  border-bottom: 1px solid rgba(142,214,255,.1);
  background: var(--navy-950);
}
.section-alt { background: #05192d; }
.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-family: 'ThmanyahSerifDisplay', 'ThmanyahSans', serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}
.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.feature-card {
  min-height: 230px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.feature-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22,199,154,.16);
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 22px;
}
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 54px;
  align-items: start;
}
.rule-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(7,28,50,.62);
}
.rule-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.rule-row:last-child { border-bottom: 0; }
.rule-row strong { color: var(--emerald); direction: ltr; text-align: left; }
.rule-row b { display: block; font-size: 19px; margin-bottom: 4px; }
.rule-row p { color: var(--muted); font-size: 15px; }
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric-item {
  min-height: 126px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: rgba(10,39,71,.48);
}
.metric-item:last-child { border-left: 0; }
.metric-item b {
  display: block;
  color: var(--emerald);
  font-size: 32px;
  line-height: 1;
}
.metric-item span { display: block; margin-top: 12px; color: rgba(255,255,255,.78); font-weight: 700; }
.metric-item small { color: var(--quiet); }
.cta-band {
  padding: 74px 0;
  background: linear-gradient(90deg, var(--navy-900), var(--navy-800));
}
.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: rgba(3,18,32,.52);
}
.cta-panel h2 {
  font-family: 'ThmanyahSerifDisplay', 'ThmanyahSans', serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}
.cta-panel p { color: var(--muted); margin-top: 10px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

footer {
  padding: 54px 0 30px;
  background: #020c16;
  color: var(--white);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 38px;
}
.footer-logo img {
  height: 52px;
  max-width: 220px;
  margin-bottom: 14px;
}
footer h4 { font-size: 15px; margin-bottom: 12px; }
footer p,
footer a {
  color: rgba(255,255,255,.68);
  font-size: 14px;
}
footer a { display: block; padding: 4px 0; }
footer a:hover { color: var(--white); }
.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .hero-wrap,
  .split,
  .cta-panel {
    grid-template-columns: 1fr;
  }
  .hero-wrap { min-height: auto; padding-top: 72px; }
  .hero-panel { max-width: 620px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-item:nth-child(2) { border-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-inner { min-height: 66px; }
  .brand img { height: 34px; max-width: 144px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { min-height: 40px; padding-inline: 13px; font-size: 13px; }
  .hero-wrap { padding: 58px 0; gap: 34px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 340px; }
  .proof-line { display: none; }
  .data-health-card { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .grid-3,
  .metric-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-card { min-height: auto; }
  .rule-row { grid-template-columns: 1fr; gap: 8px; }
  .rule-row strong { text-align: right; }
  .metric-item,
  .metric-item:nth-child(2) {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .metric-item:last-child { border-bottom: 0; }
  .cta-panel { padding: 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .copyright { display: block; text-align: center; }
}
