/* OpenAffect — landing page */
:root {
  --bg:        #0a0a0c;
  --surface:   #141418;
  --surface-2: #1c1c22;
  --border:    #26262c;
  --text:      #f4f4f5;
  --muted:     #a1a1aa;
  --subtle:    #71717a;
  --accent:    #818cf8;
  --accent-h:  #a5afff;
  --accent-d:  #6366f1;
  --max-w:     1100px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--accent-h); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.container.narrow {
  max-width: 720px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.2px;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.55);
}
.brand-name { font-size: 17px; }
.nav nav {
  display: flex;
  gap: 28px;
}
.nav nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 120px 0 80px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  font-weight: 600;
  margin: 0 0 20px;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #c7c7d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 600px) {
  .hero h1 { white-space: normal; }
}
.hero h1 strong {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  background: none;
}
.hero .lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}
.cta-row {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 600;
  border-radius: 12px;
  transition: background 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--accent-h); color: #0a0a0c; }
.btn:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
  transition: border-color 120ms ease, color 120ms ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

/* Affiliations strip */
.affiliations {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}
.affiliations-label {
  text-align: center;
  margin: 0 0 24px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.affiliations-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 56px;
  opacity: 0.78;
}
.affiliations-row .logo {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 160ms ease;
}
.affiliations-row .logo:hover { opacity: 1; }
.wordmark {
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color 160ms ease;
}
.wordmark:hover { color: var(--text); }
.wordmark-stanford { font-family: "Times New Roman", "Georgia", serif; font-weight: 600; letter-spacing: 1px; }
.wordmark-spc      { font-family: -apple-system, "Inter", sans-serif; font-weight: 500; }
.wordmark-cgx      { font-family: "SF Mono", Menlo, monospace; font-weight: 600; letter-spacing: 2px; }

/* Sections */
.section { padding: 96px 0; }
.section.bg-tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 16px;
  letter-spacing: -0.6px;
}
.section-lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 65ch;
  margin: 0 0 48px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
.two-col p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.features li strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 6px;
}

/* Stages */
.stages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .stages { grid-template-columns: 1fr; } }
.stages li {
  display: flex;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.stage-num {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
  padding-top: 3px;
  flex-shrink: 0;
}
.stages h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}
.stages p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Stack grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.stack-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.stack-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Contact */
.contact-row { margin-top: 24px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--subtle);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
