/* ============ 1. Design Tokens & Reset ============ */
:root {
  --navy: #0B1B3B;
  --navy-2: #13264D;
  --orange: #FF6B35;
  --white: #FFFFFF;
  --gray: #F4F6FA;
  --ink: #1E2A3A;
  --yellow: #FFD166;
  --cyan: #4CC9F0;
  --muted: #8A94A6;
  --red: #EF476F;
  --green: #06D6A0;
  --font-display: "PingFang SC", "Inter", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  --font-data: "JetBrains Mono", "SF Mono", "Roboto Mono", "Menlo", monospace;
  --step-1: 14px;
  --step-2: 16px;
  --step-3: 20px;
  --step-4: 28px;
  --step-5: 40px;
  --step-6: 56px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 20px rgba(11, 27, 59, .06);
  --shadow: 0 10px 30px rgba(11, 27, 59, .12);
  --shadow-lg: 0 16px 44px rgba(11, 27, 59, .16);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-2);
  line-height: 1.75;
  color: var(--ink);
  background: var(--gray);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--cyan);
}

a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

button {
  font-family: inherit;
  font-size: inherit;
}

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

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

/* ============ 2. Layout Primitives ============ */
.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.section { padding-block: 40px; }
.section-tight { padding-block: 24px; }
.section-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, .76);
  border-radius: var(--radius-lg);
  padding: 40px 0;
}
.section-dark .section-title { color: var(--white); }

.index-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.index-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 24px;
  z-index: 2000;
  background: var(--orange);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ============ 3. Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 5;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.announcement-bar {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding-block: 5px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  animation: livePulse 1.8s infinite;
}
.announcement-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announcement-meta {
  margin-left: auto;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .42);
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, .7); }
  70% { box-shadow: 0 0 0 7px rgba(255, 209, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.site-brand:hover { color: var(--white); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-data);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -.02em;
  clip-path: polygon(0 0, 80% 0, 100% 20%, 100% 100%, 20% 100%, 0 80%);
}

.site-brand .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { display: none; }
.primary-nav[data-open] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: absolute;
  top: calc(100% + 10px);
  left: 16px;
  right: 16px;
  background: rgba(11, 27, 59, .98);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.primary-nav[data-open] .nav-list { flex-direction: column; }
.primary-nav[data-open] .nav-link { white-space: normal; }

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: block;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}
.nav-link[aria-current="page"] {
  background: var(--orange);
  color: var(--navy);
}

.nav-signal {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .68);
}
.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(6, 214, 160, .5);
  animation: livePulse 2s infinite;
}

/* ============ 4. Footer ============ */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: var(--navy);
  color: rgba(255, 255, 255, .76);
  overflow: hidden;
}
.footer-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 35%, var(--yellow) 35%, var(--yellow) 55%, var(--cyan) 55%, var(--cyan) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 48px 32px;
}
.footer-brand-col, .footer-nav-col, .footer-contact-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.footer-brand:hover { color: var(--white); }
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}

.trust-statement {
  margin-top: 18px;
  font-size: var(--step-1);
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  max-width: 34ch;
}
.footer-site-meta {
  margin-top: 16px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .35);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
  font-size: var(--step-1);
  padding: 4px 0;
  transition: color .2s ease, transform .2s ease;
}
.footer-links a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: var(--step-1);
}
.footer-kicker {
  display: inline-block;
  min-width: 44px;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--yellow);
}
.footer-icp {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 18px;
  font-family: var(--font-data);
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-copy { font-size: 12px; }
.footer-sync {
  font-size: 11px;
  letter-spacing: .14em;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(11, 27, 59, .92);
  color: var(--white);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--orange);
  color: var(--navy);
}

