@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Rubik:wght@300;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: #e8f5e1;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Outfit', 'Rubik', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: #192617;
  color: #e8f5e1;
  overflow-x: hidden;
  position: relative;
}

/* VHS scanlines overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #87ff71; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: #01cdfe; }
ol, ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== Retro Grid Background ===== */
.page-home {
  background:
    linear-gradient(180deg, #0d1f0a 0%, #192617 40%, #0a1a2e 100%);
  min-height: 100vh;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #87ff71;
  display: block;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(25, 38, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(135, 255, 113, 0.15);
}

.brand-row {
  border-bottom: 1px solid rgba(1, 205, 254, 0.1);
}

.brand-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, #87ff71, #01cdfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(135, 255, 113, 0.4));
  white-space: nowrap;
}

/* Search */
.search-form {
  display: flex;
  align-items: center;
  background: rgba(1, 205, 254, 0.08);
  border: 1px solid rgba(1, 205, 254, 0.25);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
  border-color: #87ff71;
  box-shadow: 0 0 0 3px rgba(135, 255, 113, 0.15);
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e8f5e1;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  width: 200px;
}

.search-input::placeholder { color: rgba(232, 245, 225, 0.4); }

.search-btn {
  padding: 0.45rem 0.85rem;
  color: #01cdfe;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.search-btn:hover { color: #87ff71; }

/* Nav Row */
.nav-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0;
}

.site-nav ol li a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(232, 245, 225, 0.8);
  border: 1px solid rgba(135, 255, 113, 0.2);
  background: rgba(135, 255, 113, 0.05);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  min-height: 40px;
  white-space: nowrap;
}

.site-nav ol li a:hover,
.site-nav ol li a:focus {
  background: rgba(135, 255, 113, 0.15);
  border-color: #87ff71;
  color: #87ff71;
  box-shadow: 0 0 12px rgba(135, 255, 113, 0.25);
  outline: none;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(135,255,113,0.06) 0%, rgba(1,205,254,0.06) 50%, transparent 100%);
}

/* Retro grid floor */
.hero-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-image:
    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: 40px 40px;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.5rem;
}

.hero-deco {
  flex-shrink: 0;
}

.hero-icon-wrap {
  filter: drop-shadow(0 0 20px rgba(1, 205, 254, 0.5));
  animation: hero-pulse 3s ease-in-out infinite;
}

.hero-icon {
  width: 90px;
  height: 90px;
}

@keyframes hero-pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(1, 205, 254, 0.5)); }
  50% { filter: drop-shadow(0 0 35px rgba(135, 255, 113, 0.7)); }
}

.hero-text {
  text-align: right;
  max-width: 600px;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, #87ff71 0%, #01cdfe 50%, #b967ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(135, 255, 113, 0.3));
  margin-bottom: 0.75rem;
  animation: glitch-h1 8s infinite;
}

