/* ============ Reset & Tokens ============ */
:root {
  --brand-orange: #FF4B1F;
  --deep-blue: #0A1A3F;
  --racing-yellow: #FFC300;
  --ink-black: #111111;
  --pure-white: #FFFFFF;
  --off-white: #F5F5F3;
  --border-gray: #E0E0DD;
  --muted-gray: #6B6B6B;
  --charcoal: #333333;
  --font-display: "Anton", "Impact", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-margin: 4vw;
  --transition: 200ms ease;
  --shadow-panel: 0 4px 24px rgba(10, 26, 63, 0.08);
  --radius: 2px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--pure-white);
  color: var(--charcoal);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

a {
  color: var(--deep-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--transition);
}
a:hover {
  color: var(--brand-orange);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-black);
}

p {
  margin-bottom: 1em;
}
p:last-child {
  margin-bottom: 0;
}

/* ============ Layout Shell ============ */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-margin);
}
.container--wide {
  max-width: 1680px;
}
.container--narrow {
  max-width: 960px;
}

.section {
  padding-block: 72px;
}
.section--tight {
  padding-block: 40px;
}
.section--gray {
  background: var(--off-white);
}
.section--dark {
  background: var(--deep-blue);
  color: var(--pure-white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--pure-white);
}

/* ============ Grid ============ */
.grid {
  display: grid;
  gap: 24px;
}
.grid--gap-lg {
  gap: 40px;
}
.grid--gap-sm {
  gap: 16px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* ============ Typography Components ============ */
.display-title {
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.03;
  letter-spacing: 0.01em;
}
.section-title {
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.1;
}
.section-title--sm {
  font-size: clamp(24px, 2.5vw, 32px);
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 12px;
}
.section-kicker::before {
  content: "//";
  color: var(--brand-orange);
  font-weight: 400;
}

.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--charcoal);
}
.prose h2 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}
.prose p {
  margin-bottom: 1.2em;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose strong {
  color: var(--ink-black);
}
.prose a {
  color: var(--brand-orange);
  font-weight: 600;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid var(--ink-black);
  color: var(--ink-black);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transform: skewX(-8deg);
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
}
.btn > * {
  transform: skewX(8deg);
}
.btn:hover {
  background: var(--ink-black);
  color: var(--pure-white);
  border-color: var(--ink-black);
}
.btn--primary {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.btn--primary:hover {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}
.btn--ghost:hover {
  background: #fff;
  color: var(--deep-blue);
  border-color: #fff;
}
.btn--small {
  padding: 8px 16px;
  font-size: 14px;
}
.btn--block {
  display: flex;
  width: 100%;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 20px 0;
  font-size: 14px;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--brand-orange);
  margin-right: 8px;
  font-weight: 700;
}
.breadcrumb a {
  color: var(--muted-gray);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--brand-orange);
}
.breadcrumb [aria-current="page"] {
  color: var(--ink-black);
  font-weight: 600;
}

/* ============ Panels & Chips & Figures ============ */
.panel {
  background: var(--off-white);
  border: 1px solid var(--border-gray);
  padding: 28px;
}
.panel--white {
  background: var(--pure-white);
}
.panel--dark {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--pure-white);
}
.panel--dark h1,
.panel--dark h2,
.panel--dark h3 {
  color: var(--pure-white);
}
.panel--orange-top {
  border-top: 5px solid var(--brand-orange);
}
.panel--yellow-top {
  border-top: 5px solid var(--racing-yellow);
}
.panel--skew {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--off-white);
  border: 1px solid var(--border-gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted-gray);
  white-space: nowrap;
}
.meta-chip--orange {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.meta-chip--yellow {
  background: var(--racing-yellow);
  border-color: var(--racing-yellow);
  color: var(--ink-black);
}
.meta-chip--blue {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}

.data-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-black);
}
.data-num--orange {
  color: var(--brand-orange);
}

.figure {
  position: relative;
  overflow: hidden;
  background: var(--off-white);
  aspect-ratio: 16 / 9;
}
.figure--ratio-4-3 {
  aspect-ratio: 4 / 3;
}
.figure--ratio-1-1 {
  aspect-ratio: 1 / 1;
}
.figure--ratio-21-9 {
  aspect-ratio: 21 / 9;
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(10, 26, 63, 0.05) 12px 24px),
    var(--off-white);
  color: var(--muted-gray);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
}

