:root {
  color-scheme: dark;
  --bg: #000;
  --bg-soft: #030503;
  --panel: #060806;
  --panel-strong: #0b0f0b;
  --ink: #f1fff4;
  --muted: #a7b8ad;
  --soft: #dfffe7;
  --line: #203026;
  --matrix: #00ff00;
  --matrix-soft: #00ff00;
  --cyan: #63d7ff;
  --amber: #ffd166;
  --rose: #ff6b8a;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

@font-face {
  font-family: "poppins-extralight";
  src:
    url("assets/fonts/poppins-display-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "poppins";
  src:
    url("assets/fonts/poppins-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7faf6;
  --bg-soft: #eef6f1;
  --panel: #ffffff;
  --panel-strong: #edf8f1;
  --ink: #17201a;
  --muted: #536258;
  --soft: #22352a;
  --line: #cbd9d0;
  --matrix: #00ff00;
  --matrix-soft: #00ff00;
  --cyan: #0b6c88;
  --amber: #9a6500;
  --rose: #a82f52;
  --shadow: 0 18px 46px rgba(21, 35, 26, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(0, 255, 0, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 255, 0, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 4vw, 34px);
  padding: 7px clamp(16px, 5vw, 64px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--matrix) 52%, transparent);
  backdrop-filter: blur(12px);
  transition: transform 110ms ease-out;
  will-change: transform;
}

.site-header.is-hidden {
  transform: translateY(-110%);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--matrix);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  color: var(--matrix);
  font-family: "poppins-extralight", poppins, sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.header-actions {
  position: relative;
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-content: end;
  justify-self: end;
  gap: 12px;
}

.menu-toggle,
.theme-choice {
  border: 0;
  background: transparent;
  color: var(--matrix);
  cursor: pointer;
  font: inherit;
}

.menu-toggle {
  width: 42px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.menu-toggle-bars {
  display: grid;
  gap: 5px;
  width: 22px;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.32);
}

.theme-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-switch {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  color: color-mix(in srgb, var(--matrix) 44%, var(--muted));
  font-size: 14px;
  font-weight: 260;
  line-height: 1.35;
}

.language-switch a {
  min-width: 0;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-align: left;
  text-decoration: none;
  opacity: 0.62;
}

.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch a[aria-current="true"] {
  color: var(--matrix);
  opacity: 1;
  outline: 0;
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.42);
}

.theme-choice {
  width: auto;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  gap: 6px;
  place-items: center;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: color-mix(in srgb, var(--matrix) 38%, var(--muted));
  line-height: 1;
  opacity: 0.58;
}

.theme-choice > span:first-child {
  display: block;
  width: 18.7px;
  height: 18.7px;
  line-height: 0;
}

.theme-choice svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#theme-light span,
#theme-dark span,
#theme-system span {
  transform: translateY(0) scale(1);
}

.theme-label {
  width: auto;
  height: auto;
  color: var(--soft);
  font-size: 12px;
  font-weight: 260;
  line-height: 1;
}

.theme-choice.is-active {
  color: var(--matrix);
  opacity: 1;
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.42);
}

.theme-choice:hover,
.menu-toggle:hover,
.theme-choice:focus-visible,
.menu-toggle:focus-visible {
  color: var(--matrix);
  opacity: 1;
  outline: 0;
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.42);
}

.site-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  justify-items: start;
  gap: 0;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 32px);
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  backdrop-filter: blur(12px);
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-menu a {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 4px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 260;
  white-space: nowrap;
  text-decoration: none;
}

.menu-group {
  display: grid;
  justify-items: start;
  gap: 0;
}

.menu-group + .menu-group {
  padding-top: 0;
}

.menu-label,
.menu-section-toggle {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 260;
  letter-spacing: 0;
  text-transform: none;
}

.menu-section-toggle {
  width: auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font-family: inherit;
  font-weight: 260;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.menu-section-toggle::after {
  content: none;
}

.menu-section-toggle:hover,
.menu-section-toggle:focus-visible {
  color: var(--matrix);
  outline: 0;
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.42);
}

