/* ═══════ SHARED.CSS — ai-code.3bee.com design system ═══════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: hidden; }

:root {
  --bg: #041015;
  --s1: #09202B;
  --s2: #0D3041;
  --s3: #124057;
  --b1: rgba(255,255,255,0.08);
  --b2: rgba(255,255,255,0.12);
  --t1: #CFDBE5;
  --t2: #97B4CA;
  --t3: #4688AF;
  --mint: #00F4B3;
  --yellow: #F5D000;
  --magenta: #FF66F2;
  --cyan: #01D8F3;
  --mint-10: rgba(0,244,179,0.1);
  --mint-20: rgba(0,244,179,0.2);
  --card-bg: rgba(255,255,255,0.05);
  --card-bg-h: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.08);
  --grad: linear-gradient(90deg, #F6D001, #F76BF0, #01D8F3, #01F4B5);
  --grad-text: linear-gradient(135deg, #FF66F2, #F5D000, #00F4B3);
  --display: 'Sora', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-w: 1140px;
  --r: 16px;
}

body { font-family: var(--body); background: var(--bg); color: var(--t1); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; font-size: 15px; animation: page-in .6s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body::before { content: ''; position: fixed; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: 0.015; pointer-events: none; z-index: 10000; mix-blend-mode: overlay; }

/* Utils */
.container { max-width: var(--max-w); margin: 0 auto; }
.mint { color: var(--mint); }
.yellow { color: var(--yellow); }
.magenta { color: var(--magenta); }
.dim { color: var(--t2); }
.gr { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Reveal */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .06s } .d2 { transition-delay: .12s } .d3 { transition-delay: .18s }
.d4 { transition-delay: .24s } .d5 { transition-delay: .3s }

/* Scroll progress */
.scroll-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--grad); z-index: 1002; width: 0; }

/* Nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(4,16,21,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-grad { height: 2px; background: var(--grad); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 1.5rem; }
.nav-logo { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--t1); text-decoration: none; display: flex; gap: .4rem; }
.nav-logo .b { color: var(--yellow); }
.nav-logo .x { color: var(--t3); font-weight: 400; }
.nav-logo .c { color: var(--mint); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--t2); text-decoration: none; font-size: .8rem; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--mint); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--grad); border-radius: 1px; }
.nav-links a.cs { color: var(--t3); }
.nav-links a.cs:hover { color: var(--t2); }
.nav-tog { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-tog span { display: block; width: 18px; height: 1.5px; background: var(--t2); transition: .3s; }
.nav-tog.open span:nth-child(1) { transform: rotate(45deg) translate(3px,3px); }
.nav-tog.open span:nth-child(2) { opacity: 0; }
.nav-tog.open span:nth-child(3) { transform: rotate(-45deg) translate(3px,-3px); }

/* Card */
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--r); transition: border-color .3s, background .3s, transform .3s, box-shadow .3s; }
.card:hover { border-color: var(--b2); background: var(--card-bg-h); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* Terminal */
.term { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r); overflow: hidden; max-width: 100%; transition: border-color .3s, box-shadow .3s, transform .3s; }
.term:hover { border-color: var(--b2); box-shadow: 0 4px 30px rgba(0,244,179,0.04); transform: translateY(-2px); }
.term-bar { display: flex; align-items: center; gap: 5px; padding: 10px 14px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--b1); }
.dt { width: 9px; height: 9px; border-radius: 50%; }
.dt.r { background: #ff5f57; } .dt.y { background: #febc2e; } .dt.g { background: #28c840; }
.term-t { margin-left: 6px; font-family: var(--mono); font-size: .68rem; color: var(--t3); }
.term pre { font-family: var(--mono); font-size: .75rem; line-height: 1.8; color: var(--t2); padding: 1rem 1.25rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.term .cm { color: var(--t3); } .term .n { color: var(--mint); } .term .a { color: var(--yellow); }
.term .m { color: var(--magenta); } .term .out { color: var(--t1); font-weight: 500; }
.cur { display: inline-block; width: 7px; height: 14px; background: var(--mint); animation: blink 1.2s step-end infinite; vertical-align: text-bottom; }
@keyframes blink { 50% { opacity: 0; } }

/* Section */
section { padding: clamp(3.5rem, 8vw, 6rem) 1.5rem; }
section.alt { background: var(--s1); }
.label { font-family: var(--mono); font-size: .68rem; color: var(--mint); text-transform: uppercase; letter-spacing: .14em; margin-bottom: .6rem; }
section h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .8rem; }
.desc { font-size: .95rem; color: var(--t2); max-width: 580px; margin-bottom: 2.5rem; line-height: 1.65; }

/* Page header (compact hero for sub-pages) */
.page-hdr { padding: 7rem 1.5rem 3rem; text-align: center; position: relative; overflow: hidden; }
.page-hdr h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: .8rem; }
.page-hdr .desc { margin: 0 auto; max-width: 600px; }
.breadcrumb { font-size: .72rem; color: var(--t3); margin-bottom: 1rem; font-family: var(--mono); }
.breadcrumb a { color: var(--t3); text-decoration: none; }
.breadcrumb a:hover { color: var(--mint); }

