/* ════════════════════════════════════════════════════════════════
   PROTACXtend — Design System
   Signature: gradient #8683DD → #706BD6 on Dark Navy #0B1338
   Palette:
     Dark Navy #0B1338 · Deep Blue #3E3786 · Primary Purple #706BD6
     Light Purple #8683DD · Cyan #5AB9CD · Teal #1792A2
     Background #F8F8FE · Soft Panel #F6F7FD · Border #E2E7F4
     Pale Accent #BABDEE
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* PROTACXtend ink & accent core */
  --navy:        #191B2B;
  --deep-blue:   #3E3786;
  --purple:      #706BD6;
  --light-purple:#8683DD;
  --cyan:        #5AB9CD;
  --teal:        #1792A2;

  /* surfaces */
  --bg:          #F8F8FE;
  --panel:       #F6F7FD;
  --card:        #FFFFFF;
  --border:      #E2E7F4;
  --pale:        #BABDEE;

  /* text */
  --ink:         #171920;
  --ink-soft:    #39405F;
  --ink-muted:   #656E92;
  --ink-faint:   #9AA1C2;

  /* signature gradient */
  --grad:        linear-gradient(120deg, #8683DD 0%, #706BD6 52%, #5AB9CD 130%);
  --grad-soft:   linear-gradient(135deg, rgba(134,131,221,.14), rgba(90,185,205,.10));
  --grad-chip:   linear-gradient(90deg, #8683DD, #706BD6);

  --shadow-xs:   0 1px 2px rgba(24,25,38,.05);
  --shadow-sm:   0 4px 14px -6px rgba(24,25,38,.10);
  --shadow-md:   0 14px 34px -14px rgba(23,37,110,.18);
  --shadow-lg:   0 30px 60px -24px rgba(24,25,38,.24);
  --shadow-purple: 0 18px 44px -18px rgba(112,107,214,.45);

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;

  --font-serif:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(112,107,214,.22); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--font-mono); font-size: .92em; }

/* scroll progress */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: var(--grad-chip); transform-origin: 0 50%;
  transform: scaleX(0); pointer-events: none;
}

