@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* =============================================
   CSS 自定义属性
============================================= */
:root {
  --green: #87ff71;
  --cyan: #01cdfe;
  --dark: #192617;
  --dark2: #1a2f1a;
  --dark3: #0d1a0d;
  --pink: #ff71ce;
  --purple: #b967ff;
  --yellow: #fffb96;
  --text-main: #d4f5c8;
  --text-muted: #7ab87a;
  --text-bright: #f0fff0;
  --border-neon: rgba(135, 255, 113, 0.35);
  --border-cyan: rgba(1, 205, 254, 0.35);
  --glow-green: 0 0 8px rgba(135,255,113,0.7), 0 0 20px rgba(135,255,113,0.3);
  --glow-cyan: 0 0 8px rgba(1,205,254,0.7), 0 0 20px rgba(1,205,254,0.3);
  --glow-pink: 0 0 8px rgba(255,113,206,0.7), 0 0 20px rgba(255,113,206,0.3);
  --font-display: 'Caveat', 'Comic Sans MS', cursive;
  --font-body: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  --radius-card: 4px;
  --header-h: 64px;
  --anchor-h: 44px;
  --scroll-offset: calc(var(--header-h) + var(--anchor-h) + 8px);
  --max-content: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark3);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  background: var(--dark3);
  overflow-x: hidden;
  position: relative;
}

.vaporwave-body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(1,205,254,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(185,103,255,0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark3) 0%, var(--dark) 40%, #0f1f0f 100%);
  background-attachment: fixed;
}

/* Screen reader only */
.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;
}

/* =============================================
   Scanlines & Noise overlay
============================================= */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* =============================================
   Typography
============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.3;
  color: var(--text-bright);
}

h2 > span, h3 > span {
  display: inline;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
a:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
}

strong { color: var(--green); font-weight: 600; }
em { color: var(--cyan); font-style: italic; }

/* =============================================
   Header
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  background: rgba(13, 26, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 2px 16px rgba(135,255,113,0.08);
}

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

.brand-link {
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-img, .logo-mark {
  height: 40px;
  width: auto;
}

.primary-nav {
  flex: 1;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  min-height: 40px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-card);
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--green);
  background: rgba(135,255,113,0.08);
  text-shadow: var(--glow-green);
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(135,255,113,0.06);
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  padding: 0 4px 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search:focus-within {
  border-color: var(--green);
  box-shadow: var(--glow-green);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 140px;
  padding: 8px 4px;
  min-height: 40px;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--cyan);
  padding: 8px;
  min-height: 40px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: color 0.2s, text-shadow 0.2s;
}

.search-btn:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 40px;
  min-width: 40px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
}

.hamburger-bar {
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  display: block;
  box-shadow: var(--glow-green);
  transition: transform 0.3s, opacity 0.3s;
}

/* =============================================
   Anchor Bar
============================================= */
.anchor-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 490;
  background: rgba(13, 26, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(1,205,254,0.25);
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar::-webkit-scrollbar { display: none; }

.anchor-bar-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--anchor-h);
}

.anchor-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  min-height: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s, text-shadow 0.2s;
  text-decoration: none;
}

.anchor-link:hover {
  color: var(--cyan);
  background: rgba(1,205,254,0.08);
  text-shadow: var(--glow-cyan);
}

/* =============================================
   Hero
============================================= */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 20px 40px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 680px;
  width: 100%;
}

.hero-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 0 12px rgba(135,255,113,0.6));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-glyph {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin: 0;
}

/* Retro Grid */
.retro-grid {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 160px;
  perspective: 400px;
  pointer-events: none;
  z-index: 1;
}

.retro-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: rotateX(55deg);
  transform-origin: bottom center;
  background:
    linear-gradient(to right, rgba(1,205,254,0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(1,205,254,0.15) 1px, transparent 1px);
  background-size: 60px 40px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* =============================================
   Glitch effect
============================================= */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font: inherit;
}

.glitch-text::before {
  color: var(--pink);
  animation: glitch-a 3.5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}

.glitch-text::after {
  color: var(--green);
  animation: glitch-b 3.5s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch-a {
  0%, 85%, 100% { transform: translate(0); opacity: 0; }
  86% { transform: translate(-3px, 1px); opacity: 0.8; }
  88% { transform: translate(3px, -1px); opacity: 0.8; }
  90% { transform: translate(0); opacity: 0; }
}

@keyframes glitch-b {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(3px, 2px); opacity: 0.8; }
  91% { transform: translate(-3px, -2px); opacity: 0.8; }
  93% { transform: translate(0); opacity: 0; }
}

/* =============================================
   Main layout: main > div.wrap > section > article
============================================= */
.site-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}

/* =============================================
   Aside (left of content)
============================================= */
.content-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--anchor-h) + 20px);
  align-self: start;
}

.aside-inner {
  background: rgba(25, 38, 23, 0.7);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-card);
  border-left: 3px solid var(--green);
  padding: 20px 16px;
}

.aside-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-neon);
}

