:root {
  color-scheme: dark;
  --bg: #020403;
  --bg-elevated: rgba(4, 15, 12, 0.74);
  --bg-panel: rgba(6, 23, 19, 0.82);
  --line: rgba(116, 255, 189, 0.22);
  --line-strong: rgba(124, 255, 191, 0.46);
  --text: #e9fff4;
  --muted: #9bc7b3;
  --green: #5dff9d;
  --cyan: #3ee7ff;
  --amber: #ffd166;
  --magenta: #ff5ea8;
  --danger: #ff6262;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 0%, rgba(62, 231, 255, 0.12), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(255, 94, 168, 0.08), transparent 28%), var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(120deg, rgba(93, 255, 157, 0.06), transparent 34%),
    linear-gradient(240deg, rgba(255, 209, 102, 0.05), transparent 34%),
    #020403;
}

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

button,
input,
select {
  font: inherit;
}

/* Subtle animated grid instead of the meteor matrix rain. */
#grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  pointer-events: none;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028),
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: screen;
  opacity: 0.28;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 6, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(93, 255, 157, 0.2), rgba(62, 231, 255, 0.08));
  color: var(--green);
  font-family: var(--mono);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(93, 255, 157, 0.9);
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.language-switch button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.language-switch button.active {
  background: rgba(93, 255, 157, 0.16);
  color: var(--green);
}

main {
  position: relative;
  z-index: 2;
}

.section-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(64px, 16vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(93, 255, 157, 0.36);
}

.hero-accent {
  color: var(--cyan);
  text-shadow: 0 0 32px rgba(62, 231, 255, 0.85), 0 0 12px rgba(62, 231, 255, 0.6);
}

.hero-text {
  max-width: 680px;
  margin: 30px 0 0;
  color: #c4e8d7;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  white-space: pre-line;
}

.contact-block {
  max-width: 760px;
  margin: 28px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(93, 255, 157, 0.08), transparent 32%),
    rgba(0, 9, 7, 0.86);
  box-shadow: var(--shadow), inset 0 0 60px rgba(93, 255, 157, 0.05);
  overflow: hidden;
}

.contact-topbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 16, 13, 0.86);
}

.contact-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.contact-topbar span:nth-child(1) {
  background: var(--danger);
}

.contact-topbar span:nth-child(2) {
  background: var(--amber);
}

.contact-topbar span:nth-child(3) {
  background: var(--green);
}

.contact-topbar strong {
  flex: 1;
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.contact-copy {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(93, 255, 157, 0.08);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.contact-copy:hover {
  background: rgba(93, 255, 157, 0.2);
  color: var(--text);
}

.contact-cmd {
  margin: 0;
  padding: 18px;
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(11px, 1.3vw, 14px);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 56px;
}

.metric {
  min-height: 132px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
}

.metric span {
  display: block;
  color: var(--green);
  font-family: var(--mono);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
}

.metric p {
  margin: 13px 0 0;
  color: var(--muted);
}

.cves,
.credits {
  padding: 92px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 680px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 200px 200px;
  gap: 12px;
  margin-bottom: 14px;
}

.controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.controls input,
.controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 10, 8, 0.88);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.controls input:focus,
.controls select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(93, 255, 157, 0.13);
}

.table-shell {
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 8, 6, 0.72);
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid rgba(116, 255, 189, 0.13);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(5, 19, 15, 0.96);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #d9f7e7;
}

td a {
  color: var(--cyan);
}

td a:hover,
td a:focus-visible {
  color: var(--green);
}

.severity {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(93, 255, 157, 0.1);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
}

.severity.critical {
  background: rgba(255, 98, 98, 0.14);
  color: #ff8a8a;
}

.severity.high {
  background: rgba(255, 209, 102, 0.14);
  color: var(--amber);
}

.severity.medium {
  background: rgba(62, 231, 255, 0.12);
  color: var(--cyan);
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.credit-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 146px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
}

/* Line 1: the credit information — wraps freely, never truncated. */
.credit-title {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.credit-title:hover,
.credit-title:focus-visible {
  color: var(--green);
}

/* Line 2: the specific date. */
.credit-date {
  display: block;
  margin-top: 18px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
  color: var(--muted);
  font-family: var(--mono);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.site-footer p {
  margin: 0;
  color: var(--green);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(93, 255, 157, 0.4);
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--green);
}

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

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .metrics,
  .credit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .site-header,
  .section-band,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 48px;
  }

  .metrics,
  .credit-grid {
    grid-template-columns: 1fr;
  }

  .cves,
  .credits {
    padding: 64px 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
