/* ══════════════════════════════════════════════
   GENERAL SECURITY DIRECTORATE — SULAYMANIYAH
   Cyber / Intelligence agency theme
   ══════════════════════════════════════════════ */

:root {
  --bg: #020407;
  --bg-2: #050b12;
  --bg-3: #081118;
  --panel: rgba(7, 18, 27, 0.78);
  --line: rgba(0, 224, 138, 0.16);
  --line-strong: rgba(0, 224, 138, 0.45);
  --accent: #00e08a;
  --accent-dim: #0a9c66;
  --accent-glow: rgba(0, 224, 138, 0.35);
  --danger: #ff4757;
  --warn: #ffb020;
  --text: #d7e4ec;
  --text-dim: #8aa0ad;
  --mono: "Share Tech Mono", "Noto Kufi Arabic", monospace;
  --latin: "Rajdhani", sans-serif;
  --arabic: "Noto Kufi Arabic", sans-serif;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--arabic), var(--latin), sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--latin), var(--arabic), sans-serif; letter-spacing: 0.02em; }

.mono { font-family: var(--mono); letter-spacing: 0.06em; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

::selection { background: var(--accent); color: #02110a; }

/* subtle global scanline texture + vignette */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  background:
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 3px);
}

/* ══════════ BOOT SCREEN ══════════ */
#boot-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#boot-screen.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(460px, 88vw); text-align: center; }
.boot-shield { display: flex; justify-content: center; margin-bottom: 20px; animation: pulse-glow 1.6s ease-in-out infinite; }
.boot-log {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  text-align: start; min-height: 96px; direction: ltr;
  opacity: 0.9; white-space: pre-line;
}
.boot-bar { height: 3px; background: rgba(0,224,138,0.12); margin-top: 18px; border-radius: 2px; overflow: hidden; }
#boot-bar-fill { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); transition: width 0.2s; }
@keyframes pulse-glow { 0%,100% { filter: drop-shadow(0 0 4px var(--accent-glow)); } 50% { filter: drop-shadow(0 0 16px var(--accent-glow)); } }

/* ══════════ CLASSIFICATION STRIP ══════════ */
.classification-strip {
  background: linear-gradient(90deg, #1c0407, #2a060b 50%, #1c0407);
  border-bottom: 1px solid rgba(255, 71, 87, 0.35);
  color: #ff8a94;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 7px 12px; text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 71, 87, 0.45);
}
.cls-dot { width: 6px; height: 6px; background: var(--danger); border-radius: 50%; box-shadow: 0 0 10px rgba(255,71,87,0.7); animation: blink 1.2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ══════════ HEADER ══════════ */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(4, 7, 10, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; }
/* real agency seal */
.agency-logo {
  border-radius: 50%;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  box-shadow: 0 0 0 1px rgba(0, 224, 138, 0.35), 0 0 18px rgba(0, 224, 138, 0.2);
}
.brand-logo { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.brand-text strong { font-size: 17px; font-weight: 700; color: #fff; }
.brand-text small { font-size: 11px; color: var(--text-dim); }

.main-nav { display: flex; gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
.main-nav a {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  padding: 8px 9px; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--accent); border-color: var(--line); background: rgba(0,224,138,0.05); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lang-btn {
  background: transparent; border: none; color: var(--text-dim);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 7px 12px; cursor: pointer; transition: all 0.2s;
}
.lang-btn + .lang-btn { border-inline-start: 1px solid var(--line); }
.lang-btn:hover { color: var(--accent); }
.lang-btn.active { background: var(--accent); color: #02110a; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--accent); display: block; }

/* ══════════ HERO ══════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,224,138,0.1), transparent 60%), var(--bg);
}

/* radar sweep */
.hero-radar {
  position: absolute; top: 50%; inset-inline-end: -220px;
  width: 640px; height: 640px; border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(0,224,138,0.14);
  background:
    repeating-radial-gradient(circle at center, transparent 0 78px, rgba(0,224,138,0.07) 79px 80px),
    linear-gradient(rgba(0,224,138,0.05) 1px, transparent 1px) center/100% 25%,
    linear-gradient(90deg, rgba(0,224,138,0.05) 1px, transparent 1px) center/25% 100%;
  opacity: 0.7;
  pointer-events: none;
}
.hero-radar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,224,138,0.30), transparent 70deg, transparent 360deg);
  animation: radar-sweep 5s linear infinite;
}
.hero-radar::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent); box-shadow: 0 0 18px var(--accent-glow);
}
@keyframes radar-sweep { to { transform: rotate(360deg); } }

/* giant emblem watermark — real agency seal, ghosted */
.hero-emblem {
  position: absolute; top: 50%; inset-inline-start: -180px;
  transform: translateY(-50%);
  opacity: 0.06; pointer-events: none;
  animation: emblem-pulse 6s ease-in-out infinite;
}
.hero-emblem img { filter: grayscale(35%); border-radius: 50%; }
@keyframes emblem-pulse { 0%,100% { opacity: 0.05; } 50% { opacity: 0.09; } }

/* HUD corner brackets + metadata */
.hud-corner { position: absolute; width: 34px; height: 34px; border: 2px solid var(--accent); opacity: 0.45; z-index: 3; }
.hud-corner.tl { top: 22px; left: 22px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: 22px; right: 22px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: 22px; left: 22px; border-right: none; border-top: none; }
.hud-corner.br { bottom: 22px; right: 22px; border-left: none; border-top: none; }
.hud-meta {
  position: absolute; left: 0; right: 0; text-align: center;
  font-size: 10.5px; letter-spacing: 0.3em; color: rgba(0,224,138,0.4);
  z-index: 3; direction: ltr; pointer-events: none;
}
.hud-meta.hud-top { top: 30px; }
.hud-meta.hud-bottom { bottom: 30px; }
#matrix-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.16; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,224,138,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,224,138,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-scanline {
  position: absolute; left: 0; right: 0; height: 90px; top: -90px;
  background: linear-gradient(to bottom, transparent, rgba(0,224,138,0.06), transparent);
  animation: scan 7s linear infinite;
}
@keyframes scan { to { top: 110%; } }

