:root {
  color-scheme: dark;
  --bg: #0e1010;
  --surface: #161a18;
  --surface-2: #1f2521;
  --ink: #f2f4ec;
  --muted: #aeb8a7;
  --line: #334037;
  --green: #5fb573;
  --cyan: #54d9e8;
  --amber: #f0c15b;
  --red: #ff7d68;
  --violet: #b8a3ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(95, 181, 115, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(84, 217, 232, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 10%, rgba(240, 193, 91, 0.12), transparent 28rem),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto;
  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;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(174, 184, 167, 0.16);
  background: rgba(14, 16, 16, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: #111512;
}

.brand-mark span {
  position: absolute;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
}

.brand-mark span:nth-child(1) {
  transform: translate(-0.48rem, -0.38rem);
}

.brand-mark span:nth-child(2) {
  background: var(--cyan);
  transform: translate(0.44rem, -0.1rem);
}

.brand-mark span:nth-child(3) {
  background: var(--amber);
  transform: translate(-0.04rem, 0.52rem);
}

.main-nav {
  display: flex;
  gap: 0.35rem;
}

.main-nav a {
  border-radius: 6px;
  color: var(--muted);
  padding: 0.55rem 0.7rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(95, 181, 115, 0.1);
  color: var(--ink);
  outline: none;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 4.25rem);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3.5rem) 4rem;
}

.hero-copy {
  max-width: 50rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(4rem, 12vw, 8.75rem);
  letter-spacing: 0;
  line-height: 0.88;
}

