/* MDPath — global stylesheet
   Light-only. Single source of design tokens.
   ------------------------------------------------------------------ */

:root {
  /* ── Surfaces ───────────────────────────────── */
  --bg:             #ffffff;
  --bg-soft:        #f7f8fb;
  --bg-tint:        #eef2fa;
  --panel:          #ffffff;
  --panel-hover:    #fbfcfe;
  --panel-dark:     #0e1320;
  --panel-dark-2:   #161c2c;

  /* ── Borders ─────────────────────────────────── */
  --border:         #e6e9ef;
  --border-2:       #d8dde5;
  --border-3:       #c7cdd8;
  --border-dark:    #232a3d;

  /* ── Text ────────────────────────────────────── */
  --text:               #0b1220;
  --text-muted:         #4a5568;
  --text-dim:           #6b7280;
  --text-faint:         #9aa3b2;
  --text-on-dark:       #f1f4fa;
  --text-on-dark-muted: #aab2c4;

  /* ── Brand ───────────────────────────────────── */
  --accent:       #648FFF;
  --accent-2:     #7ea3ff;
  --accent-3:     #4b73e8;
  --accent-soft:  rgba(100, 143, 255, 0.10);
  --accent-line:  rgba(100, 143, 255, 0.32);
  --accent-glow:  rgba(100, 143, 255, 0.22);

  /* ── Semantic ─────────────────────────────────── */
  --good:  #16a36a;
  --warn:  #b45309;
  --warm:  #ff9b5e;

  /* ── Layout ─────────────────────────────────── */
  --container:        1200px;
  --container-tight:  880px;
  --container-narrow: 720px;

  /* ── Radii ──────────────────────────────────── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* ── Shadows ────────────────────────────────── */
  --shadow-xs:   0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-sm:   0 1px 2px rgba(11, 18, 32, 0.05), 0 1px 3px rgba(11, 18, 32, 0.04);
  --shadow:      0 2px 6px rgba(11, 18, 32, 0.05), 0 8px 24px -8px rgba(11, 18, 32, 0.08);
  --shadow-lg:   0 4px 12px rgba(11, 18, 32, 0.06), 0 24px 48px -16px rgba(11, 18, 32, 0.12);
  --shadow-blue: 0 8px 32px -8px rgba(100, 143, 255, 0.32);

  /* ── Typography ─────────────────────────────── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ── Motion ─────────────────────────────────── */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset / base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
  scroll-padding-top: 120px;          /* sticky-header offset for #anchor jumps */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Tabular nums are great in data UI but oldstyle proportional digits read
   nicer in flowing prose — opt back out at the paragraph level. */
p, li { font-variant-numeric: normal; text-wrap: pretty; }
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.4em;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
h1.hero { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.4; }
h5 { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Selection */
::selection { background: rgba(100, 143, 255, 0.22); color: var(--text); text-shadow: none; }
.section-dark ::selection { background: rgba(126, 163, 255, 0.32); color: var(--text-on-dark); }

/* Scrollbar */
body { scrollbar-color: var(--border-2) var(--bg-soft); }
body::-webkit-scrollbar { width: 10px; height: 10px; }
body::-webkit-scrollbar-track { background: var(--bg-soft); }
body::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 999px; }
body::-webkit-scrollbar-thumb:hover { background: var(--border-3); }

/* Focus ring — soft accent glow + crisp border, far more refined than a hard outline */
:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent-3),
    0 4px 14px -4px var(--accent-glow);
  border-radius: 6px;
}
.section-dark :focus-visible {
  box-shadow:
    0 0 0 2px var(--panel-dark),
    0 0 0 4px var(--accent-2),
    0 4px 14px -4px var(--accent-glow);
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 100;
}
.skip:focus-visible { left: 12px; }

