:root {
  --primary-deep-blue: #0A1128;
  --secondary-blue: #111D3A;
  --card-blue: #16234A;
  --neon-green: #3DFF8B;
  --gold-highlight: #FFC107;
  --text-primary: #E6EDF5;
  --text-muted: #93A7C4;
  --border-line: #2A3B5C;
  --light-panel: #F4F7FB;

  --font-heading: 'Archivo', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

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

body {
  min-height: 100vh;
  background: var(--primary-deep-blue);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

a {
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 3000;
  background: var(--neon-green);
  color: var(--primary-deep-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--gold-highlight);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 17, 40, 0.96);
  border-bottom: 1px solid var(--border-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--neon-green);
  z-index: 2;
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--gold-highlight);
  z-index: 3;
  pointer-events: none;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.header-inner::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 24px;
  width: 80px;
  height: 2px;
  background: var(--gold-highlight);
  transform: skewX(-30deg);
  opacity: 0.6;
  pointer-events: none;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

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

.brand-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-green);
  border: 1px solid var(--border-line);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand-name strong {
  color: var(--neon-green);
  font-weight: 800;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  border-left: 1px solid var(--border-line);
  padding-left: 12px;
  white-space: nowrap;
}

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

.nav-caption,
.nav-close,
.nav-foot {
  display: none;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-highlight);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--neon-green);
}

.nav-link:hover .nav-num {
  opacity: 1;
}

.nav-link[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--neon-green);
  background: rgba(61, 255, 139, 0.06);
}

.nav-link[aria-current="page"] .nav-num {
  opacity: 1;
  color: var(--neon-green);
}

.nav-toggle {
  display: none;
}

.site-main {
  min-height: 60vh;
  position: relative;
  background-image:
    linear-gradient(rgba(42, 59, 92, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 92, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

.site-footer {
  background: var(--secondary-blue);
  border-top: 1px solid var(--border-line);
  position: relative;
  margin-top: 80px;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-highlight) 0%, var(--gold-highlight) 120px, var(--border-line) 120px, var(--border-line) 100%);
  opacity: 0.8;
  pointer-events: none;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
}

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

.footer-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-highlight);
  border: 1px solid var(--border-line);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.footer-logo strong {
  color: var(--neon-green);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.footer-trust {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 260px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-line);
}

.heading-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--neon-green);
  font-weight: 600;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-list a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-list a:hover {
  color: var(--neon-green);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-value {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.footer-meta {
  position: relative;
  border-top: 1px solid var(--border-line);
  background: var(--primary-deep-blue);
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-meta::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--neon-green);
  transform: skewX(-30deg);
  opacity: 0.5;
  pointer-events: none;
}

.meta-brand {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 1px;
}

.meta-copyright {
  margin-right: auto;
}

.meta-icp {
  color: var(--text-muted);
}

.meta-coord {
  color: var(--gold-highlight);
  letter-spacing: 1px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 40px 0;
}

.section-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-highlight);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 480px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--neon-green);
  color: var(--primary-deep-blue);
}

.btn-primary:hover {
  background: var(--gold-highlight);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-line);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

.breadcrumb {
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--border-line);
  margin: 0 4px;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: var(--neon-green);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--text-primary);
}

.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: var(--card-blue);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(61, 255, 139, 0.5);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-highlight);
  letter-spacing: 1px;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  margin-top: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.7;
}

.panel {
  background: var(--secondary-blue);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 32px;
}

.panel-light {
  background: var(--light-panel);
  color: #1A2440;
  border-color: #D6DFE9;
}

.panel-light h1,
.panel-light h2,
.panel-light h3,
.panel-light h4 {
  color: #1A2440;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
}

.prose h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.prose h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 16px;
}

.prose a {
  color: var(--neon-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 24px;
}

.prose ul {
  list-style: square;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--card-blue);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}

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

.media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(61, 255, 139, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

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

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

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

.media-frame--dynamic {
  border-color: rgba(61, 255, 139, 0.3);
}

.media-frame--dynamic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(61, 255, 139, 0.08) 50%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.media-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 8px;
}

.media-caption .capture-num {
  color: var(--gold-highlight);
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-muted { color: var(--text-muted); }
.text-green { color: var(--neon-green); }
.text-gold { color: var(--gold-highlight); }

:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

@media (max-width: 959px) {
  :root {
    --header-h: 60px;
    --gutter: 16px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
  }

  .toggle-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 18px;
  }

  .toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--neon-green);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

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

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

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2000;
    width: min(380px, 90vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: var(--secondary-blue);
    border-left: 1px solid var(--border-line);
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
    padding: 80px 28px 32px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
  }

  .main-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--neon-green);
  }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 24px;
    line-height: 1;
  }

  .nav-close:hover {
    border-color: var(--neon-green);
    color: var(--neon-green);
  }

  .nav-caption {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gold-highlight);
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-line);
    padding-bottom: 12px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border-line);
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px 4px;
    font-size: 17px;
    border: none;
    border-bottom: none;
    border-radius: 0;
  }

  .nav-link[aria-current="page"] {
    background: transparent;
    border-bottom: none;
    border-left: 3px solid var(--neon-green);
    padding-left: 12px;
  }

  .nav-link[aria-current="page"]::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    transform: rotate(45deg);
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-foot {
    display: block;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-line);
  }

  body.nav-open {
    overflow: hidden;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .section {
    padding: 48px 0;
  }
}

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

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .meta-copyright {
    margin-right: 0;
  }

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

  .section-title {
    font-size: 22px;
  }

  .header-inner::after {
    right: 16px;
    width: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
