/* Neuralis — cocoa & shea palette, Fraunces + Instrument Sans + Plex Mono.
   Signature: the ɛ/ɔ glyph hero. Everything else stays quiet. */

:root {
  --cocoa-950: #17100a;   /* deep roasted cocoa (dark bands, hero) */
  --cocoa-800: #2c1f13;
  --shea: #f6efe3;        /* shea-butter light ground */
  --shea-deep: #ecdfc9;   /* tinted bands */
  --ink: #241a10;         /* body text on light */
  --gold: #d9930d;        /* kente gold — links, badges, accents */
  --leaf: #2e6b46;        /* young cocoa leaf — secondary accent */
  --paper-line: #d8c8ad;
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--shea);
  line-height: 1.6;
  font-size: 1.0625rem;
}

/* ---------- header ---------- */
.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  background: var(--cocoa-950); color: var(--shea);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid #3a2c1c;
}
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  color: var(--shea); text-decoration: none; letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.wordmark .mark { border-radius: 6px; display: block; }
.wordmark .by {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 400;
  margin-left: 0.6rem; color: var(--gold); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.top nav { display: flex; flex-wrap: wrap; gap: clamp(0.7rem, 2vw, 1.4rem); font-size: 0.92rem; }
.top nav a { color: #cdbfa8; text-decoration: none; }
.top nav a:hover, .top nav a:focus-visible { color: var(--shea); }
.top nav .cta-link { color: var(--gold); font-weight: 600; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero {
  background: var(--cocoa-950); color: var(--shea);
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(180px, 0.8fr) 2fr; gap: clamp(1rem, 4vw, 4rem);
  align-items: center; overflow: hidden;
}
.glyphs {
  font-family: var(--display); font-weight: 300; line-height: 0.8;
  font-size: clamp(9rem, 22vw, 20rem); user-select: none; white-space: nowrap;
}
.glyph { display: inline-block; }
.g1 { color: var(--gold); font-style: italic; }
.g2 { color: var(--leaf); margin-left: -0.06em; }
@keyframes rise { from { transform: translateY(0.35em); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .g1 { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .g2 { animation: rise 0.9s 0.15s cubic-bezier(.2,.7,.2,1) both; }
}
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 1.1rem; max-width: 17ch;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.lede { max-width: 56ch; color: #e6dcc9; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-actions { margin-top: 1.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.72rem 1.35rem; border-radius: 3px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent;
}
.btn.solid { background: var(--gold); color: var(--cocoa-950); }
.btn.solid:hover { background: #eaa71f; }
.btn.ghost { border-color: #6b5335; color: var(--shea); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-note {
  grid-column: 1 / -1; margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid #3a2c1c; padding-top: 1.1rem;
  font-size: 0.9rem; color: #b8a98d; max-width: 72ch;
}
.mono { font-family: var(--mono); }
.hero-note .mono { color: var(--gold); }

/* ---------- bands ---------- */
.band { padding: clamp(2.6rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem); }
.band .inner { max-width: 68rem; margin: 0 auto; }
.band .inner.narrow { max-width: 44rem; }
.band.dark { background: var(--cocoa-950); color: var(--shea); }
.band.tint { background: var(--shea-deep); }
.band h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.2;
  margin-bottom: 1.6rem; max-width: 24ch;
}
.sect {
  display: block; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.55rem;
}
.band .sect { color: var(--leaf); }
.band.dark .sect { color: var(--gold); }
.section-lede { max-width: 58ch; margin-bottom: 1.8rem; font-size: 1.05rem; }

/* facts */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); }
.big-fact {
  font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--gold); line-height: 1; margin-bottom: 0.4rem;
}
.band.dark .cols3 p:not(.big-fact) { color: #d9cfba; font-size: 0.97rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card {
  background: #fffdf8; border: 1px solid var(--paper-line); border-radius: 4px;
  padding: 1.3rem 1.3rem 1.1rem;
}
.card h3, .app h3 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; }
.meta { margin-top: 0.8rem; font-size: 0.72rem; color: var(--leaf); }

/* badges */
.badge {
  display: inline-block; vertical-align: middle; margin-left: 0.35rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.18rem 0.5rem; border-radius: 999px;
  white-space: nowrap;
}
.badge.live { background: var(--leaf); color: #f2f7ef; }
.badge.soon { background: var(--gold); color: var(--cocoa-950); }
.badge.plan { background: transparent; border: 1px solid #b9a888; color: #7d6b4e; }

/* platform list */
.platform-list { list-style: none; max-width: 60ch; }
.platform-list li {
  padding: 0.85rem 0 0.85rem 1.4rem; border-bottom: 1px solid var(--paper-line);
  position: relative; font-size: 1rem;
}
.platform-list li::before {
  content: "ɔ"; position: absolute; left: 0; top: 0.78rem;
  font-family: var(--display); font-style: italic; color: var(--leaf); font-size: 1.05rem;
}
.platform-list li:last-child { border-bottom: 0; }

/* apps */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.app {
  border: 1px solid var(--paper-line); border-radius: 4px; padding: 1.25rem;
  background: #fffdf8;
}
.band .apps-grid .app p { font-size: 0.94rem; }
.app-tag {
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--leaf); margin-bottom: 0.55rem;
}

/* language table */
.lang-table { border-top: 1px solid #3a2c1c; max-width: 56rem; }
.lang-row {
  display: grid; grid-template-columns: 1.2fr 0.5fr 1.6fr; gap: 1rem;
  padding: 0.8rem 0; border-bottom: 1px solid #3a2c1c; font-size: 0.97rem;
  color: #d9cfba;
}
.lang-row.head {
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold);
}
.lang-row .lang { font-family: var(--display); font-size: 1.08rem; color: var(--shea); }

/* progress log */
.log { list-style: none; max-width: 60ch; }
.log li { padding: 0.9rem 0; border-bottom: 1px solid var(--paper-line); font-size: 1rem; }
.log li:last-child { border-bottom: 0; }
.date { display: block; font-size: 0.7rem; color: var(--leaf); letter-spacing: 0.08em; margin-bottom: 0.25rem; }

.footnote { margin-top: 1.2rem; font-size: 0.83rem; color: #7d6b4e; }
.band.dark .footnote { color: #9b8c70; }

/* footer */
footer {
  background: var(--cocoa-950); color: #b8a98d; text-align: center;
  padding: 2rem 1rem 2.4rem; font-size: 0.9rem;
}
footer .mono { color: var(--gold); }
footer .footnote { color: #7a6b50; margin-top: 0.4rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards, .apps-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .glyphs { font-size: clamp(7rem, 28vw, 11rem); }
}
@media (max-width: 640px) {
  .cols3, .cards, .apps-grid { grid-template-columns: 1fr; }
  .lang-row { grid-template-columns: 1fr; gap: 0.15rem; padding: 1rem 0; }
  .top { flex-direction: column; gap: 0.5rem; align-items: flex-start; }
}

/* ---------- product catalog (all greyed: nothing is available yet) ---------- */
.fam {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  margin: 2.2rem 0 0.2rem;
}
.fam:first-of-type { margin-top: 1rem; }
.fam-note {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--leaf);
  font-weight: 400; margin-top: 0.25rem;
}
.prod-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem;
  margin-top: 1.1rem;
}
.prod {
  display: flex; gap: 0.9rem; align-items: flex-start;
  text-decoration: none; color: inherit;
  background: #fffdf8; border: 1px solid var(--paper-line); border-radius: 4px;
  padding: 0.9rem;
  /* Greyed out: these are announcements, not products you can use yet. */
  filter: grayscale(1); opacity: 0.55;
}
.prod img {
  width: 54px; height: 54px; border-radius: 6px; flex: 0 0 54px;
}
.prod h4 { font-family: var(--display); font-size: 1rem; margin-bottom: 0.15rem; }
.prod .who {
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--leaf); margin-bottom: 0.35rem;
}
.prod p:not(.who) { font-size: 0.88rem; line-height: 1.45; }
.placeholder {
  grid-column: 1 / -1; font-size: 0.8rem; color: #7d6b4e;
  border: 1px dashed var(--paper-line); border-radius: 4px; padding: 1rem;
}
@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: 1fr; } }

