/* ═══ Ink & Illumination — Arabic IDN Intelligence Hub ═══ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,600;9..144,900&family=Reem+Kufi:wght@400;600&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --ink: #0a1424;
  --ink-2: #0f1d33;
  --parchment: #f2e9d8;
  --parchment-dim: #cfc4ad;
  --gold: #c9a227;
  --gold-soft: #e6c65c;
  --emerald: #3e9e86;
  --vermillion: #d9553c;
  --line: rgba(201, 162, 39, .28);
  --serif: 'Fraunces', Georgia, serif;
  --kufi: 'Reem Kufi', 'Noto Kufi Arabic', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23c9a227' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M48 6l10.6 10.6L69 6l6.4 15.4L90 24l-6.4 14.6L90 48l-10.6 10.6L84 69l-15.4 6.4L72 90H48l-10.6-10.6L27 84l-6.4-15.4L6 72V48l10.6-10.6L12 27l15.4-6.4L24 6h24z'/%3E%3Cpath d='M48 30l8 8-8 8-8-8zM48 50l8 8-8 8-8-8z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201,162,39,.14), transparent 60%),
              radial-gradient(ellipse 60% 40% at 85% 110%, rgba(62,158,134,.10), transparent 60%);
}
main, header, footer { position: relative; z-index: 2; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* ── header ── */
header.site {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  background: conic-gradient(from 45deg, var(--gold), var(--emerald), var(--gold));
  clip-path: polygon(50% 0, 63% 25%, 91% 9%, 75% 37%, 100% 50%, 75% 63%, 91% 91%, 63% 75%, 50% 100%, 37% 75%, 9% 91%, 25% 63%, 0 50%, 25% 37%, 9% 9%, 37% 25%);
}
.brand b { font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: .14em; color: var(--parchment); }
.brand b em { color: var(--gold); font-style: normal; }
nav.site { display: flex; gap: 26px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
nav.site a { color: var(--parchment-dim); }
nav.site a:hover { color: var(--gold-soft); text-decoration: none; }

/* ── hero ── */
.hero { padding: clamp(64px, 12vh, 120px) 0 clamp(48px, 8vh, 88px); position: relative; }
.hero .kicker {
  font-family: var(--kufi); font-size: clamp(20px, 3vw, 30px);
  color: var(--gold); letter-spacing: .02em; margin-bottom: 14px;
}
.hero h1 {
  font-weight: 900; font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.04; letter-spacing: -.015em; max-width: 15ch;
}
.hero h1 .gold { color: var(--gold-soft); font-style: italic; font-weight: 600; }
.hero .sub { margin-top: 22px; max-width: 58ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--parchment-dim); }
.hero .chip {
  display: inline-flex; gap: 10px; align-items: center;
  margin-top: 26px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--mono); font-size: 13px; color: var(--emerald);
  background: rgba(10,20,36,.6);
}
.hero .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-block; padding: 13px 26px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--gold); color: var(--ink); background: var(--gold);
  transition: transform .18s, box-shadow .18s; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,162,39,.35); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--gold-soft); }
.btn.ghost:hover { background: rgba(201,162,39,.12); box-shadow: none; }

/* ── reveal ── */
.rv { opacity: 0; transform: translateY(22px); animation: rv .8s cubic-bezier(.2,.7,.3,1) forwards; }
.rv:nth-child(2) { animation-delay: .08s; } .rv:nth-child(3) { animation-delay: .16s; }
.rv:nth-child(4) { animation-delay: .24s; } .rv:nth-child(5) { animation-delay: .32s; }
@keyframes rv { to { opacity: 1; transform: none; } }

/* ── sections ── */
section { padding: clamp(48px, 8vh, 88px) 0; border-top: 1px solid var(--line); }
.sec-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.sec-title { font-weight: 600; font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 28px; letter-spacing: -.01em; }
.sec-title .ar { font-family: var(--kufi); font-weight: 400; color: var(--emerald); font-size: .8em; margin-left: 12px; }