.menu-panel {
  display: grid;
  gap: 2px;
  padding: 2px 0 3px 8px;
}

.menu-panel[hidden] {
  display: none;
}

.theme-panel .theme-switch {
  align-items: stretch;
  flex-direction: column;
}

.theme-panel .theme-choice {
  width: auto;
  justify-content: flex-start;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--matrix);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: min(620px, calc(100svh - 63px));
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 64px);
  overflow: hidden;
}

.compact-hero {
  min-height: min(560px, calc(92svh - 63px));
}

.split-hero {
  align-items: start;
  gap: clamp(22px, 4vw, 42px);
  min-height: auto;
  padding-top: clamp(46px, 7vw, 76px);
  background: linear-gradient(180deg, var(--bg), var(--panel-strong));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.7));
}

.split-hero::after {
  content: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.92;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(430px, 46svh);
  object-fit: cover;
  object-position: left center;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  color: var(--matrix);
  font-family: "poppins-extralight", poppins, sans-serif;
  font-size: clamp(20px, 4.7vw, 56px);
  font-weight: 700;
  white-space: nowrap;
}

.hero-copy .hero-brand-title {
  margin-bottom: 12px;
  font-size: clamp(56px, 13vw, 152px);
  line-height: 0.86;
  letter-spacing: 0;
  white-space: normal;
}

.hero-question {
  max-width: 980px;
  margin: 0 auto 18px;
  color: var(--matrix);
  font-family: "poppins-extralight", poppins, sans-serif;
  font-size: clamp(24px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.03;
}

.split-hero .hero-copy h1 {
  max-width: 980px;
  margin-inline: auto;
  white-space: normal;
}

.hero-copy p:not(.eyebrow) {
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--matrix);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1180px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 0.99;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  line-height: 1.15;
}

.lede {
  max-width: 700px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto;
}

.split-hero .hero-actions {
  justify-content: center;
}

html.is-restoring-top .hero,
html.is-restoring-top .hero-image,
html.is-restoring-top .hero-copy {
  transform: translateZ(0);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--matrix);
  color: #041007;
  border-color: var(--matrix);
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
}

.content-section,
.tool-band {
  padding: clamp(46px, 7vw, 76px) clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.compact,
.business-section {
  background: #020302;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.front-news {
  background:
    linear-gradient(135deg, rgba(99, 215, 255, 0.07), transparent 38%),
    linear-gradient(180deg, var(--panel-strong), var(--bg));
}

.news-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.news-heading h2 {
  max-width: 760px;
}

.compact-button {
  width: auto;
  min-width: 112px;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 9px 14px;
}

.front-news-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(132px, auto);
  gap: 16px;
}

.front-news-card {
  min-width: 0;
  display: grid;
  grid-column: span 3;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.front-news-card.is-featured {
  grid-column: span 3;
  grid-row: span 2;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 18px;
  padding: 18px;
}

.front-news-card:hover {
  border-color: color-mix(in srgb, var(--matrix) 72%, var(--line));
  background: #090c09;
}

.front-news-card img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.front-news-card.is-featured img {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
}

.front-news-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.front-news-copy h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
}

.front-news-card.is-featured h3 {
  font-size: clamp(27px, 3.3vw, 40px);
}

.front-news-copy h3 a {
  text-decoration: none;
}

.front-news-copy h3 a:hover {
  color: var(--matrix);
}

.front-news-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.news-source {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.portal-map {
  background:
    linear-gradient(135deg, rgba(0, 255, 0, 0.055), transparent 42%),
    var(--bg);
}

.problem-section {
  background:
    linear-gradient(135deg, rgba(255, 210, 77, 0.06), transparent 36%),
    linear-gradient(180deg, #020302, var(--bg));
}

.portal-grid,
.cards,
.news-grid,
.business-grid,
.problem-grid,
.resource-grid {
  display: grid;
  gap: 16px;
}

.portal-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.cards,
.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

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

.card,
.news-item,
.portal-tile,
.problem-card,
.business-grid article,
.resource-card,
.chooser,
.recommendation,
.comparison-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.card,
.news-item,
.business-grid article,
.resource-card {
  min-height: 220px;
  padding: 22px;
}

.news-item {
  display: grid;
  align-content: start;
  gap: 12px;
}

.news-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card:hover,
.news-item:hover,
.portal-tile:hover,
.problem-card:hover,
.business-grid article:hover,
.resource-card:hover,
.comparison-list article:hover,
.template-list li:hover {
  border-color: color-mix(in srgb, var(--matrix) 72%, var(--line));
  background: #090c09;
}

.portal-tile {
  min-height: 250px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  text-decoration: none;
}

.problem-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  text-decoration: none;
}

.portal-tile span,
.problem-card span,
.tag,
.pill,
.news-item span {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--matrix) 58%, var(--line));
  border-radius: 8px;
  color: var(--matrix);
  font-size: 13px;
  font-weight: 850;
}