.hero-content { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  padding: 8px 18px; font-size: 11.5px; color: var(--accent);
  background: rgba(0,224,138,0.07); margin-bottom: 30px;
  letter-spacing: 0.14em;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: blink 1.6s infinite; flex-shrink: 0; }

.hero-title { font-size: clamp(38px, 7vw, 76px); font-weight: 700; line-height: 1.18; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,0.8); }
.hero-title span { display: block; }
.hero-title .accent { color: var(--accent); text-shadow: 0 0 42px var(--accent-glow), 0 0 12px var(--accent-glow); animation: title-flicker 6s infinite; }
@keyframes title-flicker {
  0%, 100% { opacity: 1; }
  91% { opacity: 1; } 92% { opacity: 0.55; } 93% { opacity: 1; }
  95% { opacity: 0.75; } 96% { opacity: 1; }
}
.hero-sub { max-width: 660px; margin: 24px 0 38px; color: var(--text-dim); font-size: 17.5px; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s;
  text-transform: uppercase;
}
html[lang="en"] .btn { letter-spacing: 0.08em; }
.btn-primary { background: var(--accent); color: #02110a; box-shadow: 0 0 28px rgba(0,224,138,0.3); }
.btn-primary:hover { background: #2affab; box-shadow: 0 0 44px rgba(0,224,138,0.5); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line-strong); color: var(--accent); background: rgba(0,224,138,0.04); }
.btn-ghost:hover { background: rgba(0,224,138,0.12); }
.btn-block { width: 100%; }

/* HUD corner brackets — applied to tactical surfaces */
.card::before, .panel::before, .krsc-card::before, .terminal-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 16px 2px,
    linear-gradient(var(--accent), var(--accent)) top left / 2px 16px,
    linear-gradient(var(--accent), var(--accent)) top right / 16px 2px,
    linear-gradient(var(--accent), var(--accent)) top right / 2px 16px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 16px 2px,
    linear-gradient(var(--accent), var(--accent)) bottom left / 2px 16px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 16px 2px,
    linear-gradient(var(--accent), var(--accent)) bottom right / 2px 16px;
  background-repeat: no-repeat;
  opacity: 0.3; transition: opacity 0.25s;
}
.card:hover::before, .krsc-card:hover::before { opacity: 0.95; }
.panel::before, .terminal-card::before { opacity: 0.55; }
.krsc-card, .terminal-card { position: relative; }

.hero-ticker {
  margin-top: 56px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(4,10,14,0.7);
  font-size: 12px; color: var(--accent-dim);
  white-space: nowrap; overflow: hidden; direction: ltr; text-align: left;
}

/* ══════════ STATS ══════════ */
.stats { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 18px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: none; }
.stat-num { font-size: 42px; color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); }
.stat-unit { font-size: 26px; color: var(--accent-dim); }
.stat-label { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text-dim); }

