/* ============================================================
   安博电竞 · 共享 Site Kit
   暗色赛博基底 · 霓虹青蓝/亮橙信号色 · 仪表板隐喻
   ============================================================ */

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

:root {
  --bg-deep: #0A0E17;
  --bg-panel: #111B2E;
  --bg-panel-2: #162238;
  --cyan: #00E5FF;
  --orange: #FF7A00;
  --purple: #8B5CF6;
  --text-main: #E5E9F2;
  --text-sub: #8A94A6;
  --green: #10B981;
  --red: #EF4444;
  --amber: #F59E0B;
  --font-heading: 'Rajdhani', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;
  --container-w: 1240px;
  --header-top-h: 38px;
  --header-main-h: 76px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 75% -5%, rgba(0, 229, 255, .08), transparent),
    radial-gradient(ellipse 55% 45% at 10% 105%, rgba(139, 92, 246, .07), transparent),
    linear-gradient(rgba(0, 229, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, .035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

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

/* ---------- 3. Selection & Scrollbar ---------- */
::selection {
  background: rgba(0, 229, 255, .25);
  color: var(--text-main);
}

::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-panel-2);
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, .25);
}

/* ---------- 4. Accessibility ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 2000;
  background: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: top .25s ease;
}
.skip-link:focus {
  top: 12px;
}

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

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

/* ---------- 5. Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, .93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 229, 255, .18);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(0, 229, 255, .3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1500;
  pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--orange));
  box-shadow: 0 0 10px rgba(0, 229, 255, .55);
}

.header-top {
  position: relative;
  background: var(--bg-panel);
  border-bottom: 1px solid rgba(0, 229, 255, .1);
  overflow: hidden;
}
.header-top::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 100%;
  background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(0, 229, 255, .05) 8px 16px);
  pointer-events: none;
}
.header-top-inner {
  position: relative;
  z-index: 1;
  height: var(--header-top-h);
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--text-sub);
}
.header-top-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header-top-item::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: .85;
}
.header-top-brand {
  font-weight: 600;
  letter-spacing: .05em;
}
.header-top-tagline {
  letter-spacing: .06em;
}
.header-top-tagline::before {
  background: var(--purple);
}
.header-top-phone {
  margin-left: auto;
  font-family: var(--font-mono);
  letter-spacing: .04em;
}
.header-top-phone::before {
  background: var(--orange);
}

.header-main {
  position: relative;
}
.header-main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple) 28%, rgba(139, 92, 246, .2) 52%, transparent 78%);
  opacity: .55;
  pointer-events: none;
}
.header-main-inner {
  position: relative;
  height: var(--header-main-h);
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, .3));
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--bg-deep);
  clip-path: polygon(50% 8%, 96% 31%, 96% 69%, 50% 92%, 4% 69%, 4% 31%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  z-index: 1;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--cyan);
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-list a {
  display: block;
  padding: 12px 13px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--text-sub);
  text-decoration: none;
  position: relative;
  transition: color .25s ease, text-shadow .25s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-list a:hover {
  color: var(--text-main);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-list a[aria-current="page"] {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(0, 229, 255, .35);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(0, 229, 255, .3);
  cursor: pointer;
  position: relative;
  transition: border-color .25s ease, background .25s ease;
}
.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, .06);
}
.nav-toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 13px;
}
.nav-toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transition: top .3s ease, transform .3s ease, opacity .2s ease;
}
.nav-toggle-line:nth-child(1) { top: 0; }
.nav-toggle-line:nth-child(2) { top: 5px; }
.nav-toggle-line:nth-child(3) { top: 10px; }
.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 11px 24px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .25s ease, filter .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-cta {
  background: linear-gradient(135deg, var(--orange) 0%, #ff9a3c 100%);
  color: var(--bg-deep);
  filter: drop-shadow(0 4px 14px rgba(255, 122, 0, .3));
}
.btn-cta:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 6px 22px rgba(255, 122, 0, .5));
  color: var(--bg-deep);
}
.btn-ghost {
  background: rgba(0, 229, 255, .06);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .4);
}
.btn-ghost:hover {
  background: rgba(0, 229, 255, .14);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .7);
  color: var(--cyan);
}
.nav-cta {
  padding: 8px 18px;
  font-size: 14px;
}

/* ---------- 8. Sections ---------- */
.section {
  position: relative;
  padding: 64px 0;
}
.section-wide {
  position: relative;
  padding: 84px 0;
}
.section-narrow {
  position: relative;
  padding: 40px 0;
}
.section-header {
  margin-bottom: 40px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
}
.section-desc {
  margin-top: 10px;
  max-width: 640px;
  font-size: 16px;
  color: var(--text-sub);
}

