/* agenten-in-labor — style.css */

:root {
  --bg:    #040d0a;
  --bg-2:  #071109;
  --bg-3:  #0a1510;
  --grn:   #00c896;
  --grn-d: rgba(0,200,150,.12);
  --blue:  #4a9eff;
  --blue-d:rgba(74,158,255,.1);
  --text:  #7da090;
  --hi:    #c8e8d8;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono:  'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

@keyframes fadein { to { opacity: 1; } }
@keyframes float-node {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pulse-dot {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* ── HERO ────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-mol {
  width: 220px;
  height: 160px;
  margin-bottom: 2.5rem;
  animation: fadein 1s ease forwards;
}
.hero-mol .mol-node {
  animation: pulse-dot 3s ease-in-out infinite;
}
.hero-mol .mol-node:nth-child(2) { animation-delay: 0.5s; }
.hero-mol .mol-node:nth-child(3) { animation-delay: 1s; }
.hero-mol .mol-node:nth-child(4) { animation-delay: 1.5s; }

.hero-inner { text-align: center; max-width: 680px; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grn);
  opacity: 0.7;
  margin-bottom: 1.5rem;
  animation: fadein 0.8s ease forwards;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hi);
  animation: fadein 1s ease forwards 0.4s;
  opacity: 0;
}
.ht-main { display: block; }
.ht-sub  { display: block; font-style: italic; font-size: 0.45em; color: var(--grn); letter-spacing: 0.05em; }

.hero-sub {
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--text);
  animation: fadein 1s ease forwards 1.2s;
  opacity: 0;
}

/* ── SHARED ────────── */

.s {
  padding: 5.5rem 2rem;
  border-top: 1px solid rgba(0,200,150,0.05);
}
.s-2 { background: var(--bg-2); }
.s-3 { background: var(--bg-3); }

.s-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.s-full { max-width: 1040px; margin: 0 auto; }

.sec-label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grn);
  opacity: 0.65;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--hi);
  margin-bottom: 1.2rem;
}

p { margin-bottom: 1rem; font-size: 1.02rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--grn);
  border-left: 2px solid var(--grn-d);
  padding-left: 1.2rem;
  margin-top: 1.5rem;
  line-height: 1.55;
}

/* ── ELN STACK ────────── */

.eln-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(0,200,150,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.eln-layer {
  background: var(--bg-2);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(0,200,150,0.05);
  transition: background 0.2s;
}
.eln-layer:hover { background: rgba(0,200,150,0.04); }
.eln-layer:last-child { border: none; }
.eln-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
}
.eln-dot.grn  { background: var(--grn); }
.eln-dot.blue { background: var(--blue); animation-delay: 0.8s; }
.eln-dot.dim  { background: rgba(0,200,150,0.3); animation: none; }
.eln-name {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hi);
  width: 180px;
  flex-shrink: 0;
}
.eln-desc { font-size: 0.88rem; color: var(--text); }

/* ── FEATURE CARDS ────────── */

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.feat-card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0,200,150,0.08);
  border-radius: 3px;
  padding: 1.4rem;
}
.feat-icon { font-size: 1.5rem; margin-bottom: 0.8rem; opacity: 0.7; }
.feat-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--grn);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.feat-body { font-size: 0.88rem; color: var(--text); line-height: 1.5; }

/* ── SPARQL BOX ────────── */

.sparql-box {
  background: #000;
  border: 1px solid rgba(0,200,150,0.15);
  border-radius: 4px;
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.9;
  overflow-x: auto;
}
.kw  { color: var(--blue); }
.var { color: var(--grn); }
.str { color: rgba(200,232,216,0.6); }
.cmt { color: rgba(0,200,150,0.3); font-style: italic; }

/* ── FUTURE GRID ────────── */

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 1040px;
  margin: 0 auto;
}
.future-card {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,200,150,0.07);
  border-radius: 3px;
  padding: 1.4rem;
}
.future-when {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--grn);
  opacity: 0.55;
  margin-bottom: 0.5rem;
}
.future-what {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--hi);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.future-why { font-size: 0.85rem; color: var(--text); line-height: 1.4; }

/* ── CLOSE ────────── */

.s-close {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
}
.close-inner { max-width: 640px; }
.close-text {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--hi);
  margin-bottom: 1.2rem;
}
.close-sub { font-size: 1rem; opacity: 0.6; margin-bottom: 2rem; }
.close-meta { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; opacity: 0.2; }

.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  border-top: 1px solid rgba(0,200,150,0.05);
}
.site-footer a { color: var(--grn); text-decoration: none; opacity: 0.4; }
.site-footer a:hover { opacity: 1; }

@media (max-width: 840px) {
  .s-inner     { grid-template-columns: 1fr; gap: 2rem; }
  .feat-grid   { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
}
