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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  font-size: 16px;
}

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

body.dark-body {
  background: #000000;
  color: #ffffff;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #00ff80;
  text-decoration: none;
}

a:hover, a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid #00ff80;
  outline-offset: 2px;
}

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ===== SITE WRAPPER ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 72px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: #000000;
  border-bottom: 3px solid #00ff80;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.top-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

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

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00ff80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-badge {
  background: #0000ff;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border: 2px solid #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.top-slash {
  color: #00ff80;
  font-weight: 700;
  font-size: 1.2rem;
}

.top-tagline {
  color: #888;
  font-size: 0.85rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== HERO ===== */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  border-bottom: 4px solid #00ff80;
  position: relative;
  overflow: hidden;
}

.hero-text {
  padding: 48px 24px 32px;
  max-width: 700px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #00ff80;
}

.eyebrow-dot {
  color: #0000ff;
  font-size: 0.6rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00ff80;
  color: #000000;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border: 3px solid #00ff80;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: none;
}

.btn-primary:hover, .btn-primary:focus {
  background: #000000;
  color: #00ff80;
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border: 3px solid #ffffff;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: none;
}

.btn-outline:hover, .btn-outline:focus {
  background: #ffffff;
  color: #000000;
  text-decoration: none;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border: 2px solid;
}

.badge-green {
  background: #00ff80;
  color: #000000;
  border-color: #00ff80;
}

.badge-blue {
  background: #0000ff;
  color: #ffffff;
  border-color: #0000ff;
}

.badge-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.hero-media {
  width: 100%;
  min-height: 240px;
  border-top: 3px solid #00ff80;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-media-placeholder {
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 8px solid #0000ff;
}

.placeholder-mark {
  font-size: clamp(4rem, 20vw, 10rem);
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  user-select: none;
}

/* ===== CONTENT LAYOUT ===== */
.content-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  border-left: 3px solid #222;
  border-right: 3px solid #222;
}

/* ===== SIDEBAR ===== */
.sidebar {
  background: #000000;
  border-bottom: 3px solid #00ff80;
  padding: 28px 20px;
  width: 100%;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #00ff80;
  border-bottom: 2px solid #00ff80;
  padding-bottom: 8px;
}

.sidebar-title span {
  display: block;
}

.sidebar-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 2px solid #333;
  color: #cccccc;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  min-height: 40px;
  transition: none;
}

.sidebar-link:hover, .sidebar-link:focus {
  border-color: #00ff80;
  color: #00ff80;
  background: #001a0d;
  text-decoration: none;
}

.sidebar-block {
  padding: 16px;
  border: 3px solid;
}

.sidebar-block-green {
  border-color: #00ff80;
}

.sidebar-block-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #00ff80;
  margin-bottom: 10px;
}

.sidebar-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-feature-list li {
  background: #0a0a0a;
  border: 2px solid #00ff80;
  color: #00ff80;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  min-width: 0;
}

.wrap {
  padding: 0;
}

.content-section {
  padding: 0;
}

.content-article {
  padding: 0;
}

/* ===== CONTENT SECTIONS (injected via page.content) ===== */
.content-article section {
  padding: 48px 24px;
  border-bottom: 3px solid #1a1a1a;
  scroll-margin-top: 140px;
}

.content-article section:nth-child(even) {
  background: #050505;
}

.content-article section:nth-child(odd) {
  background: #000000;
}

.content-article h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 4px solid #00ff80;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.content-article h2 span {
  display: inline;
}

.content-article h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #00ff80;
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.content-article h3 span {
  display: inline;
}

.content-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: #cccccc;
  margin-bottom: 16px;
  max-width: 72ch;
}

.content-article ul,
.content-article ol {
  margin: 16px 0 16px 0;
  padding-left: 0;
}

.content-article ul li,
.content-article ol li {
  font-size: 1rem;
  line-height: 1.7;
  color: #cccccc;
  padding: 6px 0 6px 20px;
  border-left: 3px solid #00ff80;
  margin-bottom: 8px;
  list-style: none;
}

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

.content-article ol li {
  counter-increment: ol-counter;
  border-left-color: #0000ff;
}

.content-article ol li::before {
  content: counter(ol-counter, decimal-leading-zero) ". ";
  color: #0000ff;
  font-weight: 700;
  margin-right: 6px;
}

