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

:root {
  --bg-dark: #0A0E1A;
  --panel-deep: #141024;
  --electric-blue: #00E5FF;
  --neon-magenta: #FF2A6D;
  --neon-green: #00FF9F;
  --aux-purple: #7A4FFF;
  --grad-red: #301A2C;
  --text-bright: #F0F3FF;
  --text-muted: #A0A8C0;
  --warn-orange: #FF9900;

  --font-title: 'Impact', 'Arial Black', 'Noto Sans SC Black', 'PingFang SC', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;

  --header-h: 72px;
  --container-w: 1240px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(122, 79, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 110%, rgba(255, 42, 109, 0.08), transparent 55%),
    var(--bg-dark);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.025) 3px,
    rgba(0, 0, 0, 0.025) 4px
  );
  pointer-events: none;
  z-index: 10000;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

input,
select,
textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

/* ===== Layout Utilities ===== */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1.15;
  color: var(--text-bright);
  transform: skewX(-4deg);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--electric-blue), var(--neon-magenta));
  border-radius: 2px;
}

.section-desc {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 24px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 11000;
  padding: 10px 24px;
  background: var(--electric-blue);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.3s ease;
}

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

.skip-link:focus-visible {
  outline: 3px solid var(--neon-magenta);
  outline-offset: 2px;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  z-index: 12001;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--electric-blue), var(--aux-purple), var(--neon-magenta));
  background-size: 200% 100%;
  transform-origin: left center;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.85) 0%, rgba(10, 14, 26, 0.35) 100%);
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.site-header[data-scrolled] {
  background: rgba(20, 16, 36, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 229, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(0, 229, 255, 0.08);
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 229, 255, 0.5) 20%,
    rgba(255, 42, 109, 0.5) 80%,
    transparent 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

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

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

.brand-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--electric-blue) 0%, var(--neon-magenta) 100%);
  color: var(--bg-dark);
  font-size: 14px;
  line-height: 1;
  transform: rotate(8deg) skewX(-6deg);
  box-shadow:
    0 0 18px rgba(0, 229, 255, 0.3),
    0 0 8px rgba(255, 42, 109, 0.2);
}

.brand-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--electric-blue);
  transform: skewX(-6deg);
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

.brand-name > span {
  color: var(--neon-magenta);
  text-shadow: 0 0 20px rgba(255, 42, 109, 0.25);
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  white-space: nowrap;
  transition:
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.nav-link:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--electric-blue);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
  transform: translateY(-1px);
}

.nav-link[aria-current='page'] {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16) 0%, rgba(255, 42, 109, 0.12) 100%);
  color: var(--electric-blue);
  box-shadow:
    inset 0 0 0 1px rgba(0, 229, 255, 0.3),
    0 0 12px rgba(0, 229, 255, 0.08);
  font-weight: 700;
}

/* Header Extras */
.header-extras {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 168, 192, 0.2);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.nav-search:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.nav-search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.nav-search-icon::after {
  content: '';
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transform: rotate(45deg);
  transition: background var(--transition);
}

.nav-search:hover .nav-search-icon {
  border-color: var(--electric-blue);
}

.nav-search:hover .nav-search-icon::after {
  background: var(--electric-blue);
}

.nav-search-text {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.nav-search:hover .nav-search-text {
  color: var(--electric-blue);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 255, 159, 0.1);
  border: 1px solid rgba(0, 255, 159, 0.3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--neon-green);
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 159, 0.8);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 4px rgba(0, 255, 159, 0.6);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 16px rgba(0, 255, 159, 1);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(160, 168, 192, 0.15);
  transition: all var(--transition);
}

.nav-toggle:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.1);
}

.toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-bright);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

.nav-toggle[aria-expanded='true'] .toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--electric-blue);
}

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

.nav-toggle[aria-expanded='true'] .toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--electric-blue);
}

/* ===== Back Top ===== */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--panel-deep);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition:
    opacity var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-top:hover {
  border-color: var(--electric-blue);
  box-shadow:
    0 0 24px rgba(0, 229, 255, 0.25),
    inset 0 0 12px rgba(0, 229, 255, 0.1);
}

.back-top-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 5px;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  background: var(--bg-dark);
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  margin-top: 0;
  padding-top: 0;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--electric-blue) 0%,
    var(--aux-purple) 40%,
    var(--neon-magenta) 100%
  );
  opacity: 0.7;
}

.footer-main {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 16px;
}

.footer-brand {
  padding-right: 24px;
}

.footer-brand-name {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--electric-blue);
  transform: skewX(-6deg);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.footer-brand-name > span {
  color: var(--neon-magenta);
  text-shadow: 0 0 24px rgba(255, 42, 109, 0.2);
}

.footer-slogan {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.footer-alert {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 42, 109, 0.12);
  border: 1px solid rgba(255, 42, 109, 0.35);
  color: var(--neon-magenta);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-trust {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h3,
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  position: relative;
  padding-left: 12px;
}

.footer-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--electric-blue), var(--neon-magenta));
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color var(--transition), padding-left var(--transition);
}

.footer-links a:hover {
  color: var(--electric-blue);
  padding-left: 6px;
}

.footer-contact-list li {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 0;
}

