:root {
  --deep-graphite: #0C0F14;
  --metal-panel: #1A1E26;
  --neon-volt: #C8FF00;
  --electric-cyan: #00D4FF;
  --metal-gray: #8A8F98;
  --dark-gold: #BF9B4F;
  --text-bright: #F2F5F7;
  --text-dim: #9AA4AD;
  --signal-red: #FF4B4B;
  --lime-glow: #E0FF66;
  --headline-font: "Archivo Black", "Noto Sans SC Black", "PingFang SC", sans-serif;
  --body-font: "Noto Sans SC", "PingFang SC", sans-serif;
  --data-font: "JetBrains Mono", "Roboto Mono", monospace;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--deep-graphite);
  background-image:
    linear-gradient(rgba(242, 245, 247, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 247, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text-bright);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--headline-font);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--electric-cyan);
  text-decoration-color: rgba(0, 212, 255, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--lime-glow);
  text-decoration-color: var(--lime-glow);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

img,
video {
  max-width: 100%;
}

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

::selection {
  background: var(--neon-volt);
  color: var(--deep-graphite);
}

.sr-only {
  position: absolute;
  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: -100px;
  left: clamp(12px, 4vw, 40px);
  z-index: 2000;
  padding: 14px 18px;
  background: var(--neon-volt);
  color: var(--deep-graphite);
  font-family: var(--data-font);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.4);
  transition: top 0.2s ease, background 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  background: var(--lime-glow);
  color: #000;
}

.site-width {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

.site-header {
  position: relative;
  z-index: 1000;
  background: var(--deep-graphite);
  border-bottom: 1px solid rgba(138, 143, 152, 0.22);
}

.header-top {
  background: linear-gradient(90deg, rgba(200, 255, 0, 0.1), transparent 60%), var(--metal-panel);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-top-message {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--data-font);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  margin: 0;
}

.signal-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--neon-volt);
  box-shadow: 0 0 12px var(--lime-glow);
  transform: rotate(45deg);
}

.header-top-status {
  font-family: var(--data-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 0;
  white-space: nowrap;
}

.header-main {
  background: rgba(12, 15, 20, 0.96);
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text-bright);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--text-bright);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 40px;
  background: var(--neon-volt);
  color: var(--deep-graphite);
  font-family: var(--data-font);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

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

.brand-name {
  font-family: var(--headline-font);
  font-size: 24px;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: var(--text-bright);
}

.brand-tagline {
  font-family: var(--data-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.site-nav {
  display: block;
  margin-left: auto;
}

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

.nav-list a {
  display: block;
  padding: 10px 14px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover {
  color: var(--text-bright);
  background: rgba(200, 255, 0, 0.08);
  border-color: rgba(200, 255, 0, 0.35);
}

.nav-list a[aria-current="page"] {
  color: var(--neon-volt);
  background: rgba(200, 255, 0, 0.1);
  border-color: rgba(200, 255, 0, 0.5);
}

.nav-list a.nav-cta {
  color: var(--deep-graphite);
  background: var(--neon-volt);
  border-color: var(--neon-volt);
  font-family: var(--data-font);
  font-weight: 700;
}

.nav-list a.nav-cta:hover {
  background: var(--lime-glow);
  color: #0C0F14;
  border-color: var(--lime-glow);
}

.nav-toggle {
  display: none;
}

.site-footer {
  position: relative;
  margin-top: auto;
  background:
    linear-gradient(180deg, var(--deep-graphite), #090C10),
    var(--deep-graphite);
  border-top: 1px solid rgba(200, 255, 0, 0.25);
}

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-volt), var(--electric-cyan) 45%, var(--dark-gold) 75%, transparent);
  background-size: 200% 100%;
  animation: data-stream 6s linear infinite;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1.1fr;
  align-items: start;
  gap: clamp(24px, 4vw, 64px);
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand .brand--footer {
  margin-bottom: 16px;
}

.brand--footer .brand-mark {
  background: var(--dark-gold);
  color: var(--deep-graphite);
}

.brand--footer .brand-name {
  color: var(--text-bright);
}

.brand--footer .brand-tagline {
  color: var(--metal-gray);
}

.footer-brief {
  max-width: 42ch;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

.footer-trust {
  max-width: 44ch;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--dark-gold);
  color: var(--metal-gray);
  font-family: var(--data-font);
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-column {
  min-width: 0;
}

.footer-caption {
  position: relative;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(191, 155, 79, 0.35);
  font-family: var(--data-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-gold);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 6px;
}

.footer-column a {
  display: inline-block;
  padding: 4px 0;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: var(--neon-volt);
  transform: translateX(2px);
  text-decoration: none;
}

.footer-contact {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.footer-line {
  margin: 0 0 6px;
}

.footer-service {
  margin-top: 10px;
  color: var(--dark-gold);
  font-family: var(--data-font);
  font-size: 13px;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(138, 143, 152, 0.16);
  background: rgba(0, 0, 0, 0.22);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--metal-gray);
  font-family: var(--data-font);
  font-size: 13px;
}

.footer-bottom-inner p {
  margin: 0;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.grid-main {
  grid-column: span 7;
}

.grid-aside {
  grid-column: span 3;
  grid-column-start: 10;
}

.span-7 {
  grid-column: span 7;
}

.span-3 {
  grid-column: span 3;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-family: var(--data-font);
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--dark-gold);
}

.breadcrumb a {
  color: var(--electric-cyan);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--lime-glow);
}

.breadcrumb [aria-current="page"] {
  color: var(--neon-volt);
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dim);
}

.prose .lead,
.lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-bright);
}

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