/* ── Layout primitives ──────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 28px;
}
.container--tight  { max-width: var(--container-tight); }
.container--narrow { max-width: var(--container-narrow); }

main { display: block; }

section { padding-block: 96px; }
section.section-tight { padding-block: 72px; }
.section-soft  { background: var(--bg-soft); }
.section-tint  { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.section-dark  {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 18% 0%, rgba(100, 143, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 50% at 92% 100%, rgba(100, 143, 255, 0.08), transparent 70%),
    var(--panel-dark);
  color: var(--text-on-dark);
}
.section-dark::before,
.section-dark::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 143, 255, 0.32) 30%, rgba(100, 143, 255, 0.32) 70%, transparent);
  opacity: 0.7;
}
.section-dark::before { top: 0; }
.section-dark::after  { bottom: 0; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }

/* ── Eyebrow ────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--accent-2); }

/* Pulsing dot — gentle, not hyperactive */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: dot-pulse 2.4s var(--ease-out) infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(100, 143, 255, 0.45); }
  60%  { box-shadow: 0 0 0 8px rgba(100, 143, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(100, 143, 255, 0); }
}

/* ── Lede / prose ───────────────────────────────────────────────── */
.lede {
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 64ch;
  margin-bottom: 30px;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.section-dark .lede { color: var(--text-on-dark-muted); }

.doc p, .doc li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}
.doc strong, .doc b { color: var(--text); font-weight: 600; }

a.inline,
.prose a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent-line);
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
a.inline:hover,
.prose a:hover { color: var(--accent-3); border-bottom: 1px solid var(--accent-3); }

/* Better contrast for inline links inside dark sections */
.section-dark a.inline,
.feature-card--dark a.inline {
  color: var(--accent-2);
  border-bottom-color: rgba(126, 163, 255, 0.45);
}
.section-dark a.inline:hover,
.feature-card--dark a.inline:hover {
  color: #b9cdff;
  border-bottom-color: #b9cdff;
}

/* ── Highlight gradient text ────────────────────────────────────── */
.hl {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 10px 20px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition:
    transform 0.18s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.btn:hover {
  border-color: var(--border-3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); transition-duration: 0.06s; }

.btn.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
  color: #fff;
  border-color: var(--accent-3);
  /* subtle inner top highlight for premium gradient feel */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(11, 18, 32, 0.10),
    0 1px 2px rgba(75, 115, 232, 0.18);
}
.btn.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(11, 18, 32, 0.12),
    0 8px 22px -8px rgba(100, 143, 255, 0.55);
  transform: translateY(-1px);
}

.btn.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  box-shadow: none;
}
.btn.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-soft);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.btn-sm { height: 32px; padding: 7px 14px; font-size: 13px; }

.btn .arrow { transition: transform 0.22s var(--ease-out); display: inline-flex; }
.btn:hover .arrow { transform: translateX(3px); }

.section-dark .btn {
  background: var(--panel-dark-2);
  color: var(--text-on-dark);
  border-color: var(--border-dark);
}
.section-dark .btn:hover { background: #1d243a; }
.section-dark .btn.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-3)); color: #fff; border-color: var(--accent-3); }

/* ── Pills ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 3px 11px;
  background: #fff;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-xs);
}
.pill.accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-3);
}
.pill.warm {
  background: rgba(255, 155, 94, 0.10);
  border-color: rgba(255, 155, 94, 0.32);
  color: #b75a1f;
}
.section-dark .pill {
  background: var(--panel-dark-2);
  border-color: var(--border-dark);
  color: var(--text-on-dark-muted);
}
.section-dark .pill.accent {
  background: rgba(100, 143, 255, 0.16);
  border-color: rgba(100, 143, 255, 0.40);
  color: var(--accent-2);
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.32s var(--ease-out),
    border-color 0.22s var(--ease),
    transform 0.32s var(--ease-out);
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.card-dark {
  background: var(--panel-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--text-on-dark);
}
.card-dark p { color: var(--text-on-dark-muted); }

/* Feature card (used on product page) */
.feature-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    var(--shadow-sm),
    0 24px 60px -36px rgba(11, 18, 32, 0.18);
}
.feature-card--dark {
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(100, 143, 255, 0.10), transparent 60%),
    var(--panel-dark-2);
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -28px rgba(0, 0, 0, 0.55);
}
.feature-card--dark h2 { color: var(--text-on-dark); }
.feature-card--dark p  { color: var(--text-on-dark-muted); }