/* ═══════════ NAVBAR ═══════════ */
.navbar {
  position: sticky; top: 0; z-index: 150;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(248,248,254,.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; position: relative;
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(186,189,238,.25), var(--shadow-sm);
  display: grid; place-items: center;
}
.brand-mark::after {
  content: ''; position: absolute; inset: -2px; border-radius: 12px; z-index: -1;
  background: var(--grad-chip); filter: blur(6px); opacity: .55;
}
.brand-mark-x {
  font-family: var(--font-serif); font-weight: 600; font-size: 18px; color: #fff;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-word { font-family: var(--font-serif); font-weight: 600; font-size: 19px; letter-spacing: .2px; }
.brand-accent { background: var(--grad-chip); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-chip {
  font-family: var(--font-mono); font-size: 10px; color: var(--purple);
  border: 1px solid rgba(112,107,214,.35); background: rgba(112,107,214,.07);
  padding: 2px 8px; border-radius: var(--r-pill); letter-spacing: .4px;
  margin-left: 4px;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  font-size: 13.5px; font-weight: 500; color: var(--ink-soft);
  padding: 7px 13px; border-radius: var(--r-pill); position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover { color: var(--purple); background: rgba(112,107,214,.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn-github-nav {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(120deg, #706BD6, #3E3786);
  padding: 9px 16px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-purple);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-github-nav:hover { transform: translateY(-1px); box-shadow: 0 22px 44px -16px rgba(112,107,214,.55); }
.nav-burger { display: none; background: none; border: 1px solid var(--border); border-radius: 9px; padding: 9px; cursor: pointer; }
.nav-burger span { display: block; width: 17px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orb-a { width: 560px; height: 560px; background: rgba(134,131,221,.35); top: -220px; left: -160px; }
.orb-b { width: 460px; height: 460px; background: rgba(90,185,205,.30); top: 20px; right: -180px; }
.orb-c { width: 380px; height: 380px; background: rgba(186,189,238,.5); bottom: -140px; left: 34%; }
.grid-fade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,34,128,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,34,128,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 4.6vw, 64px); align-items: center; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 1.6px; color: var(--purple); text-transform: uppercase;
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-chip); box-shadow: 0 0 0 4px rgba(112,107,214,.15); }
.hero-title {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.06; letter-spacing: -1px; margin: 20px 0 18px; color: var(--navy);
}
.hero-title em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(115deg, #706BD6 10%, #3E3786 55%, #1792A2 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lede { font-size: 17px; line-height: 1.75; color: var(--ink-soft); max-width: 560px; font-weight: 400; }
.hero-lede strong { color: var(--deep-blue); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; border-radius: var(--r-pill);
  padding: 12px 22px; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { color: #fff; background: linear-gradient(120deg, #8683DD, #706BD6 55%, #3E3786 160%); box-shadow: var(--shadow-purple); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -16px rgba(112,107,214,.6); }
.btn-ghost { color: var(--deep-blue); background: var(--card); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--pale); background: var(--panel); transform: translateY(-2px); }
.btn-light { color: var(--navy); background: #fff; box-shadow: var(--shadow-lg); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* install strip */
.install-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 9px 12px; width: fit-content; max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.install-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; color: var(--ink-faint); text-transform: uppercase; }
.install-tabs { display: flex; gap: 4px; }
.tab-pill {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  border: 1px solid transparent; background: none; color: var(--ink-muted);
  padding: 5px 11px; border-radius: var(--r-pill); cursor: pointer; transition: all .18s var(--ease);
}
.tab-pill:hover { color: var(--purple); }
.tab-pill.active { background: var(--grad-soft); color: var(--purple); border-color: rgba(112,107,214,.35); }
.install-cmd { font-family: var(--font-mono); font-size: 13px; color: var(--navy); background: var(--panel); border: 1px solid var(--border); padding: 7px 14px; border-radius: 9px; }
.copy-btn {
  display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--grad-chip); color: #fff; border: none; border-radius: 9px;
  cursor: pointer; transition: opacity .15s; flex: none;
}
.copy-btn:hover { opacity: .85; }

/* hero visual */
.hero-visual { min-width: 0; }
.hero-figure {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 26px 64px -30px rgba(24,25,38,.3);
}
.fig-topbar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px; background: #fff; border-bottom: 1px solid var(--border);
}
.fig-dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E7F4; }
.fig-dot:nth-child(1) { background: #8683DD; }
.fig-dot:nth-child(2) { background: #5AB9CD; }
.fig-dot:nth-child(3) { background: #1792A2; }
.fig-title { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig-art { display: block; background: #FFFFFF; line-height: 0; }
.fig-art svg { display: block; width: 100%; height: auto; }
.fig-caption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-muted); line-height: 1.5;
  padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--border);
}
.fig-caption-tag {
  flex: none; font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 13px; color: #fff; background: var(--grad-chip);
  padding: 3px 10px; border-radius: var(--r-pill);
}

/* hero stats */
.hero-stats {
  position: relative; margin-top: 60px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--navy); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  background-image: linear-gradient(120deg, rgba(112,107,214,.18), transparent 40%), radial-gradient(ellipse 40% 90% at 88% 0%, rgba(90,185,205,.16), transparent);
  border: 1px solid rgba(186,189,238,.18);
  overflow: hidden;
}
.hero-stats::before { content:''; position:absolute; inset:0 0 auto 0; height:3px; background: var(--grad); }
.stat { padding: 26px 22px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(186,189,238,.12); }
.stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-serif); font-weight: 600; font-size: 40px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-suffix { display: inline; }
.stat-lab { font-size: 11.5px; letter-spacing: .4px; color: rgba(248,248,254,.66); text-transform: uppercase; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 96px 0; }
.section-tint { background: linear-gradient(180deg, #fff 0%, var(--panel) 100%); border-block: 1px solid var(--border); }
.sec-head { max-width: 820px; margin: 0 auto 52px; text-align: center; }
.sec-title {
  font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -.6px; line-height: 1.12; margin: 14px 0 14px; color: var(--navy);
}
.sec-title em {
  font-style: italic;
  background: linear-gradient(115deg, #706BD6, #3E3786);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sec-desc { font-size: 16.5px; color: var(--ink-soft); line-height: 1.75; }

/* ═══════════ ABOUT ═══════════ */
.pub-meta {
  display: flex; flex-wrap: wrap; gap: 18px 42px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 26px; margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}
.pub-meta-item { display: flex; flex-direction: column; gap: 3px; }
.pm-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.4px; color: var(--ink-faint); }
.pm-value { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.badge-soft {
  font-size: 11.5px; font-weight: 600; color: var(--teal);
  background: rgba(23,146,162,.1); border: 1px solid rgba(23,146,162,.3);
  padding: 2px 10px; border-radius: var(--r-pill); align-self: flex-start;
}
.about-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 54px; align-items: start; }
.about-abstract h3, .about-side h3, .arch-text h3, .res-head h3 {
  font-family: var(--font-serif); font-weight: 600; font-size: 21px; color: var(--navy); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.about-abstract h3::before, .about-side h3::before, .arch-text h3::before {
  content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-chip);
}
.about-abstract p { font-size: 15.8px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 14px; }
.about-abstract p strong { color: var(--deep-blue); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--purple);
  background: var(--grad-soft); border: 1px solid rgba(112,107,214,.28);
  padding: 4px 12px; border-radius: var(--r-pill);
}
.tick-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.tick-list li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }
.tick-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px; border-radius: 50%; font-size: 10px;
  display: grid; place-items: center; color: #fff; background: var(--grad-chip);
}
.author-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-xs); transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.author-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.author-avatar {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-serif); font-weight: 600; font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.author-name { font-weight: 700; font-size: 14.5px; color: var(--navy); }
.author-role { font-size: 12.5px; color: var(--ink-muted); }
.author-link { font-family: var(--font-mono); font-size: 12px; color: var(--purple); font-weight: 600; }
.author-link:hover { text-decoration: underline; }

/* ═══════════ CAPABILITIES ═══════════ */
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cap-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-chip); opacity: 0; transition: opacity .25s var(--ease);
}
.cap-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--pale); }
.cap-card:hover::before { opacity: 1; }
.cap-top { display: flex; justify-content: space-between; align-items: center; }
.cap-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.cap-ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  font-size: 19px; color: var(--purple);
  background: var(--grad-soft); border: 1px solid rgba(112,107,214,.25);
}
.cap-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 20px; color: var(--navy); }
.cap-card p { font-size: 14px; line-height: 1.75; color: var(--ink-soft); flex: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--deep-blue);
  background: rgba(15,34,128,.05); border: 1px solid rgba(15,34,128,.12);
  padding: 3px 9px; border-radius: 7px;
}

