/* ---------- Generative Agents — neural / emerald palette ---------- */
:root {
  --bg: #0a1116;
  --panel: #11191f;
  --panel-2: #182229;
  --border: #1f2c33;
  --text: #e8f1f0;
  --muted: #8aa49f;
  --dim: #5a6e6a;
  --emerald: #34d399;
  --emerald-hot: #6ee7b7;
  --cyan: #38bdf8;
  --gold: #fbbf24;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
a { color: var(--emerald-hot); text-decoration: none; }
a:hover { color: var(--cyan); }

/* ---------- Nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10, 17, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
nav.top .back {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px; letter-spacing: 1px; color: var(--muted);
  transition: color .15s;
}
nav.top .back:hover { color: var(--emerald); }
nav.top .brand {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: 0.5px; color: var(--text);
}
nav.top .brand .dot { color: var(--emerald); }

/* ---------- Cover with video hero ---------- */
.cover {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 24px;
}
.video-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(52, 211, 153, 0.12);
}
.video-hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}
.cover-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10, 17, 22, 0.92) 0%, rgba(10, 17, 22, 0.55) 35%, rgba(10, 17, 22, 0.15) 60%, rgba(10, 17, 22, 0.7) 100%),
    linear-gradient(to bottom, rgba(10, 17, 22, 0) 50%, rgba(10, 17, 22, 0.8) 100%);
  pointer-events: none;
}
.cover-text {
  position: absolute;
  left: 36px; bottom: 32px; right: 36px;
  z-index: 2;
}
.award {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.cover-text h1 {
  margin: 0;
  font-size: clamp(32px, 5.5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,0.7);
}
.cover-text .tagline {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.5vw, 17px);
  color: #d6e6e3;
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}

/* ---------- Layout ---------- */
.game { padding-bottom: 80px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0 24px;
}
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .cover-text { left: 22px; right: 22px; bottom: 22px; }
}

/* ---------- Sections ---------- */
.about, .how-it-works, .linkedin { margin-bottom: 40px; }
.about h2,
.how-it-works h2,
.linkedin h2 {
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--emerald-hot);
  font-weight: 700;
  letter-spacing: -0.2px;
}
.about p, .how-it-works li {
  font-size: 15px;
  line-height: 1.7;
  color: #c8d8d4;
  margin: 0 0 14px;
}
.about strong { color: var(--text); }
.about em { color: var(--gold); font-style: italic; }
.how-it-works ul { padding: 0 0 0 20px; margin: 0; }
.how-it-works li { margin-bottom: 12px; }
.how-it-works li strong { color: var(--text); display: inline; }
.how-it-works code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--emerald-hot);
}

/* ---------- Meta cards ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.meta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}
.meta-card h3 {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--emerald);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
}
.meta-card p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.4; }

/* ---------- Expo figure ---------- */
.expo { margin-bottom: 40px; }
.expo-figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.expo-figure a { display: block; line-height: 0; }
.expo-figure img {
  width: 100%;
  display: block;
  transition: transform .4s ease, filter .25s ease;
}
.expo-figure a:hover img { transform: scale(1.02); filter: brightness(1.05); }
.expo-figure figcaption {
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--panel-2);
}
.expo-figure figcaption strong { color: var(--gold); font-weight: 700; }
.expo-figure figcaption em { color: var(--emerald-hot); font-style: italic; }

/* ---------- LinkedIn card ---------- */
.li-card {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color .2s;
}
.li-card:hover { border-color: var(--cyan); }
.li-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: #0a66c2;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 22px;
  color: white;
  letter-spacing: -1px;
}
.li-body { flex: 1; }
.li-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.li-text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.li-link {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--cyan);
}

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 14px; }
.play-btn {
  display: block;
  background: var(--emerald);
  color: #062a1d !important;
  text-align: center;
  padding: 16px 20px;
  border-radius: 6px;
  border: 1px solid #1aa473;
  box-shadow: 0 6px 22px rgba(52, 211, 153, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.play-btn:hover {
  background: var(--emerald-hot);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.4);
  color: #062a1d !important;
}
.play-btn--alt {
  background: var(--panel);
  color: var(--emerald-hot) !important;
  border-color: var(--border);
  box-shadow: none;
}
.play-btn--alt:hover {
  background: var(--panel-2);
  border-color: var(--emerald);
  color: var(--emerald-hot) !important;
  box-shadow: 0 6px 18px rgba(52, 211, 153, 0.15);
}
.play-btn .big { display: block; font-size: 16px; font-weight: 700; letter-spacing: 0.3px; }
.play-btn .small {
  display: block; font-size: 11px; margin-top: 4px; opacity: 0.8;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.5px;
}

.info {
  list-style: none; padding: 0; margin: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.info li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.info li:last-child { border-bottom: none; }
.info li span {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.info li b { color: var(--text); font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 11px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.tags span:hover { color: var(--emerald-hot); border-color: var(--emerald); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 24px 14px;
  color: var(--dim);
  font-size: 12px;
  border-top: 1px solid var(--border);
  font-family: ui-monospace, monospace;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--emerald-hot); }
