:root {
  --navy-950: #08132E;
  --navy-900: #0B1B3F;
  --navy-700: #16305C;
  --orange-500: #FF6B2C;
  --orange-400: #FF8C55;
  --white: #FFFFFF;
  --gray-100: #F2F4F8;
  --gray-300: #D8DEE8;
  --gray-700: #4A5568;
  --gray-900: #1A202C;
  --font-sans: "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", SimSun, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
}

ul,
ol {
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

::selection {
  background: var(--orange-500);
  color: var(--navy-950);
}

[id] {
  scroll-margin-top: 90px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

.main-content {
  display: block;
  flex: 1;
  padding-top: 72px;
}

body.state-hero .main-content {
  padding-top: 0;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.state-hero .site-header {
  background: transparent;
}

body.state-hero .site-header.scrolled {
  background: rgba(11, 27, 63, 0.96);
  box-shadow: 0 4px 24px rgba(8, 19, 46, 0.35);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(8, 19, 46, 0.3);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange-500) 30%, var(--orange-400) 60%, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header.scrolled::after {
  opacity: 0.8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 26px;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange-500);
  border-radius: 4px;
  transform: skewX(-14deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 2px;
  background: var(--orange-500);
  transform: translateY(-50%);
}

.brand-text {
  font-size: 20px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--orange-400);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--white);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 40px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-action:hover {
  border-color: var(--orange-500);
  color: var(--orange-400);
  transform: translateY(-1px);
}

.nav-action--solid {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--navy-950);
}

.nav-action--solid:hover {
  background: var(--orange-400);
  border-color: var(--orange-400);
  color: var(--navy-950);
}

.nav-toggle {
  display: none;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

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

.nav-toggle-label {
  font-size: 14px;
  font-weight: 700;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--orange-500);
  color: var(--navy-950);
  font-weight: 800;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    color: var(--white);
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    background: var(--navy-950);
    padding: 24px 16px 28px;
    border-top: 2px solid var(--orange-500);
    box-shadow: 0 12px 30px rgba(8, 19, 46, 0.35);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-action {
    justify-content: center;
    padding: 13px 18px;
  }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 24px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-500) 30%, var(--orange-400) 60%, transparent);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand-mark {
  position: relative;
  display: block;
  width: 38px;
  height: 28px;
  margin-bottom: 4px;
}

.footer-brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  background: var(--orange-500);
  border-radius: 4px;
  transform: skewX(-14deg);
}

.footer-brand-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 2px;
  background: var(--navy-950);
  transform: translateY(-50%);
}

.footer-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 260px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange-500);
  margin-top: 6px;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--orange-400);
  padding-left: 6px;
}

.footer-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--orange-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-value {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-note {
  width: 100%;
  text-align: center;
}

@media (max-width: 979px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 599px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ===== Common components ===== */
.section {
  padding: 96px 0;
}

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

.section--dark {
  background: var(--navy-950);
  color: var(--white);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-500);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-head__kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.section-head__title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--navy-900);
}

.section--dark .section-head__title {
  color: var(--white);
}

.section-head__desc {
  margin-top: 14px;
  font-size: 16px;
  color: var(--gray-700);
}

.section--dark .section-head__desc {
  color: rgba(255, 255, 255, 0.7);
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

@media (max-width: 767px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(8, 19, 46, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--orange-500);
  box-shadow: 0 10px 28px rgba(8, 19, 46, 0.08);
}

.card__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.card__text {
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--orange-500);
  color: var(--navy-950);
  border: 1px solid transparent;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--orange-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 44, 0.35);
}

.button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button--ghost:hover {
  background: transparent;
  border-color: var(--orange-400);
  color: var(--orange-400);
  box-shadow: none;
}

.button--outline {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.button--outline:hover {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--orange-500);
  border-radius: 40px;
  background: var(--white);
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge--dark {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--orange-500);
}

.badge--accent {
  background: var(--orange-500);
  color: var(--navy-950);
  border-color: transparent;
}

.data-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.data-number {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--navy-900);
}

.section--dark .data-number {
  color: var(--white);
}

.data-label {
  font-size: 14px;
  color: var(--gray-700);
}

.section--dark .data-label {
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-size: 14px;
  color: var(--gray-700);
}

.breadcrumb__item {
  font-weight: 700;
  color: var(--navy-900);
}

.breadcrumb__item:hover {
  color: var(--orange-500);
}

.breadcrumb__separator {
  color: var(--gray-300);
}

.image-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-950));
  color: rgba(255, 255, 255, 0.4);
  isolation: isolate;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 60% 40%, black, transparent 72%);
  mask-image: radial-gradient(circle at 60% 40%, black, transparent 72%);
}

.image-frame__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-400);
}

.editorial-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.8;
  color: var(--navy-700);
}

.reveal-element {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-element.is-revealed {
  opacity: 1;
  transform: none;
}

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

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

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

  .card,
  .button,
  .nav-action,
  .nav-link::after,
  .site-header,
  .site-header::after,
  .footer-links a {
    transition: none;
  }
}