/* ═══════════ PIPELINE / ARCHITECTURE ═══════════ */
.pipeline {
  background: var(--navy); border-radius: var(--r-lg); padding: 30px 30px 10px;
  border: 1px solid rgba(186,189,238,.2); box-shadow: var(--shadow-lg);
  background-image: radial-gradient(ellipse 60% 45% at 85% -5%, rgba(90,185,205,.12), transparent), linear-gradient(140deg, rgba(112,107,214,.14), transparent 45%);
  margin-bottom: 48px;
}
.phase { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 12px 0 20px; border-bottom: 1px dashed rgba(186,189,238,.18); }
.phase:last-child { border-bottom: none; }
.phase-head { display: flex; gap: 12px; align-items: flex-start; }
.phase-idx {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 1px;
  color: var(--navy); background: var(--grad-chip);
  padding: 3px 8px; border-radius: 6px;
}
.phase-name { font-weight: 600; font-size: 14px; color: #fff; letter-spacing: .2px; }
.phase-sub { font-size: 11px; color: rgba(248,248,254,.55); margin-top: 2px; }
.nodes { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.node {
  font-family: var(--font-mono); font-size: 11px; color: #D9DBF5;
  background: rgba(248,248,254,.06); border: 1px solid rgba(186,189,238,.22);
  padding: 6px 12px; border-radius: 8px; transition: all .18s var(--ease);
}
.node:hover { background: rgba(112,107,214,.35); border-color: var(--light-purple); transform: translateY(-2px); }
.node-warn { border-color: rgba(90,185,205,.5); color: #BFEBF5; }
.arch-cols { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.arch-text h3 { margin-bottom: 16px; }
.arch-text p { font-size: 15px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; }
.terminal {
  background: var(--navy); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(186,189,238,.2); box-shadow: var(--shadow-lg);
}
.terminal-topbar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: rgba(15,34,128,.55); border-bottom: 1px solid rgba(186,189,238,.15); }
.terminal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 13px; font-family: var(--font-mono); font-size: 12.5px; }
.t-prompt { color: var(--cyan); font-weight: 600; }
.t-cmd { color: #fff; }
.t-out { color: rgba(217,219,245,.72); padding-left: 4px; }
.terminal-topbar .fig-title { color: rgba(248,248,254,.5); }

/* ═══════════ WORKFLOWS ═══════════ */
.wf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wf-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 24px;
  display: flex; flex-direction: column; gap: 13px;
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.wf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.wf-head { display: flex; justify-content: space-between; align-items: center; }
.wf-cmd {
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  background: var(--grad-chip); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.wf-badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .8px; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(23,146,162,.3); background: rgba(23,146,162,.08);
  padding: 2px 9px; border-radius: var(--r-pill);
}
.wf-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.wf-ex {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.7;
  background: var(--navy); color: #C7CAEC; border-radius: 10px;
  padding: 13px 15px; overflow-x: auto; white-space: pre;
}

/* ═══════════ SIMULATOR ═══════════ */
.sim-shell {
  display: grid; grid-template-columns: 340px 1fr; gap: 22px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-md);
}
.sim-side { display: flex; flex-direction: column; gap: 16px; }
.sim-field { display: flex; flex-direction: column; gap: 7px; }
.sim-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-muted); }
.sim-field select {
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink);
  background: var(--panel); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 14px; outline: none; cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23706BD6' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.sim-field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,107,214,.15); }
.btn-block { width: 100%; justify-content: center; }
.btn-glyph { font-size: 11px; opacity: .9; }
.sim-note { font-size: 11.5px; color: var(--ink-faint); text-align: center; line-height: 1.6; }
.sim-main { min-width: 0; background: var(--navy); border-radius: var(--r-md); overflow: hidden; border: 1px solid rgba(186,189,238,.2); }
.sim-trace-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.4px;
  text-transform: uppercase; color: rgba(248,248,254,.6);
  background: rgba(15,34,128,.5); border-bottom: 1px solid rgba(186,189,238,.15);
}
.trace-live { color: var(--ink-faint); transition: color .3s; }
.trace-live.running { color: var(--cyan); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.trace-output {
  height: 420px; overflow-y: auto; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.trace-row {
  display: grid; grid-template-columns: 165px 1fr auto; gap: 14px; align-items: baseline;
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5;
  padding: 8px 10px; border-radius: 8px; border: 1px solid transparent;
  animation: slideIn .3s var(--ease);
}
@keyframes slideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.trace-row.new { background: rgba(112,107,214,.16); border-color: rgba(134,131,221,.4); }
.trace-node { color: var(--light-purple); font-weight: 600; }
.trace-msg { color: rgba(217,219,245,.82); min-width: 0; overflow-wrap: anywhere; }
.trace-st { color: var(--cyan); font-size: 10px; letter-spacing: 1px; white-space: nowrap; }
.trace-row.standby .trace-st { color: var(--ink-faint); }
.trace-output::-webkit-scrollbar { width: 8px; }
.trace-output::-webkit-scrollbar-thumb { background: rgba(186,189,238,.25); border-radius: 8px; }

.res-shell { margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.res-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 26px 0; }
.res-head h3 { margin-bottom: 0; font-size: 19px; }
.res-meta { font-size: 11px; color: var(--ink-faint); }
.table-wrap { overflow-x: auto; padding: 16px 18px 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.data-table thead th {
  text-align: left; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--purple); padding: 10px 14px;
  background: var(--panel);
}
.data-table thead th:first-child { border-radius: 8px 0 0 8px; }
.data-table thead th:last-child { border-radius: 0 8px 8px 0; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--ink-soft); vertical-align: top; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: var(--panel); }
.data-table .smiles-cell { font-family: var(--font-mono); font-size: 11px; color: var(--deep-blue); overflow-wrap: anywhere; max-width: 300px; }
.empty-row { text-align: center; color: var(--ink-faint) !important; padding: 26px !important; }
.pass-badge {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--teal);
  background: rgba(23,146,162,.1); border: 1px solid rgba(23,146,162,.3);
  padding: 3px 9px; border-radius: var(--r-pill); white-space: nowrap;
}
.rank-chip {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  font-weight: 700; font-size: 12px; color: #fff; background: var(--grad-chip);
}

