/* ═══════════════════════════════════════════════════════════
   obsidianist.in — Phase 1 teaser
   Design system + sections + responsive + reduced-motion
   ═══════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --void: #0b0a0f;
  --surface: #15131f;
  --raised: #1c1830;
  /* brand */
  --purple: #7c5cff;
  --purple-deep: #4b2fb3;
  --glow: #a78bfa;
  --ember: #ff6a3d;
  /* text */
  --text: #e9e7f2;
  --muted: #9b96ad;
  --hair: rgba(255, 255, 255, 0.08);
  /* type */
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* layout */
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── global cosmos (fixed, behind everything) ────────────── */
.cosmos-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nebula {
  position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(44px); opacity: .5; will-change: transform;
}
.nebula--1 { top: -10vh; left: -10vw; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%); animation: drift1 26s ease-in-out infinite; }
.nebula--2 { top: 35vh; right: -20vw; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(75, 47, 179, 0.32), transparent 65%); animation: drift2 32s ease-in-out infinite; }
.nebula--3 { bottom: -15vh; left: 20vw; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(130, 100, 255, 0.22), transparent 68%); animation: drift1 38s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 4vh) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1.05); } 50% { transform: translate(-5vw, -3vh) scale(0.95); } }

/* content rides above the cosmos */
.nav, main, .footer { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip {
  position: fixed; top: -60px; left: 1rem; z-index: 1000;
  background: var(--purple); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ── custom cursor (USP): fluid neon dot ─────────────────── */
.cursor, .cursor-glow { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; will-change: transform; }
.cursor {
  width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #fff 0%, #e0d4ff 35%, var(--glow) 70%, var(--purple) 100%);
  box-shadow:
    0 0 8px 1px rgba(233, 226, 255, 0.9),
    0 0 18px 5px rgba(167, 139, 250, 0.7),
    0 0 34px 12px rgba(124, 92, 255, 0.45);
  transition: scale .2s var(--ease), box-shadow .2s var(--ease);
}
.cursor-glow {
  width: 240px; height: 240px; margin: -120px 0 0 -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.2), rgba(167, 139, 250, 0.08) 45%, transparent 65%);
  z-index: 9998; mix-blend-mode: screen;
}
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on input { cursor: none; }
.cursor.is-hot {
  scale: 1.9;
  box-shadow:
    0 0 12px 2px rgba(233, 226, 255, 1),
    0 0 28px 8px rgba(167, 139, 250, 0.85),
    0 0 48px 18px rgba(124, 92, 255, 0.55);
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff; box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.7);
}
.btn--primary:hover { box-shadow: 0 12px 40px -8px rgba(124, 92, 255, 0.9); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--text);
  border-color: var(--hair); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--purple); color: #fff; }

.eyebrow, .kicker {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 1.1rem;
}
.glow { color: var(--glow); text-shadow: 0 0 24px rgba(167, 139, 250, 0.55); }
.muted { color: var(--muted); }

/* ── nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11, 10, 15, 0.72); backdrop-filter: blur(14px);
  border-bottom-color: var(--hair);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { font-size: .92rem; color: var(--muted); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__cta { padding: .55rem 1.1rem; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  text-align: center; padding: 7rem 0 4rem; overflow: hidden;
}
.hero__cosmos { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 38%, rgba(124, 92, 255, 0.18), transparent 72%);
}
.hero__inner { position: relative; z-index: 2; width: min(100% - 2.5rem, 760px); }

.hero__shard { width: 120px; margin: 0 auto 1.6rem; filter: drop-shadow(0 0 40px rgba(124, 92, 255, 0.55)); will-change: transform; }
.hero__shard img { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

.hero__title {
  font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  font-size: clamp(3.4rem, 11vw, 7rem);
  background: linear-gradient(180deg, #fff, #c4b5fd 65%, #9b7cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.2rem;
}
.hero__def { font-family: var(--mono); font-size: clamp(.95rem, 2.4vw, 1.15rem); color: var(--muted); margin-bottom: 1.4rem; }
.hero__def .ipa { color: var(--glow); }
.hero__def .pos { font-style: italic; opacity: .7; margin: 0 .35rem; }
.hero__def a { color: var(--text); border-bottom: 1px dashed var(--purple); }
.hero__sub { font-size: clamp(1rem, 2.3vw, 1.2rem); color: var(--text); opacity: .9; max-width: 620px; margin: 0 auto 2.2rem; }
.hero__sub strong { color: var(--glow); }
.hero__fineprint { font-size: .82rem; color: var(--muted); margin-top: 1rem; }

/* signup */
.signup { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; position: relative; }
.signup input[type="email"] {
  flex: 1 1 260px; min-width: 0; font-family: var(--body); font-size: 1rem; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hair); border-radius: 12px;
  padding: .85rem 1.1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.signup input[type="email"]::placeholder { color: rgba(155, 150, 173, 0.7); }
