:root {
  --primary-space-blue: #0B1026;
  --accent-orange: #FF6A00;
  --volt-yellow: #FFD400;
  --ink-blue: #1A2340;
  --galaxy-mist: #E8ECF8;
  --signal-cyan: #00C2D1;
  --pure-white: #FFFFFF;
  --charcoal: #2E3440;

  --font-headline: 'DIN Alternate', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --container-max: 1440px;
  --header-height: 72px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--primary-space-blue);
  color: var(--pure-white);
  font-family: var(--font-body);
  line-height: 1.7;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-headline);
  font-weight: 900;
  line-height: 1.1;
  color: inherit;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }

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

dl { margin: 0; }
dd { margin: 0; }

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

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: var(--signal-cyan);
  text-decoration: none;
}

a:hover {
  color: var(--volt-yellow);
}

:focus-visible {
  outline: 3px solid var(--volt-yellow);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-orange);
  color: var(--primary-space-blue);
}

#main-content {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.container {
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vw, 7rem);
}

.section-mist {
  background: var(--galaxy-mist);
  color: var(--charcoal);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
}

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

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

.btn {
  display: inline-block;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--primary-space-blue);
}

.btn-primary:hover {
  background: var(--volt-yellow);
  color: var(--primary-space-blue);
}

.btn-outline {
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent-orange);
  color: var(--pure-white);
}

.btn-block {
  display: block;
  text-align: center;
}

.panel {
  background: var(--galaxy-mist);
  color: var(--charcoal);
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow);
}

.panel-dark {
  background: var(--ink-blue);
  color: var(--galaxy-mist);
}

.panel-cut {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.tag {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  line-height: 1.4;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.tag-yellow {
  background: var(--volt-yellow);
  color: var(--primary-space-blue);
}

.tag-orange {
  background: var(--accent-orange);
  color: var(--pure-white);
}

.tag-mist {
  background: var(--galaxy-mist);
  color: var(--charcoal);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--volt-yellow);
  display: inline-block;
}

.index-list {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.index-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.index-list em {
  font-style: normal;
  color: var(--accent-orange);
  font-family: var(--font-headline);
}

.figure-tilt {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 106, 0, 0.18) 0%, transparent 60%),
    linear-gradient(45deg, var(--ink-blue), var(--primary-space-blue));
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
}

.figure-tilt::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(0, 194, 209, 0.15) 8px 16px);
  pointer-events: none;
}

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

.figure-tilt figcaption {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: rgba(11, 16, 38, 0.8);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.motion-line {
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--accent-orange) 30%, var(--volt-yellow) 70%, transparent);
}

.divider-x {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), var(--signal-cyan), rgba(255, 255, 255, 0.05));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--signal-cyan);
  margin-right: 0.5rem;
}

.breadcrumb a {
  color: var(--accent-orange);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--volt-yellow);
}

.breadcrumb [aria-current] {
  color: var(--volt-yellow);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 3000;
  background: var(--volt-yellow);
  color: var(--primary-space-blue);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-orange) 0%, var(--accent-orange) 55%, var(--volt-yellow) 55%, var(--volt-yellow) 65%, transparent 65%);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--pure-white);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--primary-space-blue);
  background: linear-gradient(135deg, var(--volt-yellow), var(--accent-orange));
  clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
}

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

.brand-name {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--volt-yellow);
}

.nav {
  margin-left: auto;
  visibility: visible;
}

.nav-list {
  display: flex;
  gap: 0.2rem;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--galaxy-mist);
  text-decoration: none;
  position: relative;
  letter-spacing: 0.03em;
}

.nav-link:hover {
  color: var(--volt-yellow);
}

.nav-link[aria-current="page"] {
  color: var(--pure-white);
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent-orange);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--pure-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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);
}

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

.site-footer {
  background: var(--ink-blue);
  color: var(--galaxy-mist);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::after {
  content: "";
  display: block;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent-orange) 0 12px, transparent 12px 18px, var(--volt-yellow) 18px 24px);
}

.footer-shell {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 4rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-brand,
.footer-nav {
  min-width: 0;
}

.footer-brand-name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pure-white);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--volt-yellow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links a {
  color: var(--galaxy-mist);
  text-decoration: none;
  padding: 0.35rem 0;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--volt-yellow);
}

.footer-contact {
  display: grid;
  gap: 0;
}

.footer-contact div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-contact dt {
  color: var(--accent-orange);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.8125rem;
}

.footer-contact dd {
  color: var(--galaxy-mist);
  overflow-wrap: anywhere;
}

.footer-bottom {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
}

.copyright,
.icp {
  display: inline-block;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-orange), var(--volt-yellow));
  z-index: 2000;
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1200;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(24rem, 86vw);
    background: var(--ink-blue);
    margin-left: 0;
    padding: calc(var(--header-height) + 2rem) 1.75rem 2rem;
    border-left: 4px solid var(--accent-orange);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.83, 0, 0.17, 1), visibility 0s 0.4s;
    z-index: 1100;
  }

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

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

  .nav-link {
    font-size: 1.125rem;
    padding: 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    display: none;
  }
}