@keyframes glitch-h1 {
  0%, 90%, 100% { transform: none; }
  92% { transform: translateX(-2px); filter: drop-shadow(2px 0 #01cdfe) drop-shadow(-2px 0 #87ff71); }
  94% { transform: translateX(2px); filter: drop-shadow(-2px 0 #01cdfe) drop-shadow(2px 0 #b967ff); }
  96% { transform: none; filter: drop-shadow(0 0 12px rgba(135, 255, 113, 0.3)); }
}

.hero-desc {
  font-size: 1rem;
  color: rgba(232, 245, 225, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #87ff71, #01cdfe);
  color: #192617;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(135, 255, 113, 0.4);
  min-height: 44px;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 35px rgba(135, 255, 113, 0.65);
  color: #0a1a0a;
}

/* Slash divider */
.hero-slash {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(135deg, transparent 49%, #192617 50%);
  z-index: 3;
}

/* ===== Main Content Area ===== */
main {
  padding: 2.5rem 0 3rem;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.content-article {
  min-width: 0;
}

/* ===== Page Content Styles ===== */
.content-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #87ff71;
  margin: 2rem 0 0.75rem;
  text-shadow: 0 0 12px rgba(135, 255, 113, 0.3);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(135, 255, 113, 0.2);
}

.content-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #01cdfe;
  margin: 1.5rem 0 0.5rem;
  text-shadow: 0 0 8px rgba(1, 205, 254, 0.3);
}

.content-article p {
  margin-bottom: 1rem;
  color: rgba(232, 245, 225, 0.85);
  line-height: 1.75;
}

.content-article ul,
.content-article ol {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.content-article ul li,
.content-article ol li {
  padding: 0.3rem 0 0.3rem 1.4rem;
  position: relative;
  color: rgba(232, 245, 225, 0.85);
}

.content-article ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #87ff71;
  font-size: 0.85rem;
}

.content-article ol {
  counter-reset: ol-counter;
}

.content-article ol li {
  counter-increment: ol-counter;
}

.content-article ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: #01cdfe;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.content-article a:hover { color: #87ff71; }

.content-article strong { color: #87ff71; font-weight: 600; }
.content-article em { color: #01cdfe; font-style: italic; }

.content-article article {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}

/* Glass card sections */
.content-article article {
  background: rgba(1, 205, 254, 0.04);
  border: 1px solid rgba(135, 255, 113, 0.1);
  border-radius: 4px;
  padding: 1.75rem;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.content-article article:hover {
  border-color: rgba(135, 255, 113, 0.25);
  box-shadow: 0 0 24px rgba(135, 255, 113, 0.08);
}

/* ===== Aside ===== */
.content-aside {
  position: sticky;
  top: 90px;
}

.aside-inner {
  background: rgba(1, 205, 254, 0.06);
  border: 1px solid rgba(1, 205, 254, 0.2);
  border-radius: 4px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.aside-eyebrow {
  color: #01cdfe;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.4rem;
}

.aside-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #87ff71;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(135, 255, 113, 0.3);
}

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.aside-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(232, 245, 225, 0.75);
  border: 1px solid rgba(1, 205, 254, 0.15);
  background: rgba(1, 205, 254, 0.05);
  transition: all 0.2s;
  min-height: 40px;
}

.aside-link:hover {
  background: rgba(1, 205, 254, 0.15);
  border-color: #01cdfe;
  color: #01cdfe;
  box-shadow: 0 0 10px rgba(1, 205, 254, 0.2);
}

.aside-notice {
  border-top: 1px solid rgba(135, 255, 113, 0.15);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.aside-notice p {
  font-size: 0.82rem;
  color: rgba(232, 245, 225, 0.55);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ===== small + h2/h3 eyebrow pattern ===== */
small + h2,
small + h3 {
  margin-top: 0.3rem;
}

/* ===== Footer ===== */
.site-footer {
  background: rgba(10, 20, 8, 0.85);
  border-top: 1px solid rgba(135, 255, 113, 0.15);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(90deg, #87ff71, #01cdfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(232, 245, 225, 0.45);
  line-height: 1.6;
  max-width: 320px;
}

.footer-nav ol {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav ol li a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(232, 245, 225, 0.6);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s;
  min-height: 40px;
}

.footer-nav ol li a:hover {
  color: #87ff71;
  border-color: rgba(135, 255, 113, 0.2);
  background: rgba(135, 255, 113, 0.06);
}

.footer-bottom {
  border-top: 1px solid rgba(135, 255, 113, 0.08);
  padding: 1rem 1.5rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(232, 245, 225, 0.35);
  line-height: 1.5;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== Neon Glow Utilities ===== */
.neon-green {
  color: #87ff71;
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.6);
}

.neon-blue {
  color: #01cdfe;
  text-shadow: 0 0 10px rgba(1, 205, 254, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }

  .brand-inner {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
  }

  .search-input { width: 130px; }

  .site-nav ol {
    gap: 0.25rem;
    padding: 0.4rem 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.45rem 1rem;
    margin: 0 -1rem;
  }

  .site-nav ol::-webkit-scrollbar { display: none; }

  .nav-row {
    padding: 0;
    overflow: hidden;
  }

  .site-nav ol li a {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: flex-end;
    padding: 2rem 1rem 1.5rem;
    gap: 1rem;
  }

  .hero-text { text-align: right; }

  .hero-icon { width: 64px; height: 64px; }

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

  .content-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .brand-name { font-size: 1.15rem; }
  .hero-h1 { font-size: 1.5rem; }
  .hero-cta { font-size: 0.9rem; padding: 0.6rem 1.5rem; }
  .content-article article { padding: 1.25rem; }
  .aside-inner { padding: 1.1rem; }
  .wrap { padding: 0 0.85rem; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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