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

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

:root {
  --neon: #80ff00;
  --neon2: #00ff00;
  --dark: #1f2617;
  --dark2: #151c0e;
  --dark3: #0e1209;
  --surface: #23301a;
  --surface2: #2c3d20;
  --text: #e8f5d0;
  --text-muted: #9db87a;
  --accent: #ff2d78;
  --accent2: #ffdd00;
  --font-head: 'Syne', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius: 0px;
  --nav-h: 72px;
  --sticky-h: 48px;
  --announce-h: 36px;
}

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

body.body-root {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--dark3);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--neon); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--neon2); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ============ ANNOUNCE BAR ============ */
.announce-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--announce-h);
  background: var(--neon);
  color: var(--dark3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 22s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ ASIDE / HEADER NAV ============ */
.site-aside {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: var(--dark);
  border-bottom: 2px solid var(--neon);
  z-index: 900;
  display: flex;
  align-items: center;
}

.aside-header {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-link, .logo-text {
  display: flex;
  align-items: center;
}

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

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--neon);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aside-nav {
  display: none;
}

.burger-btn {
  background: none;
  border: 2px solid var(--neon);
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
  margin-left: auto;
}
.burger-btn:hover { background: var(--neon); }
.burger-btn:hover .burger-bar { background: var(--dark3); }

.burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon);
  transition: background 0.2s;
}

/* ============ FULLSCREEN MENU ============ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--dark3);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(.77,0,.18,1);
  overflow: hidden;
}

.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 28px;
  right: 28px;
  background: none;
  border: 2px solid var(--neon);
  color: var(--neon);
  font-size: 1.4rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.menu-close:hover { background: var(--neon); color: var(--dark3); }

.fullmenu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  width: 100%;
  padding: 0 32px;
}

.fullmenu-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.4s ease calc(var(--i) * 0.07s), transform 0.4s ease calc(var(--i) * 0.07s);
}

.fullscreen-menu.is-open .fullmenu-item {
  opacity: 1;
  transform: translateY(0);
}

.fullmenu-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  display: block;
  padding: 8px 0;
  min-height: 44px;
  line-height: 1.2;
}
.fullmenu-link:hover { color: var(--neon); }

.menu-badge {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  padding: 6px 12px;
  border: 2px solid var(--neon);
  color: var(--neon);
  text-transform: uppercase;
}
.menu-badge-1 { top: 80px; left: 40px; transform: rotate(-8deg); }
.menu-badge-2 { bottom: 120px; right: 60px; transform: rotate(5deg); }
.menu-badge-3 { bottom: 60px; left: 60px; transform: rotate(-3deg); color: var(--accent); border-color: var(--accent); }

/* ============ HERO ============ */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-top: calc(var(--announce-h) + var(--nav-h));
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(150%) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--dark3) 0%, rgba(31,38,23,0.55) 50%, rgba(31,38,23,0.85) 100%);
  mix-blend-mode: multiply;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 48px 40px;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid var(--neon);
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(128,255,0,0.3);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--neon);
  color: var(--dark3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--neon);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-primary:hover { background: transparent; color: var(--neon); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--surface2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

/* Hero badges / stickers */
.hero-badges {
  position: absolute;
  z-index: 3;
  left: 40px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
}

.sticker-a {
  font-size: 1rem;
  background: var(--neon);
  color: var(--dark3);
  padding: 10px 14px;
  transform: rotate(-6deg);
  animation: jitter-a 3s ease-in-out infinite;
  border: 2px solid var(--dark3);
}
.sticker-b {
  font-size: 0.8rem;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  transform: rotate(4deg);
  animation: jitter-b 4s ease-in-out infinite;
}
.sticker-c {
  font-size: 1.1rem;
  background: var(--accent2);
  color: var(--dark3);
  padding: 8px 18px;
  transform: rotate(-2deg);
  letter-spacing: 0.1em;
  animation: jitter-c 5s ease-in-out infinite;
  border: 2px solid var(--dark3);
}

@keyframes jitter-a {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  33% { transform: rotate(-8deg) translateY(-3px); }
  66% { transform: rotate(-4deg) translateY(2px); }
}
@keyframes jitter-b {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  40% { transform: rotate(6deg) translateY(-4px); }
  70% { transform: rotate(2deg) translateY(3px); }
}
@keyframes jitter-c {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-2px); }
}

/* ============ STICKY NAV ============ */
.sticky-nav {
  position: sticky;
  top: calc(var(--announce-h) + var(--nav-h));
  z-index: 800;
  background: var(--dark2);
  border-bottom: 2px solid var(--surface2);
  height: var(--sticky-h);
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sticky-nav::-webkit-scrollbar { display: none; }

.sticky-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  min-width: max-content;
}

.sticky-link {
  display: inline-flex;
  align-items: center;
  height: var(--sticky-h);
  padding: 0 18px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-right: 1px solid var(--surface2);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  min-height: 44px;
}
.sticky-link:first-child { border-left: 1px solid var(--surface2); }
.sticky-link:hover { color: var(--neon); background: rgba(128,255,0,0.06); }

/* ============ MAIN LAYOUT ============ */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

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

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