/* Hero (full viewport — home page) */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 5rem 1.5rem 3rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--bg); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; max-width: 80vw; max-height: 80vw; }
.g1 { top: -15%; right: -5%; width: 500px; height: 500px; background: var(--mint-10); animation: gd 12s ease-in-out infinite; }
.g2 { bottom: -20%; left: -10%; width: 400px; height: 400px; background: rgba(245,208,0,0.08); animation: gd 15s ease-in-out infinite reverse; }
.g3 { top: 30%; left: 50%; width: 300px; height: 300px; background: rgba(255,102,242,0.05); animation: gd 18s ease-in-out infinite 3s; }
@keyframes gd { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(25px,-35px) scale(1.06)} 66%{transform:translate(-15px,20px) scale(.95)} }
.hero-c { position: relative; z-index: 1; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem 1rem; border: 1px solid var(--b1); border-radius: 100px; font-size: .72rem; color: var(--t2); font-weight: 500; margin-bottom: 2rem; background: rgba(9,32,43,0.6); }
.badge-dot { width: 5px; height: 5px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 8px var(--mint); animation: pd 2s ease-in-out infinite; }
@keyframes pd { 50% { box-shadow: 0 0 0 5px transparent; } }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.5rem); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 1.2rem; }
.hero-sub { font-size: clamp(.9rem, 1.8vw, 1.1rem); color: var(--t2); line-height: 1.7; margin-bottom: 3rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; justify-content: center; gap: clamp(2rem, 4vw, 4rem); }
.hero-stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1; display: block; }
.hero-stat:nth-child(1) .num { color: var(--mint); }
.hero-stat:nth-child(2) .num { color: var(--yellow); }
.hero-stat:nth-child(3) .num { color: var(--magenta); }
.hero-stat .lbl { font-size: .7rem; color: var(--t3); text-transform: uppercase; letter-spacing: .12em; margin-top: .3rem; display: block; }