.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-nav-link {
  display: block;
  padding: 7px 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 3px;
  transition: color 0.2s, background 0.2s, padding-left 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-nav-link:hover {
  color: var(--cyan);
  background: rgba(1,205,254,0.08);
  padding-left: 16px;
  text-shadow: none;
}

.aside-badge {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.badge-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.badge-glow {
  color: var(--green);
  font-size: 1rem;
  text-shadow: var(--glow-green);
  animation: blink 1.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* =============================================
   Content section & article
============================================= */
.content-section {
  min-width: 0;
}

.content-article {
  /* main > div.wrap > section > article chain satisfied */
}

.page-content {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.8;
}

/* Section headings in page.content */
.page-content section {
  margin-bottom: 60px;
  scroll-margin-top: var(--scroll-offset);
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-neon);
  position: relative;
}

.page-content h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--cyan);
  text-shadow: 0 0 6px rgba(1,205,254,0.5);
  margin-top: 28px;
  margin-bottom: 12px;
}

.page-content h4 {
  font-size: 1.05rem;
  color: var(--yellow);
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

.page-content p {
  margin-bottom: 1.1em;
  font-size: 1rem;
}

.page-content ul,
.page-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.page-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.page-content blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(1,205,254,0.06);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  color: var(--text-bright);
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.95rem;
}

.page-content th {
  background: rgba(135,255,113,0.12);
  color: var(--green);
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border-neon);
}

.page-content td {
  padding: 9px 14px;
  border: 1px solid rgba(135,255,113,0.15);
  color: var(--text-main);
}

.page-content tr:nth-child(even) td {
  background: rgba(135,255,113,0.04);
}

.page-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
}

/* =============================================
   Scroll reveal animations
============================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; opacity: 1; transform: translateY(0); }
}

/* Section scroll-margin for anchor nav */
section[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* =============================================
   Footer
============================================= */
.site-footer {
  background: rgba(10, 20, 10, 0.95);
  border-top: 1px solid var(--border-neon);
  margin-top: 40px;
}

/* footer > section*n as required */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 48px 20px 36px;
}

.footer-brand-col {}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}

.footer-links-col {}

/* footer nav with dl > dt/dd > a structure */
.footer-nav-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.dl-heading {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-cyan);
  font-weight: 600;
}

.footer-nav-dl dt {
  /* dt contains a */
}

.footer-nav-dl dt a,
.footer-nav-dl dd a {
  display: inline-flex;
  align-items: center;
  padding: 7px 8px;
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-nav-dl dt a:hover,
.footer-nav-dl dd a:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
}

.footer-contact {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 36px 20px;
  border-top: 1px solid var(--border-neon);
  text-align: center;
}

.footer-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pink);
  text-shadow: var(--glow-pink);
  margin-bottom: 10px;
}

.footer-contact-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sub-input {
  background: rgba(135,255,113,0.06);
  border: 1px solid var(--border-neon);
  border-radius: 3px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 16px;
  width: 280px;
  min-height: 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sub-input:focus {
  border-color: var(--green);
  box-shadow: var(--glow-green);
}

.sub-input::placeholder { color: var(--text-muted); }

.sub-btn {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--dark);
  border: none;
  border-radius: 3px;
  padding: 10px 24px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 0 12px rgba(135,255,113,0.3);
}

.sub-btn:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px rgba(135,255,113,0.5);
  transform: translateY(-1px);
}

.contact-email,
.contact-wechat {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-email a { color: var(--cyan); }

.footer-bottom {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(135,255,113,0.1);
  text-align: center;
  padding: 20px;
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-note {
  font-size: 0.78rem;
  color: rgba(122, 184, 122, 0.5);
}

/* =============================================
   Neon dividers / decorative
============================================= */
.page-content section + section {
  border-top: 1px solid rgba(135,255,113,0.1);
  padding-top: 40px;
}

/* =============================================
   Responsive — tablet
============================================= */
@media (max-width: 900px) {
  .wrap {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

  .search-input {
    width: 100px;
  }

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

  .footer-nav-dl {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =============================================
   Responsive — mobile
============================================= */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --anchor-h: 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(10,20,10,0.98);
    border-bottom: 1px solid var(--border-neon);
    padding: 12px 20px 20px;
    z-index: 480;
  }

  .primary-nav.is-open {
    display: block;
  }

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

  .nav-link {
    width: 100%;
    padding: 12px 10px;
    font-size: 1rem;
    min-height: 48px;
  }

  .header-search {
    display: none;
  }

  .hero-section {
    min-height: 40vh;
    padding: 36px 16px 32px;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }

  .hero-emoji {
    font-size: 2.2rem;
  }

  .hero-glyph {
    font-size: 2rem;
  }

  .site-main {
    padding: 24px 16px 40px;
  }

  .wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .content-aside {
    position: static;
    margin-bottom: 24px;
  }

  .aside-inner {
    padding: 14px 12px;
  }

  .aside-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .footer-top {
    padding: 32px 16px 24px;
  }

  .footer-nav-dl {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    padding: 28px 16px;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .sub-input {
    width: 100%;
  }

  .sub-btn {
    width: 100%;
  }

  .anchor-bar-inner {
    gap: 0;
    padding: 0 8px;
  }

  .anchor-link {
    padding: 4px 8px;
    font-size: 0.75rem;
    min-height: 40px;
  }

  .page-content h2 {
    font-size: 1.4rem;
  }

  .page-content h3 {
    font-size: 1.15rem;
  }
}

/* =============================================
   Focus visible
============================================= */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =============================================
   Scrollbar styling
============================================= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark3);
}

::-webkit-scrollbar-thumb {
  background: rgba(135,255,113,0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(135,255,113,0.5);
}
