:root {
  --bg: #07090b;
  --elevated: #0d1114;
  --soft: #12181c;
  --text: #f4f7f5;
  --muted: #8b9790;
  --dim: #5c6862;
  --hub: #6366f1;
  --hub-soft: #a5b4fc;
  --hub-glow: rgba(99, 102, 241, 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --borderstrong: rgba(255, 255, 255, 0.14);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 520px at 18% -8%, var(--hub-glow), transparent 58%),
    radial-gradient(800px 440px at 92% 4%, rgba(34, 224, 138, 0.04), transparent 52%),
    linear-gradient(180deg, #0a0e10 0%, var(--bg) 42%, #060809 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(7, 9, 11, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav-bar {
  height: 100%;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-menu a {
  padding: 0.45rem 0.65rem;
  border-radius: 2px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-menu a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-end { margin-left: 0.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.15rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: linear-gradient(135deg, var(--hub-soft), var(--hub));
  color: #0b0d12;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.28);
}

.btn-outline {
  border-color: var(--borderstrong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.82rem; }

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hub-soft);
  margin-bottom: 1rem;
}

.eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hub);
  box-shadow: 0 0 12px var(--hub);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-brand .name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-brand .tag {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.shout {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hub-soft);
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  perspective: 1100px;
  perspective-origin: 50% 40%;
}

.hero-visual img {
  width: min(100%, 380px);
}

.hero-tilt-glow {
  position: absolute;
  inset: 8% 2%;
  background: radial-gradient(circle at 40% 35%, rgba(99, 102, 241, 0.28), transparent 62%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  opacity: 0.85;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero-visual:hover .hero-tilt-glow {
  opacity: 1;
  transform: scale(1.06);
}

.hero-glow {
  display: none;
}

.section {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.section-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(99, 102, 241, 0.06), rgba(255, 255, 255, 0.02));
  border-radius: 2px;
  padding: 1.25rem 1.35rem;
}

.feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.compare {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.compare-row:first-child { border-top: 0; background: rgba(255, 255, 255, 0.03); font-weight: 600; }
.compare-row span:last-child { color: var(--hub-soft); }

.cta-band {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(255, 255, 255, 0.02));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--dim);
  font-size: 0.85rem;
}

.footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Hub IDE showcase */
.hub-ide {
  --ide-bg: #0b0f14;
  --ide-panel: #0e141b;
  --ide-border: rgba(255, 255, 255, 0.08);
  --ide-muted: #7f8b94;
  --ide-code: #d7e0e8;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  border: 1px solid var(--ide-border);
  border-radius: 4px;
  background: var(--ide-bg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.12);
  overflow: hidden;
  color: var(--ide-code);
  position: relative;
}

.hub-ide--hero {
  width: min(100%, 540px);
  cursor: pointer;
  z-index: 1;
  transform-style: preserve-3d;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
  animation: hub-ide-float 6s var(--ease) infinite alternate;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(165, 180, 252, 0.12);
}
.hub-ide--hero.is-tilting {
  animation: none;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(165, 180, 252, 0.35);
  border-color: rgba(165, 180, 252, 0.45);
}
.hub-ide--hero .hub-ide-editor {
  min-height: 168px;
}
.hub-ide--hero .hub-ide-lines {
  pointer-events: none;
  overflow: hidden;
}
.hub-ide--hero .ide-ln.is-change {
  color: #55616b;
}

.hub-ide-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.07) 48%, transparent 62%);
  transform: translateX(-120%);
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
}
.hub-ide--hero:hover .hub-ide-shine,
.hub-ide--hero.is-tilting .hub-ide-shine {
  animation: hub-shine 1.1s var(--ease) 1;
}
@keyframes hub-shine {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.hub-ide--stage {
  width: 100%;
  margin-top: 0.5rem;
}

@keyframes hub-ide-float {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.hub-ide-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  background: #0a0e12;
  border-bottom: 1px solid var(--ide-border);
}

.hub-ide-chrome .dot { display: none; }

.hub-ide-title {
  margin-left: 0;
  color: #c5d0da;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.hub-ide-cmdbtn {
  margin-left: auto;
  border: 1px solid var(--ide-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ide-muted);
  font: inherit;
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  cursor: pointer;
}
.hub-ide-cmdbtn:hover { color: #fff; border-color: rgba(165, 180, 252, 0.4); }

.hub-ide-body {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 280px;
}

.hub-ide--stage .hub-ide-body {
  min-height: 460px;
}

.hub-ide-rail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 0 0 48px;
  padding: 0.75rem 0.55rem;
  border-right: 1px solid var(--ide-border);
  background: #090c10;
}

.rail-ico {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0 auto;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  display: block;
}
.rail-ico.is-on {
  background: linear-gradient(135deg, var(--hub-soft), var(--hub));
  box-shadow: 0 0 12px var(--hub-glow);
}
.rail-bottom { margin-top: auto; }

.hub-ide-tree {
  flex: 0 0 180px;
  border-right: 1px solid var(--ide-border);
  background: var(--ide-panel);
  padding: 0.55rem 0.35rem 0.75rem;
  font-size: 0.72rem;
  overflow: auto;
}

.tree-head {
  color: var(--ide-muted);
  letter-spacing: 0.12em;
  font-size: 0.62rem;
  padding: 0.2rem 0.45rem 0.45rem;
}
.tree-repo {
  color: #c5d0da;
  font-weight: 600;
  padding: 0 0.45rem 0.55rem;
}

.tree-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #aeb8c2;
  font: inherit;
  padding: 0.22rem 0.45rem;
  border-radius: 2px;
  cursor: pointer;
}
.tree-item:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.tree-item.is-active { background: rgba(99, 102, 241, 0.18); color: #fff; }
.tree-item.is-folder { color: #d5dee7; font-weight: 600; }

.hub-ide-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.hub-ide-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  background: #0a0d11;
  border-bottom: 1px solid var(--ide-border);
}

.tab {
  border: 0;
  border-right: 1px solid var(--ide-border);
  background: transparent;
  color: var(--ide-muted);
  font: inherit;
  font-size: 0.72rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.tab .dirty { color: var(--hub-soft); margin-left: 0.35rem; font-size: 0.55rem; }
.tab.is-active {
  background: var(--ide-bg);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--hub);
}

.hub-ide-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  color: var(--ide-muted);
  border-bottom: 1px solid var(--ide-border);
  background: rgba(255, 255, 255, 0.015);
}
.hub-ide-crumb strong { color: #e8eef4; font-weight: 600; }

.hub-ide-workspace {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.hub-ide--hero .hub-ide-workspace,
.hub-ide--hero .hub-ide-panel { display: none; }

.hub-ide-editor {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 180px;
  overflow: hidden;
  background: var(--ide-bg);
}

.hub-ide--stage .hub-ide-editor {
  min-height: 260px;
}

.hub-ide-lines {
  flex: 1 1 auto;
  min-width: 0;
  overflow: auto;
  padding: 0.55rem 0;
}

.ide-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  line-height: 1.55;
}

.ide-row.is-active .ide-src {
  background: rgba(99, 102, 241, 0.12);
  box-shadow: inset 2px 0 0 var(--hub);
}

.ide-ln {
  width: 3rem;
  min-width: 3rem;
  padding: 0 0.7rem 0 0.5rem;
  text-align: right;
  vertical-align: top;
  color: #55616b;
  user-select: none;
  white-space: nowrap;
}

.ide-ln.is-change {
  color: #7dd3a0;
  border-left: 2px solid #34d399;
  padding-left: calc(0.5rem - 2px);
}

.ide-src {
  padding: 0 1rem 0 0.35rem;
  vertical-align: top;
  white-space: pre;
  color: var(--ide-code);
}

.minimap {
  flex: 0 0 52px;
  border-left: 1px solid var(--ide-border);
  background: #0a0d11;
  padding: 0.55rem 0.35rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.map-line {
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.12);
  max-width: 100%;
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}
.map-line:nth-child(3n) { width: 72%; }
.map-line:nth-child(3n + 1) { width: 92%; }
.map-line:nth-child(3n + 2) { width: 58%; }
.map-line:nth-child(6),
.map-line:nth-child(11) {
  background: rgba(52, 211, 153, 0.55);
}

.tok-kw { color: #c4b5fd; }
.tok-str { color: #86efac; }
.tok-com { color: #64748b; font-style: italic; }
.tok-type { color: #7dd3fc; }
.tok-num { color: #fca5a5; }
.tok-op { color: #94a3b8; }

.hub-ide-panel {
  border-top: 1px solid var(--ide-border);
  background: #090c10;
  display: flex;
  flex-direction: column;
  flex: 0 0 148px;
  min-height: 0;
}
.panel-tabs {
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem 0.45rem 0;
  border-bottom: 1px solid var(--ide-border);
}
.panel-tab {
  border: 0;
  background: transparent;
  color: var(--ide-muted);
  font: inherit;
  font-size: 0.68rem;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}
.panel-tab.is-on { color: #fff; box-shadow: inset 0 -2px 0 var(--hub); }
.panel-body {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.7rem;
  color: #9fb0bf;
  overflow: auto;
  flex: 1;
}

.hub-ide-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-top: 1px solid var(--ide-border);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), #0a0d11 42%);
  font-size: 0.65rem;
  color: #c7d2de;
}
.status-seed { color: #86efac; }
.status-right { margin-left: auto; }

.peek {
  position: absolute;
  left: 56px;
  top: 3.6rem;
  width: min(360px, calc(100% - 80px));
  border: 1px solid rgba(165, 180, 252, 0.35);
  background: #111827;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
  z-index: 3;
  animation: hub-peek-in 0.25s var(--ease);
}
.peek-head {
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
  color: var(--hub-soft);
  border-bottom: 1px solid var(--ide-border);
}
.peek-body {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.7rem;
  color: #dbe4ee;
}
@keyframes hub-peek-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ghost {
  position: absolute;
  right: 72px;
  bottom: 1.25rem;
  max-width: 55%;
  padding: 0.35rem 0.55rem;
  border: 1px dashed rgba(165, 180, 252, 0.35);
  background: rgba(99, 102, 241, 0.08);
  color: #a5b4fc;
  font-size: 0.68rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.ghost.is-on { opacity: 1; }

.hub-cmd {
  position: absolute;
  inset: 12% 18% auto;
  z-index: 5;
  background: #0f1520;
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: hub-peek-in 0.2s var(--ease);
}
.hub-cmd input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-bottom: 1px solid var(--ide-border);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  outline: none;
}
.hub-cmd ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 220px;
  overflow: auto;
}
.hub-cmd li {
  padding: 0.55rem 0.7rem;
  border-radius: 2px;
  font-size: 0.8rem;
  color: #c9d4df;
  cursor: pointer;
}
.hub-cmd li:hover { background: rgba(99, 102, 241, 0.2); color: #fff; }

.hub-ide-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.hub-ide-link:hover .hub-ide {
  border-color: rgba(165, 180, 252, 0.45);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.page-code .footer { margin-top: 0; }

.code-page {
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.code-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.code-page-head h1 {
  max-width: none;
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.code-page-head .lede {
  margin: 0;
  max-width: 48ch;
  font-size: 0.95rem;
}

.hub-ide--page {
  min-height: calc(100vh - 11rem);
}

.hub-ide--page .hub-ide-body {
  min-height: calc(100vh - 14rem);
}

.hub-ide--page .hub-ide-panel {
  flex-basis: 140px;
}

.nav-menu a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.features-hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
}

.features-hero h1 {
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.features-count {
  color: var(--hub-soft);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.feature-cats {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  display: grid;
  gap: 1.75rem;
}

.feature-cat h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--hub-soft);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  columns: 2;
  column-gap: 0;
  background: rgba(255, 255, 255, 0.015);
}

.feature-list li {
  break-inside: avoid;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.feature-list li strong {
  color: var(--text);
  font-weight: 600;
}

.feature-list li:nth-child(odd) {
  background: rgba(99, 102, 241, 0.03);
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 220px; }
  .hub-ide--hero {
    width: 100%;
    transform: none;
    animation: none;
  }
  .hub-ide-body {
    flex-direction: column;
  }
  .hub-ide-tree {
    flex: 0 0 auto;
    max-height: 140px;
    border-right: 0;
    border-bottom: 1px solid var(--ide-border);
  }
  .minimap { display: none; }
  .hub-cmd { inset: 8% 4% auto; }
  .compare-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .compare-row span:first-child { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
  .feature-list { columns: 1; }
}

/* Opera-safe polish: solid panes, Mac chrome off; hero tilt allowed via JS */
.hub-ide {
  isolation: isolate;
  contain: layout paint;
  background: #0c1015;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  border-radius: 6px;
}
.hub-ide--hero {
  contain: none;
  transform-style: preserve-3d;
}
.hub-ide-chrome .dot { display: none !important; }
.hub-ide-title { margin-left: 0; color: #c5d0da; font-weight: 500; }
.hub-ide-hint {
  margin-left: auto;
  color: var(--hub-soft);
  font-size: 0.7rem;
  font-weight: 600;
}
.hub-ide-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: var(--hub-soft);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hub-ide-rail,
.peek,
.ghost { display: none !important; }
.hub-ide-status {
  background: #0a0e12 !important;
  color: #a8b4c0;
}
.ide-row.is-active .ide-src {
  background: rgba(99, 102, 241, 0.08);
  box-shadow: none;
}
.ide-ln.is-change {
  border-left: 0;
  color: #7dd3a0;
  padding-left: 0.4rem;
}
.hub-ide-lines,
.hub-ide-tree,
.hub-ide-tabs,
.panel-body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.hub-ide-lines::-webkit-scrollbar,
.hub-ide-tree::-webkit-scrollbar,
.hub-ide-tabs::-webkit-scrollbar,
.panel-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.hub-ide-lines::-webkit-scrollbar-thumb,
.hub-ide-tree::-webkit-scrollbar-thumb,
.hub-ide-tabs::-webkit-scrollbar-thumb,
.panel-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 0;
}
.hub-ide-lines::-webkit-scrollbar-track,
.hub-ide-tree::-webkit-scrollbar-track,
.hub-ide-tabs::-webkit-scrollbar-track,
.panel-body::-webkit-scrollbar-track {
  background: transparent;
}
.hub-ide-lines,
.hub-ide-editor,
.hub-ide-main,
.hub-ide-body {
  background: #0c1015;
}

.ide-line-text { position: relative; }
.ide-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin: 0 1px -0.15em;
  background: #a5b4fc;
  vertical-align: text-bottom;
  animation: hub-caret 1s steps(1) infinite;
}
@keyframes hub-caret {
  50% { opacity: 0; }
}

.ide-catcher {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  resize: none;
  caret-color: transparent;
  color: transparent;
  background: transparent;
  z-index: 2;
  cursor: text;
}

.tab .dirty {
  color: var(--hub-soft);
  margin-left: 0.35rem;
  font-size: 0.55rem;
}

.term-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.55rem;
  border-top: 1px solid var(--ide-border);
  background: #070a0e;
}
.term-prompt {
  color: #86efac;
  font-size: 0.7rem;
}
.term-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #d7e0e8;
  font: inherit;
  font-size: 0.7rem;
  outline: none;
}
.term-input::placeholder { color: #55616b; }

.hub-toast {
  position: absolute;
  left: 50%;
  bottom: 3.25rem;
  transform: translateX(-50%) translateY(8px);
  padding: 0.45rem 0.75rem;
  background: #151b24;
  border: 1px solid rgba(165, 180, 252, 0.35);
  color: #e8eef4;
  font-size: 0.72rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.hub-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hub-ide--hero { animation: none !important; transform: none !important; }
  .hub-ide-shine { display: none; }
  .ide-caret { animation: none; }
}

@media (max-width: 860px) {
  .hero-visual { perspective: none; }
  .hub-ide--hero { transform: none !important; animation: none !important; }
}
