@import url("fonts.css");

/* ==========================================================================
   إتقان — نظام إدارة ومحاكاة نضج التجربة الرقمية
   Dark cyber-futuristic single page. The page commits to one visual world
   (a lit control room), so there is no light theme — but every colour is
   painted explicitly so nothing borrows a host background.
   ========================================================================== */

:root {
  /* Ground */
  --void:     #05070F;
  --void-2:   #070B18;
  --surface:  #0A0F1E;
  --glass:    rgba(148, 196, 255, 0.045);
  --glass-2:  rgba(148, 196, 255, 0.075);
  --edge:     rgba(120, 190, 255, 0.15);
  --edge-hi:  rgba(140, 220, 255, 0.34);

  /* Accents */
  --cyan:     #22E0FF;
  --cyan-dim: #12A6C4;
  --blue:     #3B7DFF;
  --glow:     rgba(34, 224, 255, 0.5);

  /* Ink — blue-biased neutrals, never a flat grey */
  --ink:      #E8F1FF;
  --ink-2:    #B9CCE6;
  --muted:    #8296B4;
  --faint:    #6E82A0;   /* 5.14:1 on --void — the old #566A88 sat at 3.65:1 and failed AA in 11 places */

  /* Status — validated for dark surface #05070F:
     lightness band, chroma, CVD separation and contrast all pass.
     Used as marks only; labels always wear ink tokens beside them. */
  --ok:       #17A673;
  --warn:     #C28600;
  --risk:     #DC3545;

  /* Type */
  --display: "Tajawal", system-ui, sans-serif;
  --body:    "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --fs-hero: clamp(2.1rem, 4.6vw, 3.65rem);
  --fs-h2:   clamp(1.65rem, 3vw, 2.5rem);
  --fs-h3:   1.14rem;
  --fs-body: 1.0625rem;
  --fs-sm:   0.9375rem;
  --fs-xs:   0.8125rem;

  /* Layout */
  --shell: 1240px;
  --pad:   clamp(20px, 5vw, 48px);
  --sec-y: clamp(72px, 9vw, 132px);
  --r:     12px;
  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient field — the "powered on" glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 78% 4%,  rgba(34, 224, 255, 0.16), transparent 62%),
    radial-gradient(52% 40% at 12% 22%, rgba(59, 125, 255, 0.13), transparent 64%),
    radial-gradient(70% 50% at 50% 108%, rgba(34, 224, 255, 0.09), transparent 66%);
}

#grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--cyan); color: #04121A; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 300;
  background: var(--cyan); color: #04121A; padding: 12px 22px; font-size: var(--fs-sm);
}
.skip:focus { inset-inline-start: 0; }

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

/* ==========================================================================
   Shell & sections
   ========================================================================== */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec-y); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
  direction: ltr;
  unicode-bidi: isolate;
}
/* An editorial rule, not a badge. The pulsing dot is reserved for the one
   place it means something — the live indicator on the board. */
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: var(--cyan);
  opacity: 0.7;
  flex: none;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Arabic eyebrow variant — Arabic is cursive, so it never gets letter-spacing */
.eyebrow--ar {
  font-family: var(--display);
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-xs);
  direction: rtl;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.85;
  color: var(--muted);
  font-weight: 300;
  max-width: 62ch;
}

.sec-head { margin-bottom: clamp(38px, 5vw, 60px); max-width: 74ch; }
.sec-head .lede { margin-top: 16px; }

/* ==========================================================================
   Glass panels
   ========================================================================== */

.glass {
  position: relative;
  background: linear-gradient(158deg, var(--glass-2), var(--glass));
  border: 1px solid var(--edge);
  border-radius: var(--r);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

/* A single lit edge along the top — the "screen bezel" cue */
.glass::before {
  content: "";
  position: absolute;
  inset-inline: 14%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge-hi), transparent);
  pointer-events: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(120, 190, 255, 0.1);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 74px; }