/* Buttons */
.btn { display: inline-block; padding: .65rem 1.5rem; border-radius: 10px; font-family: var(--display); font-weight: 600; font-size: .85rem; text-decoration: none; transition: .3s; cursor: pointer; border: none; }
.btn-mint { background: var(--mint); color: #041015; }
.btn-mint:hover { box-shadow: 0 0 20px var(--mint-20); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--mint); border: 1px solid var(--mint); }
.btn-outline:hover { background: var(--mint-10); }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Grids */
.ws-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; align-items: start; margin-bottom: 2rem; }
.ws-info { display: flex; flex-direction: column; gap: 1rem; }
.ws-info .card { padding: 1.2rem; }
.ws-info h3 { font-family: var(--display); font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.ws-info p { color: var(--t2); font-size: .82rem; line-height: 1.55; }
.ws-info code { font-family: var(--mono); font-size: .72rem; color: var(--mint); background: var(--mint-10); padding: .1rem .35rem; border-radius: 4px; }
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.wf-col h3 { font-family: var(--display); font-weight: 600; font-size: 1rem; margin-bottom: .4rem; }
.wf-col .pd { color: var(--t2); font-size: .85rem; margin-bottom: 1rem; line-height: 1.55; }

/* Tiers */
.tiers { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; }
.tier { padding: 1.3rem 2rem; border: 1px solid var(--b1); border-radius: var(--r); text-align: center; transition: .4s; }
.t1 { width: min(440px,90%); border-color: var(--mint-20); background: linear-gradient(135deg, var(--mint-10), transparent 70%); }
.t1:hover { box-shadow: 0 0 40px var(--mint-10); }
.t2 { width: min(600px,95%); border-color: rgba(245,208,0,0.15); background: linear-gradient(135deg, rgba(245,208,0,0.05), transparent 70%); }
.t3 { width: min(740px,100%); background: var(--card-bg); }
.tier .cnt { font-family: var(--display); font-weight: 800; font-size: 1.8rem; display: block; }
.t1 .cnt { color: var(--mint); } .t2 .cnt { color: var(--yellow); } .t3 .cnt { color: var(--t3); }
.tier h3 { font-family: var(--display); font-weight: 600; font-size: 1rem; margin: .2rem 0; }
.tier p { color: var(--t2); font-size: .82rem; }
.tl { width: 1px; height: 24px; background: var(--b1); flex-shrink: 0; }

/* Agent table */
.ag-table { border-radius: var(--r); overflow: hidden; }
.ag-table h3 { font-family: var(--display); font-weight: 600; font-size: 1rem; padding: 1.25rem 1.5rem .75rem; }
.ag-row { display: flex; align-items: baseline; gap: 1rem; padding: .7rem 1.5rem; border-bottom: 1px solid var(--b1); }
.ag-row:last-child { border-bottom: none; }
.ag-n { font-family: var(--mono); font-size: .78rem; color: var(--mint); white-space: nowrap; min-width: 220px; }
.ag-d { color: var(--t2); font-size: .82rem; flex: 1; }
.ag-m { font-family: var(--mono); font-size: .65rem; color: var(--t3); background: rgba(255,255,255,0.04); padding: .15rem .4rem; border-radius: 4px; border: 1px solid var(--b1); white-space: nowrap; }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feat { padding: 1.2rem; }
.feat-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: .8rem; font-weight: 700; font-family: var(--mono); }
.feat-icon.mi { background: var(--mint-10); color: var(--mint); border: 1px solid var(--mint-20); }
.feat-icon.yi { background: rgba(245,208,0,0.1); color: var(--yellow); border: 1px solid rgba(245,208,0,0.2); }
.feat-icon.pi { background: rgba(255,102,242,0.1); color: var(--magenta); border: 1px solid rgba(255,102,242,0.2); }
.feat-icon.ci { background: rgba(1,216,243,0.1); color: var(--cyan); border: 1px solid rgba(1,216,243,0.2); }
.feat h4 { font-family: var(--display); font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.feat p { color: var(--t2); font-size: .78rem; line-height: 1.5; }

/* Schedule table */
.sched-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sched { width: 100%; border-collapse: collapse; font-size: .78rem; min-width: 400px; }
.sched th { text-align: left; padding: .6rem 1rem; color: var(--t3); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid var(--b1); }
.sched td { padding: .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--t2); }
.sched td:first-child { color: var(--mint); font-family: var(--mono); white-space: nowrap; }
.sched tr:last-child td { border-bottom: none; }

/* MCP */
.mcp-core { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.2rem; background: var(--s2); border: 1px solid var(--mint-20); border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: .9rem; box-shadow: 0 0 25px var(--mint-10); }
.mcp-core .ic { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 8px var(--mint); }
.mcp-vl { width: 1px; height: 32px; background: linear-gradient(to bottom, var(--mint-20), var(--b1)); margin: 0 auto; }
.mcp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.mcp-card { padding: 1.25rem; }
.mcp-card.ft { border-color: var(--mint-20); background: linear-gradient(180deg, var(--mint-10) 0%, transparent 40%); }
.mcp-badge { display: inline-block; padding: .15rem .5rem; border-radius: 4px; font-family: var(--mono); font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .8rem; }
.mcp-badge.stdio { background: rgba(245,208,0,0.1); color: var(--yellow); border: 1px solid rgba(245,208,0,0.15); }
.mcp-badge.sse { background: var(--mint-10); color: var(--mint); border: 1px solid var(--mint-20); }
.mcp-card h3 { font-family: var(--display); font-weight: 600; font-size: .95rem; margin-bottom: .8rem; }
.mcp-card ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.mcp-card li { font-size: .78rem; color: var(--t2); padding-left: 1rem; position: relative; }
.mcp-card li::before { content: '\203A'; position: absolute; left: 0; color: var(--t3); }