.signup input[type="email"]:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18); }
.signup__msg { flex-basis: 100%; min-height: 1.2rem; font-size: .9rem; margin-top: .4rem; }
.signup__msg.is-ok { color: #74e0a8; }
.signup__msg.is-err { color: #ff8a8a; }
.signup.is-loading button { opacity: .6; pointer-events: none; }

.scrollcue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--hair); border-radius: 14px; }
.scrollcue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--purple); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── section rhythm ──────────────────────────────────────── */
section { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; }
h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(1.9rem, 5.2vw, 3.2rem); }

/* ── MANIFESTO ───────────────────────────────────────────── */
.manifesto__lead { max-width: 18ch; font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: 2.6rem; }
.manifesto__lead .strike { position: relative; color: var(--muted); white-space: nowrap; }
.manifesto__lead .strike::after { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 3px; background: var(--ember); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.manifesto__lead.is-revealed .strike::after { transform: scaleX(1); }
.manifesto__list { list-style: none; padding: 0; display: grid; gap: 1.1rem; max-width: 760px; }
.manifesto__list li { font-size: clamp(1.05rem, 2.6vw, 1.35rem); padding-left: 3.4rem; position: relative; color: var(--text); }
.manifesto__list .num { position: absolute; left: 0; top: .15em; font-family: var(--mono); font-size: .9rem; color: var(--purple); }
.manifesto__list strong { color: var(--glow); }

/* ── BRAIN / NEURONS ─────────────────────────────────────── */
.brain { overflow: hidden; }
.brain__graph { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.brain__copy { position: relative; z-index: 2; max-width: 640px; }
.brain__copy::before { content: ""; position: absolute; inset: -40px -60px; z-index: -1; background: radial-gradient(60% 70% at 30% 50%, rgba(11, 10, 15, 0.92), transparent 75%); }
.brain__copy h2 { margin-bottom: 1.3rem; }
.brain__copy p { font-size: 1.1rem; margin-bottom: 1rem; max-width: 52ch; }
.brain__copy em { color: var(--glow); font-style: normal; }

/* ── MARKDOWN ────────────────────────────────────────────── */
.md__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.md__text h2 { margin-bottom: 1.3rem; }
.md__text p { font-size: 1.1rem; margin-bottom: 1rem; max-width: 50ch; }
.md__text em { color: var(--glow); font-style: normal; }
.md__demo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.md__pane { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 1.1rem 1.2rem; min-height: 320px; font-size: .92rem; }
.md__pane--raw { font-family: var(--mono); position: relative; }
.md__dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin: 0 .35rem .9rem 0; background: #2c2840; }
.md__pane--raw pre { white-space: pre-wrap; word-break: break-word; color: #b9b3cc; }
.md__pane--raw code { font-family: var(--mono); }
.md__pane--raw .caret { display: inline-block; width: 8px; height: 1.1em; background: var(--purple); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.md__pane--rendered h1 { font-family: var(--display); font-size: 1.5rem; margin: .2rem 0 .6rem; }
.md__pane--rendered h2 { font-family: var(--display); font-size: 1.15rem; margin: 1rem 0 .4rem; padding: 0; }
.md__pane--rendered ul { padding-left: 1.2rem; margin: .4rem 0; }
.md__pane--rendered li { margin: .25rem 0; }
.md__pane--rendered a { color: var(--glow); border-bottom: 1px solid rgba(167, 139, 250, .4); }
.md__pane--rendered code { font-family: var(--mono); background: rgba(124, 92, 255, .14); padding: .1rem .35rem; border-radius: 5px; font-size: .85em; }
.md__pane--rendered .tag { color: var(--purple); }
.md__pane--rendered strong { color: var(--glow); }
.md__pane--rendered blockquote { border-left: 3px solid var(--purple); padding-left: .8rem; color: var(--muted); margin: .6rem 0; }

/* ── ORIGIN / VOLCANIC ───────────────────────────────────── */
.origin { overflow: hidden; }
.origin__ember {
  position: absolute; left: 50%; bottom: -30%; width: 140vmax; height: 90vmax; transform: translateX(-50%); z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 106, 61, 0.22), rgba(255, 106, 61, 0.06) 45%, transparent 70%);
  animation: emberpulse 7s ease-in-out infinite;
}
@keyframes emberpulse { 0%, 100% { opacity: .65; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.origin__copy { position: relative; z-index: 2; max-width: 760px; }
.origin__copy .eyebrow { color: var(--ember); }
.origin__copy h2 { margin-bottom: 1.3rem; }
.origin__copy p { font-size: 1.12rem; color: var(--text); opacity: .92; max-width: 56ch; }
.origin__payoff { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 4vw, 2.1rem); margin-top: 1.6rem; background: linear-gradient(100deg, var(--ember), var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── COMING SOON ─────────────────────────────────────────── */
.soon__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2.8rem 0 2rem; }
.card {
  position: relative; background: linear-gradient(180deg, var(--raised), var(--surface));
  border: 1px solid var(--hair); border-radius: 18px; padding: 1.8rem 1.6rem; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% -20%, rgba(124, 92, 255, .14), transparent 60%); opacity: 0; transition: opacity .3s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 20px 50px -20px rgba(124, 92, 255, .5); }
.card:hover::before { opacity: 1; }
.card__lock { font-size: 1.3rem; margin-bottom: .9rem; filter: saturate(0) brightness(1.4); opacity: .8; }
.card h3 { font-family: var(--display); font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card__tag { display: inline-block; margin-top: 1.1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); border: 1px solid rgba(124, 92, 255, .35); border-radius: 999px; padding: .3rem .7rem; }
.soon__note { font-family: var(--display); font-size: clamp(1.1rem, 3vw, 1.5rem); color: var(--text); }

/* ── SUBSCRIBE ───────────────────────────────────────────── */
.subscribe { text-align: center; background: radial-gradient(70% 90% at 50% 30%, rgba(124, 92, 255, .12), transparent 70%); }
.subscribe__inner { max-width: 680px; margin-inline: auto; }
.subscribe h2 { margin-bottom: 1.2rem; }
.subscribe__lead { font-size: 1.1rem; color: var(--muted); max-width: 52ch; margin: 0 auto 2rem; }
.signup--big input[type="email"] { flex-basis: 320px; padding: 1rem 1.2rem; font-size: 1.05rem; }
.signup--big { justify-content: center; }
.subscribe__fineprint { font-size: .85rem; color: var(--muted); margin-top: 1.2rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hair); padding: 3rem 0; background: rgba(8, 7, 12, 0.55); backdrop-filter: blur(3px); }
.footer__inner { text-align: center; display: grid; gap: .7rem; max-width: 640px; margin-inline: auto; }
.footer__brand { display: inline-flex; align-items: center; gap: .5rem; justify-content: center; font-family: var(--display); font-weight: 600; }
.footer__by { color: var(--muted); }
.footer__by a { color: var(--glow); }
.footer__legal { font-size: .8rem; color: rgba(155, 150, 173, .7); }
.footer__copy { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* ── reveal: materialize / unfold ────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px) scale(.965); filter: blur(7px); transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; filter: none; }

/* legibility of text over the starfield */
.wrap h2, .wrap p, .hero__sub, .hero__def, .manifesto__lead, .manifesto__list li { text-shadow: 0 2px 18px rgba(6, 5, 12, 0.55); }

/* ── section "unlock" sweep ──────────────────────────────── */
.sec-unlock::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--purple) 35%, var(--glow) 50%, var(--purple) 65%, transparent);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.7);
  transform: scaleX(0); opacity: 0;
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.sec-unlock.is-unlocked::before { transform: scaleX(1); opacity: .9; }