.lockup { display: flex; align-items: center; gap: 11px; }
.lockup-text { display: flex; flex-direction: column; }
.lockup .mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(34, 224, 255, 0.45)); }
.lockup-name { font-family: var(--display); font-size: 1.32rem; font-weight: 800; color: var(--ink); line-height: 1; }
.lockup-sub {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.18em;
  color: var(--faint); line-height: 1; margin-top: 6px; text-transform: uppercase;
  direction: ltr; unicode-bidi: isolate;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { font-size: var(--fs-sm); color: var(--muted); position: relative; padding-block: 6px; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: var(--cyan); box-shadow: 0 0 8px var(--glow);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none; width: 42px; height: 42px; padding: 0; cursor: pointer;
  border: 1px solid var(--edge); border-radius: 10px; background: var(--glass);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 17px; height: 1.5px; background: var(--cyan); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer { display: none; border-top: 1px solid var(--edge); background: rgba(7, 11, 24, 0.97); }
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 15px 0; border-bottom: 1px solid rgba(120, 190, 255, 0.09); color: var(--ink-2); }
.drawer li:last-child a { border-bottom: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; font-family: var(--body); font-size: var(--fs-sm);
  font-weight: 500; line-height: 1; cursor: pointer;
  border: 1px solid transparent; border-radius: 11px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--cyan);
  color: #04121A; font-weight: 700;
}
.btn--primary:hover { background: #4DE9FF; }

.btn--ghost { border-color: var(--edge-hi); color: var(--ink); background: var(--glass); }
.btn--ghost:hover { border-color: var(--cyan); background: rgba(34, 224, 255, 0.09); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px); position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.hero h1 { font-size: var(--fs-hero); font-weight: 800; line-height: 1.24; letter-spacing: -0.01em; }
/* Solid, not a gradient wash. An inline underline fragments across line
   breaks in a wrapped Arabic headline, so colour alone carries the emphasis. */
.hero h1 .hl { color: var(--cyan); }
.hero .lede { margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }

.hero-meta {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(120, 190, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 12px 30px;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.hero-meta li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--glow); flex: none;
}

/* ==========================================================================
   Dashboard card — the hero's live artefact
   ========================================================================== */

.board { padding: clamp(18px, 2.2vw, 26px); }

.board-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-bottom: 15px; margin-bottom: 20px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.12);
}
.board-title { font-family: var(--display); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.board-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.12em;
  color: var(--ok); direction: ltr; unicode-bidi: isolate;
}
.board-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px rgba(23, 166, 115, 0.9);
  animation: pulse 2s ease-in-out infinite;
}

.board-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; }

/* Hero number — the index itself, the single most important figure */
.index-read { text-align: center; }
.index-val {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(2.6rem, 5.6vw, 3.6rem);
  line-height: 1; color: var(--cyan);
  text-shadow: 0 0 26px rgba(34, 224, 255, 0.45);
  font-variant-numeric: tabular-nums;
  direction: ltr; unicode-bidi: isolate;
}
.index-val sup { font-size: 0.42em; margin-inline-start: 2px; color: var(--cyan-dim); }
.index-cap { font-size: var(--fs-xs); color: var(--muted); margin-top: 8px; }
.index-delta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-family: var(--body); font-size: var(--fs-xs);
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(23, 166, 115, 0.4);
  background: rgba(23, 166, 115, 0.1);
  color: #3DD9A0;
}
.index-delta .num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

.spark-wrap { margin-top: 20px; }
.chart-cap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.chart-title { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 500; }
.chart-note { font-family: var(--mono); font-size: 0.625rem; color: var(--faint); direction: ltr; unicode-bidi: isolate; }

/* ==========================================================================
   Feature cards
   ========================================================================== */

.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { grid-column: span 2; }
.card:nth-child(1), .card:nth-child(2) { grid-column: span 3; }
.card:nth-child(1) h3, .card:nth-child(2) h3 { font-size: 1.3rem; }

.card { padding: clamp(24px, 2.6vw, 32px); transition: transform 0.35s var(--ease), border-color 0.35s var(--ease); }
.card:hover { transform: translateY(-3px); border-color: var(--edge-hi); }

.card-ico { margin-bottom: 18px; color: var(--cyan); }
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.card p { font-size: var(--fs-sm); color: var(--muted); font-weight: 300; }

.card-idx {
  position: absolute; top: 18px; inset-inline-start: 20px;
  font-family: var(--mono); font-size: 0.625rem; color: var(--faint);
  direction: ltr; unicode-bidi: isolate;
}

/* ==========================================================================
   Pillars — why Itqan
   ========================================================================== */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.pillar { padding: clamp(26px, 3vw, 38px); }
.pillar-rule { display: block; width: 34px; height: 2px; background: var(--cyan); margin-bottom: 20px; }
.pillar h3 { font-size: var(--fs-h3); margin-bottom: 9px; }
.pillar p { font-size: var(--fs-sm); color: var(--muted); font-weight: 300; }

.closing-tag {
  margin-top: clamp(34px, 4vw, 52px);
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r);
  border: 1px solid var(--edge);
  background: linear-gradient(120deg, rgba(34, 224, 255, 0.08), rgba(59, 125, 255, 0.06));
}
.closing-tag p {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem); color: var(--ink);
}
.closing-tag span { color: var(--cyan); }

/* ==========================================================================
   Simulator — the platform's own tool, running in the page
   ========================================================================== */