/* ── verify console ── */
.console {
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: clamp(20px, 3vw, 34px); position: relative;
}
.console::before {
  content: 'IDN-LGR · VERIFY'; position: absolute; top: -11px; left: 22px;
  background: var(--ink); padding: 0 10px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .2em; color: var(--gold);
}
.verify-form { display: flex; flex-wrap: wrap; gap: 12px; }
.verify-form input, .verify-form select {
  flex: 1 1 260px; padding: 14px 16px; background: rgba(0,0,0,.35);
  border: 1px solid rgba(201,162,39,.35); color: var(--parchment);
  font-family: var(--mono); font-size: 15px;
}
.verify-form input:focus, .verify-form select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.verify-form select option { background: var(--ink); }
.verdict { margin-top: 20px; font-family: var(--mono); font-size: 14px; display: none; }
.verdict.show { display: block; animation: rv .5s forwards; }
.verdict .badge {
  display: inline-block; padding: 5px 14px; margin-bottom: 10px;
  font-weight: 600; letter-spacing: .1em; border: 1px solid;
}
.verdict.valid .badge { color: var(--emerald); border-color: var(--emerald); background: rgba(62,158,134,.12); }
.verdict.invalid .badge { color: var(--vermillion); border-color: var(--vermillion); background: rgba(217,85,60,.12); }
.verdict .rows { color: var(--parchment-dim); }
.verdict .rows div { padding: 3px 0; border-bottom: 1px dashed rgba(242,233,216,.12); }
.verdict .rows b { color: var(--gold-soft); font-weight: 600; }

/* ── dossier cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line); padding: 22px; background: rgba(15,29,51,.55);
  transition: transform .2s, border-color .2s; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card .num {
  font-family: var(--serif); font-weight: 900; font-size: 44px;
  color: rgba(201,162,39,.35); line-height: 1; margin-bottom: 10px;
}
.card p { font-size: 14.5px; color: var(--parchment-dim); }
.card .tag {
  position: absolute; top: 12px; right: 14px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .14em; color: var(--vermillion); text-transform: uppercase;
}

/* ── data tables ── */
table.data { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13.5px; }
table.data th {
  text-align: left; color: var(--gold); font-weight: 600; letter-spacing: .1em;
  font-size: 11px; text-transform: uppercase; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 9px 12px; border-bottom: 1px solid rgba(242,233,216,.08); color: var(--parchment-dim); }
table.data td.tld { color: var(--parchment); }
table.data tr:hover td { background: rgba(201,162,39,.05); }
.bar { position: relative; display: inline-block; height: 8px; background: var(--emerald); vertical-align: middle; border-radius: 4px 0 0 4px; }
.bar-wrap { width: 130px; height: 8px; background: rgba(242,233,216,.1); border-radius: 4px; display: inline-block; vertical-align: middle; }
.up { color: var(--emerald); } .down { color: var(--vermillion); }

/* ── pricing ── */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.tier {
  border: 1px solid var(--line); padding: 26px 22px; background: rgba(10,20,36,.7);
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.tier:hover { border-color: var(--gold); transform: translateY(-4px); }
.tier.feature { border-color: var(--gold); background: linear-gradient(180deg, rgba(201,162,39,.10), rgba(10,20,36,.8)); }
.tier .name { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.tier .price { font-weight: 900; font-size: 34px; margin: 14px 0 4px; }
.tier .price small { font-size: 14px; font-weight: 300; color: var(--parchment-dim); }
.tier ul { list-style: none; margin: 16px 0 22px; flex: 1; }
.tier li { padding: 7px 0 7px 20px; position: relative; font-size: 14.5px; color: var(--parchment-dim); border-bottom: 1px dashed rgba(242,233,216,.1); }
.tier li::before { content: '◈'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 9px; }
.tier .btn { text-align: center; }

/* ── atlas specifics ── */
.report-meta { font-family: var(--mono); font-size: 12.5px; color: var(--parchment-dim); letter-spacing: .06em; }
.finding {
  border-left: 3px solid var(--gold); padding: 18px 22px; margin: 16px 0;
  background: rgba(15,29,51,.55); font-size: 16px;
}
.finding .fno { font-family: var(--mono); color: var(--gold); font-size: 12px; letter-spacing: .16em; display: block; margin-bottom: 6px; }
.finding.sev { border-left-color: var(--vermillion); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 24px 0; }
.kpi { border: 1px solid var(--line); padding: 18px; text-align: center; background: rgba(15,29,51,.5); }
.kpi .v { font-weight: 900; font-size: 34px; color: var(--gold-soft); }
.kpi .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--parchment-dim); margin-top: 4px; }
pre.code {
  font-family: var(--mono); font-size: 13px; background: rgba(0,0,0,.45);
  border: 1px solid var(--line); padding: 16px 18px; overflow-x: auto; color: var(--emerald);
}
.footnote { font-size: 13px; color: rgba(207,196,173,.65); font-style: italic; }

/* ── footer ── */
footer.site {
  border-top: 1px solid var(--line); padding: 34px clamp(16px, 4vw, 40px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--parchment-dim); letter-spacing: .06em;
}

@media (max-width: 640px) {
  nav.site { display: none; }
  .hero h1 { max-width: none; }
}