/* ══════════ SECTIONS ══════════ */
.section { padding: 90px 0; border-bottom: 1px solid var(--line); position: relative; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 42px); color: #fff; font-weight: 700;
  position: relative; padding-bottom: 16px; text-transform: uppercase;
}
.section-head h2::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 72px; height: 3px; background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}
.section-head.center h2::after { inset-inline: 0; margin-inline: auto; }
.section-sub { color: var(--text-dim); max-width: 560px; margin: 14px auto 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════ ABOUT ══════════ */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 16px; }
.values { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.values li { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: rgba(0,224,138,0.025); }
.values li > span.mono { color: var(--accent); font-size: 15px; margin-top: 2px; }
.values strong { display: block; color: #fff; font-size: 15.5px; }
.values div span { color: var(--text-dim); font-size: 13.5px; }

.terminal-card { border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: #030a08; box-shadow: 0 0 40px rgba(0,224,138,0.08); }
.terminal-head { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: rgba(0,224,138,0.06); border-bottom: 1px solid var(--line); direction: ltr; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,224,138,0.35); }
.t-dot:first-child { background: var(--danger); opacity: 0.7; }
.t-dot:nth-child(2) { background: var(--warn); opacity: 0.7; }
.t-title { margin-inline-start: auto; font-size: 11px; color: var(--accent-dim); }
.terminal-body { padding: 18px; font-size: 12.5px; line-height: 1.9; color: var(--accent); min-height: 300px; direction: ltr; text-align: left; white-space: pre-wrap; }
.terminal-body::after { content: "█"; animation: blink 1s infinite; }

/* ══════════ HISTORY / TIMELINE ══════════ */
.history { background: var(--bg-2); }
.timeline { position: relative; padding-inline-start: 24px; }
.timeline::before {
  content: ""; position: absolute; inset-block: 8px; inset-inline-start: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), rgba(0,224,138,0.08));
}
.timeline-item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 22px 0; }
.timeline-item::before {
  content: ""; position: absolute; inset-inline-start: -29px; top: 34px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-year { font-size: 24px; color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); padding-top: 4px; }
.timeline-body h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.timeline-body p { color: var(--text-dim); font-size: 14.5px; max-width: 720px; }

/* ══════════ KRSC ══════════ */
.krsc { background: radial-gradient(ellipse 60% 80% at 10% 40%, rgba(0,224,138,0.05), transparent 60%), var(--bg); }
.krsc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.krsc-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 16px; }
.krsc-features { display: grid; gap: 16px; }
.krsc-card {
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 6px; padding: 20px 22px;
  background: linear-gradient(160deg, rgba(0,224,138,0.04), transparent 55%), var(--bg-2);
  transition: border-color 0.25s;
}
.krsc-card:hover { border-color: var(--line-strong); }
.krsc-num { color: var(--accent); font-size: 16px; margin-top: 3px; text-shadow: 0 0 10px var(--accent-glow); }
.krsc-card strong { display: block; color: #fff; font-size: 15.5px; margin-bottom: 4px; }
.krsc-card div span { color: var(--text-dim); font-size: 13.5px; }

/* ══════════ DIRECTORATES ══════════ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: 6px;
  padding: 30px 26px; background: linear-gradient(160deg, rgba(0,224,138,0.04), transparent 55%), var(--bg-2);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,224,138,0.1); }
.card-icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--accent); font-size: 17px; margin-bottom: 20px;
  background: rgba(0,224,138,0.06); text-shadow: 0 0 10px var(--accent-glow);
}
.card h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 14px; }
.card-line { position: absolute; bottom: 0; inset-inline-start: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.35s; box-shadow: 0 0 10px var(--accent-glow); }
.card:hover .card-line { width: 100%; }

/* ══════════ CAPABILITIES ══════════ */
.capabilities { background: var(--bg-2); }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cap-item {
  position: relative; display: flex; align-items: center; gap: 18px;
  border: 1px solid var(--line); padding: 22px 24px;
  background: linear-gradient(160deg, rgba(0,224,138,0.04), transparent 55%), var(--bg-3);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color 0.25s, background 0.25s;
}
.cap-item:hover { border-color: var(--line-strong); background: linear-gradient(160deg, rgba(0,224,138,0.09), transparent 55%), var(--bg-3); }
.cap-code {
  flex-shrink: 0; font-size: 12px; color: var(--accent);
  border: 1px solid var(--line-strong); padding: 8px 12px;
  background: rgba(0,224,138,0.06); text-shadow: 0 0 8px var(--accent-glow);
}
.cap-name { flex: 1; font-size: 15.5px; color: var(--text); font-weight: 600; }
.cap-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--accent); letter-spacing: 0.16em; }
.cap-note { margin-top: 46px; text-align: center; color: var(--warn); font-size: 12.5px; border: 1px dashed rgba(255,176,32,0.35); border-radius: var(--radius); padding: 12px; background: rgba(255,176,32,0.04); }

