/* Inhalia — shared site styles (Nocturne). Used by landing, blog hub, articles. */

:root {
  --page: #16131F;
  --surface: #1C1730;
  --card: #221C32;
  --ink: #F2EFFA;
  --muted: #9A92B4;
  --faint: #6E6788;
  --line: rgba(255,255,255,0.09);
  --line2: rgba(255,255,255,0.05);
  --accent: #B3A4F7;
  --aqua: #7FCFDB;
  --onacc: #1A1526;
  --good: #BDF0DA;
  --disp: 'Space Grotesk', sans-serif;
  --body: 'Manrope', sans-serif;
  --mono: 'Space Mono', monospace;
  --max: 1120px;
  --prose: 720px;
}
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--disp); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
p { margin: 0; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2.5px; color: var(--accent); text-transform: uppercase; }
.muted { color: var(--muted); }

/* ── breathing blob (Echo) ───────────────────────────────── */
@keyframes inhBreathe { 0% { transform: scale(0.74); } 45% { transform: scale(1); } 55% { transform: scale(1); } 100% { transform: scale(0.74); } }
@keyframes inhMorph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 58% 42% 38% 62% / 63% 51% 49% 37%; }
  66% { border-radius: 38% 62% 56% 44% / 39% 46% 54% 61%; }
}
@keyframes inhSpin { to { transform: rotate(360deg); } }
.blob-stage { position: relative; display: grid; place-items: center; }
.blob-breathe { position: absolute; animation: inhBreathe 11s ease-in-out infinite; }
.blob-glow { width: 100%; height: 100%; filter: blur(40px); background: rgba(160,140,255,0.5);
  animation: inhMorph 17s ease-in-out infinite, inhSpin 64s linear infinite; }
.blob-body { width: 100%; height: 100%;
  background: linear-gradient(150deg, #C7BAFF, #7FBCE8);
  box-shadow: inset -8px -12px 40px rgba(255,255,255,0.28), inset 8px 12px 34px rgba(0,0,0,0.10);
  animation: inhMorph 17s ease-in-out infinite, inhSpin 64s linear infinite; }
.blob-echo { width: 100%; height: 100%; border: 1.5px solid var(--accent);
  animation: inhMorph 17s ease-in-out infinite, inhSpin 64s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .blob-breathe, .blob-glow, .blob-body, .blob-echo { animation: none !important; }
}

/* ── nav ─────────────────────────────────────────────────── */
header.nav { position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); background: rgba(22,19,31,0.72); border-bottom: 1px solid var(--line2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.logo .mark { width: 26px; height: 26px; border-radius: 46% 54% 60% 40% / 42% 50% 50% 58%; background: linear-gradient(150deg, #C7BAFF, #7FBCE8); flex-shrink: 0; }
.nav-links { display: flex; gap: 34px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.btn { font-family: var(--disp); font-weight: 600; cursor: pointer; border: none; border-radius: 12px;
  padding: 12px 20px; font-size: 15px; background: var(--accent); color: var(--onacc); white-space: nowrap;
  transition: transform .12s, box-shadow .15s; box-shadow: 0 6px 20px rgba(120,100,220,0.28); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(120,100,220,0.36); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }

/* mobile burger + slide-down menu (shown only on mobile via media query) */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; border: none; background: transparent; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; left: 0; right: 0; top: 70px; z-index: 49;
  background: rgba(22,19,31,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line2);
  display: flex; flex-direction: column; padding: 10px 28px 26px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .26s cubic-bezier(.4,0,.2,1), opacity .2s; }
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--disp); font-weight: 600; font-size: 19px; color: var(--ink); padding: 16px 0; border-bottom: 1px solid var(--line2); }
.mobile-menu a.btn { display: block; text-align: center; color: var(--onacc); border-bottom: none; padding: 15px 20px; margin-top: 18px; }

/* ── hero ────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 92px 0 86px; }
.hero::before { content: ''; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px; background: radial-gradient(circle, rgba(120,100,220,0.20), transparent 62%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 62px); }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 22px; max-width: 30ch; text-wrap: pretty; }
.hero .hero-blob { width: clamp(280px, 38vw, 440px); height: clamp(280px, 38vw, 440px); justify-self: center; }

/* ── waitlist form ───────────────────────────────────────── */
.form { display: flex; gap: 10px; margin-top: 30px; max-width: 440px; }
.form input { flex: 1; min-width: 0; background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-radius: 13px; padding: 14px 16px; color: var(--ink); font-family: var(--body); font-size: 15px; outline: none; transition: border-color .15s; }
.form input::placeholder { color: var(--faint); }
.form input:focus { border-color: var(--accent); }
.form .btn { flex-shrink: 0; }
.micro { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 14px; letter-spacing: 0.3px; }
.form-done { display: none; margin-top: 30px; padding: 16px 20px; border-radius: 14px;
  background: rgba(127,224,182,0.10); border: 1px solid rgba(127,224,182,0.3); color: var(--good); font-weight: 600; font-size: 15px; max-width: 440px; }
.form-done.show { display: block; }

/* ── sections ────────────────────────────────────────────── */
section { padding: 90px 0; }
.sec-head { max-width: 640px; margin-bottom: 50px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-top: 14px; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 18px; text-wrap: pretty; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line2); border-radius: 22px; padding: 28px; }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(179,164,247,0.12); margin-bottom: 20px; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 28px; border-radius: 22px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)); }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: 20px; margin-top: 14px; }
.step p { color: var(--muted); margin-top: 9px; font-size: 15px; }