/* ============ 5. Shared Components ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #F85A24;
  border-color: #F85A24;
  color: var(--navy);
}
.btn-outline {
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
  background: rgba(255, 255, 255, .04);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--gray); color: var(--navy); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--gray);
  border: 1px solid rgba(11, 27, 59, .08);
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--navy);
}
.tag-live {
  background: #FFF7ED;
  color: #B3401A;
  border-color: rgba(255, 107, 53, .28);
}
.tag-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.section-head { max-width: 720px; margin-bottom: 28px; }
.section-title { margin-bottom: 8px; }
.section-desc { color: var(--muted); font-size: var(--step-2); }

.panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(11, 27, 59, .06);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.panel-dark {
  background: var(--navy);
  color: rgba(255, 255, 255, .76);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 28px;
}
.panel-dark h1, .panel-dark h2, .panel-dark h3 { color: var(--white); }
.panel-corner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}

.grid {
  display: grid;
  gap: 24px;
}
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(11, 27, 59, .06);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 107, 53, .4);
}
.card-meta {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.card-title {
  font-size: var(--step-3);
  margin-bottom: 4px;
}
.card-text {
  font-size: var(--step-1);
  color: var(--muted);
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--cyan));
}
.timeline-item {
  position: relative;
  padding: 0 0 28px 34px;
}
.timeline-dot {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--orange);
}
.timeline-item:last-child .timeline-dot { border-color: var(--green); }
.timeline-meta {
  display: block;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.timeline-title {
  font-size: var(--step-3);
  margin-bottom: 6px;
}
.timeline-desc {
  font-size: var(--step-1);
  color: var(--muted);
}

.tabs {
  background: var(--white);
  border: 1px solid rgba(11, 27, 59, .06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid rgba(11, 27, 59, .08);
  background: var(--gray);
}
.tab-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.tab-button:hover {
  color: var(--navy);
  background: rgba(11, 27, 59, .06);
}
.tab-button[aria-selected="true"] {
  background: var(--navy);
  color: var(--white);
}
.tab-panel { padding: 24px; }
.tab-panel[hidden] { display: none; }

.figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy) 0%, #16368F 55%, var(--orange) 140%);
}
.media-placeholder::before {
  content: "IMAGE / MOTION";
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}
.media-placeholder img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-head { padding: 56px 0 24px; }
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 48px;
  border-radius: 0 0 32px 32px;
}
.page-hero .page-title { color: var(--white); }
.page-hero .page-intro { color: rgba(255, 255, 255, .66); }
.page-hero .index-label { color: var(--yellow); }
.page-hero .index-label::before { background: var(--orange); }

.page-title {
  font-size: clamp(32px, 6vw, var(--step-6));
  line-height: 1.05;
  letter-spacing: -.02em;
}
.page-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 56ch;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-family: var(--font-data);
  font-size: 12px;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "/";
  color: var(--orange);
}
.breadcrumb a {
  color: var(--navy);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--orange); }

.data-number {
  font-family: var(--font-data);
  font-weight: 700;
  font-size: var(--step-5);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.data-number.orange { color: var(--orange); }
.panel-dark .data-number { color: var(--white); }
.panel-dark .data-number.orange { color: var(--orange); }
.data-meta {
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.panel-dark .data-meta { color: rgba(255, 255, 255, .5); }
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px dashed rgba(11, 27, 59, .12);
}
.data-row:last-child { border-bottom: 0; }
.panel-dark .data-row { border-color: rgba(255, 255, 255, .12); }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ 6. Responsive & Motion Preferences ============ */
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav,
  .primary-nav[data-open] {
    display: flex;
    align-items: center;
    gap: 12px;
    position: static;
    margin: 0;
    padding: 6px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-pill);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .primary-nav[data-open] .nav-list,
  .nav-list { flex-direction: row; }
  .primary-nav[data-open] .nav-link { white-space: nowrap; }
  .nav-signal { display: inline-flex; }
}

@media (min-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

@media (max-width: 899px) {
  .announcement-meta { display: none; }
  .nav-signal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .back-to-top { transition: none; }
}
