/* ===== 1. Reset & Tokens ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-900: #0a1128;
  --navy-800: #0d1530;
  --navy-700: #132048;
  --cyan-500: #00e5ff;
  --orange-500: #ff5a00;
  --amber-400: #ffb800;
  --green-400: #00c48c;
  --gray-50: #f5f7fa;
  --white: #ffffff;
  --ink-800: #1a2b4c;
  --gray-500: #718096;
  --border-100: #e2e8f0;
  --border-200: #cbd5e0;
  --font-heading: 'Archivo Black', 'Arial Black', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', 'SF Mono', Consolas, 'Courier New', monospace;
  --container-max: 1200px;
  --container-pad: 24px;
  --header-h: 72px;
  --section-gap: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 2px 12px rgba(10, 17, 40, 0.06);
  --shadow-lift: 0 8px 24px rgba(10, 17, 40, 0.12);
  --z-header: 90;
  --z-drawer: 95;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-800);
  background:
    radial-gradient(ellipse at 15% -10%, rgba(0, 229, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 85% 0%, rgba(255, 90, 0, 0.04), transparent 40%),
    var(--gray-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(0, 229, 255, 0.25);
  color: var(--navy-900);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 5.5vw, 88px);
}

h2 {
  font-size: clamp(28px, 4vw, 56px);
}

h3 {
  font-size: clamp(20px, 2.5vw, 32px);
}

h4 {
  font-size: 20px;
}

p {
  margin-bottom: 16px;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

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

::placeholder {
  color: var(--gray-500);
  opacity: 0.7;
}

/* ===== 2. Layout ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: var(--section-gap) 0;
}

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

.grid--2,
.grid--3,
.grid--4 {
  display: grid;
  gap: 24px;
  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));
}

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

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
  box-shadow: 0 4px 16px rgba(255, 90, 0, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ff6b1a;
  border-color: #ff6b1a;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 90, 0, 0.35);
}

.btn-primary:focus-visible {
  outline-color: var(--navy-900);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan-500);
  border-color: var(--cyan-500);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

/* ===== 4. Tags ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #00838f;
}

.tag--orange {
  background: rgba(255, 90, 0, 0.08);
  border-color: rgba(255, 90, 0, 0.3);
  color: #d94e00;
}

.tag--green {
  background: rgba(0, 196, 140, 0.08);
  border-color: rgba(0, 196, 140, 0.3);
  color: #008f6a;
}

.tag::before {
  content: '●';
  font-size: 6px;
}

/* ===== 5. Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  padding: 16px 0 40px;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  font-family: var(--font-mono);
  color: var(--border-200);
}

.breadcrumbs__link {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: var(--cyan-500);
}

.breadcrumbs__current {
  color: var(--ink-800);
  font-weight: 600;
}

/* ===== 6. Skip Link ===== */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 300;
  background: var(--cyan-500);
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ===== 7. Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background:
    linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    rgba(10, 17, 40, 0.94);
  background-size: 32px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan-500) 0%, var(--cyan-500) 35%, var(--orange-500) 100%);
  z-index: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand__logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--navy-900);
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-500);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand__logo {
  border-color: var(--cyan-500);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.brand__logo::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 7px;
  height: 7px;
  background: var(--orange-500);
  border-radius: 50%;
  border: 2px solid var(--navy-900);
  animation: pulse-dot 2.4s infinite;
}

.brand__body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}

.brand__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 3px;
}

.header-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.header-pulse__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px rgba(0, 196, 140, 0.8);
  animation: pulse-dot 2s infinite;
}

.header-pulse__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== 8. Navigation (Frame) ===== */
.nav-frame {
  margin-left: auto;
  display: flex;
  align-items: center;
  visibility: visible;
  transform: none;
}

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

.nav-frame__item {
  position: relative;
}

.nav-frame__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-frame__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--cyan-500);
  opacity: 0.8;
  letter-spacing: 0;
}

.nav-frame__link:hover,
.nav-frame__link:focus-visible {
  color: var(--white);
  background: rgba(0, 229, 255, 0.06);
}

.nav-frame__link[aria-current='page'] {
  color: var(--cyan-500);
}

.nav-frame__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan-500);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.nav-frame__link--cta {
  background: var(--orange-500);
  color: var(--white);
  font-weight: 700;
  padding: 10px 20px;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgba(255, 90, 0, 0.3);
}

.nav-frame__link--cta::before {
  content: none;
}

.nav-frame__link--cta:hover,
.nav-frame__link--cta:focus-visible {
  background: #ff6b1a;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.4);
}

.nav-frame__link--cta[aria-current='page'] {
  background: #ff6b1a;
  color: var(--white);
}

.nav-frame__link--cta[aria-current='page']::after {
  display: none;
}

/* ===== 9. Mobile Toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
  position: relative;
  z-index: 120;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
  border-color: rgba(0, 229, 255, 0.5);
}

.nav-toggle[aria-expanded='true'] {
  border-color: rgba(0, 229, 255, 0.5);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.25s ease;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar {
  background: var(--cyan-500);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) 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(-7px) rotate(-45deg);
}

/* ===== 10. Scroll Progress ===== */
.header-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan-500);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  z-index: 2;
}

