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

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

:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #0f1a0f;
  --dark3: #1e331e;
  --dark4: #243a24;
  --chrome1: #b8ffb8;
  --chrome2: #80ffa0;
  --glow-green: 0 0 8px #69ff69, 0 0 24px #69ff6980;
  --glow-cyan: 0 0 8px #00ffff, 0 0 24px #00ffff80;
  --radius-card: 28px;
  --radius-btn: 50px;
  --nav-h: 72px;
  --font-head: 'Righteous', 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark2);
  color: #d4f5d4;
}

body.y2k-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  background: radial-gradient(ellipse at top left, #1a3a1a 0%, var(--dark2) 60%);
  padding-bottom: calc(var(--nav-h) + 48px);
  overflow-x: hidden;
}

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

/* ===== Scroll margin for anchor sections ===== */
article[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ===== Page wrapper ===== */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ===== HERO ===== */
.site-header {
  position: relative;
  background: linear-gradient(135deg, var(--dark3) 0%, var(--dark2) 55%, #0a1a0a 100%);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, #69ff6930 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, #00ffff20 0%, transparent 45%);
  pointer-events: none;
}

/* Sparkle decoration */
.site-header::after {
  content: '✦ ✧ ✦ ✧ ✦';
  position: absolute;
  top: 12px; right: 24px;
  font-size: 0.75rem;
  color: var(--green);
  opacity: 0.5;
  letter-spacing: 6px;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1 1 55%;
  text-align: left;
}

.hero-eyebrow {
  margin-bottom: 0.5rem;
}

.hero-eyebrow small {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.2;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 0.95rem;
  color: #a0d4a0;
  margin-bottom: 1.25rem;
  max-width: 420px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: var(--dark2);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 16px #69ff6960, 0 2px 8px rgba(0,0,0,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 44px;
  line-height: 44px;
  padding-top: 0; padding-bottom: 0;
}

.hero-cta:hover, .hero-cta:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 28px #69ff69aa, 0 4px 16px rgba(0,0,0,0.5);
  outline: none;
}

.hero-media {
  flex: 0 1 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.hero-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 0 32px #69ff6940, 0 8px 32px rgba(0,0,0,0.5);
  border: 1.5px solid #69ff6950;
}

/* Decorative orb fallback */
.hero-deco { position: relative; }
.deco-orb {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #69ff6960, #00ffff40 60%, transparent 80%);
  box-shadow: 0 0 60px #69ff6960, 0 0 120px #00ffff30;
  animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Hero slash divider */
.hero-slash {
  height: 40px;
  background: linear-gradient(135deg, var(--dark3) 49%, var(--dark2) 51%);
  position: relative;
}

.hero-slash::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), var(--cyan), transparent);
}

/* ===== Main Layout ===== */
.site-main {
  flex: 1;
  padding: 2rem 1.25rem;
}

.main-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* ===== Aside ===== */
.site-aside {
  flex: 0 0 220px;
  background: linear-gradient(160deg, var(--dark3), var(--dark4));
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  border: 1px solid #69ff6930;
  box-shadow: 0 0 20px #69ff6915;
  position: sticky;
  top: 16px;
}

.aside-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.aside-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #69ff6960;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aside-link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 12px;
  color: #b0e8b0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
  border-left: 2px solid transparent;
}

.aside-link:hover, .aside-link:focus {
  background: #69ff6915;
  color: var(--green);
  border-left-color: var(--green);
  text-shadow: 0 0 6px #69ff6960;
  outline: none;
}

.aside-badge {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #80c880;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--glow-green);
  animation: blink 1.8s ease-in-out infinite;
}

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

/* ===== Article ===== */
.site-article {
  flex: 1 1 0;
  min-width: 0;
}

/* ===== Section blocks ===== */
.content-intro {
  background: linear-gradient(135deg, var(--dark3), var(--dark4));
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #69ff6930;
  position: relative;
  overflow: hidden;
}

.content-intro::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, #00ffff20, transparent 70%);
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.section-heading {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--green);
  text-shadow: 0 0 10px #69ff6960;
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 0.95rem;
  color: #b0d8b0;
  line-height: 1.7;
}

.content-body {
  background: linear-gradient(160deg, var(--dark3), var(--dark2));
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  border: 1px solid #69ff6920;
}