/* Security */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sec-item { display: flex; gap: .8rem; padding: 1.1rem; }
.sec-chk { color: var(--mint); font-size: 1rem; flex-shrink: 0; }
.sec-item h4 { font-family: var(--display); font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
.sec-item p { font-size: .75rem; color: var(--t2); line-height: 1.4; }

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stack-card { padding: 1.25rem; }
.stack-card h3 { font-family: var(--display); font-weight: 600; font-size: .85rem; margin-bottom: .8rem; }
.stack-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.stack-tags span { padding: .2rem .55rem; background: rgba(255,255,255,0.04); border: 1px solid var(--b1); border-radius: 6px; font-size: .72rem; color: var(--t2); font-family: var(--mono); transition: .2s; }
.stack-tags span:hover { border-color: var(--mint-20); color: var(--t1); }

/* Footer */
footer { padding: 2.5rem 1.5rem; border-top: 1px solid var(--b1); }
.foot-inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.foot-logo { font-family: var(--display); font-weight: 700; font-size: .9rem; }
.foot-tag { color: var(--t3); font-size: .75rem; margin-top: .2rem; }
.foot-r { text-align: right; }
.foot-built { font-family: var(--mono); font-size: .68rem; color: var(--t3); }
.foot-link { display: block; color: var(--t2); font-size: .75rem; text-decoration: none; margin-top: .2rem; transition: color .2s; }
.foot-link:hover { color: var(--mint); }

/* Sidebar TOC */
.toc { position: fixed; left: calc((100vw - var(--max-w)) / 2 - 170px); top: 90px; width: 150px; z-index: 50; }
.toc-progress { position: absolute; left: 0; top: 0; width: 2px; background: var(--grad); height: 0%; transition: height .15s linear; border-radius: 1px; }
.toc a { display: block; font-size: .68rem; color: var(--t3); text-decoration: none; padding: .3rem 0 .3rem .75rem; border-left: 1px solid var(--b1); transition: color .2s, border-color .2s, padding-left .2s; line-height: 1.4; }
.toc a:hover { color: var(--t2); padding-left: 1rem; }
.toc a.active { color: var(--mint); border-left-color: transparent; padding-left: 1rem; }

/* Pipeline */
.pipeline { display: flex; align-items: center; gap: 0; flex-wrap: wrap; margin: 1.5rem 0; }
.pipeline-step { padding: .4rem .8rem; font-size: .72rem; font-family: var(--mono); border: 1px solid var(--b1); background: var(--card-bg); color: var(--t2); }
.pipeline-step:first-child { border-radius: 8px 0 0 8px; }
.pipeline-step:last-child { border-radius: 0 8px 8px 0; }
.pipeline-step.active { border-color: var(--mint-20); color: var(--mint); background: var(--mint-10); }
.pipeline-arrow { color: var(--t3); font-size: .7rem; padding: 0 .2rem; }

/* Coming soon */
.cs-page { opacity: .5; }
.cs-page .card { pointer-events: none; }
.cs-badge { display: inline-block; padding: .2rem .6rem; border-radius: 100px; font-family: var(--mono); font-size: .6rem; color: var(--yellow); background: rgba(245,208,0,0.1); border: 1px solid rgba(245,208,0,0.15); text-transform: uppercase; letter-spacing: .08em; margin-left: .5rem; vertical-align: middle; }

/* ═══════ PREMIUM EFFECTS ═══════ */

/* Spotlight card — cursor-following glow */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0,244,179,0.08),
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity .3s;
}
.spotlight:hover::before { opacity: 1; }