/* ===== 11. Back to Top ===== */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cyan-500);
  background: rgba(10, 17, 40, 0.9);
  color: var(--cyan-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.25s ease, box-shadow 0.25s ease;
  z-index: 80;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 12px rgba(0, 229, 255, 0.15);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover,
.back-top:focus-visible {
  background: var(--cyan-500);
  color: var(--navy-900);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.35);
}

.back-top__icon {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ===== 12. Footer ===== */
.site-footer {
  position: relative;
  background:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    var(--navy-900);
  background-size: 48px 48px;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 96px;
}

.footer-line {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.6) 20%, var(--cyan-500) 40%, var(--orange-500) 85%, transparent 100%);
  opacity: 0.7;
}

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

.footer-brand__intro {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  margin: 16px 0 20px;
}

.footer-brand__trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  background: rgba(0, 229, 255, 0.04);
}

.footer-brand__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 8px rgba(0, 196, 140, 0.7);
  animation: pulse-dot 2s infinite;
}

.brand--footer .brand__name {
  color: var(--white);
}

.brand--footer .brand__tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col__list a::before {
  content: '>';
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0, 229, 255, 0.5);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col__list a:hover {
  color: var(--cyan-500);
  padding-left: 4px;
}

.footer-col__list a:hover::before {
  color: var(--orange-500);
  transform: translateX(2px);
}

.footer-contact__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 3px;
}

.footer-contact__value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  word-break: break-all;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 56px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

.footer-bottom__copyright {
  margin: 0;
}

.footer-bottom__icp {
  margin: 0;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ===== 13. Section Components ===== */
.section-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-100);
  position: relative;
}

.section-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 3px;
  background: var(--cyan-500);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--cyan-500);
  letter-spacing: -0.04em;
  opacity: 0.85;
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
}

.section-head__title {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}

.section-head__desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
  max-width: 560px;
}

.data-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.data-card::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--cyan-500));
  opacity: 0.6;
}

.data-card__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  word-break: break-all;
}

.data-card__value--highlight {
  color: var(--orange-500);
}

.data-card__label {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.data-card--accent {
  border-top: 3px solid var(--cyan-500);
}

.data-card--cta {
  border-top: 3px solid var(--orange-500);
}

.board-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-100);
  border-left: 4px solid var(--cyan-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
}

.board-panel::before {
  content: 'PANEL ' attr(data-no);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--border-200);
}

.evidence {
  background: rgba(0, 229, 255, 0.04);
  border: 1px dashed var(--border-200);
  border-left: 3px solid var(--cyan-500);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.8;
}

.glossary {
  margin: 16px 0;
  border-top: 1px solid var(--border-100);
}

.glossary__term {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  padding: 12px 0 4px 20px;
  position: relative;
}

.glossary__term::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--cyan-500);
}

.glossary__def {
  font-size: 14px;
  color: var(--gray-500);
  padding-bottom: 12px;
}

/* ===== 14. Image Frames ===== */
.img-frame {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 50%),
    linear-gradient(315deg, rgba(255, 90, 0, 0.08), transparent 50%),
    var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame::before {
  content: '/// IMG';
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

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

.img-frame--hero {
  aspect-ratio: 21 / 9;
}

.img-frame--card {
  aspect-ratio: 3 / 2;
}

.img-frame--square {
  aspect-ratio: 1 / 1;
}

/* ===== 15. Keyframes ===== */
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.82);
    opacity: 0.55;
  }
}

/* ===== 16. Responsive ===== */
@media (max-width: 1199px) {
  .header-pulse {
    display: none;
  }

  .footer-grid {
    gap: 40px;
  }
}

@media (max-width: 959px) {
  :root {
    --header-h: 64px;
    --section-gap: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-frame {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    margin-left: 0;
    display: block;
    background: rgba(10, 17, 40, 0.98);
    border-left: 1px solid rgba(0, 229, 255, 0.25);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    padding: 32px 28px 40px;
    overflow-y: auto;
    z-index: var(--z-drawer);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }

  .nav-frame[data-open] {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.28s ease;
  }

  .nav-frame__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-frame__link {
    width: 100%;
    padding: 13px 4px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
  }

  .nav-frame__link::before {
    font-size: 12px;
  }

  .nav-frame__link[aria-current='page']::after {
    left: 0;
    right: auto;
    bottom: 50%;
    top: 50%;
    width: 3px;
    height: 60%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  }

  .nav-frame__link--cta {
    justify-content: center;
    margin-left: 0;
    margin-top: 20px;
    border-bottom: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-frame__link--cta[aria-current='page']::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 0 48px;
  }

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

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

  .section {
    padding: var(--section-gap) 0;
  }
}

@media (max-width: 639px) {
  :root {
    --container-pad: 16px;
    --section-gap: 48px;
  }

  .brand__tagline {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 40px;
  }

  .footer-bottom__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .back-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .back-top__icon {
    font-size: 16px;
  }

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

  .section-head {
    gap: 12px;
    margin-bottom: 32px;
  }

  .section-head__index {
    font-size: 40px;
  }

  .section-head__title {
    font-size: 24px;
  }

  .data-card {
    padding: 20px;
  }

  .board-panel {
    padding: 20px;
  }

  .img-frame--hero {
    aspect-ratio: 16 / 10;
  }
}

/* ===== 17. 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: 0s !important;
  }

  .nav-frame {
    transition: none !important;
  }

  .header-progress {
    transition: none !important;
  }

  .back-top {
    transition: none !important;
  }
}
