/* ═══════════════════════════════════════════════════════════
   Lume — Ecosystem-Consistent Brutalist Design
   DarkWave Studios LLC · 2026
   Matches: invariant.tlid.io, trustlayer.tlid.io
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&family=Inter:wght@400;500;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:    #050505;
  --bg-secondary:  #0a0a0a;
  --text-primary:  #FFFFFF;
  --text-secondary:#888888;
  --text-dim:      #555555;
  --border:        rgba(255, 255, 255, 0.1);
  --font-heading:  'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Cinematic Noise — identical to invariant.tlid.io */
.noise {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999; opacity: 0.04;
  background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

a { color: var(--text-primary); text-decoration: none; }

/* ── Section System (alternating dark/light) ── */
.section { padding: 140px 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.section-dark { background-color: var(--bg-primary); }
.section-light { background-color: var(--text-primary); color: var(--bg-primary); }
.section-light h2, .section-light h3, .section-light h4 { color: var(--bg-primary); }
.section-light p { color: #333; }
.section-light a { color: var(--bg-primary); }
.section-light .section-label { color: #555; border-color: rgba(0,0,0,0.15); }
.section-light .feature { border-color: rgba(0,0,0,0.1); }
.section-light .feature:hover { background: #f5f5f5; }
.section-light .feature__icon { color: #333; }
.section-light .feature p { color: #555; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 0.5em;
}

/* ── Scroll Reveals — identical to invariant ── */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, transform; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── Buttons — identical to invariant ── */
.btn-brutal {
  display: inline-block;
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 48px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.btn-brutal:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

.btn-brutal-inv {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.2);
}

.btn-brutal-inv:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

/* Section images — grayscale to color on hover */
.section-img {
  width: 100%; height: 300px; object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.5s ease;
  border: 1px solid var(--border);
}
.section-img:hover { filter: grayscale(0%) contrast(1.1); }

/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}

.nav__logo {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.15rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}

.nav__links { display: flex; gap: 2rem; }

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-primary); }

.nav__hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 0.5rem;
  flex-direction: column; gap: 4px;
}
.nav__hamburger span { display: block; width: 20px; height: 2px; background: var(--text-primary); transition: all 0.3s; }

/* ═══ HERO (Ken Burns — identical to invariant) ═══ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 120px; position: relative; overflow: hidden;
}

.hero__slide {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 1;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: kenburns 24s infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 8s; }
.hero__slide:nth-child(3) { animation-delay: 16s; }

@keyframes kenburns {
  0%   { opacity: 0; transform: scale(1); }
  10%  { opacity: 1; }
  25%  { opacity: 1; }
  33%  { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero__overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,5,0.4), var(--bg-primary));
  z-index: 2;
}

.hero__container { position: relative; z-index: 10; }

.hero__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem; color: var(--text-secondary);
  margin-bottom: 2rem; letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 0.95; text-shadow: 0 4px 24px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.hero__accent { color: var(--text-secondary); }

.hero__sub {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 580px; line-height: 1.7; margin-bottom: 2.5rem;
}

.hero__actions { display: flex; gap: 1rem; }

/* ═══ GRID SYSTEM (1px gap, bg border — identical to invariant) ═══ */
.grid-cards {
  display: grid; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.grid-cards-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cards-2 { grid-template-columns: repeat(2, 1fr); }

.grid-cell {
  background: var(--bg-primary);
  padding: 2.5rem;
  transition: background 0.4s;
}
.grid-cell:hover { background: #111111; }

/* Light section grid cells */
.section-light .grid-cards { background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.1); }
.section-light .grid-cell { background: var(--text-primary); }
.section-light .grid-cell:hover { background: #f5f5f5; }

.grid-cell__label {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1rem;
}

.grid-cell h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.grid-cell p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Light section text overrides */
.section-light .grid-cell p { color: #555; }
.section-light .grid-cell__label { color: #999; }

/* ═══ FEATURE ICONS ═══ */
.feature__icon {
  font-size: 1.5rem; color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ═══ SYNTAX COMPARISON ═══ */
.syntax__comparison {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-top: 3rem;
}

.syntax__block { background: var(--bg-secondary); }

.syntax__label {
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.syntax__code {
  margin: 0; padding: 1.5rem; overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem; line-height: 1.8;
  color: var(--text-secondary);
}

.syntax__code code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }
.syntax__code--lume code { color: #5cd4a0; }
.syntax__code--js code { color: #e8b44a; }

.syntax__output {
  margin-top: 1rem; padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.85rem;
  display: flex; align-items: center; gap: 0.75rem;
}

.syntax__output-label { color: var(--text-dim); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; }
.syntax__output code { color: #5cd4a0; background: none; border: none; padding: 0; font-weight: 600; }

/* ═══ LIVE TAG ═══ */
.tag-live {
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #5cd4a0; margin-bottom: 1rem; display: block;
}

/* ═══ RESEARCH ═══ */
.research__meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim);
}

.research__link {
  color: var(--text-secondary); font-weight: 600;
  transition: color 0.2s;
}
.research__link:hover { color: var(--text-primary); }

/* ═══ GET STARTED ═══ */
.get-started__cmd {
  display: block; padding: 1.5rem;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: #5cd4a0; background: none; border: none;
  white-space: pre-wrap; word-break: break-all; line-height: 1.7;
}

/* ═══ FOOTER ═══ */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); }

.footer__inner { display: flex; flex-direction: column; gap: 1.5rem; }

.footer__brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
}

.footer__divider { color: var(--text-dim); }
.footer__sub { color: var(--text-dim); font-size: 0.8rem; font-weight: 400; text-transform: none; letter-spacing: 0; }

.footer__links { display: flex; gap: 1.5rem; }
.footer__links a {
  color: var(--text-dim); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 500; transition: color 0.2s;
}
.footer__links a:hover { color: var(--text-primary); }

.footer__made-with { padding-top: 0.5rem; }
.footer__lume-link { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); transition: color 0.2s; }
.footer__lume-link:hover { color: var(--text-primary); }
.footer__lume-link strong { color: var(--text-secondary); }

.footer__legal { color: var(--text-dim); font-size: 0.7rem; }
.footer__legal a { color: var(--text-secondary); }
.footer__doi { font-family: var(--font-mono); font-size: 0.65rem; margin-top: 0.25rem; color: var(--text-dim); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .grid-cards-3 { grid-template-columns: 1fr; }
  .syntax__comparison { grid-template-columns: 1fr; }
  .grid-cards-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 1rem 24px; gap: 1rem;
  }
  .nav__hamburger { display: flex; }
  .hero { padding-top: 100px; }
  .hero__title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn-brutal { width: 100%; text-align: center; }
  .footer__brand { flex-wrap: wrap; }
  .footer__links { flex-wrap: wrap; gap: 1rem; }
}
