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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #192617;
  color: #e8ffe0;
}

body.vaporwave-body {
  font-family: 'Epilogue', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  background: #192617;
  color: #e8ffe0;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: 'Anton', 'Epilogue', sans-serif;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #87ff71;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.55);
  margin-bottom: 0.4em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #01cdfe;
  margin-bottom: 0.3em;
}

p { margin-bottom: 1em; }
a { color: #01cdfe; text-decoration: none; transition: color 0.2s, text-shadow 0.2s; }
a:hover { color: #87ff71; text-shadow: 0 0 10px rgba(135, 255, 113, 0.7); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(25, 38, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(135, 255, 113, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.brand-anchor {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #87ff71, #01cdfe);
  color: #192617;
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  border-radius: 8px;
  font-weight: 900;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c8f5c0;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 40px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.nav-link:hover {
  background: rgba(135, 255, 113, 0.12);
  color: #87ff71;
  text-shadow: 0 0 8px rgba(135, 255, 113, 0.6);
}

.nav-icon {
  font-size: 0.7rem;
  color: #87ff71;
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(135, 255, 113, 0.4);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #87ff71;
  border-radius: 2px;
  transition: transform 0.2s;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  background: rgba(25, 38, 23, 0.98);
  border-top: 1px solid rgba(135, 255, 113, 0.15);
  padding: 0.5rem 1rem 1rem;
}
.mobile-nav .nav-link {
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(135, 255, 113, 0.07);
}

/* ===================== STICKY BAR ===================== */
.sticky-bar {
  position: sticky;
  top: 57px;
  z-index: 800;
  background: linear-gradient(90deg, rgba(1, 205, 254, 0.08) 0%, rgba(135, 255, 113, 0.08) 100%);
  border-bottom: 1px solid rgba(1, 205, 254, 0.25);
  overflow-x: auto;
  scrollbar-width: none;
}
.sticky-bar::-webkit-scrollbar { display: none; }

.sticky-nav {
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.sticky-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #01cdfe;
  white-space: nowrap;
  min-height: 40px;
  border-right: 1px solid rgba(1, 205, 254, 0.15);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
}
.sticky-link:hover {
  background: rgba(1, 205, 254, 0.1);
  color: #87ff71;
}
.sticky-link:first-child { border-left: 1px solid rgba(1, 205, 254, 0.15); }

/* ===================== HERO ===================== */
.hero-wrap {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: linear-gradient(160deg, #0d1f0b 0%, #192617 40%, #0a1a2e 100%);
}

.hero-slash {
  position: absolute;
  top: 0;
  left: 45%;
  width: 120px;
  height: 100%;
  background: linear-gradient(135deg, rgba(135, 255, 113, 0.12) 0%, rgba(1, 205, 254, 0.08) 100%);
  transform: skewX(-8deg);
  z-index: 1;
  pointer-events: none;
}

.hero-slash::after {
  content: '';
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(135, 255, 113, 0.4);
  border-right: 2px solid rgba(1, 205, 254, 0.3);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  gap: 2rem;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(1, 205, 254, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.15) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(400px) rotateX(20deg);
  transform-origin: center bottom;
  opacity: 0.5;
}

.hero-glitch-box {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glitch-bar {
  position: absolute;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #87ff71, #01cdfe);
  border-radius: 2px;
  animation: glitch-move 3s infinite;
  opacity: 0.9;
}
.glitch-bar:nth-child(1) { top: 20%; width: 80%; animation-delay: 0s; }
.glitch-bar:nth-child(2) { top: 50%; width: 60%; animation-delay: 0.7s; }
.glitch-bar:nth-child(3) { top: 75%; width: 90%; animation-delay: 1.4s; }

.neon-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #87ff71;
  box-shadow: 0 0 20px rgba(135, 255, 113, 0.5), inset 0 0 20px rgba(135, 255, 113, 0.1);
  animation: neon-pulse 2.5s ease-in-out infinite;
}

@keyframes glitch-move {
  0%, 100% { transform: translateX(0); opacity: 0.9; }
  25% { transform: translateX(8px); opacity: 0.5; }
  50% { transform: translateX(-5px); opacity: 1; }
  75% { transform: translateX(3px); opacity: 0.7; }
}

@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(135, 255, 113, 0.5), inset 0 0 20px rgba(135, 255, 113, 0.1); }
  50% { box-shadow: 0 0 40px rgba(135, 255, 113, 0.8), 0 0 60px rgba(1, 205, 254, 0.3), inset 0 0 30px rgba(135, 255, 113, 0.15); }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.hero-h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  background: linear-gradient(135deg, #87ff71 0%, #01cdfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 16px rgba(135, 255, 113, 0.5));
  line-height: 1.1;
  margin: 0;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: rgba(232, 255, 224, 0.8);
  margin: 0;
  max-width: 400px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.4rem;
  background: linear-gradient(135deg, #87ff71, #01cdfe);
  color: #192617;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border-radius: 28px;
  text-decoration: none;
  min-height: 52px;
  box-shadow: 0 0 24px rgba(135, 255, 113, 0.4);
  transition: box-shadow 0.25s, transform 0.2s;
}
.hero-cta:hover {
  box-shadow: 0 0 40px rgba(135, 255, 113, 0.7), 0 0 20px rgba(1, 205, 254, 0.4);
  transform: translateY(-2px);
  color: #192617;
  text-shadow: none;
}

/* ===================== MAIN / WRAP ===================== */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.wrap { width: 100%; }

.content-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ===================== ASIDE ===================== */
.content-aside {
  position: sticky;
  top: 100px;
}

.aside-inner {
  background: rgba(1, 205, 254, 0.05);
  border: 1px solid rgba(1, 205, 254, 0.2);
  border-radius: 16px;
  padding: 1.4rem;
}

.aside-title {
  font-size: 1rem;
  color: #87ff71;
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.4);
  margin-bottom: 0.2em;
  font-family: 'Anton', sans-serif;
  letter-spacing: 0.05em;
}

.aside-inner .subtitle {
  font-size: 0.78rem;
  color: rgba(232, 255, 224, 0.5);
  margin-bottom: 1rem;
}

.aside-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  color: rgba(232, 255, 224, 0.75);
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  min-height: 36px;
  line-height: 1.4;
}
.aside-nav-list li a:hover {
  border-left-color: #87ff71;
  background: rgba(135, 255, 113, 0.08);
  color: #87ff71;
  text-shadow: none;
}

.aside-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #01cdfe;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(1, 205, 254, 0.15);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #87ff71;
  box-shadow: 0 0 8px rgba(135, 255, 113, 0.8);
  animation: badge-blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===================== CONTENT BODY ===================== */
.content-body {
  min-width: 0;
}

.content-body article {
  margin-bottom: 4rem;
  scroll-margin-top: 110px;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(135, 255, 113, 0.1);
  position: relative;
}

.content-body article:last-child {
  border-bottom: none;
}

.content-body article::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #87ff71, #01cdfe);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.content-body h2 {
  color: #87ff71;
  text-shadow: 0 0 18px rgba(135, 255, 113, 0.55);
  padding-left: 1rem;
  border-left: 4px solid #01cdfe;
  margin-bottom: 0.5em;
}

