:root {
  --bg-0: #03050a;
  --bg-1: #060c17;
  --bg-2: #0a1324;
  --panel: #0d1528;
  --panel-soft: #111c33;
  --panel-strong: #0b1120;
  --line: #22314e;
  --line-soft: #1a2540;
  --red: #9e254a;
  --red-strong: #c93058;
  --red-soft: rgba(165, 46, 79, 0.25);
  --blue: #20395f;
  --text: #e7edf9;
  --text-soft: #9ba9c6;
  --green: #2ed3a4;
  --amber: #d29b44;
  --cold: #8a3559;
  --danger: #95213f;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg-0);
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(194, 47, 87, 0.27), transparent 55%),
    radial-gradient(1000px 460px at 88% 12%, rgba(50, 78, 126, 0.26), transparent 52%),
    linear-gradient(180deg, #05070d 0%, #050b17 44%, #04060d 100%);
  z-index: -3;
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-bg::before {
  background: repeating-linear-gradient(
    to bottom,
    rgba(67, 88, 132, 0.09),
    rgba(67, 88, 132, 0.09) 1px,
    transparent 1px,
    transparent 6px
  );
  mix-blend-mode: screen;
  opacity: 0.28;
}

.page-bg::after {
  background: linear-gradient(90deg, rgba(179, 50, 84, 0.1), transparent 20%, transparent 80%, rgba(179, 50, 84, 0.12));
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.55rem;
  line-height: 1.15;
}

p {
  margin: 0 0 0.95rem;
  color: var(--text-soft);
}

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

ul {
  margin: 0;
  padding-left: 1.1rem;
}

main,
.site-header,
.site-footer {
  width: min(1300px, 94vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.65rem 0.8rem;
  background: linear-gradient(130deg, rgba(10, 18, 34, 0.9), rgba(12, 20, 38, 0.82));
  border: 1px solid rgba(170, 57, 92, 0.42);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.brand {
  font-weight: 700;
  color: #f2f6ff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 0.45rem;
}

.site-nav a {
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  color: #b6c3de;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #e9effb;
  border-color: rgba(155, 50, 82, 0.45);
  background: rgba(156, 41, 73, 0.22);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(150, 47, 80, 0.5);
  background: rgba(20, 31, 53, 0.9);
  color: var(--text);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font: inherit;
  font-size: 0.84rem;
}

main {
  margin-top: 1rem;
}

section {
  margin-bottom: 1rem;
}

.hero {
  background:
    linear-gradient(140deg, rgba(149, 38, 69, 0.2), transparent 40%),
    linear-gradient(12deg, rgba(22, 38, 64, 0.86), rgba(9, 16, 30, 0.9));
  border: 1px solid rgba(165, 54, 90, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
}

.eyebrow {
  font-size: 0.72rem;
  color: #c3cfea;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.45rem);
  color: #f4f7ff;
}

.hero-subtitle {
  max-width: 72ch;
  color: #afbdd8;
}

.hero-actions {
  display: flex;
  gap: 0.55rem;
  margin: 1rem 0 1.3rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 0.52rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 140ms ease;
}

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

.btn-primary {
  background: linear-gradient(180deg, #b2345d, #8b2343);
  border-color: rgba(203, 83, 117, 0.45);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(180deg, #c33f67, #922748);
}

.btn-ghost {
  background: rgba(18, 30, 52, 0.85);
  border-color: rgba(98, 121, 165, 0.35);
  color: #c6d3eb;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-metrics article {
  border: 1px solid rgba(61, 81, 119, 0.55);
  border-radius: 11px;
  background: rgba(6, 14, 27, 0.65);
  padding: 0.7rem;
}

.hero-metrics h2 {
  font-size: 1.2rem;
  color: #f2f6ff;
}

.hero-metrics p {
  margin: 0;
  font-size: 0.76rem;
}

.panel {
  padding: clamp(0.95rem, 2.3vw, 1.4rem);
  border: 1px solid rgba(41, 59, 93, 0.9);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(130deg, rgba(10, 18, 35, 0.96), rgba(7, 13, 25, 0.98));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
}

.panel h2 {
  color: #f2f6ff;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 0.75rem;
}

.panel h3,
.panel h4,
.panel h5 {
  color: #eaf0ff;
}

.section-intro {
  max-width: 92ch;
}

.two-col {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.two-col article {
  padding: 0.76rem;
  border: 1px solid rgba(53, 75, 113, 0.8);
  border-radius: 10px;
  background: rgba(10, 18, 34, 0.74);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.feature-card {
  border: 1px solid rgba(54, 77, 116, 0.82);
  border-radius: 10px;
  padding: 0.72rem;
  background:
    linear-gradient(140deg, rgba(149, 44, 74, 0.12), transparent 45%),
    rgba(10, 18, 34, 0.72);
}

.feature-card h3 {
  font-size: 0.93rem;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.panel-demo {
  border-color: rgba(156, 44, 76, 0.56);
  background:
    linear-gradient(135deg, rgba(138, 35, 64, 0.16), transparent 45%),
    linear-gradient(140deg, rgba(8, 15, 30, 0.98), rgba(4, 9, 19, 0.99));
}

.app-window {
  margin-top: 0.9rem;
  border: 1px solid rgba(160, 49, 81, 0.5);
  border-radius: 15px;
  overflow: hidden;
  background: #040912;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.58);
}

.window-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #313233;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

.window-titlebar p {
  margin: 0;
  font-size: 0.84rem;
  color: #b8b8b9;
  font-weight: 600;
}

.window-buttons {
  position: absolute;
  left: 14px;
  display: inline-flex;
  gap: 8px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.window-dot.red {
  background: #ff5f56;
}

.window-dot.yellow {
  background: #ffbd2e;
}

.window-dot.green {
  background: #27c93f;
}

.session-frame {
  position: relative;
  border-top: 1px solid rgba(155, 43, 74, 0.42);
  background:
    radial-gradient(800px 320px at 8% 2%, rgba(163, 41, 76, 0.11), transparent 60%),
    radial-gradient(900px 380px at 92% 6%, rgba(54, 78, 122, 0.2), transparent 60%),
    #040a16;
}

.session-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(133, 45, 74, 0.38);
}

.session-heading h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  color: #edf2ff;
  letter-spacing: 0.01em;
}

.heading-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(91, 112, 153, 0.5);
  background: rgba(21, 32, 53, 0.8);
  color: #b6c2da;
  font-size: 0.67rem;
}

.session-heading p {
  margin: 0;
  font-size: 0.81rem;
}

.session-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.45rem;
}

.session-btn {
  border: 1px solid rgba(74, 95, 136, 0.5);
  border-radius: 11px;
  padding: 0.48rem 0.75rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #dae3f6;
  background: linear-gradient(180deg, rgba(32, 47, 76, 0.95), rgba(15, 24, 42, 0.95));
  cursor: pointer;
}

.session-btn:hover,
.session-btn:focus-visible {
  border-color: rgba(140, 63, 92, 0.72);
  color: #f2f5fc;
}

.session-btn.danger {
  border-color: rgba(174, 50, 84, 0.65);
  background: linear-gradient(180deg, #9a2548, #751836);
  color: #fff2f6;
}

.session-canvas-shell {
  position: relative;
  min-height: 730px;
  overflow: hidden;
  border-top: 1px solid rgba(59, 78, 112, 0.42);
  border-bottom: 1px solid rgba(59, 78, 112, 0.42);
}

.activity-heat {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 7;
  width: 240px;
  padding: 0.72rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 77, 113, 0.75);
  background: linear-gradient(150deg, rgba(13, 23, 42, 0.95), rgba(8, 14, 28, 0.94));
}

.activity-heat h4 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
}

.activity-heat p {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.activity-heat ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-heat li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.38rem;
  font-size: 1.05rem;
  color: #cad6ef;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.hot {
  background: var(--green);
}

.status-dot.warm {
  background: var(--amber);
}

.status-dot.cold {
  background: var(--cold);
}

.session-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 50% -15%, rgba(35, 62, 104, 0.28), transparent 70%),
    linear-gradient(90deg, rgba(159, 42, 75, 0.16), transparent 20%, transparent 80%, rgba(159, 42, 75, 0.14)),
    #020915;
  cursor: grab;
}

.session-map.dragging {
  cursor: grabbing;
}

.session-map::before,
.session-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.session-map::before {
  background: repeating-linear-gradient(
    to right,
    rgba(18, 42, 73, 0.24),
    rgba(18, 42, 73, 0.24) 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.42;
}

.session-map::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(19, 49, 84, 0.22),
    rgba(19, 49, 84, 0.22) 1px,
    transparent 1px,
    transparent 10px
  );
  opacity: 0.2;
}

.map-layer {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.sim-link {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  opacity: 0.78;
  z-index: 1;
}

.sim-link.status-hot {
  background: rgba(46, 211, 164, 0.72);
  box-shadow: 0 0 7px rgba(46, 211, 164, 0.32);
}

.sim-link.status-warm {
  background: rgba(210, 155, 68, 0.62);
}

.sim-link.status-cold {
  background: rgba(128, 43, 72, 0.62);
}

.sim-node-wrap {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
}

.sim-node {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(18, 29, 46, 0.8);
  background: #0f1e34;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(42, 63, 98, 0.4);
}

.sim-node::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
}

.sim-node.status-hot {
  color: var(--green);
}

.sim-node.status-warm {
  color: var(--amber);
}

.sim-node.status-cold {
  color: var(--cold);
}

.sim-node.is-core {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  transform: rotate(45deg);
  border-color: rgba(184, 198, 225, 0.75);
}

.sim-node.is-core::before {
  inset: 4px;
  border-radius: 5px;
}

.sim-node.is-core .node-center {
  position: absolute;
  inset: 8px;
  border-radius: 2px;
  transform: rotate(-45deg);
  background: rgba(9, 20, 34, 0.85);
  border: 1px solid rgba(181, 194, 220, 0.7);
}

.sim-node.active,
.sim-node:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(192, 211, 245, 0.72),
    0 0 0 5px rgba(36, 66, 108, 0.5);
}

.sim-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 4px);
  font-size: 0.61rem;
  color: #a9b7d4;
  white-space: nowrap;
  pointer-events: none;
}

