:root {
  --bg: #0D1117;
  --bg-panel: #161B22;
  --bg-raised: #1C2531;
  --red: #E63946;
  --blue: #00B4D8;
  --gold: #FFD166;
  --green: #2EC4B6;
  --wine: #4A0E0E;
  --violet: #3F2D5A;
  --text: #E6E6E6;
  --muted: #8D99AE;
  --font-heading: Impact, 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-data: 'Roboto Mono', 'Courier New', monospace;
  --container: 1200px;
  --header-h: 78px;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 15% -5%, rgba(230, 57, 70, 0.12), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(0, 180, 216, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.014) 3px 4px);
  mix-blend-mode: overlay;
}

main,
#main-content {
  display: block;
  flex: 1;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--gold);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
}

::selection {
  background: var(--red);
  color: #fff;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
  position: relative;
}

.section--compact {
  padding: 48px 0;
}

.section__header {
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-left: 4px solid var(--red);
  padding-left: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  transform: skewX(-4deg);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.page-header {
  position: relative;
  padding: 56px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18%;
  height: 6px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-header__title {
  font-size: clamp(36px, 7vw, 68px);
  transform: skewX(-4deg);
}

.page-header__meta {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--muted);
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.breadcrumb a[aria-current="page"] {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1001;
  transform: translateY(-240%);
  background: var(--gold);
  color: #000;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(90deg, #0B0F14, #131A24);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--container), 100%);
  height: 100%;
  margin-inline: auto;
  padding: 0 16px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 8px 18px;
  margin-left: -16px;
  background: var(--red);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.03em;
  line-height: 1;
}

.brand:hover {
  color: #fff;
  background: var(--red);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--bg);
  color: var(--gold);
  border: 2px solid var(--gold);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  transform: rotate(-4deg);
}

.brand-text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.brand-text span {
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  transition: background 0.18s, color 0.18s;
}

.nav-link:hover {
  color: #fff;
  background: rgba(230, 57, 70, 0.25);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.35);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 3px;
  background: var(--gold);
  transform: skewX(-28deg);
}

.scroll-progress {
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.scroll-progress::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--blue));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 0;
  transition: transform 0.12s linear;
}

.nav-toggle {
  display: none;
}

.site-footer {
  position: relative;
  margin-top: auto;
  overflow: hidden;
  background: #090D13;
  border-top: 4px solid var(--red);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(0, 180, 216, 0.08), transparent 28rem),
    radial-gradient(circle at 0% 100%, rgba(230, 57, 70, 0.08), transparent 24rem);
  pointer-events: none;
}

.footer-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 14px);
}

.footer-inner {
  position: relative;
  max-width: min(var(--container), 100% - 32px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}

.brand--footer {
  display: inline-flex;
  margin: 0;
  padding: 0;
  background: transparent;
  clip-path: none;
  color: var(--text);
  font-size: 24px;
}

.brand--footer:hover {
  color: var(--text);
  background: transparent;
}

.brand--footer .brand-mark {
  border-color: var(--red);
  color: var(--gold);
  background: var(--bg-panel);
}

.footer-trust {
  margin-top: 18px;
  max-width: 38em;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: grid;
  gap: 8px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s;
}

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

.footer-contact {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 13px;
}

.footer-contact-line {
  margin: 0 0 8px;
}

.footer-contact-line--note {
  color: #B6C2D9;
  line-height: 1.6;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  max-width: min(var(--container), 100% - 32px);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-data);
}

.site-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px;
  box-shadow: var(--shadow);
}

.site-panel--red {
  background: var(--wine);
  border-top: 4px solid var(--red);
}

.site-panel--violet {
  background: var(--violet);
  border-top: 4px solid var(--blue);
}

.site-panel--gold {
  background: var(--bg-panel);
  border-top: 4px solid var(--gold);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid var(--blue);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card--red {
  border-top-color: var(--red);
}

.card--gold {
  border-top-color: var(--gold);
}

.card-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.card-meta {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 13px;
}

.metric {
  background: var(--bg-panel);
  border-left: 4px solid var(--blue);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.metric--gold {
  border-left-color: var(--gold);
}

.metric--red {
  border-left-color: var(--red);
}

.metric--blue {
  border-left-color: var(--blue);
}

.metric-value {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.metric--gold .metric-value {
  color: var(--gold);
}

.metric--red .metric-value {
  color: var(--red);
}

.metric--blue .metric-value {
  color: var(--blue);
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.data-table {
  width: 100%;
  font-size: 14px;
  font-family: var(--font-data);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table thead th {
  color: var(--gold);
  background: var(--bg-panel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
}

.data-table tbody tr {
  background: rgba(13, 17, 23, 0.65);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(22, 27, 34, 0.65);
}

.data-table tbody tr:hover {
  background: rgba(0, 180, 216, 0.10);
}

.data-table td:first-child {
  color: var(--text);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: var(--bg-panel);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  background: var(--gold);
  color: #000;
}

.btn-ghost {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-ghost:hover {
  background: var(--blue);
  color: #fff;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #101A26, var(--bg-panel));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 10px);
}

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

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.tabs {
  position: relative;
}

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.5);
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.tabs__tab {
  appearance: none;
  background: var(--bg-panel);
  color: var(--muted);
  border: 2px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 700;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.tabs__tab:hover {
  color: var(--text);
  border-color: rgba(0, 180, 216, 0.5);
}

.tabs__tab[aria-selected="true"] {
  background: var(--red);
  color: #fff;
}

.tabs__panels {
  position: relative;
}

.tabs__panel {
  padding: 4px 2px 10px;
}

.tabs__panel[hidden] {
  display: none;
}

:root[data-js] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

:root[data-js] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 12px;
  }

  .brand {
    margin-left: -8px;
    padding: 6px 20px 6px 14px;
    font-size: 18px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    color: var(--text);
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
  }

  .nav-toggle:hover {
    color: var(--gold);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .nav-toggle-box {
    display: grid;
    gap: 5px;
    width: 24px;
  }

  .nav-toggle-line {
    display: block;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    z-index: 99;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    width: min(360px, 100vw);
    align-items: flex-start;
    background: linear-gradient(135deg, #10161F, #0B0F14 70%);
    border-left: 3px solid var(--red);
    box-shadow: -10px 10px 0 rgba(0, 0, 0, 0.45);
    clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%);
    transform: translateX(105%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s 0.28s;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }

  .nav-list {
    display: grid;
    align-content: start;
    padding: 28px 24px 40px;
    gap: 6px;
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 0 16px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    clip-path: none;
  }

  .nav-link[aria-current="page"] {
    background: var(--red);
    box-shadow: none;
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 56px 0;
  }

  .page-header {
    padding: 36px 0 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 28px;
  }

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

  .breadcrumb {
    font-size: 13px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  :root[data-js] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress::before {
    transition: none;
  }
}