/* ═══════════ DOCS ═══════════ */
.docs-shell {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.docs-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--panel);
}
.docs-tab {
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  background: transparent; border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 8px 16px; cursor: pointer; transition: all .18s var(--ease);
}
.docs-tab:hover { color: var(--purple); }
.docs-tab.active { color: #fff; background: linear-gradient(120deg, #8683DD, #706BD6); box-shadow: var(--shadow-purple); }
.docs-content { padding: 36px 44px; max-height: 900px; overflow-y: auto; }
.docs-pane { display: none; }
.docs-pane.active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.docs-pane h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.docs-pane h4 { font-size: 15px; font-weight: 700; color: var(--deep-blue); margin: 26px 0 10px; }
.docs-pane p { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 12px; }
.docs-pane a { color: var(--purple); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.docs-pane ol { padding-left: 22px; display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.docs-pane ol li { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); }
.docs-pane strong { color: var(--navy); }
.docs-pane pre {
  background: var(--navy); color: #C7CAEC; border-radius: 12px;
  padding: 18px 20px; overflow-x: auto; margin: 12px 0 16px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75;
  border: 1px solid rgba(186,189,238,.2);
}
.docs-pane pre code { font-family: inherit; color: inherit; background: none; }
.docs-pane .json-pre { background: #3E3786; }
.doc-inline { font-style: italic; color: var(--ink-muted) !important; }
.ep-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; color: var(--ink-soft); }
.ep {
  font-family: var(--font-mono); font-weight: 600; font-size: 12.5px; color: #fff;
  background: var(--grad-chip); padding: 4px 12px; border-radius: 8px; min-width: 120px; text-align: center;
}

/* ═══════════ CTA ═══════════ */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, #0B1338 0%, #3E3786 55%, #706BD6 140%);
  padding: 90px 0;
}
.cta-band::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(134,131,221,.4), transparent 65%);
  top: -240px; right: -120px; filter: blur(20px);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.kicker-light { color: var(--light-purple); }
