:root {
  --color-bg: #0A1F44;
  --color-bg-deep: #060F29;
  --color-accent: #FF6A00;
  --color-electric: #00D4FF;
  --color-white: #FFFFFF;
  --color-text-sub: #E6EFFC;
  --color-border: #1A3A6E;
  --color-muted: #3D4B63;
  --color-warning: #FFD166;
  --color-grad-end: #2E5A88;
  --font-headline: "Anton", "Impact", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-height: 72px;
  --container-width: 1280px;
  --container-pad: 24px;
  --ease-fast: 200ms ease;
  --ease-base: 300ms ease;
}

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

html,
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

[hidden] {
  display: none !important;
}

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text-sub);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

a {
  color: var(--color-electric);
  text-decoration: none;
  transition: color var(--ease-fast);
}

a:hover {
  color: var(--color-white);
}

:focus-visible {
  outline: 3px solid var(--color-electric);
  outline-offset: 3px;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: 80px 0;
}

.section--narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px var(--container-pad);
}

.section--wide {
  padding: 96px 0;
}

.section-head {
  position: relative;
  margin-bottom: 32px;
  padding-left: 28px;
}

.section-head__kind {
  position: absolute;
  left: 0;
  top: 4px;
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-electric);
  line-height: 1;
}

.section-head__title {
  font-family: var(--font-headline);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-white);
}

.section-head__desc {
  margin-top: 10px;
  max-width: 520px;
  font-size: 14px;
  color: var(--color-text-sub);
}

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head--split .section-head__desc {
  margin-top: 0;
  text-align: right;
  max-width: 360px;
}

.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-sub);
}

.prose h2 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 10px;
}

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

.prose ul {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.prose ol {
  list-style: decimal;
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

.prose a {
  color: var(--color-electric);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--color-white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: transparent;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast), color var(--ease-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), #FF8A5C);
  color: var(--color-white);
}

.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(255, 106, 0, 0.35);
}

.btn--outline {
  color: var(--color-electric);
  box-shadow: inset 0 0 0 2px var(--color-electric);
}

.btn--outline:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-white);
  box-shadow: inset 0 0 0 2px var(--color-electric);
}

.breadcrumbs {
  margin-bottom: 32px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  font-size: 12px;
  color: var(--color-muted);
}

.breadcrumbs__link {
  color: var(--color-electric);
  text-decoration: none;
  transition: color var(--ease-fast);
}

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

.breadcrumbs__link--current {
  color: var(--color-text-sub);
  pointer-events: none;
  cursor: default;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.content-grid--sidebar-left {
  grid-template-columns: 320px minmax(0, 1fr);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: linear-gradient(150deg, rgba(26, 58, 110, 0.45) 0%, rgba(10, 31, 68, 0.85) 100%);
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: transform var(--ease-fast), box-shadow var(--ease-fast), border-color var(--ease-fast);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.bento-card__title {
  font-family: var(--font-headline);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.2;
}

.bento-card__desc {
  font-size: 14px;
  line-height: 1.6;
}

.bento-card--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--tall {
  grid-row: span 2;
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-deep) 0%, var(--color-grad-end) 100%);
  aspect-ratio: 16 / 9;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

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

.img-frame--tall {
  aspect-ratio: 3 / 4;
}

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

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: color var(--ease-fast), background var(--ease-fast), border-color var(--ease-fast);
}

.filter-btn:hover {
  border: none;
  background: rgba(0, 212, 255, 0.12);
  color: var(--color-white);
}

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-white);
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-electric) 100%);
  z-index: 3000;
  pointer-events: none;
  transition: width 80ms linear;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--ease-fast), transform var(--ease-fast), visibility var(--ease-fast), background var(--ease-fast);
}

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

.back-top:hover {
  background: var(--color-electric);
  color: var(--color-bg-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 31, 68, 0.96);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(3, 9, 26, 0.4);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: var(--container-pad);
  width: min(480px, 60%);
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-electric) 85%, transparent 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  pointer-events: none;
}

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

