:root {
  color-scheme: dark;
  --night: #06111b;
  --night-2: #0b1a24;
  --panel: rgba(6, 17, 27, 0.82);
  --line: rgba(127, 232, 214, 0.2);
  --text: #edf7ff;
  --muted: #a9bdc9;
  --teal: #72f2d6;
  --green: #7bd87e;
  --amber: #ffbd6a;
  --red: #ff5a4e;
  --panel-2: #25313a;
  --panel-3: #101d25;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 6%, rgba(114, 242, 214, 0.15), transparent 24rem),
    radial-gradient(circle at 86% 10%, rgba(255, 189, 106, 0.14), transparent 22rem),
    linear-gradient(180deg, #06111b 0%, #0b1923 46%, #08141d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 28px));
  margin: 12px auto 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 17, 27, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(114, 242, 214, 0.35);
  border-radius: 8px;
  background: #0f2c38;
  color: var(--teal);
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.05;
}

.brand strong span,
.source-label,
.eyebrow {
  color: var(--teal);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  justify-content: end;
  gap: clamp(16px, 3vw, 34px);
  color: #d6e6eb;
  font-size: 0.92rem;
}

.site-nav a {
  padding-block: 10px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  justify-self: end;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 24, 34, 0.9);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

main {
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto 34px;
}

.hero {
  display: grid;
  min-height: calc(82vh - 126px);
  grid-template-columns: minmax(420px, 0.82fr) minmax(420px, 1fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 12, 23, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 90px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 5.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.hero-copy p:not(.eyebrow) {
  max-width: 580px;
  color: #d2e1e7;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 13px 19px;
  font-weight: 850;
  line-height: 1.1;
}

.button.primary {
  border: 1px solid rgba(114, 242, 214, 0.45);
  background: linear-gradient(135deg, var(--teal), #58d0b9);
  color: #031820;
}

.button.secondary {
  border: 1px solid rgba(237, 247, 255, 0.22);
  background: rgba(237, 247, 255, 0.06);
  color: var(--text);
}

.button.compact {
  min-height: 40px;
  padding: 10px 13px;
  font-size: 0.88rem;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(127, 232, 214, 0.14);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 13, 24, 0.12), transparent 48%),
    linear-gradient(0deg, rgba(3, 13, 24, 0.42), transparent 52%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  filter: saturate(1.06) contrast(1.04);
}

.hero-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  border: 1px solid rgba(255, 189, 106, 0.35);
  border-radius: 8px;
  padding: 10px 13px;
  color: #ffe1b8;
  background: rgba(24, 15, 9, 0.78);
  font-weight: 800;
}

.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-block: 14px;
}

.overview article {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px;
  background: rgba(6, 17, 27, 0.82);
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.overview strong {
  display: block;
  color: var(--amber);
  font-size: 2.3rem;
  line-height: 1;
}

.overview span:last-child {
  color: #d5e1e5;
}

section:not(.hero):not(.overview) {
  scroll-margin-top: 112px;
  padding: clamp(48px, 6vw, 76px) clamp(18px, 3vw, 42px);
}

.daily-brief,
.triage,
.map-section,
.workflows {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(6, 17, 27, 0.76);
  color: var(--text);
}

.section-head {
  margin-bottom: clamp(28px, 5vw, 56px);
}

.daily-brief {
  margin-bottom: 14px;
}

.daily-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.72fr 0.9fr;
  gap: 16px;
}

.daily-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 248px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(37, 49, 58, 0.88);
}

.daily-summary {
  background:
    linear-gradient(135deg, rgba(114, 242, 214, 0.1), transparent 58%),
    rgba(37, 49, 58, 0.88);
}

.daily-card h3 {
  margin-bottom: 0;
}

.daily-card p:not(.eyebrow):not(.status) {
  color: #bfd0d8;
  line-height: 1.55;
}

.daily-card-head,
.new-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.daily-card-head {
  align-items: start;
}

.daily-card-head .eyebrow {
  margin-bottom: 6px;
}

.daily-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.daily-stats div {
  border: 1px solid rgba(127, 232, 214, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(6, 17, 27, 0.56);
}

.daily-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.daily-stats strong {
  display: block;
  margin-top: 6px;
  color: var(--amber);
  font-size: 2rem;
  line-height: 1;
}

.watch-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.watch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.watch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(114, 242, 214, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(114, 242, 214, 0.08);
  color: #d8e9ee;
  font-size: 0.88rem;
  font-weight: 800;
}

.watch-chip button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(237, 247, 255, 0.1);
  color: var(--text);
  cursor: pointer;
}

.new-list {
  display: grid;
  gap: 10px;
}

.new-item {
  align-items: start;
  border-bottom: 1px solid rgba(127, 232, 214, 0.12);
  padding-bottom: 10px;
}

.new-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.new-item strong {
  display: block;
  color: var(--text);
  line-height: 1.25;
}

.new-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

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

.triage {
  margin-bottom: 14px;
}

.triage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.56fr);
  gap: 16px;
  align-items: start;
}

.triage-form,
.triage-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(37, 49, 58, 0.88);
}

.triage-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
}

.triage-result {
  display: grid;
  gap: 20px;
  padding: 20px;
  position: sticky;
  top: 112px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.wide,
.check-grid.wide {
  grid-column: 1 / -1;
}

label,
.score-label,
.result-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(127, 232, 214, 0.18);
  border-radius: 8px;
  background: rgba(6, 17, 27, 0.82);
  color: var(--text);
  font: inherit;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 116px;
  padding: 12px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(114, 242, 214, 0.78);
  outline: 3px solid rgba(114, 242, 214, 0.12);
}

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

