@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

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

:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #0e1a0e;
  --dark3: #1e3a1e;
  --text: #e8ffe8;
  --text-muted: #a0c8a0;
  --chrome-1: #c8c8c8;
  --chrome-2: #888;
  --chrome-3: #f0f0f0;
  --nav-h: 64px;
  --font-main: 'Lexend Mega', 'Public Sans', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Lexend Mega', system-ui, sans-serif;
  --radius: 0;
  --glow-green: 0 0 12px #69ff69, 0 0 30px #69ff6966;
  --glow-cyan: 0 0 12px #00ffff, 0 0 30px #00ffff66;
}

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

body.y2k-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* scroll offset for fixed bottom nav */
section[id] {
  scroll-margin-top: 20px;
  scroll-margin-bottom: var(--nav-h);
}

/* Links */
a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
a:hover, a:focus-visible {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  outline: none;
}

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

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--nav-h);
}

/* ===== BOTTOM FIXED NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(23,38,23,0.92) 0%, var(--dark2) 100%);
  border-top: 2px solid var(--green);
  box-shadow: 0 -4px 24px #69ff6933;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: var(--nav-h);
}

.bottom-nav-ol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  height: 100%;
  padding: 0 8px;
  gap: 2px;
}

.bottom-nav-ol li {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-nav-ol li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 6px;
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}

.bottom-nav-ol li a:hover,
.bottom-nav-ol li a:focus-visible {
  color: var(--green);
  text-shadow: var(--glow-green);
}

/* Brand center */
.brand-center {
  flex: 1.5 !important;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 4px 8px;
}

.brand-text {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-logo-img {
  height: 32px;
  width: auto;
}

/* CTA button in nav */
.cta-item { flex: 1.2 !important; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
  color: var(--dark) !important;
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 900;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  text-shadow: none !important;
  box-shadow: var(--glow-green);
  transition: box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.cta-btn:hover, .cta-btn:focus-visible {
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
  color: var(--dark) !important;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, #0d2e0d 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 60%, #001a2e 0%, transparent 70%),
    var(--dark);
  border-bottom: 2px solid var(--green);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-main);
  font-size: clamp(8rem, 30vw, 22rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(105, 255, 105, 0.08);
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px 80px;
}

.hero-eyebrow {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag-chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px solid var(--green);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  text-shadow: 0 0 8px #69ff6988;
}

.tag-chip--blue {
  border-color: var(--cyan);
  color: var(--cyan);
  text-shadow: 0 0 8px #00ffff88;
}

.hero-h1 {
  font-family: var(--font-main);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 0 40px rgba(105,255,105,0.15);
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--green) 0%, #00dd00 100%);
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  box-shadow: var(--glow-green);
  transition: transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.04em;
}

.btn-primary:hover, .btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 20px #69ff69, 0 0 50px #69ff6955;
  color: var(--dark);
  text-shadow: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 32px;
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: 0 0 10px #00ffff44;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.04em;
}

.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(0,255,255,0.08);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
  color: var(--cyan);
  text-shadow: none;
}

/* Hero decorations */
.hero-deco {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.deco-star {
  font-size: 2.5rem;
  color: var(--green);
  text-shadow: var(--glow-green);
  animation: spin-star 8s linear infinite;
  display: inline-block;
}

.deco-star--sm {
  font-size: 1.4rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  animation-duration: 5s;
  animation-direction: reverse;
}

.deco-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  opacity: 0.25;
  filter: blur(2px);
  animation: pulse-circle 3s ease-in-out infinite;
}

@keyframes spin-star {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-circle {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50% { transform: scale(1.3); opacity: 0.4; }
}

/* ===== MAIN ===== */
.site-main {
  flex: 1;
  width: 100%;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

/* ===== CONTENT SECTION > ARTICLE STRUCTURE ===== */
.content-section {
  width: 100%;
}

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

/* ===== ASIDE ===== */
.content-aside {
  position: sticky;
  top: 24px;
  background: linear-gradient(160deg, rgba(105,255,105,0.05) 0%, rgba(0,255,255,0.04) 100%);
  border: 1.5px solid rgba(105,255,105,0.3);
  padding: 24px 16px;
}

.aside-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 900;
  color: var(--green);
  text-shadow: 0 0 8px #69ff6966;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.aside-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.4;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag-item {
  display: block;
  padding: 8px 12px;
  border: 1.5px solid rgba(105,255,105,0.25);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: default;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, color 0.2s, text-shadow 0.2s;
}

.tag-item:hover {
  border-color: var(--green);
  color: var(--green);
  text-shadow: 0 0 6px #69ff6966;
}

.aside-deco {
  margin-top: 20px;
  text-align: center;
}

.chrome-badge {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--chrome-3), var(--chrome-2), var(--chrome-3));
  color: var(--dark);
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  border: 1px solid var(--chrome-1);
  box-shadow: 0 2px 8px rgba(200,200,200,0.3);
}

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

