:root {
  --c-primary: #00C853;
  --c-primary-dark: #00843D;
  --c-navy: #0D1B2A;
  --c-navy-soft: #132A45;
  --c-orange: #FF6D00;
  --c-bg-light: #F5F7FA;
  --c-text: #1A1A1A;
  --c-text-secondary: #6B7280;
  --c-divider: #E5E7EB;
  --c-score: #00E676;
  --c-warning: #FF3D00;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --font-heading: 'Montserrat', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --container-width: 1240px;
  --header-offset: 96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--c-primary);
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-navy);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#main-content {
  display: block;
  padding-top: var(--header-offset);
  min-height: 70vh;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--narrow {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 24px;
}

.section--wide {
  padding: 88px 6vw;
}

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

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--c-divider);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(13, 27, 42, 0.1);
  border-color: rgba(0, 200, 83, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-navy);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.28);
}

.btn--primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 132, 61, 0.32);
}

.btn--outline {
  border-color: var(--c-navy);
  color: var(--c-navy);
  background: transparent;
}

.btn--outline:hover {
  background: var(--c-navy);
  color: #fff;
}

.btn--orange {
  background: var(--c-orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 109, 0, 0.28);
}

.btn--orange:hover {
  background: #E65100;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 81, 0, 0.3);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  font-size: 14px;
  color: var(--c-text-secondary);
}

.breadcrumbs a {
  color: var(--c-text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--c-primary-dark);
}

.breadcrumbs__sep {
  opacity: 0.45;
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-text);
  font-weight: 600;
}

.pill-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  background: rgba(0, 200, 83, 0.1);
  color: var(--c-primary-dark);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.data-highlight {
  color: var(--c-primary-dark);
  font-weight: 800;
  font-size: 1.15em;
  font-variant-numeric: tabular-nums;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(0, 200, 83, 0.06);
  border: 1px solid rgba(0, 200, 83, 0.15);
  color: var(--c-primary-dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.trust-line::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

/* ===== Skip link ===== */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--c-primary);
  color: var(--c-navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(-220%);
  transition: transform 0.25s ease;
}

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

/* ===== Scroll progress ===== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-score) 100%);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: padding 0.3s ease;
}

.site-header[data-scrolled="true"] {
  padding: 6px 0;
}

.site-header__inner {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

.site-header__island {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 5px;
  border-radius: var(--radius-pill);
  background: rgba(13, 27, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header[data-scrolled="true"] .site-header__island {
  background: rgba(13, 27, 42, 0.95);
  border-color: rgba(0, 200, 83, 0.22);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: #fff;
  transition: background 0.25s ease;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.06);
}

.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--c-score) 0%, var(--c-primary) 50%, var(--c-primary-dark) 100%);
  color: var(--c-navy);
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.35);
  transition: transform 0.25s ease;
}

.brand:hover .brand__mark {
  transform: rotate(-6deg);
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
}

.nav-pill {
  display: flex;
  align-items: center;
}

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

.nav-list__item {
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-link:hover {
  background: rgba(0, 200, 83, 0.16);
  color: #fff;
}

.nav-link[aria-current="page"] {
  background: var(--c-primary);
  color: var(--c-navy);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(0, 200, 83, 0.14);
  border-color: var(--c-primary);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-header__meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}

/* ===== Footer ===== */

.site-footer {
  position: relative;
  margin-top: 72px;
  padding: 72px 0 0;
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary) 42%, rgba(0, 200, 83, 0.1) 85%, transparent 100%);
}

.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand--footer .brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 23px;
  box-shadow: 0 4px 16px rgba(0, 200, 83, 0.28);
}

.brand--footer .brand__name {
  font-size: 24px;
}

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.site-footer__trust {
  background: rgba(0, 200, 83, 0.09);
  border-left: 3px solid var(--c-primary);
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0 0 18px;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__links li {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.25s ease;
}

.site-footer__links a:hover {
  color: var(--c-primary);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Map legend / route components ===== */

.map-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: rgba(13, 27, 42, 0.04);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-secondary);
}

.legend-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color, var(--c-primary));
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.route-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 200, 83, 0.1);
  color: var(--c-primary-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.route-tag::before {
  content: '›';
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
}

/* ===== Media frames ===== */

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0D1B2A 0%, #132A45 55%, #1B3A5C 100%);
}

.media-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 25% 30%, rgba(0, 200, 83, 0.2), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(255, 109, 0, 0.12), transparent 45%),
    repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.03) 20px, rgba(255, 255, 255, 0.03) 21px);
}

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

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

.media-frame--ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-align: center;
  line-height: 1.5;
}

.media-frame img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .site-footer__brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --header-offset: 88px;
  }

  .site-header__inner {
    justify-content: stretch;
  }

  .site-header__island {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 6px;
    gap: 4px;
  }

  .brand {
    flex: 1;
    min-width: 0;
    padding: 4px 8px;
  }

  .brand__name {
    font-size: 18px;
  }

  .nav-pill {
    flex-basis: 100%;
    order: 3;
    display: none;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4px;
    padding: 8px 4px 4px;
  }

  .nav-pill[data-open="true"] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
  }

  .nav-list__item {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

  .site-header__meta {
    display: none;
  }

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

  .section {
    padding: 56px 0;
  }

  .section--wide {
    padding: 64px 5vw;
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 84px;
  }

  .site-header {
    padding: 10px 0;
  }

  .site-header[data-scrolled="true"] {
    padding: 4px 0;
  }

  .site-header__inner {
    padding: 0 14px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
  }

  .brand__name {
    font-size: 17px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__brand-col {
    grid-column: auto;
  }

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

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

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

/* ===== Reduced motion ===== */

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

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