:root {
  --green-deep: #0B3D2E;
  --green-lime: #C6FF00;
  --blue-neon: #00E5FF;
  --paper: #F5F1E8;
  --ink: #0B0B0F;
  --green-mid: #1A5C47;
  --red-card: #FF4B4B;
  --yellow-card: #FFD166;
  --blue-dark: #003A4A;
  --gray-line: #E5E7E6;
  --font-head: "Oswald", "Noto Sans SC", sans-serif;
  --font-body: "Roboto Mono", "Noto Sans SC", monospace;
  --header-h: 64px;
  --rail-w: 220px;
  --radius-cut: 8px 20px 8px 20px;
}

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  padding-top: var(--header-h);
  background: var(--green-deep);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.is-night {
  background: #02100B;
}

body.is-night .site-header {
  background: #041A12;
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.14);
}

body.is-night .site-nav {
  background: rgba(2, 10, 8, 0.96);
}

a {
  color: var(--blue-neon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

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

button {
  cursor: pointer;
}

::selection {
  background: var(--green-lime);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--blue-neon);
  outline-offset: 3px;
  border-radius: 2px;
}

#main-content {
  scroll-margin-top: calc(var(--header-h) + 14px);
  min-height: calc(100vh - 60px);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-body);
  padding: 10px 18px;
  border-radius: 4px;
  transform: translateY(-240%);
  transition: transform 150ms ease;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--green-deep);
  border-bottom: 1px solid rgba(198, 255, 0, 0.55);
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(198, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 100% 28px;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, var(--green-lime), var(--blue-neon));
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  padding-inline: 24px;
  max-width: 1240px;
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
}

.brand-lockup:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: var(--green-lime);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 232, 0.55);
}

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

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(245, 241, 232, 0.7);
  white-space: nowrap;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: var(--green-lime);
  border-radius: 50%;
}

.status-dot::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--green-lime);
  border-radius: 50%;
  animation: status-pulse 1.8s ease-out infinite;
}

.status-text {
  letter-spacing: 0.02em;
}

@keyframes status-pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(26, 92, 71, 0.65);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 3px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 12px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  background: rgba(26, 92, 71, 1);
  border-color: var(--blue-neon);
  text-decoration: none;
}

.theme-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--blue-neon);
}

.theme-label {
  white-space: nowrap;
}

.header-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: transparent;
  border: 1px solid rgba(198, 255, 0, 0.45);
  border-radius: 3px;
}

.toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-lime);
  transition: transform 180ms ease, opacity 180ms ease;
}

.header-toggle[aria-expanded="true"] .toggle-line:first-child {
  transform: translateY(7px) rotate(45deg);
}

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

.header-toggle[aria-expanded="true"] .toggle-line:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  z-index: 90;
  width: min(280px, 84vw);
  padding: 22px 16px 28px;
  background: var(--ink);
  border-right: 2px solid var(--green-lime);
  transform: translateX(-100%);
  visibility: hidden;
  overflow-y: auto;
  transition: transform 220ms ease, visibility 220ms ease;
}

.site-nav[data-open="true"] {
  transform: translateX(0);
  visibility: visible;
}

.nav-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding-inline: 12px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--blue-neon);
}

.nav-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.5), transparent);
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: rgba(245, 241, 232, 0.78);
  font-size: 14px;
  border-inline-start: 3px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-link:hover {
  background: rgba(198, 255, 0, 0.08);
  color: var(--green-lime);
  border-inline-start-color: var(--green-lime);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  background: rgba(198, 255, 0, 0.1);
  color: var(--green-lime);
  border-inline-start-color: var(--green-lime);
  font-weight: 700;
}

.nav-index {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--blue-neon);
}

.nav-label {
  letter-spacing: 0.04em;
}

.site-footer {
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(26, 92, 71, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 48px 0 34px;
}

.footer-brand {
  display: grid;
  gap: 16px;
  align-content: start;
}

.brand-lockup--footer .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.brand-lockup--footer .brand-name {
  font-size: 19px;
}

.brand-lockup--footer .brand-sub {
  font-size: 10px;
}

.footer-trust {
  max-width: 440px;
  color: rgba(245, 241, 232, 0.58);
  font-size: 13px;
  line-height: 1.75;
  border-left: 2px solid rgba(198, 255, 0, 0.4);
  padding-left: 14px;
}

.footer-legal,
.footer-contact {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-label {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--blue-neon);
  border-left: 3px solid var(--green-lime);
  padding-left: 8px;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(245, 241, 232, 0.75);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--green-lime);
}

.footer-contact-line {
  color: rgba(245, 241, 232, 0.75);
  font-size: 13px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(229, 231, 230, 0.1);
  font-size: 12px;
  color: rgba(245, 241, 232, 0.45);
}