/* science band */
.band { background: var(--surface); border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.band .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.band .quote { font-family: var(--disp); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; max-width: 18ch; line-height: 1.2; }
.stats { display: flex; gap: 44px; flex-wrap: wrap; }
.stat .n { font-family: var(--disp); font-weight: 700; font-size: 34px; color: var(--accent); letter-spacing: -0.02em; }
.stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--faint); margin-top: 4px; }

/* ── article cards (grid) ────────────────────────────────── */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article { border-radius: 22px; overflow: hidden; border: 1px solid var(--line2); background: var(--card);
  transition: transform .15s, border-color .15s; display: flex; flex-direction: column; }
.article:hover { transform: translateY(-3px); border-color: var(--line); }
.article .thumb { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: radial-gradient(125% 120% at 50% 16%, #271F3C 0%, #18142400 70%); }
.article .thumb .b { position: absolute; width: 56%; height: 56%; left: 22%; top: 22%;
  background: linear-gradient(145deg, #C7BAFF, #7FBCE8); border-radius: 46% 54% 60% 40% / 42% 50% 50% 58%;
  box-shadow: inset -6px -9px 28px rgba(255,255,255,0.30), inset 6px 10px 24px rgba(0,0,0,0.14), 0 12px 30px rgba(120,100,220,0.28); }
.article .thumb.t2 .b { background: linear-gradient(145deg, #8FE6E0, #6E8BF0); border-radius: 58% 42% 38% 62% / 63% 51% 49% 37%; box-shadow: inset -6px -9px 28px rgba(255,255,255,0.30), inset 6px 10px 24px rgba(0,0,0,0.14), 0 12px 30px rgba(90,150,200,0.26); }
.article .thumb.t3 .b { background: linear-gradient(145deg, #C7BAFF, #E59FB6); border-radius: 38% 62% 56% 44% / 39% 46% 54% 61%; box-shadow: inset -6px -9px 28px rgba(255,255,255,0.30), inset 6px 10px 24px rgba(0,0,0,0.14), 0 12px 30px rgba(190,120,190,0.24); }
.article .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.article .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; }
.article h3 { font-size: 19px; margin-top: 11px; line-height: 1.2; }
.article h2 { font-size: 19px; margin-top: 11px; line-height: 1.2; font-weight: 600; }
.article p { color: var(--muted); font-size: 14.5px; margin-top: 10px; flex: 1; }
.article .meta { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 16px; }
.article.soon { opacity: 0.55; pointer-events: none; }
.article .badge { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  background: rgba(0,0,0,0.4); color: var(--ink); padding: 5px 9px; border-radius: 8px; backdrop-filter: blur(6px); }

/* ── waitlist CTA ────────────────────────────────────────── */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 600px; background: radial-gradient(circle, rgba(120,100,220,0.18), transparent 62%); pointer-events: none; }
.cta .inner { position: relative; max-width: 620px; margin: 0 auto; }
.cta h2 { font-size: clamp(32px, 4.4vw, 50px); }
.cta p { color: var(--muted); margin-top: 16px; font-size: 18px; }
.cta .form { margin: 30px auto 0; }
.cta .form-done { margin: 30px auto 0; }
.cta .micro { text-align: center; }

/* ── footer ──────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line2); padding: 44px 0 56px; }
.foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 26px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.foot .links a:hover { color: var(--ink); }
.foot .col-title { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--faint); margin-bottom: 12px; text-transform: uppercase; }
.foot .col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--muted); }
.foot .col a:hover { color: var(--ink); }
.foot .copy { font-family: var(--mono); font-size: 12px; color: var(--faint); width: 100%; padding-top: 8px; }

/* ── blog hub ────────────────────────────────────────────── */
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 52px); }
.page-head p { color: var(--muted); margin-top: 16px; font-size: 18px; max-width: 52ch; text-wrap: pretty; }
.cluster { margin-top: 56px; }
.cluster-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.cluster-head h2 { font-size: 22px; }
.cluster-head .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--faint); }

/* ── breadcrumbs ─────────────────────────────────────────── */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: 0.4px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }

/* ── article page (prose) ────────────────────────────────── */
.article-head { padding: 28px 0 0; }
.article-head .cat { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-top: 22px; display: block; }
.article-head h1 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 16px; line-height: 1.06; max-width: 18ch; }
.article-head .dek { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 56ch; text-wrap: pretty; }
.article-head .byline { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-hero { margin: 36px 0 8px; height: 260px; border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(125% 120% at 50% 10%, #2A2340 0%, #16131F 70%); border: 1px solid var(--line2); display: grid; place-items: center; }

.prose { max-width: var(--prose); margin: 0 auto; padding: 8px 0 0; }
.prose > * + * { margin-top: 22px; }
.prose p { color: #D9D4EC; font-size: 17.5px; line-height: 1.72; }
.prose h2 { font-size: 28px; margin-top: 52px; }
.prose h3 { font-size: 21px; margin-top: 38px; }
.prose h2 + p, .prose h3 + p { margin-top: 16px; }
.prose ul, .prose ol { color: #D9D4EC; font-size: 17.5px; line-height: 1.7; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(179,164,247,0.4); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  font-family: var(--disp); font-weight: 500; font-size: 22px; line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 10px; text-align: center; }
.prose .callout { background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 20px 22px; }
.prose .callout p { font-size: 16px; color: var(--muted); margin: 0; }
.skeleton-note { background: rgba(179,164,247,0.08); border: 1px dashed rgba(179,164,247,0.4); border-radius: 14px;
  padding: 16px 18px; font-size: 15px; color: var(--muted); font-family: var(--mono); }

/* in-article waitlist CTA */
.article-cta { max-width: var(--prose); margin: 56px auto 0; background: radial-gradient(125% 130% at 50% 0%, #251E3A, #1A1528);
  border: 1px solid var(--line); border-radius: 22px; padding: 32px; text-align: center; }
.article-cta h3 { font-size: 24px; }
.article-cta p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.article-cta .form { margin: 22px auto 0; }
.article-cta .form-done { margin: 22px auto 0; }
.article-cta .micro { text-align: center; }

/* related links */
.related { max-width: var(--prose); margin: 56px auto 0; }
.related .col-title { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: var(--faint); text-transform: uppercase; margin-bottom: 16px; }
.related-list { display: grid; gap: 12px; }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 17px 20px; transition: border-color .15s, transform .12s; }
.related-list a:hover { border-color: var(--line); transform: translateY(-2px); }
.related-list .t { font-family: var(--disp); font-weight: 600; font-size: 16px; color: var(--ink); }
.related-list .r { font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero .hero-blob { grid-row: 1; width: 260px; height: 260px; }
  .hero .lede { max-width: 38ch; }
  .features, .steps, .articles { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner > .btn { display: none; }
  .nav-burger { display: flex; }
  .form { flex-direction: column; }
  .form .btn { width: 100%; }
  section { padding: 64px 0; }
  .band .wrap { gap: 24px; }
  .prose p, .prose ul, .prose ol { font-size: 16.5px; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .articles { grid-template-columns: repeat(2, 1fr); }
}
