:root {
  --bg: #03070c;
  --bg-soft: rgba(5, 14, 23, 0.86);
  --panel: rgba(8, 20, 31, 0.84);
  --panel-strong: rgba(7, 18, 29, 0.96);
  --panel-red: rgba(46, 10, 14, 0.62);
  --line: rgba(108, 223, 255, 0.18);
  --line-strong: rgba(108, 223, 255, 0.4);
  --text: #ecfbff;
  --muted: #8faab7;
  --danger: #ff5f5f;
  --warning: #ffb347;
  --accent: #6cdfff;
  --accent-2: #7ef0c7;
  --glow: rgba(108, 223, 255, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 95, 95, 0.18), transparent 20%),
    radial-gradient(circle at 18% 12%, rgba(108, 223, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(126, 240, 199, 0.1), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(0, 170, 255, 0.08), transparent 28%),
    linear-gradient(145deg, #01050a 0%, #07111d 42%, #030812 72%, #02050a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 223, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 223, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 50%, transparent 50%);
  background-size: 32px 32px, 32px 32px, 100% 4px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent);
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(108, 223, 255, 0.1), transparent 16%),
    linear-gradient(180deg, transparent 0%, rgba(108, 223, 255, 0.04) 48%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 40px;
  position: relative;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 8%, rgba(108, 223, 255, 0.08), transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(255, 95, 95, 0.07), transparent 16%);
  filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.clock-panel,
.metric-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(135deg, rgba(108, 223, 255, 0.03), transparent 44%),
    var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 40px rgba(108, 223, 255, 0.02),
    0 28px 70px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(108, 223, 255, 0.04);
  position: relative;
}

.hero-copy::before,
.clock-panel::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(108, 223, 255, 0.06);
  border-radius: 20px;
  pointer-events: none;
}

.hero-copy::after,
.clock-panel::after,
.metric-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 54px;
  height: 54px;
  border-top: 1px solid rgba(108, 223, 255, 0.18);
  border-right: 1px solid rgba(108, 223, 255, 0.18);
  border-radius: 0 14px 0 0;
  pointer-events: none;
  opacity: 0.7;
}

.hero-copy {
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(140deg, rgba(108, 223, 255, 0.04), transparent 44%),
    linear-gradient(320deg, rgba(255, 95, 95, 0.035), transparent 28%),
    var(--panel);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(108, 223, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 223, 255, 0.18), rgba(108, 223, 255, 0.8));
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    0 0 28px rgba(108, 223, 255, 0.18),
    0 0 42px rgba(108, 223, 255, 0.08);
}

.hero-text,
.card-head p,
.footer p,
.scenario p,
.method-list {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 20px 0 0;
}

.hero-copy .score-strip {
  margin-top: 28px;
}

.clock-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(140deg, rgba(108, 223, 255, 0.05), transparent 38%),
    linear-gradient(320deg, rgba(255, 95, 95, 0.04), transparent 28%),
    var(--panel-strong);
}

.clock-frame {
  position: relative;
  overflow: hidden;
  flex: 1;
  border-radius: 22px;
  padding: 26px;
  background:
    radial-gradient(circle at center, rgba(108, 223, 255, 0.11), transparent 46%),
    radial-gradient(circle at center, rgba(255, 95, 95, 0.12), transparent 66%),
    conic-gradient(from 180deg at 50% 50%, rgba(108, 223, 255, 0.06), transparent 32%, rgba(255, 95, 95, 0.08) 72%, transparent 100%),
    linear-gradient(180deg, rgba(6, 17, 27, 0.98), rgba(2, 8, 14, 0.92));
  border: 1px solid rgba(108, 223, 255, 0.12);
}

.clock-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(108, 223, 255, 0.08), transparent 80%);
  transform: translateX(-100%);
  animation: sweep 8s linear infinite;
}

.clock-frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(108, 223, 255, 0.08);
  pointer-events: none;
}

.clock-frame .clock-label::after {
  content: "LIVE FORECAST";
  display: inline-flex;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(108, 223, 255, 0.16);
  background: rgba(108, 223, 255, 0.08);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  vertical-align: middle;
}

.clock-frame .clock-label::before {
  content: "";
  display: inline-flex;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #7ef0c7;
  box-shadow:
    0 0 12px rgba(126, 240, 199, 0.65),
    0 0 18px rgba(126, 240, 199, 0.32);
}