.check-grid label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(127, 232, 214, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(6, 17, 27, 0.56);
  color: #d8e9ee;
  letter-spacing: 0;
  text-transform: none;
}

.check-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.score-panel {
  display: grid;
  gap: 8px;
}

.score-panel strong {
  color: var(--amber);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.score-panel span:last-of-type {
  color: #d5e1e5;
  font-weight: 800;
}

.score-meter {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(6, 17, 27, 0.9);
}

.score-meter span {
  display: block;
  width: var(--score-width, 74%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
}

.result-kicker {
  margin-bottom: 8px;
}

.triage-result h3 {
  margin-bottom: 14px;
  color: var(--text);
}

.action-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #c9d9df;
  line-height: 1.5;
}

.triage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 16px;
}

.map-panel,
.brief-panel,
.feed-card,
.workflow-grid article {
  border-radius: 8px;
}

.map-panel {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #08151e;
}

.map-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.1);
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(255, 90, 78, 0.13), 0 0 28px currentColor;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0.28;
}

.hotspot:hover,
.hotspot:focus-visible,
.hotspot.is-active {
  transform: translate(-50%, -50%) scale(1.28);
  box-shadow: 0 0 0 13px color-mix(in srgb, currentColor 18%, transparent), 0 0 38px currentColor;
  outline: 0;
}

.hotspot.critical {
  color: var(--red);
  background: var(--red);
}

.hotspot.high {
  color: var(--amber);
  background: var(--amber);
}

.hotspot.medium {
  color: #ffe45f;
  background: #ffe45f;
}

.hotspot.low {
  color: var(--green);
  background: var(--green);
}

.brief-panel {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--panel-2);
}

.status {
  width: max-content;
  border: 1px solid rgba(123, 216, 126, 0.5);
  border-radius: 999px;
  padding: 5px 9px;
  color: #9af7a0;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-panel h3 {
  color: var(--red);
  font-size: 2.1rem;
  text-transform: uppercase;
}

.region-alerts {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.region-alert {
  border: 1px solid rgba(127, 232, 214, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(6, 17, 27, 0.5);
}

.region-alert strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.region-alert span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

dl {
  margin: 28px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 18px;
}

.feeds {
  color: var(--text);
}

.section-head p:not(.eyebrow) {
  max-width: 760px;
  color: #bfd0d8;
  line-height: 1.6;
}

.live-feed {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(37, 49, 58, 0.78);
}

.feed-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.feed-toolbar h3,
.feed-toolbar .eyebrow {
  margin-bottom: 0;
}

.feed-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.source-filter {
  min-height: 40px;
  border: 1px solid rgba(127, 232, 214, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(6, 17, 27, 0.62);
  color: #d8e9ee;
  font-weight: 850;
}

.source-filter.is-active,
.source-filter:hover,
.source-filter:focus-visible {
  border-color: rgba(114, 242, 214, 0.58);
  color: var(--teal);
}

.feed-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.live-feed-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.live-item {
  display: grid;
  gap: 12px;
  min-height: 224px;
  border: 1px solid rgba(127, 232, 214, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: rgba(6, 17, 27, 0.72);
}

.live-item.is-new {
  border-color: rgba(255, 189, 106, 0.5);
}

.live-item.is-watch-match {
  box-shadow: inset 0 0 0 1px rgba(114, 242, 214, 0.35);
}

.live-item h4 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.live-item p {
  margin: 0;
  color: #bfd0d8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.live-pill {
  width: max-content;
  border: 1px solid rgba(114, 242, 214, 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--teal);
  background: rgba(114, 242, 214, 0.08);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.live-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(237, 247, 255, 0.18);
  border-radius: 8px;
  padding: 9px 11px;
  color: #d8e9ee;
  font-size: 0.88rem;
  font-weight: 850;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--teal);
  border-color: rgba(114, 242, 214, 0.5);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.media-frame {
  overflow: hidden;
  aspect-ratio: 5 / 3;
  background: #07111a;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feed-card > div:not(.media-frame) {
  padding: 20px;
}

.source-label {
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feed-card p:not(.source-label),
.workflow-grid p,
.contact p {
  color: #bfd0d8;
}

.feed-card p:not(.source-label) {
  color: #b9cbd3;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
}


.workflow-grid h3,
.workflow-grid p {
  padding-inline: 18px;
}

.workflow-grid h3 {
  margin-top: 18px;
}

.workflow-grid p {
  padding-bottom: 20px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
}

.contact p {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto 28px;
  padding: 22px 4px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .daily-grid,
  .triage-layout,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .triage-result {
    position: static;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    border-left: 0;
    min-height: 360px;
  }

  .overview,
  .daily-stats,
  .live-feed-list,
  .feed-grid,
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body {
    background:
      radial-gradient(circle at 15% 6%, rgba(114, 242, 214, 0.15), transparent 22rem),
      radial-gradient(circle at 86% 10%, rgba(255, 189, 106, 0.14), transparent 20rem),
      linear-gradient(180deg, #06111b 0%, #0b1923 46%, #08141d 100%);
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 28px));
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 17, 27, 0.96);
    padding: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  h1 {
    font-size: clamp(3.3rem, 16vw, 5rem);
  }

  .overview,
  .daily-grid,
  .daily-stats,
  .triage-form,
  .live-feed-list,
  .feed-grid,
  .workflow-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .feed-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-controls {
    justify-content: start;
  }

  .watch-form {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hero-visual figcaption {
    left: 14px;
    right: auto;
    bottom: 14px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