/* ---------- 9. Grid, Card, Panel, Tag ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { 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)); }

.card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid rgba(139, 148, 166, .12);
  padding: 26px 28px;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 229, 255, .35) 50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover {
  border-color: rgba(0, 229, 255, .35);
  transform: translateY(-4px);
  background: var(--bg-panel-2);
}
.card:hover::after {
  opacity: 1;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}
.card-text {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.7;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  transition: gap .25s ease;
}
.card-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.card-link:hover {
  gap: 10px;
}

.panel {
  position: relative;
  background: var(--bg-panel);
  border-left: 3px solid var(--cyan);
  padding: 28px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
}
.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 229, 255, .4) 50%);
}
.panel-purple {
  border-left-color: var(--purple);
}
.panel-purple::before {
  background: linear-gradient(135deg, transparent 50%, rgba(139, 92, 246, .4) 50%);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 4px 12px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, .12);
  border: 1px solid rgba(139, 92, 246, .3);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  white-space: nowrap;
}
.tag-cyan {
  color: var(--cyan);
  background: rgba(0, 229, 255, .1);
  border: 1px solid rgba(0, 229, 255, .28);
}
.tag-orange {
  color: #ffb066;
  background: rgba(255, 122, 0, .1);
  border: 1px solid rgba(255, 122, 0, .28);
}

/* ---------- 10. Media Frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-panel);
  border: 1px solid rgba(0, 229, 255, .12);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, .08), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(139, 148, 166, .04) 0 1px, transparent 1px 12px);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, .05), transparent 55%);
}
.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame[data-ratio="21:9"] { aspect-ratio: 21 / 9; }
.media-frame[data-ratio="4:3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1:1"] { aspect-ratio: 1 / 1; }

/* ---------- 11. Breadcrumb / Page Hero ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0 0 20px;
  font-size: 13px;
  color: var(--text-sub);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(138, 148, 166, .4);
  font-family: var(--font-mono);
}
.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
  transition: color .25s ease;
}
.breadcrumb a:hover {
  color: var(--cyan);
}
.breadcrumb [aria-current="page"] {
  color: var(--cyan);
  font-weight: 600;
}

.page-hero {
  position: relative;
  padding: 64px 0 40px;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.page-hero h1::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.page-hero-desc {
  max-width: 680px;
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.8;
}
.page-hero-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: rgba(138, 148, 166, .75);
}

/* ---------- 12. Stat / Data / Divider ---------- */
.stat {
  position: relative;
  padding: 20px 24px;
  background: var(--bg-panel);
  border-left: 2px solid var(--cyan);
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 55%, rgba(0, 229, 255, .1) 55%);
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}
.stat-value[data-positive] { color: var(--green); }
.stat-value[data-negative] { color: var(--red); }
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--text-sub);
}

.data-line {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.6;
}

.divider {
  border: none;
  height: 1px;
  margin: 40px 0;
  background: linear-gradient(90deg, rgba(0, 229, 255, .35), rgba(139, 92, 246, .18), transparent);
}

/* ---------- 13. Prose ---------- */
.prose {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-main);
}
.prose p { margin-bottom: 1.2em; }
.prose h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  margin: 1.8em 0 .55em;
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
}
.prose h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 1.5em 0 .4em;
}
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em 1.3em;
}
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--bg-panel);
  border-left: 3px solid var(--orange);
  color: var(--text-sub);
  font-size: 15px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: 2px 7px;
  background: rgba(0, 229, 255, .09);
  color: var(--cyan);
}
.prose pre {
  margin: 0 0 1.4em;
  padding: 18px 22px;
  background: var(--bg-panel);
  border: 1px solid rgba(0, 229, 255, .1);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg-deep);
  border-top: 1px solid rgba(0, 229, 255, .15);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .35) 20%, rgba(139, 92, 246, .3) 60%, transparent);
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(139, 92, 246, .1), transparent 65%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 56px 24px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 40px;
}
.footer-brand-col { min-width: 0; }
.footer-brand-col .brand { margin-bottom: 16px; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--cyan);
  margin-bottom: 16px;
}
.footer-about {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 14px;
}
.footer-trust {
  font-size: 13px;
  color: rgba(138, 148, 166, .65);
  border-left: 2px solid rgba(0, 229, 255, .3);
  padding-left: 12px;
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-main);
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
  border-bottom: 1px solid rgba(139, 148, 166, .14);
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--cyan);
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
  font-size: 14px;
  text-decoration: none;
  transition: color .25s ease, padding-left .25s ease;
}
.footer-links a::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 229, 255, .6);
  transform: rotate(45deg);
  transition: background .25s ease, box-shadow .25s ease;
}
.footer-links a:hover {
  color: var(--cyan);
  padding-left: 6px;
}
.footer-links a:hover::before {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, .5);
}
.footer-contact {
  display: grid;
  gap: 14px;
}
.footer-contact-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  min-width: 0;
}
.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(138, 148, 166, .7);
  padding-top: 2px;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(139, 148, 166, .12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--text-sub);
}
.footer-note {
  flex-basis: 100%;
  font-size: 13px;
  color: rgba(138, 148, 166, .7);
  line-height: 1.7;
}
.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(138, 148, 166, .75);
}
.footer-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

/* ---------- 15. Utilities ---------- */
.site-main {
  position: relative;
  z-index: 1;
  outline: none;
  min-height: 60vh;
}
.text-mono { font-family: var(--font-mono); }
.text-sub { color: var(--text-sub); }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }
.text-purple { color: var(--purple); }

/* ---------- 16. Reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1200px) {
  .header-top-phone { display: none; }
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .header-top-tagline { display: none; }
  .header-main-inner { height: 64px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 9px; letter-spacing: .2em; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 14, 23, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 229, 255, .2);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height .45s var(--ease-out), opacity .3s ease, visibility .3s;
  }
  .site-nav[data-open] {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px;
  }
  .nav-list a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(139, 148, 166, .12);
    font-size: 16px;
  }
  .nav-list a::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
  }
  .nav-cta {
    margin: 14px 20px 20px;
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-contact { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .header-top { display: none; }
  .header-main-inner { height: 60px; padding-inline: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 10px; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { padding: 44px 16px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-wrap: wrap; gap: 10px 16px; }
}

/* ---------- 18. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