.clock-label,
.clock-subtext,
.score-strip span,
.axis-meta,
.signal-meta,
.scenario-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.clock-label,
.clock-subtext {
  position: relative;
  z-index: 1;
}

.clock-label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  text-align: center;
}

.analog-clock {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(108, 223, 255, 0.14), transparent 42%),
    radial-gradient(circle at center, rgba(255, 95, 95, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(5, 15, 24, 1), rgba(8, 19, 29, 0.96));
  border: 1px solid rgba(108, 223, 255, 0.12);
  box-shadow:
    inset 0 0 50px rgba(108, 223, 255, 0.1),
    inset 0 0 70px rgba(255, 95, 95, 0.08),
    0 0 30px rgba(108, 223, 255, 0.08),
    0 0 80px rgba(108, 223, 255, 0.06);
}

.clock-ring {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(108, 223, 255, 0.22);
  box-shadow: 0 0 18px rgba(108, 223, 255, 0.1);
}

.clock-ring::before,
.clock-ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(108, 223, 255, 0.1);
}

.clock-ring::after {
  inset: 42px;
  border-style: solid;
  border-color: rgba(255, 95, 95, 0.12);
}

.analog-clock::before {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(108, 223, 255, 0.08);
  box-shadow: inset 0 0 28px rgba(108, 223, 255, 0.06);
}

.clock-marker {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 4px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(108, 223, 255, 1), rgba(236, 251, 255, 0.72));
  transform-origin: center calc(50% + 134px);
  box-shadow: 0 0 10px rgba(108, 223, 255, 0.18);
}

.marker-3 {
  transform: translateX(-50%) rotate(90deg);
}

.marker-6 {
  transform: translateX(-50%) rotate(180deg);
}

.marker-9 {
  transform: translateX(-50%) rotate(270deg);
}

.marker-12 {
  transform: translateX(-50%) rotate(0deg);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 6px;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f6fdff 0%, #6cdfff 30%, #ff5f5f 100%);
  transform-origin: center bottom;
  transform: translateX(-50%) rotate(0deg);
  box-shadow:
    0 0 18px rgba(108, 223, 255, 0.26),
    0 0 26px rgba(255, 95, 95, 0.24);
}

.clock-center {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.18),
    0 0 26px rgba(108, 223, 255, 0.22);
}

.clock-caption {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: #f3fbff;
  text-shadow:
    0 0 18px rgba(108, 223, 255, 0.26),
    0 0 22px rgba(255, 95, 95, 0.22);
  white-space: nowrap;
  background: rgba(3, 10, 18, 0.88);
  border: 1px solid rgba(108, 223, 255, 0.18);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow:
    inset 0 0 18px rgba(108, 223, 255, 0.06),
    0 0 28px rgba(108, 223, 255, 0.08);
}

.clock-subtext {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: #bdefff;
  text-align: center;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.score-strip > div {
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(108, 223, 255, 0.08), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 55%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(108, 223, 255, 0.12);
  box-shadow:
    inset 0 0 18px rgba(108, 223, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.score-strip span {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.score-strip strong {
  font-size: 1.4rem;
  font-family: "Space Grotesk", sans-serif;
  color: #f6fdff;
}

.score-strip > div:nth-child(1),
.score-strip > div:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255, 95, 95, 0.08), rgba(255, 255, 255, 0.015)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

#threatTier.threat-alert {
  color: #ff6b6b;
  text-shadow:
    0 0 16px rgba(255, 95, 95, 0.28),
    0 0 24px rgba(255, 95, 95, 0.18);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.section-grid.secondary {
  grid-template-columns: 1.2fr 0.8fr;
}

.metric-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(140deg, rgba(108, 223, 255, 0.04), transparent 42%),
    var(--panel);
}

.wide {
  min-height: 100%;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 22px;
}

.card-head h2 {
  margin: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f4fbff;
}

.card-head p {
  max-width: 28ch;
  margin: 0;
  line-height: 1.5;
}

.axis-list {
  display: grid;
  gap: 14px;
}

.axis-row,
.scenario {
  border-radius: 20px;
  border: 1px solid rgba(108, 223, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(108, 223, 255, 0.03), transparent 30%),
    rgba(255, 255, 255, 0.02);
}

.axis-row {
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.axis-row::after,
.scenario::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 223, 255, 0.22), transparent 70%);
  opacity: 0.7;
}