/* ── live waitlist counter ───────────────────────────────── */
.counter { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem; }
.counter[hidden] { display: none; }
.counter::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #74e0a8; box-shadow: 0 0 10px #74e0a8; animation: livepulse 2s ease-in-out infinite; flex: none; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.counter__num { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; background: linear-gradient(180deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter__label { font-family: var(--mono); font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* ── brain mindmap labels ────────────────────────────────── */
.brain__nodes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.brain__nodes span {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: .72rem; color: var(--glow); white-space: nowrap;
  background: rgba(124, 92, 255, 0.08); border: 1px solid rgba(124, 92, 255, 0.32);
  border-radius: 999px; padding: .28rem .7rem; animation: nodefloat 7s ease-in-out infinite;
}
.brain__nodes span:nth-child(2n) { animation-duration: 9s; animation-delay: -2s; }
.brain__nodes span:nth-child(3n) { animation-duration: 8s; animation-delay: -4s; }
@keyframes nodefloat { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 9px)); } }

/* ── why LLMs prefer markdown ────────────────────────────── */
.md__why { margin-top: clamp(3rem, 7vw, 5rem); }
.md__why-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 3.6vw, 2rem); margin: .4rem 0 0; }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.why { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--hair); border-radius: 14px; padding: 1.3rem; transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); transform-style: preserve-3d; }
.why:hover { border-color: rgba(124, 92, 255, 0.5); box-shadow: 0 16px 40px -22px rgba(124, 92, 255, 0.6); }
.why__n { font-family: var(--mono); font-size: .8rem; color: var(--purple); }
.why h3 { font-family: var(--display); font-size: 1.05rem; margin: .5rem 0 .45rem; }
.why p { font-size: .92rem; color: var(--muted); }
.why code { font-family: var(--mono); background: rgba(124, 92, 255, 0.14); padding: .05rem .3rem; border-radius: 5px; font-size: .85em; color: var(--glow); }