/* ===== Content typography (page.content) ===== */
.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: var(--font-head);
  color: var(--green);
  text-shadow: 0 0 8px #69ff6960;
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}

.content-body h2 { font-size: 1.4rem; }
.content-body h3 { font-size: 1.15rem; }
.content-body h4 { font-size: 1rem; color: var(--cyan); }

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #c8e8c8;
  margin-bottom: 1rem;
}

.content-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition), text-shadow var(--transition);
}

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

.content-body ul,
.content-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: #c0e0c0;
}

.content-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.content-body blockquote {
  border-left: 3px solid var(--green);
  margin: 1rem 0;
  padding: 0.75rem 1.25rem;
  background: #69ff6910;
  border-radius: 0 12px 12px 0;
  color: #a8d8a8;
  font-style: italic;
}

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

.content-body img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 16px #69ff6930;
}

/* Section separators inside content */
.content-body article {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #69ff6920;
}

.content-body article:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, var(--dark2), #0a140a);
  border-top: 1px solid #69ff6930;
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.88rem;
  color: #80a880;
  margin-bottom: 0.4rem;
}

.footer-note {
  display: block;
  font-size: 0.78rem;
  color: #5a7a5a;
  margin-bottom: 1.25rem;
}

/* Footer nav with dl/dt/dd */
.footer-nav { margin-top: 1rem; }

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem 0.75rem;
  list-style: none;
}

.footer-dl dt,
.footer-dl dd {
  margin: 0;
}

.footer-dl a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  min-height: 40px;
  color: #70a870;
  text-decoration: none;
  font-size: 0.82rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.footer-dl a:hover, .footer-dl a:focus {
  color: var(--green);
  background: #69ff6915;
  text-shadow: 0 0 6px #69ff6960;
  outline: none;
}

/* ===== Bottom Nav Bar ===== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(23,38,23,0.92) 0%, rgba(10,20,10,0.98) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #69ff6950;
  box-shadow: 0 -4px 24px #69ff6920;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  gap: 0.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.bottom-nav-left,
.bottom-nav-right {
  display: flex;
  gap: 0.15rem;
  flex: 1;
}

.bottom-nav-right { justify-content: flex-end; }

.bnav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  min-height: 52px;
  min-width: 44px;
  text-decoration: none;
  color: #80b080;
  border-radius: 12px;
  transition: color var(--transition), background var(--transition);
  font-size: 0;
  gap: 0.15rem;
}

.bnav-link:hover, .bnav-link:focus {
  color: var(--green);
  background: #69ff6915;
  outline: none;
  text-shadow: var(--glow-green);
}

.bnav-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.bnav-label {
  font-size: 0.6rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  max-width: 50px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav-brand {
  flex: 0 0 auto;
  padding: 0 0.5rem;
}

.brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: var(--glow-green), 0 2px 8px rgba(0,0,0,0.4);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.brand-center:hover, .brand-center:focus {
  transform: scale(1.1);
  box-shadow: 0 0 28px #69ff69cc, 0 4px 12px rgba(0,0,0,0.5);
  outline: none;
}

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

.brand-text {
  font-family: var(--font-head);
  font-size: 0.6rem;
  color: var(--dark2);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* Search bar */
.bottom-nav-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 1rem 0.5rem;
  border-top: 1px solid #69ff6920;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  background: var(--dark3);
  border: 1px solid #69ff6940;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  color: #c0e0c0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  min-height: 36px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-input::placeholder { color: #5a7a5a; }

.search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 8px #69ff6940;
}

.search-btn {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  min-height: 40px; min-width: 40px;
}

.search-btn:hover, .search-btn:focus {
  transform: scale(1.1);
  box-shadow: var(--glow-green);
  outline: none;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    padding: 2rem 1rem 1rem;
    text-align: left;
  }

  .hero-media { display: none; }

  .main-layout {
    flex-direction: column;
  }

  .site-aside {
    position: static;
    flex: none;
    width: 100%;
  }

  .content-body {
    padding: 1.25rem 1rem;
  }

  .content-intro {
    padding: 1.25rem 1rem;
  }

  .footer-dl {
    gap: 0.2rem 0.4rem;
  }

  .bnav-label { display: none; }

  .bnav-link { min-width: 40px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .bottom-nav-inner { padding: 0.25rem; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