.sim { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(20px, 3vw, 34px); align-items: stretch; }
.sim-panel { padding: clamp(22px, 2.6vw, 30px); }

.sliders { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
.slider-row label {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 9px;
}
.slider-row output {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--cyan);
  font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 999px; cursor: pointer;
  /* RTL: the browser anchors the thumb to the right edge, so the fill
     must run right-to-left or the two disagree. */
  background: linear-gradient(to left, var(--cyan) var(--fill, 60%), rgba(120, 190, 255, 0.16) var(--fill, 60%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--cyan); border: 3px solid #071322;
  box-shadow: 0 0 12px var(--glow); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; border: 3px solid #071322;
  background: var(--cyan); box-shadow: 0 0 12px var(--glow); cursor: pointer;
}

.sim-out {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(120, 190, 255, 0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sim-level { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.sim-level small { display: block; font-family: var(--body); font-weight: 300; font-size: var(--fs-xs); color: var(--muted); margin-top: 3px; }

.radar-wrap { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; }
.radar-box { position: relative; flex: 1; min-height: 340px; }
#radar { width: 100%; height: 100%; }

/* Legend — required whenever two series share a plot */
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; justify-content: center; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-2); }
.legend .sw { width: 22px; height: 3px; border-radius: 2px; flex: none; }
.legend .sw--now { background: var(--cyan); box-shadow: 0 0 8px var(--glow); }
.legend .sw--target {
  background: repeating-linear-gradient(90deg, var(--muted) 0 5px, transparent 5px 9px);
  box-shadow: none;
}

/* ==========================================================================
   Dashboard preview
   ========================================================================== */

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 22px; }
.kpi dt { font-size: var(--fs-xs); color: var(--muted); font-weight: 300; margin-bottom: 10px; }
.kpi dd {
  margin: 0; font-family: var(--mono); font-weight: 500; font-size: 1.75rem;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
  direction: ltr; unicode-bidi: isolate;
}
.kpi dd sup { font-size: 0.44em; color: var(--muted); margin-inline-start: 2px; }
.kpi-foot { font-family: var(--body); font-size: var(--fs-xs); margin-top: 11px; }
.kpi-foot .num, .index-delta .num {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  direction: ltr; unicode-bidi: isolate;
}
.kpi-foot--up { color: var(--ok); }
.kpi-foot--flat { color: var(--faint); }

.board-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; }
.panel { padding: clamp(20px, 2.3vw, 26px); }
.panel h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.panel-sub { font-size: var(--fs-xs); color: var(--faint); margin-bottom: 20px; }

.trend-box { position: relative; height: 230px; }
#trend { width: 100%; height: 100%; }

/* Tooltip shared by both charts */
.tip {
  position: absolute; pointer-events: none; opacity: 0;
  transform: translate(-50%, -125%);
  background: rgba(6, 12, 26, 0.96);
  border: 1px solid var(--edge-hi);
  border-radius: 9px; padding: 9px 13px;
  font-size: var(--fs-xs); color: var(--ink);
  white-space: nowrap; z-index: 5;
  transition: opacity 0.16s var(--ease);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
}
.tip.is-on { opacity: 1; }
.tip b { font-family: var(--mono); color: var(--cyan); font-variant-numeric: tabular-nums; }

/* Gap & risk register */
.risks { display: flex; flex-direction: column; }
.risk-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px 16px; align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.09);
}
.risk-row:last-child { border-bottom: 0; }
.risk-name { font-size: var(--fs-sm); color: var(--ink-2); }
.risk-meta { font-family: var(--body); font-size: var(--fs-xs); color: var(--faint); margin-top: 3px; }
.risk-meta .code { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }

/* Status chip: colour lives in the dot; the label wears an ink token */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--fs-xs); color: var(--ink-2);
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(120, 190, 255, 0.16);
  background: rgba(148, 196, 255, 0.05);
  white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.chip--ok::before   { background: var(--ok);   box-shadow: 0 0 7px rgba(23, 166, 115, 0.8); }
.chip--warn::before { background: var(--warn); box-shadow: 0 0 7px rgba(194, 134, 0, 0.8); }
.chip--risk::before { background: var(--risk); box-shadow: 0 0 7px rgba(220, 53, 69, 0.8); }