/* ── learn from the obsessed ─────────────────────────────── */
.learn__intro { font-size: 1.1rem; color: var(--text); opacity: .92; max-width: 56ch; margin-top: 1.2rem; }
.learn__intro em { color: var(--glow); font-style: normal; }
.learn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; margin: 2.6rem 0; }
.learn__h { font-family: var(--display); font-size: 1.2rem; margin-bottom: 1.2rem; color: var(--text); }
.setup { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1rem; }
.setup li { position: relative; padding-left: 3.1rem; font-size: 1rem; color: var(--text); }
.setup li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -.15em; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff; font-family: var(--mono); font-size: .85rem; box-shadow: 0 6px 18px -8px rgba(124, 92, 255, 0.8); }
.setup strong { color: var(--glow); }
.setup code { font-family: var(--mono); background: rgba(124, 92, 255, 0.14); padding: .05rem .3rem; border-radius: 5px; font-size: .85em; }
.tips { display: grid; gap: 1rem; }
.tip { border-left: 2px solid var(--purple); padding: .1rem 0 .1rem 1rem; }
.tip strong { display: block; color: var(--glow); font-family: var(--display); }
.tip span { color: var(--muted); font-size: .95rem; }
.learn__hook { font-family: var(--display); font-size: clamp(1.1rem, 3vw, 1.4rem); margin-top: 1rem; }
.learn__hook a { color: var(--glow); border-bottom: 1px dashed var(--purple); }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .md__grid { grid-template-columns: 1fr; }
  .md__demo { grid-template-columns: 1fr; }
  .md__pane { min-height: auto; }
  .soon__grid { grid-template-columns: 1fr; }
  .learn__grid { grid-template-columns: 1fr; }
  .brain__nodes { display: none; }
}
@media (max-width: 540px) {
  .nav__cta { display: none; }
  .signup { flex-direction: column; }
  /* flex-basis governs height once flex-direction is column — reset it back
     to auto so the row-layout width values (260px/320px) don't become heights. */
  .signup input[type="email"], .signup .btn { width: 100%; flex-basis: auto; }
}