.footer-copy,
.footer-icp,
.footer-address {
  margin: 0;
}

.section {
  position: relative;
  padding-block: clamp(44px, 7vw, 76px);
}

.section--tight {
  padding-block: 28px;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--paper .section-title,
.section--paper .section-desc {
  color: var(--ink);
}

.section--paper a {
  color: var(--green-deep);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 30px;
}

.section-index {
  display: inline-block;
  align-self: start;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green-lime);
  background: rgba(11, 61, 46, 0.9);
  border: 1px solid rgba(198, 255, 0, 0.45);
  padding: 2px 10px;
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--paper);
  text-transform: uppercase;
}

.section-desc {
  max-width: 640px;
  color: rgba(245, 241, 232, 0.65);
  font-size: 14px;
  line-height: 1.7;
}

.page-head {
  padding: clamp(28px, 5vw, 56px) 0 20px;
}

.page-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--paper);
  text-transform: uppercase;
}

.page-desc {
  max-width: 620px;
  margin-top: 10px;
  color: rgba(245, 241, 232, 0.62);
  font-size: 14px;
}

.breadcrumb {
  margin-bottom: 14px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 6px;
  color: var(--green-lime);
  opacity: 0.6;
}

.breadcrumb-link {
  color: rgba(245, 241, 232, 0.6);
}

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

.breadcrumb-current {
  color: var(--green-lime);
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.layout-main,
.layout-aside {
  min-width: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.panel {
  position: relative;
  padding: 24px;
  background: rgba(0, 58, 74, 0.56);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius-cut);
  overflow: hidden;
}

.panel--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(245, 241, 232, 0.5);
}

.panel--paper .panel-title,
.panel--paper p {
  color: var(--ink);
}

.panel-cut::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  background: var(--green-lime);
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.panel-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 10px;
}

.tag-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(198, 255, 0, 0.5);
  background: rgba(11, 61, 46, 0.85);
  color: var(--green-lime);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 2px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 100%, 0 100%);
}

.data-chip {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
  background: var(--green-lime);
  padding: 7px 14px 5px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 34%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg) translateX(-180%);
  transition: transform 280ms ease;
}

.btn:hover::after {
  transform: skewX(-25deg) translateX(350%);
}

.btn-primary {
  background: var(--green-lime);
  color: var(--ink);
  font-weight: 700;
  border-color: var(--green-lime);
}

.btn-primary:hover {
  background: transparent;
  color: var(--green-lime);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(0, 229, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--blue-neon);
  border-color: var(--blue-neon);
  text-decoration: none;
}

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(26, 92, 71, 0.4);
  border: 1px solid rgba(198, 255, 0, 0.18);
  border-radius: 4px 18px 4px 18px;
  aspect-ratio: 16 / 9;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.05);
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), transparent 42%);
  pointer-events: none;
}

.track-line {
  display: block;
  height: 2px;
  margin-block: 20px;
  background: linear-gradient(90deg, transparent, var(--green-lime), var(--blue-neon), transparent);
}

.prose {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(245, 241, 232, 0.82);
}

.prose p {
  margin-bottom: 1em;
}

.prose h2,
.prose h3 {
  font-family: var(--font-head);
  color: var(--paper);
  line-height: 1.2;
  margin: 1.4em 0 0.5em;
}

.prose ul {
  list-style: square;
  padding-left: 1.3em;
  margin-bottom: 1em;
}

.prose ul li {
  margin-bottom: 0.35em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 767px) {
  .header-status {
    display: none;
  }

  .theme-toggle {
    padding: 6px;
  }

  .theme-label {
    display: none;
  }
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 6fr 4fr;
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }
}

@media (min-width: 1024px) {
  body {
    padding-left: var(--rail-w);
  }

  .site-header {
    left: var(--rail-w);
    right: 0;
  }

  .header-toggle {
    display: none;
  }

  .site-nav {
    top: 0;
    width: var(--rail-w);
    padding: calc(var(--header-h) + 24px) 16px 28px;
    background: rgba(11, 61, 46, 0.94);
    border-right: 1px solid rgba(0, 229, 255, 0.22);
    transform: none;
    visibility: visible;
    backdrop-filter: blur(5px);
  }

  .site-nav::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--green-lime), var(--blue-neon), transparent);
    opacity: 0.3;
    pointer-events: none;
  }

  .nav-link {
    font-size: 14px;
  }

  .content-grid {
    grid-template-columns: 6fr 3fr;
  }

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

  .header-inner {
    padding-inline: 32px;
  }
}

@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: 0s !important;
  }
}