/* ══════════ ALERTS ══════════ */
.alerts-list { display: grid; gap: 16px; }
.alert-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  border: 1px solid var(--line); border-radius: 6px; padding: 22px 26px; background: var(--bg-2);
  transition: border-color 0.25s;
}
.alert-item:hover { border-color: var(--line-strong); }
.alert-level { font-size: 11px; padding: 5px 12px; border-radius: 100px; border: 1px solid; white-space: nowrap; }
.alert-level.high { color: var(--danger); border-color: rgba(255,71,87,0.5); background: rgba(255,71,87,0.08); }
.alert-level.med { color: var(--warn); border-color: rgba(255,176,32,0.5); background: rgba(255,176,32,0.08); }
.alert-level.info { color: var(--accent); border-color: var(--line-strong); background: rgba(0,224,138,0.07); }
.alert-item h3 { color: #fff; font-size: 16.5px; margin-bottom: 5px; }
.alert-item p { color: var(--text-dim); font-size: 14px; }
.alert-date { color: var(--text-dim); font-size: 12px; }

/* ══════════ REPORT ══════════ */
.report { background: radial-gradient(ellipse 60% 80% at 85% 50%, rgba(0,224,138,0.06), transparent 60%), var(--bg); }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.report-info h2 { font-size: clamp(24px, 3.4vw, 34px); color: #fff; margin: 10px 0 16px; }
.report-info > p { color: var(--text-dim); }
.hotline { display: flex; align-items: center; gap: 18px; margin: 28px 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 18px 24px; background: rgba(0,224,138,0.05); }
.hotline-label { font-size: 12px; color: var(--text-dim); }
.hotline-num { font-size: 40px; color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.report-points { list-style: none; display: grid; gap: 10px; }
.report-points li { color: var(--text-dim); font-size: 14.5px; padding-inline-start: 26px; position: relative; }
.report-points li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }

.panel { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); backdrop-filter: blur(8px); padding: 30px; box-shadow: 0 0 50px rgba(0,224,138,0.06); }
.panel-head { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 13px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

form label { display: block; margin-bottom: 18px; }
form label > span { display: block; font-size: 13.5px; color: var(--text); margin-bottom: 7px; font-weight: 600; }
input, select, textarea {
  width: 100%; background: rgba(2, 8, 12, 0.8); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 14.5px;
  padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,224,138,0.12); }
select { appearance: none; cursor: pointer; }
.form-status { margin-top: 14px; font-size: 12.5px; color: var(--accent); text-align: center; min-height: 18px; }

/* ══════════ FEEDBACK ══════════ */
.feedback { background: var(--bg-2); }
.feedback-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rating-block { margin-bottom: 20px; }
.rating-block > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.stars { display: inline-flex; gap: 6px; direction: ltr; }
.stars button { background: none; border: none; font-size: 30px; color: rgba(138,160,173,0.35); cursor: pointer; transition: color 0.15s, transform 0.15s; line-height: 1; }
.stars button:hover { transform: scale(1.15); }
.stars button.on { color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); }

/* ══════════ FOOTER ══════════ */
.site-footer { background: #030608; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 40px; padding: 60px 24px 44px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.footer-col h4 { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; color: var(--text-dim); font-size: 13.5px; margin-bottom: 9px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom .mono { font-size: 11px; color: var(--text-dim); }
.cls-tag { color: var(--warn) !important; letter-spacing: 0.14em; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1360px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .report-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 100%; inset-inline: 0;
    flex-direction: column; background: rgba(4,7,10,0.98);
    border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .hero-radar, .hero-emblem, .hud-corner, .hud-meta { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-inline-start: none; border-top: 1px solid var(--line); }
  .cards-grid, .cap-grid, .form-row { grid-template-columns: 1fr; }
  .alert-item, .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .section { padding: 64px 0; }
  .brand-text small { display: none; }
}

/* Kurdish hero title needs taller line-height */
html[lang="ckb"] .hero-title { line-height: 1.5; }

/* ══════════ RTL MONO FIXES ══════════
   Share Tech Mono has no Arabic glyphs — Kurdish/Arabic text inside .mono
   falls back to Noto Kufi Arabic (see --mono), and letter-spacing must be
   removed because it visually breaks connected Arabic script. */
html[lang="ckb"] .mono, html[lang="ar"] .mono,
html[lang="ckb"] .classification-strip, html[lang="ar"] .classification-strip,
html[lang="ckb"] .hero-badge, html[lang="ar"] .hero-badge,
html[lang="ckb"] .cap-status, html[lang="ar"] .cap-status,
html[lang="ckb"] .footer-col h4, html[lang="ar"] .footer-col h4 {
  letter-spacing: 0;
}
/* always-English HUD decorations keep their spacing */
html[lang="ckb"] .hud-meta, html[lang="ar"] .hud-meta { letter-spacing: 0.3em; }
html[lang="ckb"] .boot-log, html[lang="ar"] .boot-log,
html[lang="ckb"] .terminal-body, html[lang="ar"] .terminal-body,
html[lang="ckb"] .t-title, html[lang="ar"] .t-title { letter-spacing: 0.06em; }
