*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #07070f;
  --bg2: #0d0d1a;
  --bg3: #12121f;
  --card: #111128;
  --border: rgba(99,102,241,0.15);
  --border2: rgba(99,102,241,0.25);
  --indigo: #6366f1;
  --purple: #a855f7;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(7,7,15,0.85);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 18px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  list-style: none;
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-gh {
  background: rgba(99,102,241,0.12);
  border: 1px solid var(--border2);
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--indigo) !important;
  transition: background 0.2s !important;
}
.nav-gh:hover { background: rgba(99,102,241,0.22) !important; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 80px 24px 40px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: #6366f140; top: -200px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #a855f730; bottom: -100px; right: -100px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #3b82f620; top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a5b4fc;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.gradient-text {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 20px;
  color: var(--text2);
  font-weight: 400;
}
.type-cursor {
  color: var(--indigo);
  font-weight: 500;
}
.type-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* TERMINAL */
.hero-terminal {
  width: 100%;
  max-width: 560px;
  background: #0a0a14;
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.1);
  text-align: left;
}
.terminal-header {
  background: #0f0f1e;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.terminal-title { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-left: 6px; }
.terminal-body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
}
.terminal-line { display: flex; gap: 8px; align-items: baseline; }
.t-prompt { color: var(--indigo); font-weight: 600; }
.t-cmd { color: #c4b5fd; }
.t-out { color: var(--green); padding-left: 20px; font-size: 12px; }
.t-cursor { color: var(--text2); animation: blink 1s step-end infinite; }

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: white;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  background: rgba(99,102,241,0.08);
  border: 1px solid var(--border2);
  color: var(--text2);
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(99,102,241,0.15); color: var(--text); border-color: var(--indigo); }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes scrollBounce {
  0%,100% { transform: rotate(45deg) translateY(-4px); opacity: 0.3; }
  50% { transform: rotate(45deg) translateY(4px); opacity: 0.8; }
}

/* SECTIONS */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.projects { padding: 100px 0; }
.docs-section { padding: 100px 0; }
.docs-section.alt { background: var(--bg2); }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--indigo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text2);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* PROJECT CARDS */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.pcard:hover {
  border-color: var(--indigo);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99,102,241,0.15);
}
.pcard-icon svg { width: 48px; height: 48px; }
.pcard-tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pcard h3 { font-size: 22px; font-weight: 600; }
.pcard p { color: var(--text2); font-size: 15px; line-height: 1.6; flex: 1; }
.pcard-stats {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--text3);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.pcard-link { color: var(--indigo); font-weight: 500; margin-left: auto; }