/* clicking a card opens its detail page */
a.prod { transition: filter 0.2s ease, opacity 0.2s ease, border-color 0.2s ease; }
a.prod:hover, a.prod:focus-visible {
  filter: grayscale(0.15); opacity: 1; border-color: var(--gold);
}
a.prod h4 { text-decoration: underline; text-decoration-color: var(--paper-line); text-underline-offset: 3px; }
a.prod:hover h4 { text-decoration-color: var(--gold); }

/* ---------- product detail page ---------- */
.prod-page { max-width: 48rem; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem) 3rem; }
.back { display: inline-block; font-size: 0.75rem; color: var(--leaf); text-decoration: none; margin-bottom: 1.6rem; }
.back:hover { color: var(--gold); }
.prod-hero { display: flex; gap: 1.4rem; align-items: flex-start; margin-bottom: 2.2rem; }
.prod-hero img { border-radius: 10px; flex: 0 0 96px; }
.prod-hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0.1rem 0 0.6rem; }
.prod-hero .lede { color: var(--ink); font-size: 1.08rem; max-width: 46ch; }
.who-line { margin-top: 0.7rem; font-size: 0.9rem; color: #6b5a42; }
.who-line .mono { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--leaf); }
.prod-sec { margin-bottom: 1.9rem; }
.prod-sec h2 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.5rem; }
.prod-sec p { margin-bottom: 0.7rem; max-width: 62ch; }
.prod-page .footnote { border-top: 1px solid var(--paper-line); padding-top: 1rem; }
.back-foot { margin-top: 1.6rem; }
@media (max-width: 560px) {
  .prod-hero { flex-direction: column; gap: 1rem; }
  .prod-hero img { flex: 0 0 auto; width: 72px; height: 72px; }
}

/* ghost button on a light background (product pages) */
.prod-page .btn.ghost { border-color: var(--paper-line); color: var(--ink); }
.prod-page .btn.ghost:hover { border-color: var(--gold); color: var(--leaf); }