.sim-node.is-core + .sim-label {
  font-size: 0.67rem;
  color: #d5e0f6;
  font-weight: 600;
}

.host-drawer,
.settings-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 8;
  width: 356px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  background: linear-gradient(160deg, rgba(12, 22, 40, 0.995), rgba(8, 14, 28, 0.995));
  border-left: 1px solid rgba(133, 44, 73, 0.46);
  border-right: 1px solid rgba(133, 44, 73, 0.46);
  transition: transform 180ms ease;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}

.host-drawer {
  right: 0;
  transform: translateX(100%);
}

.host-drawer.open {
  transform: translateX(0);
}

.settings-drawer {
  left: 0;
  transform: translateX(-100%);
}

.settings-drawer.open {
  transform: translateX(0);
}

.settings-drawer {
  box-shadow: 4px 0 18px rgba(0, 0, 0, 0.4);
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.2rem;
}

.drawer-top h4 {
  margin: 0;
  font-size: 1.25rem;
}

.drawer-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(93, 114, 153, 0.58);
  background: rgba(28, 42, 67, 0.9);
  color: #dae5fb;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.drawer-close:hover,
.drawer-close:focus-visible {
  border-color: rgba(170, 67, 97, 0.72);
}

.drawer-placeholder {
  margin-top: 0.3rem;
  font-size: 0.76rem;
}