.portal-tile strong {
  font-size: 23px;
  line-height: 1.12;
}

.problem-card strong {
  color: var(--amber);
  font-size: 23px;
  line-height: 1.12;
}

.portal-tile p,
.problem-card p,
.media-card p,
.business-grid p,
.card p,
.news-item p,
.recommendation p,
.resource-card p,
.template-list,
footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.front-news-copy .news-source,
.news-item .news-source {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.accent-cyan span,
.accent-cyan strong {
  color: var(--cyan);
}

.accent-matrix span,
.accent-matrix strong {
  color: var(--matrix);
}

.accent-amber span,
.accent-amber strong {
  color: var(--amber);
}

.accent-rose span,
.accent-rose strong {
  color: var(--rose);
}

.media-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 350px;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h3,
.news-item h3,
.resource-card h3 {
  margin: 16px 0 10px;
  font-size: 22px;
}

.card h3 a,
.news-item h3 a,
.business-grid h3 a,
.resource-card h3 a,
.comparison-list strong a,
.template-list a {
  text-decoration: none;
}

.card h3 a:hover,
.news-item h3 a:hover,
.business-grid h3 a:hover,
.resource-card h3 a:hover,
.comparison-list strong a:hover,
.template-list a:hover {
  color: var(--matrix);
}

.tool-band {
  background: linear-gradient(135deg, #050705, var(--bg));
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.chooser {
  display: grid;
  gap: 16px;
  padding: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 850;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
}

.recommendation {
  min-height: 260px;
  padding: 24px;
}

.recommendation h3 {
  margin: 16px 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.recommendation ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--soft);
}

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

.comparison-list article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.comparison-list strong {
  color: var(--matrix);
  font-size: 18px;
}

.comparison-list span {
  color: var(--muted);
}

.template-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-list li {
  padding: 16px 18px;
  border-left: 5px solid var(--matrix);
  border-radius: 8px;
  background: var(--panel);
}

.template-list strong {
  color: var(--ink);
}

.table-scroll {
  width: 100%;
  margin: 18px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--ink);
  font-size: 15px;
}

.data-table td {
  color: var(--muted);
  font-size: 15px;
}

.data-table tbody tr:hover {
  background: rgba(0, 255, 0, 0.04);
}

.data-table a {
  font-weight: 850;
}

.benchmark-visuals {
  margin: 34px 0;
}

.benchmark-visuals-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.benchmark-visuals-heading h2 {
  margin-top: 0;
}

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

.score-chart {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(99, 215, 255, 0.06), transparent 38%),
    var(--panel);
}

.score-chart h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.score-chart p {
  min-height: 56px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 16px;
}

.score-bars {
  display: grid;
  gap: 10px;
}

.score-row {
  --score: 0;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(104px, 132px) minmax(88px, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.score-name {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.score-track {
  position: relative;
  height: 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 255, 0, 0.08), rgba(99, 215, 255, 0.04)),
    color-mix(in srgb, var(--panel-strong) 82%, transparent);
}

.score-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--score) * 1%);
  background:
    linear-gradient(90deg, var(--matrix), color-mix(in srgb, var(--cyan) 74%, var(--matrix)));
  box-shadow: 0 0 16px rgba(0, 255, 0, 0.28);
}

.score-value {
  color: var(--matrix);
  font-size: 15px;
  text-align: right;
}