/* Audit log */
.log { display: flex; flex-direction: column; gap: 0; }
.log-row {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid rgba(120, 190, 255, 0.08);
  font-size: var(--fs-xs);
}
.log-row:last-child { border-bottom: 0; }
.log-time { font-family: var(--mono); color: var(--faint); direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.log-txt { color: var(--ink-2); }
.log-txt b { color: var(--cyan); font-weight: 500; }

/* ==========================================================================
   CTA & form
   ========================================================================== */

.cta { padding: clamp(30px, 4vw, 56px); display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cta h2 { font-size: var(--fs-h2); }
.cta .lede { margin-top: 18px; }

.form { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 500; }
.field label span { color: var(--cyan); }

.field input, .field select, .field textarea {
  font-family: var(--body); font-size: var(--fs-sm); font-weight: 300;
  color: var(--ink); background: rgba(5, 9, 20, 0.7);
  border: 1px solid var(--edge); border-radius: 10px;
  padding: 13px 15px; width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 224, 255, 0.14);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: #0A0F1E; color: var(--ink); }

.hp { position: absolute; inset-inline-start: -9999px; }

.form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: var(--fs-xs); color: var(--faint); margin-top: 14px; }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.form-msg { display: none; padding: 13px 18px; border-radius: 10px; font-size: var(--fs-sm); margin-bottom: 18px; border: 1px solid; text-align: start; }
.form-msg.is-on { display: block; }
.form-msg--ok  { color: #5FE3B4; border-color: rgba(23, 166, 115, 0.45); background: rgba(23, 166, 115, 0.1); }
.form-msg--err { color: #FF8A94; border-color: rgba(220, 53, 69, 0.45); background: rgba(220, 53, 69, 0.1); }

/* ==========================================================================
   Footer
   ========================================================================== */

.ftr { border-top: 1px solid rgba(120, 190, 255, 0.1); padding-block: 52px 30px; font-size: var(--fs-sm); }
.ftr-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(28px, 5vw, 60px); padding-bottom: 36px; }
.ftr-blurb { margin-top: 18px; max-width: 40ch; color: var(--muted); font-weight: 300; font-size: var(--fs-sm); }
.ftr h4 { font-size: var(--fs-xs); color: var(--ink); margin-bottom: 16px; font-weight: 700; }
.ftr-links { display: flex; flex-direction: column; gap: 10px; }
.ftr-links a, .ftr-links li { color: var(--muted); font-weight: 300; }
.ftr-links a:hover { color: var(--cyan); }

.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--edge); background: var(--glass); color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }

.ftr-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  align-items: center; padding-top: 24px;
  border-top: 1px solid rgba(120, 190, 255, 0.08);
  font-size: var(--fs-xs); color: var(--faint);
}
.ftr-bottom a:hover { color: var(--cyan); }

/* ==========================================================================
   Motion
   ========================================================================== */

.rise { opacity: 0; transform: translateY(16px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }
.hero .rise { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .social a:hover { transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .hero-grid, .sim, .board-2 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .hdr-cta .btn { display: none; }
  .burger { display: flex; }
  .hdr-in { height: 66px; }
  .board-split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --fs-body: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr; }
  .radar-box { min-height: 290px; }
}

/* ==========================================================================
   Dimension bars — the hero card's readout, CSS-driven so the first
   paint carries data without waiting on a canvas.
   ========================================================================== */

.dims { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.dim-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; align-items: center; }
.dim-name { font-size: var(--fs-xs); color: var(--ink-2); }
.dim-pct {
  font-family: var(--mono); font-size: var(--fs-xs); color: var(--cyan);
  font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate;
}
.dim-track {
  display: block;
  grid-column: 1 / -1; height: 5px; border-radius: 999px;
  background: rgba(120, 190, 255, 0.12); overflow: hidden;
}
.dim-fill {
  display: block;
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 10px rgba(34, 224, 255, 0.45);
}

/* Utilities — the CSP sets style-src 'self', so nothing carries an inline style */
.u-mt-18 { margin-top: 18px; }
.w-55 { width: 55%; }
.w-66 { width: 66%; }
.w-74 { width: 74%; }
.w-78 { width: 78%; }

/* Responsive overrides for the refined grids (must come after the base rules
   so they win on specificity-equal selectors) */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(1), .card:nth-child(2) { grid-column: span 1; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Scroll-spy state, comfortable touch targets, and a tap-friendly chart.
   ========================================================================== */

.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

/* Charts respond to taps; keep the browser's own gestures for scrolling. */
#radar, #trend { touch-action: pan-y; cursor: crosshair; }

/* 38px was under the 44px comfortable-tap guideline */
.social a { width: 44px; height: 44px; }

/* The hero board depicts the product, so say so rather than implying live data */
.board-sample {
  font-size: var(--fs-xs);
  color: var(--faint);
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 190, 255, 0.1);
}

/* Footer and inline legal links were 19–22px tall — fine to read, awkward to
   tap. Padding grows the hit area while the gap shrinks to keep the rhythm. */
.ftr-links { gap: 0; }
.ftr-links a, .ftr-links li { padding-block: 9px; }
.ftr-bottom a { display: inline-block; padding-block: 9px; }
.lockup { padding-block: 4px; }