/* Sections injected from page.content */
.content-body section {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(105,255,105,0.12);
  animation: fade-in-up 0.5s ease both;
}

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

.content-body h2 {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1.15;
  margin-bottom: 10px;
  text-shadow: 0 0 16px rgba(105,255,105,0.2);
  letter-spacing: -0.01em;
}

.content-body h3 {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
  margin: 24px 0 10px;
  letter-spacing: 0.02em;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 14px;
}

.content-body ul,
.content-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.content-body li {
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 6px;
}

.content-body strong {
  color: var(--green);
  font-weight: 800;
}

.content-body em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 700;
}

.content-body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0,255,255,0.35);
  transition: border-color 0.2s, text-shadow 0.2s;
}

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

.content-body blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 3px solid var(--green);
  background: rgba(105,255,105,0.04);
  color: var(--text-muted);
  font-style: italic;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.content-body th {
  padding: 10px 14px;
  background: rgba(105,255,105,0.1);
  border: 1px solid rgba(105,255,105,0.25);
  color: var(--green);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: left;
}

.content-body td {
  padding: 10px 14px;
  border: 1px solid rgba(105,255,105,0.15);
  color: var(--text);
  font-size: 0.95rem;
}

/* Stagger animation on sections */
.content-body section:nth-child(1) { animation-delay: 0.05s; }
.content-body section:nth-child(2) { animation-delay: 0.1s; }
.content-body section:nth-child(3) { animation-delay: 0.15s; }
.content-body section:nth-child(4) { animation-delay: 0.2s; }
.content-body section:nth-child(5) { animation-delay: 0.25s; }
.content-body section:nth-child(6) { animation-delay: 0.3s; }
.content-body section:nth-child(7) { animation-delay: 0.35s; }

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SUBTITLE pattern ===== */
.content-body h2 + p,
.content-body h2 + .subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark2);
  border-top: 2px solid rgba(105,255,105,0.2);
  padding: 48px 20px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  text-align: center;
}

.footer-brand-text {
  font-family: var(--font-main);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--green);
  letter-spacing: -0.03em;
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(105,255,105,0.3));
}

.footer-nav ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
}

.footer-nav ol li a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 2px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-nav ol li a:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
}

.footer-copy {
  text-align: center;
}

.footer-copy p {
  font-size: 0.8rem;
  color: rgba(160,200,160,0.6);
  line-height: 1.6;
}

/* ===== GLOW LINE DIVIDERS ===== */
.content-body section::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  margin-bottom: 20px;
  box-shadow: 0 0 8px var(--green);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .content-article {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 20px;
  }

  .aside-title { grid-column: 1; grid-row: 1; }
  .aside-sub { grid-column: 1; grid-row: 2; }
  .tag-list {
    grid-column: 2;
    grid-row: 1 / 3;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
  }
  .aside-deco { grid-column: 1 / 3; grid-row: 3; }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 60px 16px 60px;
  }

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

  .hero-deco {
    top: 12px;
    right: 12px;
    gap: 8px;
  }

  .deco-star { font-size: 1.8rem; }
  .deco-circle { width: 40px; height: 40px; }

  .wrap {
    padding: 32px 16px;
  }

  .bottom-nav-ol li a {
    font-size: 0.55rem;
    padding: 4px 3px;
  }

  .cta-btn {
    font-size: 0.55rem;
    padding: 6px 6px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary, .btn-outline {
    min-height: 48px;
    font-size: 0.9rem;
  }

  .footer-brand-text {
    font-size: 3rem;
  }

  .content-aside {
    display: block;
  }

  .tag-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .bottom-nav-ol li a {
    font-size: 0.48rem;
  }

  .brand-text {
    font-size: 0.65rem;
  }
}