.axis-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.axis-name {
  font-weight: 600;
  color: #f1fbff;
}

.axis-meta {
  font-size: 0.68rem;
  color: var(--muted);
}

.bar-shell {
  margin-top: 14px;
  height: 12px;
  background: rgba(108, 223, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 14px rgba(108, 223, 255, 0.08);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--warning), var(--danger));
  box-shadow:
    0 0 14px rgba(108, 223, 255, 0.2),
    0 0 24px rgba(255, 95, 95, 0.14);
}

.scenario-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.scenario {
  padding: 18px;
  min-height: 150px;
}

.scenario-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(108, 223, 255, 0.1);
  color: #d8f8ff;
  font-size: 0.72rem;
  border: 1px solid rgba(108, 223, 255, 0.14);
}

.scenario p {
  margin: 14px 0 0;
  line-height: 1.6;
}

.method-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.risk-chart {
  display: block;
}

.risk-grid {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  border: 1px solid rgba(108, 223, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(108, 223, 255, 0.03), transparent 30%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(108, 223, 255, 0.08), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 95, 95, 0.06), transparent 20%),
    linear-gradient(180deg, rgba(108, 223, 255, 0.03), transparent 30%),
    rgba(255, 255, 255, 0.02);
  box-shadow:
    inset 0 0 80px rgba(108, 223, 255, 0.05),
    inset 0 -30px 80px rgba(255, 95, 95, 0.04);
}

.risk-grid::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(108, 223, 255, 0.05);
  border-radius: 18px;
  pointer-events: none;
}

.risk-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(108, 223, 255, 0.045) 50%, transparent 100%),
    radial-gradient(circle at 50% 100%, rgba(108, 223, 255, 0.08), transparent 38%);
  opacity: 0.48;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--row) - 1) * 14.285%);
  border-top: 1px dashed rgba(108, 223, 255, 0.2);
}

.trend-canvas {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 290px;
  filter: drop-shadow(0 0 18px rgba(108, 223, 255, 0.08));
}

.trend-canvas::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 223, 255, 0.14), rgba(108, 223, 255, 0.45), rgba(255, 95, 95, 0.24));
}

.trend-canvas::after {
  content: "";
  position: absolute;
  inset: 10% 4% 0 4%;
  background:
    linear-gradient(180deg, rgba(108, 223, 255, 0.08), rgba(108, 223, 255, 0.02) 48%, transparent 100%);
  clip-path: polygon(2% 76%, 18% 62%, 34% 46%, 50% 34%, 66% 21%, 84% 9%, 84% 100%, 2% 100%);
  opacity: 0.65;
  filter: blur(4px);
}

.trend-segment {
  position: absolute;
  height: 6px;
  border-radius: 999px;
  box-shadow:
    0 0 18px currentColor,
    0 0 28px currentColor;
  transform-origin: left center;
}

.seg-1 {
  left: 6%;
  top: 82%;
  width: 18%;
  transform: rotate(-20deg);
}

.seg-2 {
  left: 22%;
  top: 68%;
  width: 18%;
  transform: rotate(-23deg);
}

.seg-3 {
  left: 38%;
  top: 50%;
  width: 18%;
  transform: rotate(-18deg);
}

.seg-4 {
  left: 54%;
  top: 35%;
  width: 18%;
  transform: rotate(-17deg);
}

.seg-5 {
  left: 70%;
  top: 21%;
  width: 18%;
  transform: rotate(-12deg);
}

.trend-node {
  position: absolute;
  width: 22px;
  transform: translateX(-50%);
}

.node-1 {
  left: 6%;
  top: 82%;
}

.node-2 {
  left: 22%;
  top: 68%;
}

.node-3 {
  left: 38%;
  top: 50%;
}

.node-4 {
  left: 54%;
  top: 35%;
}

.node-5 {
  left: 70%;
  top: 21%;
}

.node-6 {
  left: 88%;
  top: 10%;
}

.trend-stem {
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: -186px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(108, 223, 255, 0.55), rgba(108, 223, 255, 0.06), transparent 92%);
}

.trend-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 20px currentColor,
    inset 0 0 16px rgba(255, 255, 255, 0.14);
}

.trend-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.24;
}

.trend-axis {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.trend-tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 178px;
  text-align: center;
  padding-top: 8px;
  position: relative;
}