/* ── MDPath illustration (product page §1) ─────────────────────── */
/* No frame, no border, no chrome — the image sits directly in the card
   with only a soft accent halo behind it so it reads as embedded
   content rather than a separate viewer. mix-blend-multiply dissolves
   the PNG's white background into the card so the image has no visible
   hard edge. */
.mdpath-embed {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  padding: 8px;
}
.mdpath-glow {
  position: absolute;
  z-index: 0;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(100, 143, 255, 0.18), rgba(100, 143, 255, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}
.mdpath-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 240px;          /* sits comfortably alongside the text */
  height: auto;
  max-height: 100%;
  mix-blend-mode: multiply;  /* PNG white dissolves into card */
  filter: drop-shadow(0 14px 22px -14px rgba(11, 18, 32, 0.20));
  transition: transform 0.5s var(--ease-out);
}
.mdpath-embed:hover .mdpath-image { transform: translateY(-2px); }

/* ── Hero placeholder (index hero, until real animation lands) ─── */
.hero-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(100, 143, 255, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.hero-placeholder-mark {
  width: min(78%, 320px);
  height: auto;
  filter: drop-shadow(0 26px 48px -20px rgba(100, 143, 255, 0.45));
  animation: hero-placeholder-float 6s var(--ease) infinite;
}
@keyframes hero-placeholder-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.hero-placeholder-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Frame (animation container) ───────────────────────────────── */
.frame {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fafbfd, var(--bg-soft));
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}
.frame-dots { display: inline-flex; gap: 5px; }
.frame-dots span { width: 9px; height: 9px; border-radius: 999px; background: var(--border-2); display: inline-block; }
.frame-title { flex: 1; }
.frame-status { color: var(--accent-3); }
.frame-body {
  position: relative;
  background: var(--panel);
}
.frame-body--dark { background: var(--panel-dark-2); }
.frame--dark { background: var(--panel-dark-2); border-color: var(--border-dark); }
.frame--dark .frame-bar { background: linear-gradient(180deg, #131a2a, #0e1320); border-bottom-color: var(--border-dark); color: var(--text-on-dark-muted); }
.frame--dark .frame-dots span { background: var(--border-dark); }
.frame--dark .frame-status { color: var(--accent-2); }

/* ── Header ────────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  /* fading hairline — denser at center, transparent at edges */
  background-image:
    linear-gradient(color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 78%, transparent)),
    linear-gradient(90deg, transparent, var(--border) 18%, var(--border) 82%, transparent);
  background-position: 0 0, 0 100%;
  background-size: 100% calc(100% - 1px), 100% 1px;
  background-repeat: no-repeat;
  transition: box-shadow 0.3s var(--ease);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.014em;
  font-size: 28px;
  text-decoration: none;
}
.brand .brand-mark {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(100, 143, 255, 0.22));
  transition: filter 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 6px 18px rgba(100, 143, 255, 0.32));
  transform: translateY(-1px);
}
.brand-name { font-family: var(--font-sans); font-weight: 600; }