.prose h2,
.prose h3 {
  margin-top: 2.2em;
  color: var(--text-bright);
}

.prose a {
  color: var(--electric-cyan);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(191, 155, 79, 0.32);
}

.section-number {
  font-family: var(--data-font);
  font-size: 64px;
  line-height: 0.9;
  color: var(--dark-gold);
}

.section-title {
  font-family: var(--headline-font);
  font-size: 40px;
  line-height: 1.1;
  color: var(--text-bright);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--neon-volt);
  border: 1px solid var(--neon-volt);
  color: var(--deep-graphite);
  font-family: var(--data-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transition: background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.btn:hover {
  background: var(--lime-glow);
  border-color: var(--lime-glow);
  color: #000;
  box-shadow: 0 0 24px rgba(200, 255, 0, 0.25);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--electric-cyan);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--electric-cyan);
  color: var(--text-bright);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.18);
}

.card {
  background: var(--metal-panel);
  border-top: 2px solid var(--neon-volt);
  padding: 24px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 16px 100%);
}

.cut-corner {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% calc(100% - 8px), 18px 100%);
}

.data-flow {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(138, 143, 152, 0.18);
}

.data-flow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--electric-cyan), var(--neon-volt), transparent);
  background-size: 200% 100%;
  animation: data-stream 5s linear infinite;
}

.visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(200, 255, 0, 0.08), rgba(0, 212, 255, 0.08)),
    var(--metal-panel);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% calc(100% - 12px), 12px 100%);
}

.visual-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.18), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.visual-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.visual-frame--tall {
  aspect-ratio: 4 / 5;
}

.tabs {
  margin: 24px 0;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid rgba(138, 143, 152, 0.3);
}

.tablist [role="tab"] {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--data-font);
  font-size: 14px;
  padding: 10px 18px;
  cursor: pointer;
  position: relative;
  top: 1px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tablist [role="tab"]:hover {
  color: var(--text-bright);
  background: rgba(200, 255, 0, 0.04);
}

.tablist [role="tab"][aria-selected="true"] {
  color: var(--neon-volt);
  border-bottom-color: var(--neon-volt);
  background: rgba(200, 255, 0, 0.06);
}

.tabpanel[hidden] {
  display: none;
}

.tabpanel:not([hidden]) {
  animation: tab-in 0.24s ease both;
}

@keyframes data-stream {
  to {
    background-position: -200% 0;
  }
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nav-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

#main-content {
  scroll-margin-top: 24px;
}

#main-content:focus {
  outline: none;
}

@media (max-width: 1024px) {
  .header-main-inner {
    gap: 16px;
  }

  .nav-list a {
    padding: 8px 10px;
    font-size: 14px;
  }

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

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

  .grid-main,
  .grid-aside,
  .span-7,
  .span-3 {
    grid-column: span 12;
  }
}

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

  .header-main-inner {
    flex-wrap: wrap;
    min-height: 70px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-mark {
    width: 46px;
    height: 36px;
    font-size: 20px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(200, 255, 0, 0.45);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .nav-toggle:hover {
    border-color: var(--neon-volt);
    background: rgba(200, 255, 0, 0.06);
  }

  .nav-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--neon-volt);
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

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

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

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

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(200, 255, 0, 0.2);
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-open 0.24s ease both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 12px;
  }

  .nav-list a {
    text-align: left;
    padding: 12px 14px;
  }

  .nav-list a.nav-cta {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .footer-brand {
    grid-column: auto;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .section-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
}

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

  .site-footer::before,
  .data-flow::after {
    animation: none !important;
  }
}