.cta-band h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 3vw, 40px); color: #fff; margin: 12px 0 12px; line-height: 1.15; }
.cta-band h2 em { font-style: italic; background: linear-gradient(100deg, #BABDEE, #5AB9CD); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta-band p { color: rgba(248,248,254,.75); font-size: 15.5px; line-height: 1.75; max-width: 600px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: #161226; color: rgba(248,248,254,.72); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.75; color: rgba(248,248,254,.55); margin-top: 14px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--light-purple); margin-bottom: 6px; }
.footer-col a { font-size: 13.5px; color: rgba(248,248,254,.68); transition: color .15s, transform .15s var(--ease); width: fit-content; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(186,189,238,.14); padding-top: 22px;
  font-size: 12.5px; color: rgba(248,248,254,.4);
}

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 760px; }
  .caps-grid, .wf-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-left: none; border-top: 1px solid rgba(186,189,238,.12); }
  .stat:nth-child(-n+3) { border-top: none; }
  .about-grid, .arch-cols { grid-template-columns: 1fr; gap: 36px; }
  .sim-shell { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-btns { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 12px 20px 18px; box-shadow: var(--shadow-md); gap: 2px; }
  .nav-burger { display: block; }
  .section { padding: 72px 0; }
  .phase { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .caps-grid, .wf-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .docs-content { padding: 26px 20px; }
  .brand-chip { display: none; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .install-cmd { font-size: 11px; }
}

/* ════════════════════════════════════════════════════════════════════
   PROTACXtend v2 — scientific-coherence overhaul additions
   ════════════════════════════════════════════════════════════════════ */

/* logo brand mark — clean lockup (icon + wordmark as one unit) */
.brand-logo { display: inline-flex; align-items: center; flex: none; }
.brand-logo img { display: block; width: auto; height: 30px; }
.footer-brand .brand-logo img { height: 36px; padding: 5px 7px; border-radius: 10px;
  background: #fff; box-shadow: 0 10px 26px -12px rgba(0,0,0,.55); }

/* hero visual column */
.hero-side { min-width: 0; display: flex; flex-direction: column; }
.hero-note { margin: 14px auto 0; max-width: 480px; text-align: center;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-muted); }
.hero-note strong { color: var(--deep-blue); }

/* hero KNOW·REASON·DESIGN·DISCOVER capability blocks */
.loop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 4px; }
.loop-card { position: relative; display: flex; align-items: flex-start; gap: 11px;
  padding: 12px 14px 11px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow-xs);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.loop-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.loop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.loop-card:focus-visible { outline: 2px solid rgba(112,107,214,.6); outline-offset: 2px; }
.loop-know::before    { background: linear-gradient(90deg, #1792A2, #5AB9CD); }
.loop-reason::before  { background: linear-gradient(90deg, #3E3786, #706BD6); }
.loop-design::before  { background: linear-gradient(90deg, #706BD6, #8683DD); }
.loop-discover::before { background: linear-gradient(90deg, #8683DD, #3E3786); }
.loop-idx { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--ink-faint);
  letter-spacing: .4px; padding-top: 3px; }
.loop-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.loop-title { font-family: var(--font-mono); font-weight: 700; letter-spacing: 1.8px; font-size: 11.5px; }
.loop-know .loop-title { color: var(--teal); }
.loop-reason .loop-title { color: var(--deep-blue); }
.loop-design .loop-title { color: var(--purple); }
.loop-discover .loop-title { color: transparent;
  background: linear-gradient(90deg, #8683DD, #3E3786 75%, #1792A2);
  -webkit-background-clip: text; background-clip: text; }
.loop-desc { font-size: 10.5px; line-height: 1.5; color: var(--ink-muted); }

/* hero quickstart bar (install command) */
.hero-quickstart { margin-top: 28px; }
.quickstart-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 11px 16px; box-shadow: var(--shadow-sm); }
.quickstart-label { display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--purple); }
.quickstart-bar .install-tabs { display: flex; gap: 4px; flex: none; }
.quickstart-bar .install-cmd { flex: 1 1 300px; min-width: 0; overflow-x: auto; white-space: nowrap; }
.quickstart-bar .copy-btn { flex: none; }
.quickstart-bar .install-note { flex: none; margin-left: auto; font-size: 11px; color: var(--ink-muted); }
@media (max-width: 720px) { .quickstart-bar .install-note { margin-left: 0; width: 100%; } }

/* evidence + status badges */
.badge { display: inline-flex; align-items: center; font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 600; letter-spacing: .8px; padding: 3px 9px;
  border-radius: var(--r-pill); white-space: nowrap; border: 1px solid transparent; }
.eb-meas   { color:#0F766E; background:rgba(20,184,166,.12); border-color:rgba(20,184,166,.35); }
.eb-retr   { color:#155E9E; background:rgba(90,185,205,.16); border-color:rgba(90,185,205,.5); }
.eb-calc   { color:#5B4FC4; background:rgba(134,131,221,.16); border-color:rgba(134,131,221,.5); }
.eb-learn  { color:#7C3AED; background:rgba(124,58,237,.10); border-color:rgba(124,58,237,.32); }
.eb-struct { color:#B45309; background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.4); }
.eb-heur   { color:#9A3412; background:rgba(249,115,22,.12); border-color:rgba(249,115,22,.4); }
.eb-illu   { color:#0B1338; background:#E2E7F4; border-color:#C4CCE8; }
.eb-na     { color:#6B7280; background:#F3F4F6; border-color:#D1D5DB; }
.st { display: inline-flex; align-items: center; font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700; letter-spacing: .8px; padding: 3px 10px;
  border-radius: var(--r-pill); white-space: nowrap; border: 1px solid transparent; }
.st.ok  { color:#0F766E; background:rgba(20,184,166,.12); border-color:rgba(20,184,166,.4); }
.st.warn{ color:#B45309; background:rgba(245,158,11,.13); border-color:rgba(245,158,11,.45); }
.st.ev  { color:#7C3AED; background:rgba(124,58,237,.10); border-color:rgba(124,58,237,.4); }
.st.pl  { color:#6B7280; background:#F3F4F6; border-color:#D1D5DB; }
.src-code { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); }

/* About v2 */
.about-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 50px; align-items: start; }
.sys-figure { margin: 22px 0 4px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.sys-figure img { width: 100%; height: auto; }
.sys-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--border);
  font-size: 11.5px; line-height: 1.55; color: var(--ink-muted); }
.sys-figure .cap-text { flex: 1 1 220px; min-width: 200px; }
.release-card { margin-top: 16px; background: var(--navy); border-radius: var(--r-md);
  padding: 16px 18px; color: rgba(248,248,254,.85); font-size: 12.5px;
  box-shadow: var(--shadow-md); }
.release-card .rel-line { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.release-card .rel-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(248,248,254,.5); }
.release-card .ok-dot { color: #2DD4BF; }
.release-card .rel-note { margin-top: 8px; font-size: 11px; color: rgba(248,248,254,.55);
  border-top: 1px dashed rgba(186,189,238,.25); padding-top: 8px; }

/* K→R→D→D grid */
.krdd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.krdd { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.krdd:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.krdd header { padding: 20px 20px 10px; border-top: 4px solid; }
.krdd.know header     { border-color: var(--teal); }
.krdd.reason header   { border-color: var(--deep-blue); }
.krdd.design header   { border-color: var(--purple); }
.krdd.discover header { border-color: var(--grad-chip); }
.krdd-idx { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--ink-faint); }
.krdd h3 { font-family: var(--font-serif); font-weight: 600; font-size: 26px; letter-spacing: 3px; margin: 2px 0 2px; }
.krdd.know h3 { color: var(--teal); } .krdd.reason h3 { color: var(--deep-blue); }
.krdd.design h3 { color: var(--purple); }
.krdd.discover h3 { background: var(--grad-chip); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.krdd header p { font-size: 11px; color: var(--ink-muted); line-height: 1.45; }
.krdd ul { list-style: none; padding: 4px 20px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.krdd ul li { position: relative; padding-left: 15px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }
.krdd ul li::before { content: '·'; position: absolute; left: 2px; color: var(--pale); font-weight: 700; }
.krdd footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 20px; background: var(--panel); border-top: 1px solid var(--border); }

/* mechanistic */
.mech-chain { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px;
  background: var(--navy); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 34px;
  border: 1px solid rgba(186,189,238,.2); box-shadow: var(--shadow-md); }
.mech-step { font-family: var(--font-mono); font-size: 11px; color: #D9DBF5;
  background: rgba(248,248,254,.06); border: 1px solid rgba(186,189,238,.25);
  padding: 7px 12px; border-radius: 9px; }
.mech-step.mech-verdict { background: var(--grad-chip); color: #fff; border: none; font-weight: 600; }
.mech-a { color: var(--light-purple); font-size: 13px; }
.mech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mech-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.mech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mech-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.mech-status { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .8px;
  padding: 3px 10px; border-radius: var(--r-pill); }
.mech-status.ok { color: #0F766E; background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.4); }
.mech-status.warn { color: #B45309; background: rgba(245,158,11,.13); border: 1px solid rgba(245,158,11,.45); }
.mech-card h3 { font-family: var(--font-serif); font-weight: 600; font-size: 21px; color: var(--navy); }
.mech-card p { font-size: 13.8px; line-height: 1.75; color: var(--ink-soft); }
.mech-card p.limit { font-size: 12.5px; background: rgba(245,158,11,.06); border: 1px dashed rgba(245,158,11,.35);
  border-radius: 10px; padding: 10px 13px; }
.mech-card footer { margin-top: auto; }

/* model panel tables */
.model-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow-x: auto; box-shadow: var(--shadow-md); }
.model-table { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 860px; }
.model-table thead th { text-align: left; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--purple);
  padding: 14px 16px; background: var(--panel); }
.model-table td { padding: 14px 16px; border-bottom: 1px solid var(--border);
  color: var(--ink-soft); line-height: 1.55; vertical-align: top; }
.model-table tbody tr:hover { background: var(--panel); }
.model-table td strong { color: var(--navy); }
.model-table .row-eval td { background: rgba(124,58,237,.04); }
.model-table.matrix { min-width: 1040px; }
.model-table.matrix td { font-size: 12.3px; }
.table-note { margin-top: 12px; font-size: 12px; color: var(--ink-muted); line-height: 1.7; }

/* count band */
.count-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 30px; margin-bottom: 34px; box-shadow: var(--shadow-md); }
.count-item { display: flex; align-items: center; gap: 14px; max-width: 300px; }
.count-big { font-family: var(--font-serif); font-weight: 600; font-size: 44px; line-height: 1;
  color: var(--deep-blue); }
.count-big.grad { background: var(--grad-chip); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.count-item span:last-child { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.5; }
.count-item small { font-weight: 400; color: var(--ink-muted); font-size: 11px; }
.count-plus, .count-eq { font-family: var(--font-serif); font-size: 26px; color: var(--pale); }

/* pipeline ext styling */
.phase-ext { border-top: 1px dashed rgba(186,189,238,.3); }
.phase-ext .phase-idx { background: linear-gradient(90deg, #5AB9CD, #1792A2); }
.node-ext { border-color: rgba(90,185,205,.5); color: #BFEBF5; }
.node-ext:hover { background: rgba(23,146,162,.4); border-color: var(--cyan); }

/* demo banner */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  border: 1px dashed rgba(180,83,9,.5); background: rgba(245,158,11,.07);
  color: #7C4A03; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 22px;
  font-size: 12.5px; line-height: 1.6; }
.demo-tag { font-family: var(--font-mono); font-weight: 700; font-size: 10.5px; letter-spacing: 1px;
  background: #B45309; color: #fff; padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.trace-st.illu { color: #FBBF24; }
.pass-badge.illu { color:#9A3412; background:rgba(249,115,22,.1); border-color:rgba(249,115,22,.4); }

/* legend / evidence key */
.legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.evidence-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px; }
.evidence-key h4 { width: 100%; font-family: var(--font-serif); font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.doc-ul { padding-left: 20px; display: flex; flex-direction: column; gap: 7px; margin: 8px 0 14px; }
.doc-ul li { font-size: 13.5px; line-height: 1.7; color: var(--ink-soft); }
.doc-ul li strong { color: var(--navy); }

/* navbar tighter for long link */
@media (max-width: 1240px) { .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px;
    left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px; box-shadow: var(--shadow-md); gap: 2px; }
  .nav-burger { display: block; } }

/* responsive v2 */
@media (max-width: 1080px) {
  .hero-copy { max-width: 860px; }
  .hero-side { align-items: center; }
  .hero-art { width: 100%; max-width: 680px; margin-inline: auto; }
  .hero-note { margin-inline: auto; }
  .krdd-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 34px; }
  .count-band { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .krdd-grid, .mech-grid { grid-template-columns: 1fr; }
  .count-item { max-width: none; }
  .loop-grid { gap: 8px; }
  .loop-card { padding: 10px 11px 9px; gap: 8px; }
}

/* ════════════════════════════════════════════════════════════════════
   PROTACXtend hero v3 — polished above-the-fold (navbar lockup + hero)
   ════════════════════════════════════════════════════════════════════ */
.nav-brand { flex: none; }
.brand-word { white-space: nowrap; }
.brand-chip { margin-left: 8px; }

.hero { padding: 70px 0 34px; }
.hero-title { max-width: 620px; font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12; letter-spacing: -.4px; margin: 18px 0 16px; }
.hero-lede { max-width: 620px; font-size: 16px; line-height: 1.68; }
.hero-ctas { margin: 26px 0 0; }
.hero-stats { margin-top: 44px; }
.loop-desc { min-height: 31px; }
.fig-caption { font-size: 11.5px; }
.fig-caption .cap-text { flex: 1 1 200px; min-width: 160px; }

.fig-topbar > * { flex: none; min-width: 0; }
.fig-topbar .fig-title { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; }
.fig-caption > * { min-width: 0; }
/* replaced-element sizing safety for the hero figure */
.hero-copy, .hero-side, .hero-figure, .fig-art { min-width: 0; }
.fig-art svg { display: block; width: 100%; height: auto; max-width: 100%; }
@media (max-width: 1080px) {
  .hero-inner { gap: 46px; }
}
@media (max-width: 640px) {
  .hero { padding: 50px 0 28px; }
  .hero-title { margin-top: 16px; }
  .brand-logo img { height: 24px; }
  .brand-word { font-size: 16.5px; }
  .btn-github-nav { font-size: 0; gap: 0; padding: 8px 9px; }
  .nav-inner { gap: 14px; }
  .quickstart-bar { padding: 10px 12px; }
  .fig-title { font-size: 10px; }
  .hero-note { font-size: 11.5px; }
}

/* mobile: let the long illustrative-demo chip wrap on its own line instead of overflowing */
@media (max-width: 640px) {
  .demo-tag { width: 100%; white-space: normal; text-align: center; letter-spacing: .5px; }
}

/* clip horizontal overflow at the document root (body already hides; keep tiny screens from panning) */
html { overflow-x: hidden; }

/* loop-card readability polish */
.loop-card { padding: 13px 15px 12px; gap: 10px; }
.loop-title { font-size: 12px; letter-spacing: 1.6px; }
.loop-desc { font-size: 11px; line-height: 1.5; min-height: 33px; }
@media (max-width: 720px) {
  .loop-card { padding: 11px 12px 10px; }
}

/* ════════════════════════════════════════════════════════════════════
   Impeccable-style quality pass — hero/header only
   AA contrast for functional text, ≥11px functional text, solid
   accents instead of background-clip gradient text on the landing UI.
   (Legacy table/badge tokens elsewhere on the page are out of scope.)
   ════════════════════════════════════════════════════════════════════ */
.brand-accent { color: #5B4FC4; background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; }
.footer .brand-accent { color: #BABDEE; }
.hero-title em { color: #3E3786; background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; }
.loop-discover .loop-title { color: #3E3786; background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; }
.kicker { color: #5B4FC4; }
.loop-design .loop-title { color: #5B4FC4; }
.brand-chip { font-size: 11px; color: #5B4FC4;
  border-color: rgba(91,79,196,.35); background: rgba(91,79,196,.08); }
.btn-primary, .btn-github-nav { background: linear-gradient(120deg, #625CC6 0%, #4E47B2 55%, #3E3786 130%); }
.btn-primary { box-shadow: 0 18px 40px -18px rgba(15,34,128,.38); }
.btn-github-nav { box-shadow: 0 14px 30px -16px rgba(15,34,128,.40); }
.loop-idx { font-size: 11px; color: #626B94; }
.loop-desc { font-size: 12px; line-height: 1.5; min-height: 37px; }
.loop-card { padding: 14px 16px 13px; gap: 10px; border-radius: 16px; }
.quickstart-label { font-size: 11px; }
.quickstart-bar .install-note { font-size: 11.5px; }
.fig-title { font-size: 11.5px; }
.fig-caption { font-size: 12px; }
.hero-note { font-size: 13px; }
@media (max-width: 720px) {
  .loop-card { padding: 12px 13px 11px; }
}
.fig-caption .badge { font-size: 11px; padding: 4px 11px; }
.fig-caption-tag { background: linear-gradient(90deg, #625CC6, #4E47B2); }

/* hero visual — authored PROTACXtend hero image */
.hero-art { display: block; margin: 0; }
.hero-art img, .hero-art source { display: block; }
.hero-art img { width: 100%; height: auto; background: #fff;
  border-radius: 16px; box-shadow: 0 24px 48px -28px rgba(24,25,38,.28); }

/* Impeccable craft-floor pass v2.5 — states, focus, spacing cadence */
.btn:focus-visible, .nav-link:focus-visible, .nav-brand:focus-visible,
.copy-btn:focus-visible, .tab-pill:focus-visible, .quickstart-bar a:focus-visible {
  outline: 2px solid #625CC6; outline-offset: 2px; }
.hero-title { margin-top: 22px; margin-bottom: 16px; }
.loop-grid { margin-top: 28px; }
.hero-lede { max-width: 66ch; }
@media (max-width: 640px) {
  .hero-title { margin-top: 18px; }
}

/* ════════════════════════════════════════════════════════════════════
   Hero v2.6 — bigger, decluttered, centered
   Copy on top (centered), hero artwork below at full width so the
   image's side details stay legible; capability loop flattened.
   ════════════════════════════════════════════════════════════════════ */
.hero { padding: 62px 0 30px; }
.hero-inner { position: relative; display: block; }
.hero-copy { max-width: 960px; margin-inline: auto; text-align: center; }
.hero-title { max-width: 920px; margin-inline: auto; font-size: clamp(33px, 3.8vw, 56px); }
.hero-lede { max-width: 70ch; margin-inline: auto; }
.loop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px;
  max-width: 920px; margin: 30px auto 6px; text-align: left; }
.loop-card { padding: 4px 0 2px; border: none; background: transparent;
  box-shadow: none; border-radius: 0; }
.loop-card::before { display: none; }
.loop-card:hover { transform: none; box-shadow: none; }
.loop-idx { color: var(--pale); padding-top: 1px; }
.hero-ctas { justify-content: center; }
.hero-art { margin: 34px auto 0; width: 100%; max-width: 1040px; }
.hero-note { max-width: 660px; margin: 20px auto 0; }
@media (max-width: 1080px) {
  .hero-inner { display: block; }
  .loop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
  .hero-art { max-width: min(100%, 920px); }
}
@media (max-width: 640px) {
  .hero { padding: 42px 0 24px; }
  .loop-grid { gap: 14px 12px; }
  .hero-art { margin-top: 24px; }
  .hero-note { margin-top: 16px; }
}

/* v2.6b — capability strip sits beneath the hero artwork */
.loop-grid { margin: 34px auto 0; }
.hero-note { margin-top: 28px; }
.hero-art { margin-top: 36px; }

/* ════════════════════════════════════════════════════════════════════
   End-of-page tone pass — single violet family, no navy/cyan ending
   ════════════════════════════════════════════════════════════════════ */
.cta-band {
  background:
    radial-gradient(130% 220% at 12% 0%, rgba(134,131,221,.28), transparent 55%),
    radial-gradient(120% 180% at 88% 100%, rgba(112,107,214,.18), transparent 60%),
    linear-gradient(125deg, #3D3690 0%, #2B2569 52%, #1B1740 120%);
}
.cta-band::before { display: none; }
.cta-band h2 em {
  color: #CFCBF8; background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor;
}
.cta-band .kicker-light { color: #D9D6FA; }
.footer { background: #161226; }
.footer-col h5 { color: #B9B4EF; }

/* single-tone pass: remaining dark-blue surfaces -> deep violet family */
.hero-stats {
  background:
    linear-gradient(120deg, rgba(134,131,221,.16), transparent 42%),
    radial-gradient(ellipse 40% 90% at 88% 0%, rgba(112,107,214,.20), transparent),
    linear-gradient(120deg, #241F55 0%, #161229 100%);
  border-color: rgba(186,189,238,.22);
}
.hero-stats::before { background: linear-gradient(90deg, #8683DD, #625CC6); }
.stat-num { color: #DDDAFB; background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: currentColor; }
.stat-lab { color: rgba(248,248,254,.72); }
.mech-chain { background: linear-gradient(120deg, #241F55 0%, #161229 100%);
  border-color: rgba(186,189,238,.20); }
.release-card { background: linear-gradient(140deg, #282262 0%, #1B1740 100%);
  border-color: rgba(186,189,238,.22); }

/* ════════════════════════════════════════════════════════════════════
   v2.9 — header tidy-up + light footer with a bigger brand lockup
   ════════════════════════════════════════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, #F8F8FD 0%, #EFEFF9 100%);
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}
.footer-brand p { color: var(--ink-muted); }
.footer-col h5 { color: #5B4FC4; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: #3E3786; transform: translateX(3px); }
.footer .brand-accent { color: #5B4FC4; }
.footer-brand .brand-logo img {
  height: 46px; padding: 7px 9px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 12px 26px -16px rgba(24,25,38,.35);
}
.footer-brand .nav-brand { gap: 13px; }
.footer-brand .brand-word { font-size: 22px; letter-spacing: .2px; }
.footer-base { border-top: 1px solid var(--border); color: var(--ink-muted); }
.footer-base a { color: var(--purple); }
.footer-base a:hover { color: #3E3786; text-decoration: underline; }

/* v2.10 — footer: single solid dark (overrides v2.9 light footer) */
.footer {
  background: #14131F;
  border-top: none;
  color: rgba(248, 248, 254, 0.8);
}
.footer .brand-word { color: #F4F3FC; }
.footer .brand-accent { color: #B9B3EF; }
.footer-brand p { color: rgba(248, 248, 254, 0.55); }
.footer-col h5 { color: #A9A4EA; }
.footer-col a { color: rgba(248, 248, 254, 0.72); }
.footer-col a:hover { color: #FFFFFF; transform: translateX(3px); }
.footer-brand .brand-logo img {
  height: 46px; padding: 7px 9px; border-radius: 12px;
  background: #fff; border: none;
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.5);
}
.footer-base { border-top: 1px solid rgba(186, 189, 238, 0.14); color: rgba(248, 248, 254, 0.42); }
.footer-base a { color: #A9A4EA; }
.footer-base a:hover { color: #FFFFFF; text-decoration: underline; }