#page-title {
  font-size: clamp(3.2rem, 9.6vw, 7rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 45rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-actions a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.hero-actions a:first-child {
  border-color: rgba(95, 181, 115, 0.6);
  background: var(--green);
  color: #10150f;
  font-weight: 800;
}

.topology {
  display: flex;
  min-height: 28rem;
  flex-direction: column;
  border: 1px solid rgba(174, 184, 167, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(84, 217, 232, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.about-lede {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.55;
}

.about-now {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.about-now strong {
  color: var(--ink);
  font-weight: 700;
}

.about-metrics dd {
  font-size: 0.95rem;
}

.about-metrics dd a {
  color: inherit;
  border-bottom: 1px dashed rgba(95, 181, 115, 0.55);
}

.about-metrics dd a:hover,
.about-metrics dd a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--green);
  outline: none;
}

.topology-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.topology-header span:last-child {
  color: var(--green);
}

.topology-grid {
  position: relative;
  min-height: 20rem;
  background-image:
    linear-gradient(rgba(174, 184, 167, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 184, 167, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.node,
.link {
  position: absolute;
}

.node {
  z-index: 2;
  display: grid;
  min-width: 5.7rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  place-items: center;
  background: #101411;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  box-shadow: 0 0 0 6px rgba(14, 16, 16, 0.68);
}

.node-core {
  left: 50%;
  top: 48%;
  border-color: rgba(95, 181, 115, 0.75);
  color: var(--green);
  transform: translate(-50%, -50%);
}

.node-a {
  left: 8%;
  top: 17%;
}

.node-b {
  right: 10%;
  top: 18%;
}

.node-c {
  left: 9%;
  bottom: 17%;
}

.node-d {
  right: 8%;
  bottom: 18%;
}

.node-e {
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
}

.link {
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform-origin: left center;
}

.link-a {
  left: 26%;
  top: 32%;
  width: 10rem;
  transform: rotate(24deg);
}

.link-b {
  right: 24%;
  top: 31%;
  width: 10rem;
  transform: rotate(156deg);
}

.link-c {
  left: 26%;
  bottom: 31%;
  width: 10rem;
  transform: rotate(-24deg);
}

.link-d {
  right: 24%;
  bottom: 31%;
  width: 10rem;
  transform: rotate(204deg);
}

.link-e {
  left: 50%;
  bottom: 18%;
  width: 7rem;
  transform: translateX(-50%) rotate(90deg);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.metrics div {
  padding: 1rem;
}

.metrics div + div {
  border-left: 1px solid var(--line);
}

.metrics dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.metrics dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1.2rem;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(174, 184, 167, 0.18);
  background: #101310;
}

.ticker span {
  min-width: 0;
  padding: 0.9rem clamp(1rem, 4vw, 3.5rem);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.ticker span + span {
  border-left: 1px solid rgba(174, 184, 167, 0.18);
}

.content-band,
.runtime-band,
.signals-band {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3.5rem);
}

.content-band {
  background: #f3f1e7;
  color: #111411;
}

.content-band .eyebrow {
  color: #2c6d3a;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading > p,
.signals-band p {
  color: var(--muted);
}

.content-band .section-heading > p {
  color: #596154;
}

.search-box {
  display: flex;
  align-items: center;
  width: min(100%, 21rem);
  border: 1px solid #cad0c1;
  border-radius: 8px;
  background: #fffdf5;
}

.search-box span {
  padding-left: 0.9rem;
  color: #596154;
  font-size: 1.1rem;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111411;
  padding: 0.75rem 0.9rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-button {
  border: 1px solid #cad0c1;
  border-radius: 8px;
  background: transparent;
  color: #293029;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: #1f7f43;
  background: #dff8df;
  outline: none;
}

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

.article-card {
  display: flex;
  min-height: 18rem;
  border: 1px solid #c9cfbf;
  border-radius: 8px;
  flex-direction: column;
  padding: 1.25rem;
  background: #fffdf5;
}

.article-card[hidden] {
  display: none;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  color: #596154;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.article-card p {
  color: #4f574d;
}

.article-card > a {
  width: fit-content;
  margin-top: auto;
  border-bottom: 2px solid #1f7f43;
  color: #112d18;
  font-weight: 800;
}

.article-card h3 a {
  color: inherit;
}

.article-card h3 a:hover,
.article-card h3 a:focus-visible {
  color: #1f7f43;
  outline: none;
}

.empty-state {
  margin: 1.5rem 0 0;
  color: #596154;
}

.runtime-band {
  background: var(--bg);
}

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

.watchlist div {
  min-height: 11rem;
  border: 1px solid rgba(174, 184, 167, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--surface);
}

.watchlist strong {
  display: block;
  margin: 0.85rem 0 0.5rem;
  font-size: 1.05rem;
}

.watchlist p {
  color: var(--muted);
}

.status-dot {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.status-green {
  background: var(--green);
  box-shadow: 0 0 20px rgba(95, 181, 115, 0.6);
}

.status-blue {
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(84, 217, 232, 0.55);
}

.status-amber {
  background: var(--amber);
  box-shadow: 0 0 20px rgba(240, 193, 91, 0.5);
}

.signals-band {
  background:
    linear-gradient(90deg, rgba(255, 125, 104, 0.14), transparent 46%),
    #171a16;
}

.signals-heading {
  max-width: 48rem;
  margin-bottom: 2.25rem;
}

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

.signal-card {
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  border: 1px solid rgba(174, 184, 167, 0.2);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
}

.signal-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.signal-card h3 a {
  color: inherit;
}

.signal-card h3 a:hover,
.signal-card h3 a:focus-visible {
  color: var(--green);
  outline: none;
}

.signal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.signal-read {
  width: fit-content;
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-read:hover,
.signal-read:focus-visible {
  color: var(--green);
  outline: none;
}

.briefing-form {
  border: 1px solid rgba(174, 184, 167, 0.25);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(14, 16, 16, 0.72);
}

.briefing-form label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.briefing-form div {
  display: flex;
  gap: 0.5rem;
}

.briefing-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d100e;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}

.briefing-form button {
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(95, 181, 115, 0.62);
  border-radius: 8px;
  background: var(--green);
  color: #10150f;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid rgba(174, 184, 167, 0.16);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-header,
  .section-heading,
  .signals-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero,
  .signals-band {
    grid-template-columns: 1fr;
  }

  .topology {
    min-height: 25rem;
  }

  .ticker,
  .article-grid,
  .watchlist,
  .signals-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .main-nav {
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5.2rem);
  }

  #page-title {
    font-size: clamp(2.64rem, 14.4vw, 4.16rem);
  }

  .topology-grid {
    min-height: 18rem;
  }

  .node {
    min-width: 4.8rem;
    font-size: 0.7rem;
  }

  .link {
    opacity: 0.7;
  }

  .ticker,
  .article-grid,
  .watchlist,
  .signals-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .ticker span + span,
  .metrics div + div {
    border-left: 0;
    border-top: 1px solid rgba(174, 184, 167, 0.18);
  }

  .briefing-form div {
    flex-direction: column;
  }

  .briefing-form button {
    width: 100%;
  }
}