.skip-link {
  position: fixed;
  top: -72px;
  left: 16px;
  z-index: 2000;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 0 0 8px 8px;
  transition: top var(--ease-fast);
}

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

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

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-accent), #FF8A5C);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.35);
}

.brand__text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-headline);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--color-white);
  line-height: 1;
}

.brand__sub {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-electric);
  line-height: 1;
}

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

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

.nav__link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text-sub);
  text-decoration: none;
  position: relative;
  transition: color var(--ease-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0) skewX(-30deg);
  transform-origin: left center;
  transition: transform var(--ease-fast);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1) skewX(-30deg);
}

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

.header__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  transition: border-color var(--ease-fast);
}

.header__toggle:hover {
  border-color: var(--color-electric);
}

.toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--ease-base), opacity var(--ease-fast);
}

.header__toggle[aria-expanded="true"] .toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.header__toggle[aria-expanded="true"] .toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-footer {
  position: relative;
  padding-top: 64px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(520px, 70%);
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-electric) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad) 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  text-decoration: none;
}

.footer__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-accent), #FF8A5C);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-size: 16px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
}

.footer__logo-text {
  display: inline-flex;
  flex-direction: column;
}

.footer__logo-name {
  font-family: var(--font-headline);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--color-white);
  line-height: 1;
}

.footer__logo-sub {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-electric);
  line-height: 1;
}

.footer__desc {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-sub);
}

.footer__trust {
  max-width: 420px;
  padding-left: 12px;
  border-left: 2px solid var(--color-accent);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-muted);
}

.footer__title {
  position: relative;
  margin-bottom: 20px;
  padding-left: 14px;
  font-family: var(--font-headline);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--color-accent);
  transform: skewX(-20deg);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-text-sub);
  text-decoration: none;
  transition: color var(--ease-fast), padding-left var(--ease-fast);
}

.footer__links a:hover {
  padding-left: 4px;
  color: var(--color-accent);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-sub);
}

.footer__contact-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-electric);
}

.footer__bottom {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 18px var(--container-pad);
  font-size: 13px;
  color: var(--color-muted);
}

.footer__copyright {
  color: var(--color-text-sub);
}

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

.footer__legal a {
  color: var(--color-text-sub);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.footer__legal a:hover {
  color: var(--color-accent);
}

.footer__sep {
  font-size: 11px;
  color: var(--color-border);
}

.footer__icp {
  letter-spacing: 0.04em;
}

@media (max-width: 1023px) {
  .nav__link {
    padding: 10px 8px;
    font-size: 14px;
  }

  .content-grid,
  .content-grid--sidebar-left {
    grid-template-columns: 1fr;
  }

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

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 56px 0;
  }

  .section--wide {
    padding: 72px 0;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head--split .section-head__desc {
    text-align: left;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--large,
  .bento-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(320px, 85vw);
    height: calc(100vh - var(--header-height));
    align-items: stretch;
    padding: 24px 20px 32px 36px;
    background: linear-gradient(180deg, var(--color-bg-deep) 0%, rgba(10, 31, 68, 0.98) 100%);
    border-left: 1px solid var(--color-border);
    overflow-y: auto;
    transform: translateX(102%);
    clip-path: polygon(32px 0, 100% 0, 100% 100%, 0 100%);
    transition: transform var(--ease-base);
  }

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

  .site-nav .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__link {
    display: block;
    padding: 16px 12px;
    font-size: 17px;
    border: none;
  }

  .nav__link::after {
    left: 12px;
    right: auto;
    bottom: 6px;
    width: 32px;
  }

  .header__toggle {
    display: inline-flex;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .site-nav {
    transition: none;
  }

  .back-top {
    transition: none;
  }

  .progress-bar {
    transition: none;
  }
}