.host-fields {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.host-summary {
  border: 1px solid rgba(90, 118, 167, 0.6);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(30, 48, 76, 0.7), rgba(14, 24, 40, 0.95));
  padding: 0.7rem;
}

.host-summary h5 {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: #dce7ff;
}

.host-summary p {
  margin: 0 0 0.28rem;
  color: #b7c6e6;
  font-size: 0.75rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  border: 1px solid rgba(84, 113, 160, 0.6);
  background: rgba(17, 28, 46, 0.74);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-chip.hot {
  color: var(--green);
}

.status-chip.warm {
  color: var(--amber);
}

.status-chip.cold {
  color: var(--cold);
}

.host-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.field-card {
  border: 1px solid rgba(62, 86, 126, 0.78);
  border-radius: 10px;
  background: rgba(22, 34, 55, 0.7);
  padding: 0.55rem;
}

.field-card span {
  display: block;
  font-size: 0.68rem;
  color: #9daecc;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.field-card strong {
  display: block;
  font-size: 0.9rem;
  color: #eef3ff;
  overflow-wrap: anywhere;
}

.settings-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.settings-tab {
  min-width: 90px;
  border: 1px solid rgba(70, 94, 137, 0.8);
  border-radius: 9px;
  background: rgba(26, 39, 63, 0.9);
  color: #d5dff3;
  padding: 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.settings-tab.active {
  border-color: rgba(193, 76, 109, 0.82);
  background: linear-gradient(180deg, rgba(168, 53, 85, 0.62), rgba(97, 34, 57, 0.48));
  color: #fff3f7;
}

.settings-note {
  margin: 0;
  font-size: 0.72rem;
  color: #acbbd6;
}

.settings-content {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  pointer-events: none;
  user-select: none;
}

.settings-content input,
.settings-content button {
  cursor: default;
}

.settings-group {
  border: 1px solid rgba(135, 46, 75, 0.58);
  border-radius: 11px;
  padding: 0.55rem;
  background: linear-gradient(170deg, rgba(23, 34, 56, 0.85), rgba(12, 19, 35, 0.9));
}

.settings-group h5 {
  margin: 0 0 0.48rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.settings-drawer label {
  display: block;
  margin-bottom: 0.34rem;
  font-size: 0.77rem;
  color: #b8c4dd;
}

.settings-drawer input[type="number"] {
  width: 100%;
  border: 1px solid rgba(64, 87, 124, 0.86);
  border-radius: 10px;
  background: rgba(9, 16, 30, 0.9);
  color: #e7efff;
  font: inherit;
  padding: 0.53rem 0.62rem;
}

.settings-drawer input[type="number"]:focus-visible {
  outline: 2px solid rgba(164, 59, 92, 0.7);
  outline-offset: 1px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.38rem;
  padding: 0.45rem 0.48rem;
  border: 1px solid rgba(66, 89, 128, 0.62);
  border-radius: 10px;
  background: rgba(30, 43, 68, 0.52);
}

.toggle-wrap {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}

.toggle-wrap input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.switch {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(99, 116, 148, 0.82);
  background: rgba(63, 78, 107, 0.34);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e7ebf6;
  transition: transform 140ms ease;
}

.toggle-wrap input:checked + .switch {
  border-color: rgba(183, 65, 98, 0.75);
  background: linear-gradient(180deg, rgba(174, 60, 95, 0.82), rgba(140, 41, 73, 0.82));
}

.toggle-wrap input:checked + .switch::after {
  transform: translateX(20px);
}

.apply-btn {
  margin-top: 0.2rem;
  border: 1px solid rgba(181, 66, 99, 0.73);
  border-radius: 10px;
  padding: 0.7rem;
  font: inherit;
  font-weight: 700;
  color: #fff3f7;
  background: linear-gradient(180deg, #b5355f, #892042);
  cursor: pointer;
}

.apply-btn:hover,
.apply-btn:focus-visible {
  background: linear-gradient(180deg, #c8426a, #9a2649);
}

.zoom-rail {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 7;
  width: 38px;
  padding: 0.35rem 0.24rem;
  border-radius: 11px;
  border: 1px solid rgba(57, 80, 119, 0.82);
  background: rgba(7, 13, 25, 0.86);
  display: grid;
  justify-items: center;
  gap: 0.3rem;
}

.zoom-rail button {
  width: 26px;
  height: 22px;
  border: 1px solid rgba(74, 101, 147, 0.82);
  border-radius: 7px;
  background: rgba(24, 36, 58, 0.9);
  color: #dce6ff;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.zoom-rail button:hover,
.zoom-rail button:focus-visible {
  border-color: rgba(169, 66, 97, 0.75);
}

#zoom-level {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  width: 16px;
  height: 118px;
  background: transparent;
}

.session-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.56rem 0.75rem;
}

.session-footer span {
  border: 1px solid rgba(52, 75, 113, 0.82);
  border-radius: 9px;
  background: rgba(12, 20, 37, 0.85);
  padding: 0.37rem 0.58rem;
  font-size: 0.73rem;
  color: #c8d5ef;
}

.architecture-flow {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.architecture-flow article {
  border: 1px solid rgba(54, 78, 117, 0.8);
  border-radius: 10px;
  background: rgba(9, 17, 31, 0.7);
  padding: 0.68rem;
}

.directory-box {
  margin-top: 0.7rem;
  border: 1px solid rgba(57, 82, 124, 0.75);
  border-radius: 11px;
  background: rgba(9, 17, 31, 0.78);
  padding: 0.7rem;
}

.directory-box h3 {
  margin-bottom: 0.55rem;
}

.structure-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.structure-card {
  border: 1px solid rgba(63, 89, 129, 0.84);
  border-radius: 10px;
  background:
    linear-gradient(140deg, rgba(148, 47, 79, 0.14), transparent 45%),
    rgba(9, 16, 30, 0.84);
  padding: 0.62rem;
}

.structure-card h4 {
  margin: 0 0 0.52rem;
  font-size: 0.86rem;
  color: #ecf2ff;
  text-transform: none;
  letter-spacing: 0.02em;
}

.file-tree,
.file-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-tree ul {
  margin-left: 0.75rem;
  padding-left: 0.65rem;
  border-left: 1px dashed rgba(72, 100, 144, 0.62);
}

.file-tree li {
  position: relative;
  margin: 0.24rem 0;
}

.file-tree ul > li::before {
  content: "";
  position: absolute;
  left: -0.65rem;
  top: 0.74rem;
  width: 0.55rem;
  border-top: 1px dashed rgba(72, 100, 144, 0.62);
}

.tree-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 8px;
  padding: 0.18rem 0.34rem;
  background: rgba(14, 25, 44, 0.76);
  border: 1px solid rgba(52, 76, 113, 0.68);
}

.tree-name {
  color: #d7e3fb;
  font-size: 0.73rem;
  word-break: break-word;
}

.type-badge {
  min-width: 36px;
  text-align: center;
  border-radius: 999px;
  padding: 0.09rem 0.34rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.type-badge.dir {
  color: #fbe1ad;
  border-color: rgba(211, 158, 64, 0.62);
  background: rgba(97, 67, 20, 0.4);
}

.type-badge.py {
  color: #b5dbff;
  border-color: rgba(81, 136, 191, 0.62);
  background: rgba(29, 53, 88, 0.52);
}

.type-badge.js {
  color: #fff0b5;
  border-color: rgba(194, 162, 68, 0.64);
  background: rgba(92, 78, 30, 0.45);
}

.type-badge.json {
  color: #ffd2c0;
  border-color: rgba(198, 105, 75, 0.65);
  background: rgba(99, 45, 30, 0.52);
}

.type-badge.css {
  color: #cbddff;
  border-color: rgba(100, 129, 197, 0.66);
  background: rgba(32, 51, 94, 0.5);
}

.type-badge.html {
  color: #ffd5cb;
  border-color: rgba(204, 94, 67, 0.66);
  background: rgba(97, 38, 27, 0.54);
}

.type-badge.png {
  color: #ffdff8;
  border-color: rgba(187, 86, 150, 0.66);
  background: rgba(92, 35, 82, 0.52);
}

.type-badge.lock {
  color: #dcfbe0;
  border-color: rgba(96, 168, 102, 0.65);
  background: rgba(26, 74, 30, 0.5);
}

.type-badge.npm {
  color: #ffcccf;
  border-color: rgba(194, 77, 89, 0.66);
  background: rgba(99, 27, 37, 0.52);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.stack-grid article {
  border: 1px solid rgba(58, 83, 124, 0.85);
  border-radius: 11px;
  background:
    linear-gradient(140deg, rgba(145, 46, 76, 0.14), transparent 45%),
    rgba(11, 20, 36, 0.82);
  padding: 0.76rem;
}

.stack-grid h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.stack-grid li {
  margin-bottom: 0.42rem;
  color: #becce8;
  font-size: 0.77rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
}

.gallery-slot {
  border: 1px solid rgba(58, 83, 124, 0.82);
  border-radius: 11px;
  background: rgba(8, 16, 30, 0.82);
  padding: 0.62rem;
  margin: 0;
}

.gallery-image {
  width: 100%;
  height: 215px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1px solid rgba(73, 99, 143, 0.72);
  background: rgba(9, 16, 30, 0.9);
  cursor: zoom-in;
  transition: transform 130ms ease, border-color 130ms ease;
}

.gallery-image:hover,
.gallery-image:focus-visible {
  transform: scale(1.02);
  border-color: rgba(184, 73, 106, 0.85);
}

.picture-slot {
  border: 1px dashed rgba(173, 65, 98, 0.72);
  border-radius: 8px;
  min-height: 145px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #9faed0;
  background:
    linear-gradient(140deg, rgba(162, 48, 79, 0.13), transparent 55%),
    rgba(10, 18, 35, 0.82);
  font-size: 0.73rem;
  padding: 0.7rem;
}

.gallery-slot figcaption {
  margin-top: 0.58rem;
  color: #b0bfdd;
  font-size: 0.7rem;
}

.gallery-slot code {
  color: #dae6ff;
  font-size: 0.68rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 2rem 1.2rem;
  background: rgba(3, 7, 15, 0.92);
  backdrop-filter: blur(4px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-image {
  max-width: min(1200px, 92vw);
  max-height: 82vh;
  border-radius: 10px;
  border: 1px solid rgba(82, 109, 153, 0.78);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.58);
  object-fit: contain;
  background: #020712;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(89, 114, 160, 0.76);
  background: rgba(17, 29, 49, 0.95);
  color: #ebf3ff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: rgba(191, 74, 108, 0.8);
}

.lightbox-caption {
  margin-top: 0.75rem;
  color: #c6d4ee;
  font-size: 0.82rem;
}

.download-card {
  display: flex;
  flex-wrap: wrap;
  gap: 0.56rem;
  border: 1px solid rgba(65, 92, 135, 0.86);
  border-radius: 12px;
  padding: 0.78rem;
  background:
    linear-gradient(140deg, rgba(149, 49, 81, 0.14), transparent 45%),
    rgba(10, 19, 35, 0.83);
}

.resource-list {
  display: grid;
  gap: 0.52rem;
}

.resource-row {
  border: 1px solid rgba(59, 84, 125, 0.82);
  border-radius: 11px;
  background:
    linear-gradient(140deg, rgba(142, 46, 78, 0.14), transparent 40%),
    rgba(9, 17, 33, 0.84);
  padding: 0.68rem 0.72rem;
  display: grid;
  gap: 0.26rem;
  transition: transform 130ms ease, border-color 130ms ease;
}

.resource-row:hover,
.resource-row:focus-visible {
  border-color: rgba(183, 72, 104, 0.75);
  transform: translateY(-1px);
}

.resource-label {
  color: #ebf1ff;
  font-size: 0.83rem;
  font-weight: 600;
}

.resource-desc {
  color: #adbcda;
  font-size: 0.74rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0 1.5rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.76rem;
}

.site-footer a {
  color: #d6e1f6;
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1320px) {
  .activity-heat {
    width: 220px;
  }

  .session-heading h3 {
    font-size: 1.7rem;
  }
}

@media (max-width: 1120px) {
  .architecture-flow,
  .stack-grid,
  .gallery-grid,
  .structure-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-header {
    flex-direction: column;
  }

  .session-controls {
    justify-content: flex-start;
  }

  .host-drawer,
  .settings-drawer {
    width: min(340px, 92vw);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-wrap: wrap;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-actions,
  .hero-metrics,
  .feature-grid,
  .two-col,
  .stack-grid,
  .gallery-grid,
  .structure-showcase {
    grid-template-columns: 1fr;
  }

  .session-canvas-shell {
    min-height: 620px;
  }

  .activity-heat {
    position: static;
    width: auto;
    margin: 0.7rem;
  }

  .session-map {
    top: 160px;
  }

  .zoom-rail {
    bottom: 14px;
  }

  .host-drawer,
  .settings-drawer {
    top: 160px;
  }

  .host-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  main,
  .site-header,
  .site-footer {
    width: min(1200px, 96vw);
  }

  .session-canvas-shell {
    min-height: 560px;
  }

  .session-map {
    top: 188px;
  }

  .host-drawer,
  .settings-drawer {
    top: 188px;
    width: 100%;
  }

  .session-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