.benchmark-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 34px;
}

.benchmark-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.benchmark-grid h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.benchmark-grid p {
  margin-bottom: 14px;
}

.benchmark-grid a {
  font-weight: 850;
  text-decoration: none;
}

footer {
  padding: 32px clamp(18px, 5vw, 64px) 46px;
  background: #000;
  border-top: 1px solid var(--line);
}

footer p {
  max-width: 900px;
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
  font-size: 0.88rem;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover {
  color: var(--ink);
}

.article-header {
  position: sticky;
}

.article-main,
.index-main {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.index-main {
  width: min(1120px, calc(100% - 36px));
}

.article-main h1,
.index-main h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.article-main h2,
.index-main h2 {
  margin-top: 36px;
}

.article-main p,
.article-main li,
.index-main p,
.index-main li {
  color: var(--muted);
  font-size: 18px;
}

.article-main strong,
.index-main strong {
  color: var(--ink);
}

.article-main a,
.index-main a {
  color: var(--matrix);
}

.article-box {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.business-examples {
  margin-top: 34px;
}

.article-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 8px 0 28px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legacy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.55fr);
  gap: 18px;
  align-items: center;
}

.legacy-box h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.business-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.48fr);
  gap: 18px;
  align-items: center;
}

.legacy-links {
  display: grid;
  gap: 10px;
}

.legacy-links a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--matrix) 44%, var(--line));
  border-radius: 8px;
  color: var(--matrix);
  font-weight: 850;
  text-decoration: none;
}

.legacy-links a:hover {
  background: rgba(0, 255, 0, 0.055);
}

.summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
  padding: 0;
  list-style: none;
}

.summary-chips li {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.summary-chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--matrix);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.summary-chips a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--matrix) 58%, var(--line));
  border-radius: 8px;
  background: rgba(0, 255, 0, 0.045);
  color: var(--matrix);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.jump-links a:hover {
  background: rgba(0, 255, 0, 0.12);
}

.tool-recommendation-grid {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.tool-recommendation {
  scroll-margin-top: 86px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.tool-recommendation h2 {
  margin-top: 14px;
}

.tool-recommendation p:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

  .front-news-grid {
    grid-template-columns: 1fr;
  }

  .front-news-card,
  .front-news-card.is-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-grid,
  .cards,
  .news-grid,
  .problem-grid,
  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .brand-mark {
    font-size: 15px;
    font-weight: 700;
  }

  .header-title {
    font-size: 16px;
    font-weight: 700;
  }

  .menu-toggle {
    font-size: 12px;
    font-weight: 820;
  }

  .header-actions {
    gap: 12px;
  }

  .language-switch {
    gap: 5px;
    font-size: 11px;
  }

  #theme-light span,
  #theme-dark span {
    transform: translateY(0) scale(1);
  }

  .site-menu {
    right: 0;
  }

  .hero,
  .compact-hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.74) 48%, rgba(0, 0, 0, 0.92) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
  }

  .hero-bg {
    object-position: 36% center;
    opacity: 0.76;
  }

  .hero-image {
    max-height: none;
    aspect-ratio: 16 / 10;
    object-position: 36% center;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy h1 {
    font-size: clamp(20px, 5.1vw, 38px);
    white-space: nowrap;
  }

  .split-hero .hero-copy h1 {
    font-size: clamp(34px, 10vw, 44px);
    white-space: normal;
  }

  .hero-actions,
  .portal-grid,
  .cards,
  .news-grid,
  .problem-grid,
  .business-grid,
  .resource-grid,
  .score-chart-grid,
  .benchmark-grid,
  .business-path,
  .legacy-box {
    grid-template-columns: 1fr;
  }

  .news-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .news-heading .compact-button {
    width: fit-content;
    min-width: 0;
  }

  .front-news-card,
  .front-news-card.is-featured {
    grid-template-columns: 1fr;
  }

  .front-news-card img {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .hero-copy h1 {
    white-space: normal;
  }
}

@media (hover: none) and (pointer: coarse) {
  #theme-light span,
  #theme-dark span {
    transform: translateY(0) scale(1);
  }
}