.trend-tick::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  opacity: 0.35;
}

.trend-tick strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  color: #f4fbff;
  text-shadow: 0 0 18px rgba(108, 223, 255, 0.08);
}

.trend-tick span {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.74rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
  max-height: 132px;
  text-transform: uppercase;
}

.impact-low {
  color: #7ef0c7;
  background: linear-gradient(180deg, rgba(126, 240, 199, 0.92), rgba(76, 210, 255, 0.62));
  border-color: rgba(126, 240, 199, 0.34);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(126, 240, 199, 0.16);
}

.impact-guarded {
  color: #6cdfff;
  background: linear-gradient(180deg, rgba(76, 210, 255, 0.96), rgba(96, 169, 255, 0.64));
  border-color: rgba(108, 223, 255, 0.34);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(108, 223, 255, 0.18);
}

.impact-elevated {
  color: #ffd757;
  background: linear-gradient(180deg, rgba(255, 215, 87, 0.96), rgba(255, 179, 71, 0.66));
  border-color: rgba(255, 197, 87, 0.34);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(255, 179, 71, 0.2);
}

.impact-high {
  color: #ff9a56;
  background: linear-gradient(180deg, rgba(255, 154, 86, 0.96), rgba(255, 120, 73, 0.68));
  border-color: rgba(255, 154, 86, 0.34);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 0 24px rgba(255, 140, 80, 0.22);
}

.impact-severe {
  color: #ff7a6c;
  background: linear-gradient(180deg, rgba(255, 110, 96, 0.97), rgba(255, 86, 86, 0.72));
  border-color: rgba(255, 110, 96, 0.34);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 0 26px rgba(255, 95, 95, 0.24);
}

.impact-critical {
  color: #ff6b6b;
  background: linear-gradient(180deg, rgba(255, 95, 95, 1), rgba(255, 61, 61, 0.76));
  border-color: rgba(255, 95, 95, 0.4);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.06),
    0 0 28px rgba(255, 95, 95, 0.3);
}

.impact-low-text {
  color: #7ef0c7;
}

.impact-guarded-text {
  color: #6cdfff;
}

.impact-elevated-text {
  color: #ffd757;
}

.impact-high-text {
  color: #ff9a56;
}

.impact-severe-text {
  color: #ff7a6c;
}

.impact-critical-text {
  color: #ff6b6b;
}

.timeline-table {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.2fr;
  border: 1px solid rgba(108, 223, 255, 0.1);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(108, 223, 255, 0.03), transparent 30%),
    rgba(255, 255, 255, 0.02);
}

.timeline-head,
.timeline-cell {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(108, 223, 255, 0.08);
}

.timeline-head {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 223, 255, 0.04);
}

.timeline-cell {
  color: #eef9ff;
  font-weight: 500;
}

.timeline-table > :nth-last-child(-n + 3) {
  border-bottom: 0;
}

.timeline-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  padding: 0 8px;
  text-align: center;
  border-top: 1px solid rgba(108, 223, 255, 0.08);
  margin-top: 18px;
  padding-top: 22px;
}

.footer::before {
  content: "FORECAST PROTOCOL / MEMEDEJOUR";
  display: block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(108, 223, 255, 0.55);
}

.footer p {
  margin: 0;
  font-size: 0.92rem;
}

.footer-legal {
  margin-top: 14px !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(143, 170, 183, 0.8);
}

@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 920px) {
  .hero,
  .section-grid,
  .section-grid.secondary {
    grid-template-columns: 1fr;
  }

  .card-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 14px;
  }

  .hero-copy,
  .metric-card,
  .clock-panel {
    border-radius: 22px;
  }

  .hero-copy,
  .metric-card {
    padding: 20px;
  }

  .clock-frame {
    padding: 20px;
  }

  .score-strip,
  .timeline-table,
  .scenario-board,
  .risk-chart {
    grid-template-columns: 1fr;
  }

  .risk-grid {
    min-height: 540px;
  }

  .trend-canvas,
  .trend-axis {
    left: 12px;
    right: 12px;
  }

  .trend-axis {
    gap: 8px;
  }

  .trend-tick {
    min-height: 154px;
  }

  .trend-tick strong {
    font-size: 0.72rem;
  }

  .trend-tick span {
    font-size: 0.68rem;
    max-height: 118px;
  }

  .timeline-head {
    display: none;
  }
}
