:root {
  --bg: #080b10;
  --panel: #101722;
  --panel-soft: #151d2a;
  --ink: #f3f7fb;
  --muted: #9ba8b7;
  --line: rgba(255, 255, 255, 0.13);
  --cyan: #38d9ff;
  --green: #65e6a4;
  --amber: #ffc857;
  --red: #ff5f68;
  --blue: #7795ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.92), rgba(8, 11, 16, 0.62));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  position: sticky;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(56, 217, 255, 0.45);
  background: linear-gradient(135deg, rgba(56, 217, 255, 0.18), rgba(255, 95, 104, 0.16));
  color: var(--cyan);
  font-size: 0.73rem;
  font-weight: 900;
  border-radius: 6px;
}

.nav {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  color: #c9d3de;
  font-size: 0.92rem;
}

.nav a:hover {
  color: var(--cyan);
}

.header-action,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
}

.header-action,
.primary-button {
  background: var(--cyan);
  color: #061016;
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.94) 0%, rgba(8, 11, 16, 0.72) 40%, rgba(8, 11, 16, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 11, 16, 1) 0%, rgba(8, 11, 16, 0) 28%);
  z-index: -1;
}

.hero-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4.3rem, 9vw, 8.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #d7e1eb;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

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

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 58px;
}

.signal-strip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 17, 24, 0.72);
  border-radius: 6px;
  color: var(--muted);
}

.signal-strip strong {
  color: var(--ink);
  font-size: 1.4rem;
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  min-height: 54px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-block: 1px solid var(--line);
  background: #0d1219;
  overflow: hidden;
}

.ticker > span {
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

#ticker-items {
  display: flex;
  gap: 28px;
  color: #dbe6ef;
  white-space: nowrap;
  overflow: hidden;
}

.section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.search-wrap {
  width: min(360px, 100%);
}

input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f151e;
  color: var(--ink);
  outline: none;
}

input[type="search"]:focus {
  border-color: rgba(56, 217, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(56, 217, 255, 0.12);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 22px;
}

.lead-story,
.radar-panel,
.story-card,
.lane,
.brief-card,
.source-item {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.lead-story {
  display: grid;
  align-content: end;
  min-height: 430px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(16, 23, 34, 0.45), rgba(16, 23, 34, 0.98)),
    var(--lead-accent, linear-gradient(135deg, rgba(56, 217, 255, 0.28), rgba(255, 95, 104, 0.18)));
  box-shadow: var(--shadow);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #c7d4df;
  font-size: 0.76rem;
  font-weight: 800;
}

.tag.critical {
  color: #ffd7da;
  border-color: rgba(255, 95, 104, 0.55);
  background: rgba(255, 95, 104, 0.13);
}

.lead-story h3 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.98;
}

.lead-story p,
.story-card p,
.lane p,
.brief-card p,
.source-copy p,
.article-summary {
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: #b8c5d2;
  font-size: 0.88rem;
}

.radar-panel {
  padding: 22px;
}

.radar-panel h3 {
  margin-bottom: 18px;
}

.radar-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.radar-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.risk {
  font-weight: 900;
}

.risk.Critical,
.risk.High {
  color: var(--red);
}

.risk.Medium {
  color: var(--amber);
}

.risk.Low {
  color: var(--green);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.filter-row button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f151e;
  color: #d6e0ea;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter-row button[aria-pressed="true"] {
  background: var(--ink);
  color: #080b10;
}

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

.story-card {
  display: grid;
  gap: 14px;
  min-height: 280px;
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 217, 255, 0.52);
}

.story-card .meta {
  margin-top: auto;
}

.threat-band {
  background: #0c1118;
  border-block: 1px solid var(--line);
}

.lane-grid,
.briefing-grid,
.source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.lane,
.brief-card,
.source-item {
  padding: 20px;
}

.lane-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: rgba(56, 217, 255, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.briefing {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
  align-items: start;
}

.briefing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brief-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.8rem;
}

.sources {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-item {
  display: grid;
  gap: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.article-body {
  background:
    radial-gradient(circle at 75% 10%, rgba(56, 217, 255, 0.12), transparent 28%),
    var(--bg);
}

.article-shell {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 86px;
}

.article-hero {
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(56, 217, 255, 0.1), rgba(255, 95, 104, 0.08)), var(--panel);
  border-radius: 8px;
}

.article-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 0.94;
}

.article-summary {
  font-size: 1.2rem;
}

.article-content {
  margin-top: 34px;
  font-size: 1.08rem;
}

.article-content h2 {
  margin-top: 34px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.article-content ul {
  padding-left: 22px;
}

.source-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.source-links a {
  color: var(--cyan);
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .section-head,
  .layout,
  .briefing,
  .sources {
    grid-template-columns: 1fr;
    display: grid;
  }

  .story-grid,
  .lane-grid,
  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(3.3rem, 19vw, 4.4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .ticker {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }

  .lead-story {
    min-height: 360px;
    padding: 20px;
  }

  .story-grid,
  .lane-grid,
  .briefing-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}
