/* NeuronX Design System v2.0
   Cormorant Garamond · DM Mono · Jost
   Confirmed global layout — logo-only nav, 2-col footer */

/* ─── VARIABLES ───────────────────────────────────────────── */
:root {
  --ink:      #12110F;
  --ink2:     #1A1916;
  --ink3:     #222018;
  --verd:     #2D9E7F;
  --verd-dim: rgba(45,158,127,.1);
  --verd-b:   rgba(45,158,127,.2);
  --terra:    #C4623A;
  --terra-dim:rgba(196,98,58,.08);
  --terra-b:  rgba(196,98,58,.15);
  --parch:    #EDE8DF;
  --parch2:   #C9C3B8;
  --dust:     #A8A29B;
  --line:     rgba(237,232,223,.08);
  --ghost:    rgba(237,232,223,.04);

  /* Fibonacci spacing */
  --sp-1: 8px;
  --sp-2: 13px;
  --sp-3: 21px;
  --sp-4: 34px;
  --sp-5: 55px;
  --sp-6: 89px;
  --sp-7: 144px;

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --font-body: 'Jost', system-ui, sans-serif;

  --max-w:  1200px;
  --nav-h:  60px;
  --radius: 3px;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--parch);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: var(--verd); text-decoration: none; transition: color .2s; }
a:hover { color: #35b891; }
img, video { max-width: 100%; display: block; }

/* ─── NOISE TEXTURE ───────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5;
}

/* hide cursor on touch */
@media (pointer: coarse) {
  body { cursor: auto; }
  .nx-cursor, .nx-ring { display: none !important; }
}

/* ─── CUSTOM CURSOR ───────────────────────────────────────── */
.nx-cursor {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--verd);
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s;
  mix-blend-mode: difference;
}
.nx-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(45,158,127,.4);
  transform: translate(-50%,-50%);
}

/* ─── NAV — logo only ─────────────────────────────────────── */
nav {
  position: sticky;
  top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 56px;
  border-bottom: 1px solid transparent;
  transition: all .35s;
}
nav.stuck {
  background: rgba(18,17,15,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--line);
}
.nx-logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--parch);
  text-decoration: none;
}
.nx-logo b { font-weight: 600; color: var(--verd); }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-main {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); background: var(--verd); border: none;
  padding: 14px 32px; border-radius: var(--radius);
  cursor: none; transition: all .25s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-main:hover { background: #35b891; box-shadow: 0 0 40px rgba(45,158,127,.3); transform: translateY(-2px); color: var(--ink); }

.btn-sec {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--dust); background: transparent; border: 1px solid var(--line);
  padding: 14px 24px; border-radius: var(--radius);
  cursor: none; transition: all .25s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.btn-sec:hover { border-color: var(--verd-b); color: var(--parch); transform: translateY(-2px); }

/* ─── SECTION COMMONS ─────────────────────────────────────── */
.contained {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-6) 56px;
}
.s-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--verd);
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px;
}
.s-label::after { content: ''; flex: 1; height: 1px; background: var(--verd-b); }
h2 {
  font-family: var(--font-head);
  font-size: clamp(36px,4.5vw,60px);
  font-weight: 300; line-height: 1.05; letter-spacing: -2px;
}
h2 i { font-style: italic; color: var(--verd); }
.body-text { font-size: 14px; color: var(--dust); line-height: 1.85; font-weight: 300; }

/* ─── CARD BASE ───────────────────────────────────────────── */
.nx-card {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  transition: border-color .2s, transform .2s;
}
.nx-card:hover { border-color: var(--verd-b); transform: translateY(-2px); }

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.R {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.16,1,.3,1), transform .75s cubic-bezier(.16,1,.3,1);
}
.R.on { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ─── FOOTER — 2 col: logo+desc · Platform ────────────────── */
footer {
  border-top: 1px solid var(--line);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  position: relative; z-index: 2;
}
.fl .nx-logo { margin-bottom: 12px; display: block; }
.fl p { font-size: 12px; color: rgba(185,180,172,.7); line-height: 1.7; font-weight: 300; max-width: 200px; }
.fc h5 {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dust); margin-bottom: 14px;
}
.fc a {
  display: block; font-size: 12px; color: rgba(185,180,172,.75);
  text-decoration: none; margin-bottom: 8px;
  transition: color .2s; font-weight: 300;
}
.fc a:hover { color: var(--parch2); }
.f-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 56px 36px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 1px;
  color: rgba(185,180,172,.55); text-transform: uppercase;
  position: relative; z-index: 2;
}

/* ─── GLOBAL JS SNIPPET (inline per-page) ─────────────────────
  <div class="nx-cursor" id="cur"></div>
  <div class="nx-ring"   id="ring"></div>
  <nav id="nav">
    <a href="/" class="nx-logo">Neuron<b>X</b></a>
  </nav>
  ...page content...
  <footer>
    <div class="fl">
      <a href="/" class="nx-logo">Neuron<b>X</b></a>
      <p>A self-evolving AI platform...</p>
    </div>
    <div class="fc">
      <h5>Platform</h5>
      <a href="/developers">Architecture</a>
      <a href="/developers">The Brain</a>
      <a href="/developers">The Swarm</a>
      <a href="/developers">Supervision</a>
    </div>
  </footer>
  <div class="f-bottom">
    <span>© 2026 NeuronX</span>
    <span>Privacy · Terms · Security</span>
  </div>
  <script>
  const cur=document.getElementById('cur'),ring=document.getElementById('ring');
  let mx=0,my=0,rx=0,ry=0;
  document.addEventListener('mousemove',e=>{mx=e.clientX;my=e.clientY;cur.style.left=mx+'px';cur.style.top=my+'px'});
  (function animR(){rx+=(mx-rx)*.12;ry+=(my-ry)*.12;ring.style.left=rx+'px';ring.style.top=ry+'px';requestAnimationFrame(animR)})();
  window.addEventListener('scroll',()=>{document.getElementById('nav').classList.toggle('stuck',window.scrollY>10)});
  const ro=new IntersectionObserver(e=>{e.forEach(x=>{if(x.isIntersecting)x.target.classList.add('on')})},{threshold:.07});
  document.querySelectorAll('.R').forEach(r=>ro.observe(r));
  </script>
─────────────────────────────────────────────────────────────── */

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .contained { padding-left: 32px; padding-right: 32px; }
  footer { padding: 40px 32px; }
  .f-bottom { padding: 16px 32px 28px; }
}
@media (max-width: 600px) {
  footer { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