/* Shimmer gradient text */
.shimmer {
  background: linear-gradient(120deg, var(--t1) 0%, var(--mint) 25%, var(--yellow) 50%, var(--t1) 75%, var(--mint) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-move 5s linear infinite;
}
@keyframes shimmer-move { to { background-position: 300% center; } }

/* Rotating gradient border */
@property --ba {
  inherits: false;
  initial-value: 0deg;
  syntax: "<angle>";
}
.glow-border {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from var(--ba), var(--mint), var(--yellow), var(--magenta), var(--cyan), var(--mint)) border-box;
  animation: spin-border 6s linear infinite;
}
.glow-border.alt-bg-card {
  background:
    linear-gradient(var(--s1), var(--s1)) padding-box,
    conic-gradient(from var(--ba), var(--mint), var(--yellow), var(--magenta), var(--cyan), var(--mint)) border-box;
}
@keyframes spin-border { to { --ba: 360deg; } }

/* Magnetic button */
.magnetic { transition: transform .1s ease; will-change: transform; }

/* 3D tilt card */
.tilt { will-change: transform; transform-style: preserve-3d; transition: transform .15s ease; }

/* Auto-typing terminal line */
.typing-line {
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--mint);
  animation: type-in 2.5s steps(40, end) forwards, blink-caret .8s step-end infinite;
}
@keyframes type-in { to { width: 100%; } }
@keyframes blink-caret { 50% { border-color: transparent; } }

/* GitHub stars badge */
.gh-stars {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border: 1px solid var(--b1);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--t2);
  background: var(--card-bg);
  transition: border-color .3s;
}
.gh-stars:hover { border-color: var(--mint-20); color: var(--t1); }
.gh-stars svg { width: 14px; height: 14px; fill: var(--yellow); }

/* Before/After comparison */
.compare { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--b1); }
.compare-layer { padding: 1.5rem; font-family: var(--mono); font-size: .78rem; line-height: 1.7; }
.compare-before { background: var(--bg); color: var(--t2); }
.compare-after { position: absolute; inset: 0; background: var(--s1); color: var(--t1); clip-path: inset(0 0 0 var(--split, 50%)); z-index: 2; }
.compare-slider { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: col-resize; z-index: 3; }
.compare-divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--grad); z-index: 2; pointer-events: none; }
.compare-label { position: absolute; top: .5rem; padding: .2rem .5rem; font-family: var(--mono); font-size: .6rem; color: var(--t3); background: rgba(4,16,21,.7); border-radius: 4px; z-index: 4; text-transform: uppercase; letter-spacing: .08em; }
.compare-label.before { left: .5rem; }
.compare-label.after { right: .5rem; }

/* Marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-inner { display: flex; gap: 2.5rem; width: max-content; animation: marquee-scroll 25s linear infinite; }
.marquee-inner:hover { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--mono); font-size: .75rem; color: var(--t3); white-space: nowrap; padding: .4rem .8rem; border: 1px solid var(--b1); border-radius: 8px; background: var(--card-bg); }

@media (prefers-reduced-motion: reduce) {
  .shimmer, .glow-border, .marquee-inner, .typing-line { animation: none; }
  .shimmer { -webkit-text-fill-color: var(--mint); }
  .typing-line { width: 100%; border-right: none; }
}

/* Responsive */
@media (max-width: 1400px) { .toc { display: none; } }
@media (max-width: 900px) {
  .ws-grid, .wf-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .mcp-grid, .sec-grid, .stack-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: rgba(4,16,21,.96); backdrop-filter: blur(20px); padding: .8rem 1.5rem 1.2rem; border-bottom: 2px solid; border-image: var(--grad) 1; gap: .6rem; }
  .nav-tog { display: flex; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero h1 { font-size: 2rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .ag-row { flex-direction: column; gap: .2rem; }
  .ag-n { min-width: unset; white-space: normal; word-break: break-all; }
  .ag-m { margin-top: .2rem; }
  .term pre { font-size: .65rem; padding: .8rem 1rem; }
  .sched { min-width: 0; font-size: .7rem; }
  .sched th, .sched td { padding: .4rem .5rem; }
  .mcp-core { font-size: .8rem; padding: .5rem 1rem; }
  section { padding: clamp(2.5rem, 6vw, 5rem) 1rem; }
  .page-hdr { padding: 5rem 1rem 2rem; }
  .btn-group { flex-direction: column; align-items: center; }
  .foot-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .foot-r { text-align: center; }
  .pipeline { justify-content: center; }
}