/* ── touch: no custom cursor ─────────────────────────────── */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-glow { display: none !important; }
  body.cursor-on { cursor: auto; }
}

/* Motion is the default for everyone. Visitors who want stillness use the
   "Calm" toggle (sets html.motion-off, styled above). We intentionally do NOT
   force-disable via @media (prefers-reduced-motion) so the cosmic experience is
   the default — the toggle keeps it a one-click opt-out. */

/* ── calm mode (explicit user toggle) ────────────────────── */
html.motion-off *, html.motion-off *::before, html.motion-off *::after {
  animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
}
html.motion-off .reveal { opacity: 1; transform: none; filter: none; }
html.motion-off .sec-unlock::before { transform: scaleX(1); opacity: .6; }
html.motion-off .nebula { opacity: .3; }
html.motion-off .cosmos-bg { opacity: 0; }
html.motion-off .hero__shard { transform: none !important; }
html.motion-off .cursor, html.motion-off .cursor-glow { display: none !important; }
html.motion-off body.cursor-on { cursor: auto; }

/* ── motion / calm toggle button ─────────────────────────── */
.motion-toggle {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 300;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: rgba(15, 13, 25, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--hair); border-radius: 999px; padding: .5rem .85rem; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.motion-toggle:hover { color: var(--text); border-color: var(--purple); }
.motion-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.motion-toggle__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 10px var(--purple); }
html.motion-off .motion-toggle__dot { background: #56526a; box-shadow: none; }
@media (max-width: 540px) { .motion-toggle { font-size: .68rem; padding: .45rem .7rem; } }

/* ── comet cursor trail ──────────────────────────────────── */
.comet { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9997; pointer-events: none; }
html.motion-off .comet { display: none; }
@media (hover: none), (pointer: coarse) { .comet { display: none; } }

/* ── Obsidian-style [[wikilinks]] ────────────────────────── */
.wikilink { color: var(--glow); position: relative; white-space: nowrap; transition: color .2s var(--ease), text-shadow .2s var(--ease); }
.wikilink::before { content: "[["; color: var(--purple); opacity: .5; }
.wikilink::after { content: "]]"; color: var(--purple); opacity: .5; }
.wikilink:hover { color: #fff; text-shadow: 0 0 14px rgba(167, 139, 250, .6); }
.wikilink:hover::before, .wikilink:hover::after { opacity: .95; }

.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; justify-content: center; font-family: var(--mono); font-size: .88rem; }

/* active nav item (scroll-spy) */
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--purple), var(--glow)); box-shadow: 0 0 10px rgba(124, 92, 255, .7); }

/* ── scroll-to-top (bottom-right) ────────────────────────── */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 300;
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--text); background: rgba(15, 13, 25, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--hair); border-radius: 14px; cursor: pointer; font-size: 1.15rem; line-height: 1;
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease);
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--purple); color: #fff; box-shadow: 0 8px 24px -10px rgba(124, 92, 255, .85); }
.to-top:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