/* div scroll offset for sticky nav */
.content-section div,
div[id] {
  scroll-margin-top: calc(var(--announce-h) + var(--nav-h) + var(--sticky-h) + 24px);
}

/* ============ CONTENT TYPOGRAPHY ============ */
.content-section h2,
.main-article h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--neon);
  letter-spacing: -0.01em;
  margin: 56px 0 20px;
  line-height: 1.2;
  text-transform: uppercase;
  border-left: 4px solid var(--neon);
  padding-left: 16px;
}
.content-section h2:first-child,
.main-article h2:first-child { margin-top: 0; }

.content-section h3,
.main-article h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text);
  margin: 36px 0 14px;
  letter-spacing: 0.02em;
}

.content-section p,
.main-article p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}

.content-section ul,
.main-article ul {
  margin: 0 0 20px 0;
  padding-left: 0;
}

.content-section ul li,
.main-article ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--surface);
}
.content-section ul li::before,
.main-article ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--neon);
  font-size: 0.65rem;
  top: 12px;
}

.content-section ol,
.main-article ol {
  padding-left: 0;
  counter-reset: ol-cnt;
  margin-bottom: 20px;
}
.content-section ol li,
.main-article ol li {
  counter-increment: ol-cnt;
  padding: 8px 0 8px 36px;
  position: relative;
  font-size: 1rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--surface);
}
.content-section ol li::before,
.main-article ol li::before {
  content: counter(ol-cnt, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--neon);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
}

.content-section strong,
.main-article strong { color: var(--neon); font-weight: 700; }

.content-section em,
.main-article em { color: var(--text-muted); font-style: italic; }

.content-section a,
.main-article a {
  color: var(--neon);
  border-bottom: 1px solid rgba(128,255,0,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.content-section a:hover,
.main-article a:hover { color: var(--neon2); border-color: var(--neon2); }

.content-section table,
.main-article table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.content-section th,
.main-article th {
  background: var(--surface);
  color: var(--neon);
  font-family: var(--font-head);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 2px solid var(--neon);
}
.content-section td,
.main-article td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--surface);
  vertical-align: top;
}
.content-section tr:hover td,
.main-article tr:hover td { background: var(--surface); }

.content-section blockquote,
.main-article blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--surface);
  margin: 24px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* div dividers inside content */
.content-section > div {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--surface2);
}
.content-section > div:last-child { border-bottom: none; margin-bottom: 0; }

/* ============ CONTENT ASIDE ============ */
.content-aside {
  position: sticky;
  top: calc(var(--announce-h) + var(--nav-h) + var(--sticky-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aside-widget {
  background: var(--surface);
  border: 1px solid var(--surface2);
  border-top: 3px solid var(--neon);
  padding: 20px;
}

.aside-widget-alt {
  border-top-color: var(--accent);
}

.widget-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-list li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.widget-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid var(--surface2);
  transition: color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.widget-link:hover { color: var(--neon); }

.tag-dot {
  color: var(--neon);
  font-size: 0.5rem;
  flex-shrink: 0;
}

.aside-sticker-deco {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.deco-badge {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 5px 12px;
  border: 2px solid var(--neon);
  color: var(--neon);
  text-transform: uppercase;
  transform: rotate(-3deg);
  display: inline-block;
}
.deco-badge-b {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: rotate(2deg);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark2);
  border-top: 2px solid var(--neon);
  padding: 24px;
}

.footer-row {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo-wrap { flex-shrink: 0; }

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

.footer-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neon);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}

.footer-nav-link {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 10px 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
  white-space: nowrap;
}
.footer-nav-link:hover { color: var(--neon); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ ANIMATIONS ============ */
@keyframes stagger-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-article { animation: stagger-in 0.6s ease both; }
.content-aside { animation: stagger-in 0.7s ease 0.15s both; }

/* ============ PREFERS REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .marquee-inner { animation: none !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr 260px;
    gap: 28px;
    padding: 48px 20px 60px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
    --announce-h: 32px;
    --sticky-h: 44px;
  }

  .main-content {
    grid-template-columns: 1fr;
    padding: 32px 16px 48px;
  }

  .content-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-widget {
    flex: 1 1 240px;
  }

  .hero-section {
    height: auto;
    min-height: 520px;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .hero-content {
    text-align: left;
    padding: 40px 20px;
    max-width: 100%;
  }

  .hero-sub { margin-left: 0; }

  .hero-cta-group { justify-content: flex-start; }

  .hero-badges {
    left: auto;
    right: 16px;
    bottom: 40px;
    flex-direction: row;
  }

  .sticker-a, .sticker-b, .sticker-c {
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .sticky-inner { padding: 0 12px; }
  .sticky-link { padding: 0 12px; font-size: 0.72rem; }

  .site-aside { height: var(--nav-h); }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-nav { gap: 0; }

  .fullmenu-link {
    font-size: clamp(1.4rem, 7vw, 2.2rem);
  }

  .menu-badge { display: none; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 1.9rem; }

  .btn-primary, .btn-ghost {
    font-size: 0.85rem;
    padding: 10px 20px;
    min-height: 44px;
  }

  .aside-widget { flex: 1 1 100%; }
}