.content-article a {
  color: #00ff80;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

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

.content-article strong {
  color: #ffffff;
  font-weight: 700;
}

.content-article em {
  color: #00ff80;
  font-style: normal;
  font-weight: 600;
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.content-article th {
  background: #00ff80;
  color: #000000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-align: left;
  border: 2px solid #00ff80;
}

.content-article td {
  padding: 10px 14px;
  border: 2px solid #222;
  color: #cccccc;
}

.content-article tr:nth-child(even) td {
  background: #080808;
}

.content-article blockquote {
  border-left: 6px solid #0000ff;
  padding: 16px 20px;
  margin: 20px 0;
  background: #05050f;
  color: #aaaacc;
  font-style: normal;
}

/* ===== BOTTOM FIXED NAV ===== */
.bottom-nav-aside {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #000000;
  border-top: 3px solid #00ff80;
}

.bottom-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 60px;
}

.bottom-nav-list {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2px;
  padding: 4px 6px;
}

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

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

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: transparent;
  color: #cccccc;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  transition: none;
}

.nav-pill:hover, .nav-pill:focus {
  background: #00ff80;
  color: #000000;
  border-color: #00ff80;
  text-decoration: none;
}

.bottom-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #00ff80;
  border-left: 3px solid #000;
  border-right: 3px solid #000;
  text-decoration: none;
  min-height: 60px;
  flex-shrink: 0;
}

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

.bottom-logo-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #000000;
  border-top: 4px solid #0000ff;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 2px solid #1a1a1a;
}

.footer-brand-col {
  padding: 40px 24px 32px;
  border-bottom: 2px solid #1a1a1a;
  background: #050505;
}

.footer-brand-big {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #00ff80;
  line-height: 1;
  margin-bottom: 14px;
}

.footer-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-nav-col,
.footer-info-col {
  padding: 28px 24px;
  border-bottom: 2px solid #1a1a1a;
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #00ff80;
  margin-bottom: 14px;
  border-bottom: 2px solid #00ff80;
  padding-bottom: 8px;
}

.footer-col-title span {
  display: block;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav-list a {
  color: #999;
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 0;
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #111;
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: #00ff80;
  border-bottom-color: #00ff80;
}

.footer-info-text {
  color: #555;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.footer-copy {
  color: #444;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-18 {
  display: inline-block;
  background: #0000ff;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border: 2px solid #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PARALLAX / MICRO-INTERACTIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    will-change: transform;
  }

  .btn-primary,
  .btn-outline,
  .nav-pill,
  .sidebar-link {
    transition: background-color 0.08s, color 0.08s, border-color 0.08s;
  }

  .content-article section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .content-article section.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== DESKTOP LAYOUT ===== */
@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    min-height: 70vh;
  }

  .hero-text {
    flex: 1;
    padding: 64px 48px;
  }

  .hero-media {
    width: 40%;
    min-height: 70vh;
    border-top: none;
    border-left: 4px solid #00ff80;
    flex-shrink: 0;
  }

  .content-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .sidebar {
    width: 260px;
    flex-shrink: 0;
    border-bottom: none;
    border-right: 3px solid #00ff80;
    min-height: 100%;
    position: sticky;
    top: 65px;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
  }

  .sidebar-nav-list {
    flex-direction: column;
    gap: 4px;
  }

  .sidebar-link {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-brand-col {
    border-bottom: none;
    border-right: 2px solid #1a1a1a;
  }

  .footer-nav-col,
  .footer-info-col {
    border-bottom: none;
    border-right: 2px solid #1a1a1a;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .content-article section {
    padding: 64px 48px;
  }

  .nav-pill {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .sidebar {
    width: 280px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .top-tagline {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .bottom-nav-list {
    gap: 1px;
    padding: 4px 2px;
  }

  .nav-pill {
    padding: 6px 6px;
    font-size: 0.62rem;
    min-height: 44px;
  }

  .bottom-brand {
    padding: 6px 10px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .content-article section {
    padding: 36px 16px;
  }

  .site-wrapper {
    padding-bottom: 64px;
  }
}

/* ===== SCROLLBAR (Brutalist) ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #00ff80;
}

::-webkit-scrollbar-thumb:hover {
  background: #0000ff;
}

/* ===== SELECTION ===== */
::selection {
  background: #00ff80;
  color: #000000;
}

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