/* DOCS GRID */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* VIZ CARD */
.viz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: sticky; top: 80px;
}
.viz-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: #0f0f1e;
}
.viz-tabs { display: flex; gap: 0; }
.viz-tab {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.viz-tab:first-child { border-radius: 8px 0 0 8px; }
.viz-tab:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.viz-tab.active { background: var(--indigo); border-color: var(--indigo); color: white; }
.viz-body { padding: 20px; }
.viz-body.hidden { display: none; }

/* QUEUE VIZ */
.queue-viz { display: flex; flex-direction: column; gap: 16px; }
.users-row { display: flex; gap: 8px; justify-content: center; }
.user {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  border: 2px solid;
}
.user-a { background: rgba(99,102,241,0.15); border-color: #6366f1; color: #a5b4fc; }
.user-b { background: rgba(168,85,247,0.15); border-color: #a855f7; color: #d8b4fe; }
.user-c { background: rgba(34,197,94,0.15); border-color: #22c55e; color: #86efac; }

.queue-row { display: flex; align-items: center; gap: 8px; }
.queue-label { font-size: 12px; color: var(--text3); font-family: var(--mono); min-width: 40px; }
.queue-jobs { display: flex; gap: 4px; flex-wrap: wrap; }

.job {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  animation: jobPop 0.4s ease both;
}
.job.sm { width: 26px; height: 26px; font-size: 11px; }
.job-a { background: rgba(99,102,241,0.25); border: 1px solid #6366f1; color: #a5b4fc; }
.job-b { background: rgba(168,85,247,0.25); border: 1px solid #a855f7; color: #d8b4fe; }
.job-c { background: rgba(34,197,94,0.25); border: 1px solid #22c55e; color: #86efac; }

@keyframes jobPop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.partitions-row {
  display: flex; gap: 8px; justify-content: center;
}
.partition {
  background: rgba(99,102,241,0.05);
  border: 1px dashed var(--border2);
  border-radius: 8px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.partition-label { font-size: 10px; color: var(--text3); margin-bottom: 4px; font-family: var(--mono); }

.rr-row {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
  background: rgba(99,102,241,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}
.rr-badge {
  font-size: 11px; color: var(--indigo);
  font-weight: 600; font-family: var(--mono);
  margin-right: 4px;
}

.workers-row { display: flex; gap: 8px; justify-content: center; }
.worker {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(30,30,60,0.8);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--text3);
  transition: all 0.3s;
}
.worker.active { border-color: var(--green); color: var(--green); background: rgba(34,197,94,0.1); }

.viz-note {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--mono);
}
.viz-note.warn { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.viz-note.ok { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }

/* DOCS NAV */
.docs-nav {
  display: flex; gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.doc-tab {
  background: transparent;
  border: none; border-bottom: 2px solid transparent;
  color: var(--text3);
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.doc-tab:hover { color: var(--text2); }
.doc-tab.active { color: var(--indigo); border-bottom-color: var(--indigo); }

.doc-panel { display: none; }
.doc-panel.active { display: block; }
.doc-panel h4 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }

/* CODE BLOCKS */
.code-block {
  background: #090915;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 16px;
}
.cb-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px;
  background: #0c0c1c;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}
.copy-btn {
  background: rgba(99,102,241,0.1);
  border: 1px solid var(--border2);
  color: var(--indigo);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.copy-btn:hover { background: rgba(99,102,241,0.2); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }
.code-block pre { margin: 0 !important; padding: 16px !important; background: transparent !important; font-size: 13px !important; }
.code-block code { font-family: var(--mono) !important; font-size: 13px !important; background: transparent !important; }

/* FEATURE LIST */
.feature-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.feature-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(99,102,241,0.05);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px; color: var(--text2);
}
.fi-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

/* STRATEGIES */
.strategy-cards { display: flex; flex-direction: column; gap: 12px; }
.strategy-card {
  background: rgba(99,102,241,0.05);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px;
}
.strategy-card.recommended { border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.08); }
.sc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sc-name { font-weight: 600; font-size: 15px; }
.sc-badge {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: white; font-size: 10px; padding: 2px 8px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0.04em;
}
.strategy-card p { font-size: 13px; color: var(--text2); margin-bottom: 10px; }
.strategy-card code { font-family: var(--mono); font-size: 12px; color: #a5b4fc; background: rgba(99,102,241,0.1); padding: 3px 8px; border-radius: 4px; }

.gh-link, .gh-links { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* PHPPAD PANEL */
.phppad-tabs-outer { margin-bottom: 40px; }
.phppad-switcher {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.ps-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent;
  border: none;
  color: var(--text2);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.ps-btn:hover { color: var(--text); background: rgba(99,102,241,0.1); }
.ps-btn.active { background: var(--indigo); color: white; }
.phppad-panel { display: block; }
.phppad-panel.hidden { display: none; }

/* IDE MOCKUP */
.ide-mockup {
  background: #08080f;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.ide-header {
  background: #0d0d1c;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
.ide-title { font-family: var(--mono); font-size: 12px; color: var(--text2); flex: 1; margin-left: 8px; }
.ide-conn-badge {
  background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3);
  color: var(--green); font-size: 11px; padding: 2px 8px; border-radius: 6px;
  font-family: var(--mono); font-weight: 600;
}
.ide-body { display: flex; height: 320px; }
.ide-sidebar {
  width: 100px;
  background: #0b0b18;
  border-right: 1px solid rgba(99,102,241,0.1);
  padding: 8px 0;
}
.ide-sb-item {
  padding: 8px 12px;
  font-size: 12px; color: var(--text3);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.ide-sb-item.active { color: var(--indigo); background: rgba(99,102,241,0.1); }
.ide-editor {
  flex: 1;
  padding: 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  overflow-y: auto;
  position: relative;
}
.ide-line { display: flex; gap: 12px; }
.ln { color: var(--text3); user-select: none; min-width: 16px; text-align: right; }
.code-php { flex: 1; }
.kw { color: #c792ea; }
.str { color: #a5e844; }
.fn { color: #82aaff; }
.bool { color: #ff9d00; }
.comment { color: #546e7a; font-style: italic; }
.ide-magic-hint {
  font-size: 11px;
  color: var(--green);
  padding: 2px 12px 2px 40px;
  font-style: italic;
  opacity: 0.8;
}
.ide-output {
  width: 260px;
  background: #0a0a17;
  border-left: 1px solid rgba(99,102,241,0.1);
  overflow-y: auto;
}
.ide-out-header {
  padding: 8px 12px;
  font-size: 11px;
  color: var(--text3);
  font-family: var(--mono);
  border-bottom: 1px solid rgba(99,102,241,0.1);
  background: #0d0d1e;
}
.ide-result { padding: 10px 12px; font-family: var(--mono); font-size: 11px; line-height: 1.7; }
.ir-key { color: var(--indigo); font-weight: 600; }
.ir-val { color: var(--text2); }
.ir-val.indent { padding-left: 12px; color: var(--text3); }
.ide-sql { border-top: 1px solid rgba(99,102,241,0.1); padding: 10px 12px; }
.ide-sql-header { font-size: 10px; color: var(--text3); font-family: var(--mono); margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.ide-sql-item { display: flex; gap: 8px; font-family: var(--mono); font-size: 10px; color: var(--text3); line-height: 1.7; }
.sql-time { color: var(--yellow); font-weight: 600; min-width: 28px; }

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.fg-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.fg-item:hover { border-color: var(--border2); transform: translateY(-2px); }
.fg-icon { font-size: 24px; margin-bottom: 10px; }
.fg-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.fg-desc { font-size: 13px; color: var(--text2); line-height: 1.5; }
.fg-desc code { font-family: var(--mono); font-size: 12px; color: var(--indigo); background: rgba(99,102,241,0.1); padding: 1px 5px; border-radius: 3px; }

.magic-demo { margin-top: 8px; }
.magic-demo h4 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* PLUGIN FEATURES */
.plugin-features { display: flex; flex-direction: column; gap: 32px; }

.pf-highlight {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 16px;
  padding: 28px;
  display: flex; gap: 20px; align-items: flex-start;
}
.pf-hl-icon { font-size: 40px; flex-shrink: 0; }
.pf-hl-content h4 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.pf-hl-content p { color: var(--text2); font-size: 15px; line-height: 1.6; }

.api-endpoints {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ae-header {
  padding: 12px 16px;
  background: #0f0f1e;
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text3);
  font-family: var(--mono);
}
.ae-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px;
  transition: background 0.15s;
}
.ae-item:last-child { border-bottom: none; }
.ae-item:hover { background: rgba(99,102,241,0.05); }
.ae-item code { color: var(--text2); flex: 1; }
.ae-desc { color: var(--text3); font-size: 12px; }
.method {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px;
  min-width: 42px; text-align: center; letter-spacing: 0.04em;
}
.method.get { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.method.post { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }

.install-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.ib-title { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; font-family: var(--mono); }
.install-steps { display: flex; flex-direction: column; gap: 12px; }
.is-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text2);
}
.is-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: white; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* QUEUE INSPECTOR TERMINAL */
@keyframes qi-appear {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qi-terminal {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
  padding: 4px 0;
}
.qi-line {
  opacity: 0;
}
.qi-terminal.qi-playing .qi-line {
  animation: qi-appear 0.35s ease forwards;
}
.qi-spacer { height: 6px; }
.qi-dim    { color: var(--text3); }
.qi-class  { color: #a5b4fc; font-weight: 500; }
.qi-err    { color: var(--red); }
.qi-warn   { color: var(--yellow); }
.qi-ok     { color: var(--green); }
.qi-detail { color: var(--text3); font-size: 11.5px; }
.qi-summary { color: var(--red); font-weight: 500; }

/* CHECK LIST */
.check-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.check-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text2);
}
.check-item strong { color: var(--text); }
.qi-check-err  { background: rgba(239,68,68,0.07);  border: 1px solid rgba(239,68,68,0.2); }
.qi-check-warn { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.18); }
.ci-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  margin-top: 2px;
  white-space: nowrap;
}
.qi-check-err  .ci-badge { background: rgba(239,68,68,0.18);  color: var(--red); }
.qi-check-warn .ci-badge { background: rgba(245,158,11,0.18); color: var(--yellow); }

/* IGNORE METHODS */
.ignore-methods { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.im-item {
  padding: 9px 14px;
  background: rgba(99,102,241,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.5;
}
.im-item code { color: #a5b4fc; font-family: var(--mono); font-size: 12.5px; }

/* FOOTER */
footer {
  background: #050508;
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.footer-logo {
  font-family: var(--mono); font-weight: 700; font-size: 22px;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-text { color: var(--text3); font-size: 14px; }
.footer-gh { color: var(--indigo); text-decoration: none; font-size: 14px; font-family: var(--mono); }
.footer-gh:hover { text-decoration: underline; }

/* SCROLL ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SCREENSHOT SHOWCASE */
.ss-window {
  background: #0d0d1c;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(99,102,241,0.08);
}
.ss-titlebar {
  background: #111125;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(99,102,241,0.12);
}
.ss-app-icon { margin-left: 6px; opacity: 0.7; }
.ss-title {
  font-family: var(--mono); font-size: 12px; color: var(--text2);
  margin-left: 4px; flex: 1;
  transition: opacity 0.2s;
}
.ss-tabs {
  display: flex;
  background: #0a0a18;
  border-bottom: 1px solid rgba(99,102,241,0.12);
  overflow-x: auto;
  scrollbar-width: none;
}
.ss-tabs::-webkit-scrollbar { display: none; }
.ss-tab {
  background: transparent; border: none;
  color: var(--text3); padding: 9px 16px;
  font-size: 12px; font-family: var(--font); font-weight: 500;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ss-tab:hover { color: var(--text2); background: rgba(99,102,241,0.05); }
.ss-tab.active { color: #a5b4fc; border-bottom-color: var(--indigo); background: rgba(99,102,241,0.07); }

.ss-viewport {
  position: relative;
  background: #070710;
  line-height: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.ss-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.ss-img.active { opacity: 1; pointer-events: auto; }

.ss-caption {
  background: #0a0a18;
  border-top: 1px solid rgba(99,102,241,0.1);
  padding: 10px 18px;
  font-size: 13px; color: var(--text2);
  font-family: var(--mono);
  min-height: 38px;
  transition: opacity 0.2s;
}

/* PRISM OVERRIDE */
:not(pre) > code[class*="language-"], pre[class*="language-"] {
  background: transparent !important;
}
pre[class*="language-"] { padding: 16px !important; margin: 0 !important; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2d2d4e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--indigo); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child):not(:first-child) { display: none; }
  .docs-grid { grid-template-columns: 1fr; }
  .ide-output { display: none; }
  .ide-sidebar { display: none; }
  .pf-highlight { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hero-terminal { font-size: 11px; }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .project-cards { grid-template-columns: 1fr; }
  .ae-desc { display: none; }
}