/* Footer brand stays at the previous compact size for visual hierarchy. */
.footer .brand { font-size: 17px; gap: 10px; letter-spacing: -0.01em; }
.footer .brand .brand-mark { width: 36px; height: 36px; filter: none; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: -0.005em;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.nav a:hover { color: var(--text); background: var(--bg-soft); }
.nav a.is-active {
  color: var(--accent-3);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.menu-toggle {
  display: none;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 9px;
  color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.menu-toggle:hover { background: var(--bg-soft); border-color: var(--border-3); }
.menu-toggle svg { width: 18px; height: 18px; display: block; }

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-soft), #f3f5f9);
  padding-top: 72px;
  padding-bottom: 32px;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 14%, var(--border-2) 50%, var(--border) 86%, transparent);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-col .brand { margin-bottom: 12px; }
.footer-tag {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 32ch;
}
.footer-col h5 { margin-bottom: 14px; color: var(--text); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-mono); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.18s var(--ease);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out), color 0.18s var(--ease);
}
.footer-col a:hover {
  color: var(--accent-3);
  background-size: 100% 1px;
}
.footer-meta {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 20px 28px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 72px;
  padding-bottom: 96px;
  background:
    radial-gradient(ellipse 70% 60% at 18% 10%, rgba(100, 143, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 88% 30%, rgba(126, 163, 255, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 70%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  opacity: 0.6;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-text .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-text .pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.hero-frame {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
}
.hero-frame .frame-body { flex: 1; min-height: 0; }

/* ── Three-pillar strip ────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar { padding: 32px; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: block;
}
.pillar h3 { margin-bottom: 10px; color: var(--text); }
.pillar p { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); margin-bottom: 16px; }
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  transition: gap 0.2s var(--ease), color 0.15s var(--ease);
}
.pillar-link:hover { gap: 10px; color: var(--accent-3); }

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-tint), var(--bg));
}
.cta-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 52px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    var(--shadow),
    0 24px 56px -28px rgba(100, 143, 255, 0.22);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  overflow: hidden;
}
/* subtle accent gradient bar on the top edge of the CTA card */
.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2) 28%, var(--accent) 50%, var(--accent-3) 72%, transparent);
  opacity: 0.65;
}
.cta-card h3 { font-size: 26px; line-height: 1.22; color: var(--text); margin-bottom: 10px; letter-spacing: -0.018em; }
.cta-card p  { color: var(--text-muted); margin: 0; max-width: 60ch; }

/* ── Anchor nav (product page) ─────────────────────────────────── */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease);
}
.anchor-nav a:hover {
  border-color: var(--accent-line);
  color: var(--accent-3);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── Two-column feature row ────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-row.feature-row--reverse > :first-child { order: 2; }

.feature-card .doc + .doc { margin-top: 24px; }
.feature-card .doc p { margin-bottom: 0; }

/* ── kvlist ────────────────────────────────────────────────────── */
.kvlist {
  margin-top: 24px;
  display: grid;
  grid-template-columns: max-content 1fr;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.kvlist > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
}
.kvlist > div:nth-child(odd) {
  color: var(--text-on-dark-muted);
  padding-right: 24px;
}
.kvlist > div:nth-child(even) {
  color: var(--text-on-dark);
}

/* ── Callout (highlighted lede block) ──────────────────────────── */
.callout {
  position: relative;
  margin: 32px 0 8px;
  padding: 26px 32px 26px 36px;
  background:
    linear-gradient(180deg, rgba(100, 143, 255, 0.10), rgba(100, 143, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  max-width: 68ch;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    var(--shadow-sm),
    0 12px 28px -16px var(--accent-glow);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.callout::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
}
.callout p {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}
.callout-em {
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}
.callout-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(100, 143, 255, 0.55);
  animation: dot-pulse 1.8s var(--ease) infinite;
}

/* ── Citation cards ────────────────────────────────────────────── */
.citation-stack { display: grid; gap: 20px; }
.citation-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.32s var(--ease-out),
    border-color 0.22s var(--ease),
    transform 0.32s var(--ease-out);
  overflow: hidden;
}
.citation-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-3));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.citation-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.citation-card:hover::before { opacity: 1; }
.citation-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.citation-authors {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.citation-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}
.citation-doi {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--accent-line);
}
.citation-doi:hover { border-bottom-style: solid; }
.citation-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ── Email card (contact page) ─────────────────────────────────── */
.email-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(100, 143, 255, 0.10), rgba(100, 143, 255, 0.02)),
    var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin: 32px 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    var(--shadow-sm),
    0 18px 36px -20px rgba(100, 143, 255, 0.28);
  overflow: hidden;
}
.email-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  opacity: 0.7;
}
.email-card .icon { color: var(--accent-3); flex-shrink: 0; }
.email-card .icon svg { width: 22px; height: 22px; }
.email-card .label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; display: block; font-family: var(--font-mono); letter-spacing: 0.02em; }
.email-card .email-value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px dashed var(--accent-line);
}
.email-card .email-value:hover { border-bottom-style: solid; color: var(--accent-3); }
.email-card .email-body { flex: 1; min-width: 0; }
.email-card .copy-feedback {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--good);
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.email-card .copy-feedback.is-visible { opacity: 1; }