/* ============ Skip Link ============ */
.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 200;
  background: var(--ink-black);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transform: skewX(-6deg);
  transition: top var(--transition);
}
.skip-link:focus-visible {
  top: 12px;
}

/* ============ Topbar ============ */
.site-topbar {
  position: relative;
  z-index: 120;
  background: var(--deep-blue);
  color: var(--pure-white);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-topbar[data-closed] {
  display: none;
}

.topbar-inner {
  max-width: 1680px;
  margin-inline: auto;
  padding: 8px var(--page-margin);
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: skewX(-8deg);
}

.topbar-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-src {
  white-space: nowrap;
  padding-right: 56px;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.topbar-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.topbar-close:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--pure-white);
  border-bottom: 2px solid var(--ink-black);
}

.header-inner {
  max-width: 1680px;
  margin-inline: auto;
  padding: 14px var(--page-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.brand-block {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink-black);
  text-transform: uppercase;
}
.brand-tagline {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.4px;
  color: var(--muted-gray);
}

.site-nav {
  display: block;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item + .nav-item {
  border-left: 1px solid var(--border-gray);
  margin-left: 2px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-black);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: var(--brand-orange);
  transform: skewX(-18deg) scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover {
  color: var(--brand-orange);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: skewX(-18deg) scaleX(1);
}
.nav-link[aria-current="page"] {
  color: var(--brand-orange);
}
.nav-idx {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-gray);
  opacity: 0.85;
  vertical-align: 2px;
}
.nav-link:hover .nav-idx {
  color: var(--brand-orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ink-black);
  border: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}
.nav-toggle:hover {
  background: var(--brand-orange);
}
.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--racing-yellow));
  z-index: 5;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--deep-blue);
  color: var(--pure-white);
}

.footer-topline {
  height: 6px;
  background: linear-gradient(-65deg, var(--brand-orange) 0 25%, var(--racing-yellow) 25% 50%, var(--pure-white) 50% 75%, var(--deep-blue) 75% 100%);
}

.footer-inner {
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--page-margin);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(520px, 3fr);
  gap: 56px;
  padding: 64px 0 48px;
}

.footer-brand {
  max-width: 420px;
}
.brand-lockup--light .brand-name {
  color: #fff;
}
.brand-lockup--light .brand-tagline {
  color: rgba(255, 255, 255, 0.6);
}
.footer-about {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.footer-trust {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--racing-yellow);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col {
  min-width: 0;
}
.footer-col--contact {
  min-width: 220px;
}
.footer-title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--racing-yellow);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover {
  color: var(--racing-yellow);
  padding-left: 8px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  align-items: start;
}
.contact-label {
  color: rgba(255, 255, 255, 0.5);
}
.contact-val {
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}
.contact-item a {
  color: var(--racing-yellow);
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}
.footer-bottom-inner {
  max-width: 1680px;
  margin-inline: auto;
  padding: 16px var(--page-margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy,
.footer-icp {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ Scroll Reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal][data-visible] {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .col-span-8,
  .col-span-6 {
    grid-column: span 12;
  }

  .nav-toggle {
    display: inline-flex;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .brand-lockup {
    order: 1;
  }
  .nav-toggle {
    order: 2;
    margin-left: auto;
  }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    border-top: 1px solid var(--border-gray);
    margin-top: 4px;
    padding-top: 8px;
  }
  .site-nav[data-open] {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item + .nav-item {
    border-left: none;
    margin-left: 0;
  }
  .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 8px;
    font-size: 18px;
    border-bottom: 1px solid var(--border-gray);
  }
  .nav-link::after {
    display: none;
  }
  .nav-link[aria-current="page"] {
    background: var(--off-white);
  }
  .nav-idx {
    margin-left: auto;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 32px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .col-span-4,
  .col-span-3,
  .col-span-2 {
    grid-column: span 1;
  }
  .section {
    padding-block: 48px;
  }

  .topbar-inner {
    gap: 10px;
  }
  .topbar-label {
    font-size: 11px;
    padding: 2px 8px;
  }
  .topbar-marquee {
    font-size: 13px;
  }

  .header-inner {
    padding-block: 10px;
  }
  .brand-symbol {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-tagline {
    display: none;
  }

  .footer-layout {
    padding: 36px 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .marquee-track {
    animation: none;
    width: auto;
  }
  .marquee-src[aria-hidden="true"] {
    display: none;
  }
  .topbar-marquee {
    overflow: visible;
    white-space: normal;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}