.footer-bottom {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(160, 168, 192, 0.1);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-icp,
.footer-address {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== Shared Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.85) 0%, rgba(0, 229, 255, 0.55) 100%);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
}

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

.btn-cta {
  background: linear-gradient(135deg, var(--neon-green) 0%, rgba(0, 255, 159, 0.7) 100%);
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.25);
  animation: ctaPulse 2.5s ease-in-out infinite;
}

.btn-cta:hover {
  box-shadow: 0 0 32px rgba(0, 255, 159, 0.45);
}

@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(0, 255, 159, 0.2);
  }
  50% {
    box-shadow: 0 0 28px rgba(0, 255, 159, 0.4);
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text-bright);
  border-color: rgba(160, 168, 192, 0.3);
}

.btn-ghost:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  box-shadow: inset 0 0 16px rgba(0, 229, 255, 0.06);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 16px;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  background: rgba(160, 168, 192, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(160, 168, 192, 0.2);
}

.badge-warn {
  background: rgba(255, 153, 0, 0.12);
  color: var(--warn-orange);
  border-color: rgba(255, 153, 0, 0.3);
}

.badge-new {
  background: rgba(255, 42, 109, 0.12);
  color: var(--neon-magenta);
  border-color: rgba(255, 42, 109, 0.3);
}

.badge-success {
  background: rgba(0, 255, 159, 0.1);
  color: var(--neon-green);
  border-color: rgba(0, 255, 159, 0.3);
}

/* ===== Cards ===== */
.card {
  background: var(--panel-deep);
  border-radius: var(--radius-md);
  border: 1px solid rgba(160, 168, 192, 0.1);
  padding: 24px;
  position: relative;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 229, 255, 0.05);
  transform: translateY(-3px);
}

.card-panel {
  background: var(--panel-deep);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(160, 168, 192, 0.1);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.card-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-blue), var(--aux-purple), var(--neon-magenta));
  opacity: 0.6;
}

.card-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(122, 79, 255, 0.15), rgba(255, 42, 109, 0.08));
  aspect-ratio: 16 / 9;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 0;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--electric-blue);
}

.breadcrumb-sep {
  color: rgba(160, 168, 192, 0.4);
  user-select: none;
}

.breadcrumb-current {
  color: var(--electric-blue);
  font-weight: 600;
}

/* ===== Prose ===== */
.prose {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-title);
  color: var(--text-bright);
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.6em;
  font-style: italic;
}

.prose h1 {
  font-size: 32px;
}

.prose h2 {
  font-size: 26px;
}

.prose h3 {
  font-size: 20px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
}

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

.prose a {
  color: var(--electric-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity var(--transition);
}

.prose a:hover {
  opacity: 0.8;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.5em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose blockquote {
  border-left: 3px solid var(--electric-blue);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: rgba(0, 229, 255, 0.05);
  border-radius: 0 12px 12px 0;
  color: var(--text-bright);
}

.prose code {
  background: rgba(160, 168, 192, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--electric-blue);
}

/* ===== Box Highlight ===== */
.box-highlight {
  position: relative;
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.3);
  border-left: 4px solid var(--warn-orange);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: var(--text-bright);
  font-size: 14px;
  line-height: 1.7;
}

.box-highlight strong {
  color: var(--warn-orange);
  font-weight: 700;
}

.box-highlight-info {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.2);
  border-left-color: var(--electric-blue);
}

.box-highlight-info strong {
  color: var(--electric-blue);
}

/* ===== Image Frame ===== */
.img-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(122, 79, 255, 0.18) 0%, rgba(255, 42, 109, 0.08) 60%, rgba(0, 229, 255, 0.06) 100%),
    var(--panel-deep);
  isolation: isolate;
}

.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.08) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: scanSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0%, 55% {
    transform: translateX(-100%);
  }
  80%, 100% {
    transform: translateX(100%);
  }
}

/* ===== Focus Visible ===== */
:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-link:focus-visible,
.btn:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible,
.back-top:focus-visible {
  outline-color: var(--neon-magenta);
}

/* ===== 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;
  }

  .status-dot {
    animation: none;
  }

  .btn-cta {
    animation: none;
  }

  .img-frame::after {
    animation: none;
    transform: none;
  }

  .back-top {
    transition: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    padding: 0 20px;
  }

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

  .nav-search-text {
    display: none;
  }

  .nav-search {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .status-pill {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px 24px;
  }

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

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .section {
    padding: 48px 0;
  }

  .header-inner {
    padding: 0 16px;
    gap: 10px;
  }

  .brand-glyph {
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: rgba(20, 16, 36, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    padding: 16px 20px 24px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    border-radius: 0 0 20px 20px;
  }

  .nav[data-open] {
    display: flex;
    animation: navDrop 0.3s ease;
  }

  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-list {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
  }

  .nav-link[aria-current='page'] {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(255, 42, 109, 0.1));
  }

  .header-extras {
    gap: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-search {
    display: none;
  }

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
    padding: 40px 20px 24px;
    gap: 28px 20px;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-bottom {
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    padding-right: 0;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 0.05em;
  }

  .brand-glyph {
    width: 26px;
    height: 26px;
  }
}