/* ── Legal blocks ──────────────────────────────────────────────── */
.legal-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: 48px;
}
.legal-section h2 { font-size: 18px; margin-bottom: 8px; }
.legal-section h3 { font-size: 14px; margin-bottom: 10px; color: var(--text-dim); font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.legal-block + .legal-block { margin-top: 36px; }
.legal-block address {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
  font-style: normal;
}
.legal-block p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 64ch;
}

/* ── 404 ───────────────────────────────────────────────────────── */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 96px;
}
.not-found .card { padding: 48px; max-width: 480px; }
.not-found h1 { font-size: 48px; margin-bottom: 12px; }

/* ── Page header (subpages) ────────────────────────────────────── */
.page-header {
  position: relative;
  padding-top: 80px;
  padding-bottom: 56px;
  background:
    radial-gradient(ellipse 70% 60% at 22% 10%, rgba(100, 143, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-tint), var(--bg));
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  opacity: 0.55;
}
.page-header .lede { max-width: 64ch; }

/* ── Animations ────────────────────────────────────────────────── */

/* GPCR helices subtle breathing */
@keyframes helix-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
.helix { transform-origin: center; animation: helix-breathe 5s var(--ease) infinite; }
.helix.h1 { animation-delay: 0s; }
.helix.h2 { animation-delay: 0.4s; }
.helix.h3 { animation-delay: 0.8s; }
.helix.h4 { animation-delay: 1.2s; }
.helix.h5 { animation-delay: 1.6s; }
.helix.h6 { animation-delay: 2.0s; }
.helix.h7 { animation-delay: 2.4s; }

@keyframes path-flow {
  to { stroke-dashoffset: -120; }
}
.comm-path {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: path-flow 8s linear infinite;
  fill: none;
  opacity: 0.7;
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .comm-path { stroke-dasharray: none; animation: none; }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .feature-card { padding: 40px; }
}

@media (max-width: 960px) {
  section { padding-block: 80px; }
  .hero { padding-top: 56px; padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.feature-row--reverse > :first-child { order: 0; }
  .cta-card { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  section { padding-block: 64px; }
  .container { padding-inline: 24px; }
  .header-inner { padding: 22px 24px; gap: 16px; }
  .brand { font-size: 22px; gap: 12px; }
  .brand .brand-mark { width: 60px; height: 60px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; margin-left: auto; }

  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    margin: 0;
  }
  .header.is-open .nav a { font-size: 18px; padding: 12px 14px; }

  .pillars { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-meta { flex-direction: column; gap: 6px; padding-top: 16px; }

  .feature-card { padding: 28px; border-radius: var(--radius); }
  .cta-card { padding: 28px; border-radius: var(--radius); }
  .citation-card { padding: 22px; }
  h1.hero { font-size: clamp(32px, 7vw, 44px); }
}

@media (max-width: 480px) {
  .container { padding-inline: 20px; }
  h1.hero { font-size: 36px; }
  .card { padding: 22px; }
}

/* ── Utility ───────────────────────────────────────────────────── */
.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;
}
.text-mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