.content-body h2 + p {
  color: rgba(232, 255, 224, 0.65);
  font-size: 0.92rem;
  margin-bottom: 1.2em;
}

.content-body h3 {
  color: #01cdfe;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.content-body p {
  color: rgba(232, 255, 224, 0.88);
  font-size: 1rem;
  line-height: 1.8;
}

.content-body ul, .content-body ol {
  color: rgba(232, 255, 224, 0.85);
}

.content-body a {
  color: #01cdfe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9rem;
}
.content-body th {
  background: rgba(135, 255, 113, 0.1);
  color: #87ff71;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(135, 255, 113, 0.3);
}
.content-body td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(232, 255, 224, 0.82);
}

.content-body blockquote {
  border-left: 3px solid #87ff71;
  padding: 0.8rem 1.2rem;
  margin: 1.5em 0;
  background: rgba(135, 255, 113, 0.05);
  border-radius: 0 8px 8px 0;
  color: rgba(232, 255, 224, 0.8);
  font-style: italic;
}

.content-body li {
  opacity: 0;
  transform: translateY(12px);
  animation: stagger-in 0.4s forwards;
}
.content-body li:nth-child(1) { animation-delay: 0.05s; }
.content-body li:nth-child(2) { animation-delay: 0.10s; }
.content-body li:nth-child(3) { animation-delay: 0.15s; }
.content-body li:nth-child(4) { animation-delay: 0.20s; }
.content-body li:nth-child(5) { animation-delay: 0.25s; }
.content-body li:nth-child(6) { animation-delay: 0.30s; }
.content-body li:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes stagger-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: linear-gradient(180deg, #0f1e0d 0%, #0a150a 100%);
  border-top: 1px solid rgba(135, 255, 113, 0.15);
  text-align: center;
  padding: 1.2rem 1.5rem;
}

.footer-copy {
  margin: 0;
}

.footer-copy small {
  font-size: 0.8rem;
  color: rgba(232, 255, 224, 0.35);
}

/* ===================== FOOTER NAV (outside footer tag) ===================== */
.footer-bottom-nav {
  background: linear-gradient(180deg, #0a150a 0%, #080e08 100%);
  border-top: 1px solid rgba(1, 205, 254, 0.12);
  padding: 1.5rem;
}

.footer-bottom-nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.2rem;
  max-width: 1280px;
  margin: 0 auto;
  justify-content: center;
}

.footer-bottom-nav dt {
  font-weight: normal;
}

.footer-bottom-nav dt a {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: rgba(232, 255, 224, 0.5);
  min-height: 40px;
  border: 1px solid rgba(1, 205, 254, 0.12);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
.footer-bottom-nav dt a:hover {
  color: #87ff71;
  border-color: rgba(135, 255, 113, 0.3);
  background: rgba(135, 255, 113, 0.06);
  text-shadow: none;
}

/* ===================== SCROLL MARGIN ===================== */
article[id] {
  scroll-margin-top: 110px;
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .top-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero-wrap {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 1.2rem;
    gap: 1rem;
  }

  .hero-media {
    min-height: 120px;
    order: 2;
  }

  .hero-text {
    align-items: center;
    order: 1;
  }

  .hero-slash {
    display: none;
  }

  .content-section {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    order: -1;
  }

  .aside-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .aside-title, .aside-inner .subtitle {
    grid-column: 1 / -1;
  }

  .aside-nav-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
  }

  .aside-badge {
    grid-column: 1 / -1;
  }

  .footer-bottom-nav dl {
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0.5rem 1rem;
  }

  main {
    padding: 1.5rem 1rem 2rem;
  }

  .sticky-link {
    font-size: 0.72rem;
    padding: 0.45rem 0.6rem;
  }

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

  .hero-inner {
    padding: 1.2rem 1rem;
  }

  .content-body h2 {
    font-size: 1.3rem;
  }

  .aside-inner {
    display: block;
  }

  .aside-nav-list {
    display: flex;
    flex-direction: column;
  }

  .footer-bottom-nav {
    padding: 1rem;
  }

  .footer-bottom-nav dt a {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
