:root {
  /* Palette: Layout 2 - Claro Tecnico (Padrao) */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --surface-code: #0f172a;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-code: #e2e8f0;

  --accent: #0369a1;
  --accent-hover: #075985;
  --accent-soft: #e0f2fe;
  --accent-text: #0369a1;

  --ok: #047857;
  --ok-soft: #d1fae5;
  --warn: #b45309;
  --err: #b91c1c;
  --err-soft: #fee2e2;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);

  /* Strict Type Scale (6 sizes total) */
  --fs-xs: 0.75rem;      /* 12px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-md: 1rem;         /* 16px */
  --fs-lg: 1.1875rem;    /* 19px */
  --fs-xl: 1.75rem;      /* 28px */
  --fs-2xl: clamp(2rem, 3.5vw, 2.75rem);

  /* Strict Border Radii (4 values total) */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  --sans: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
}

[data-theme="graphite"] {
  /* Palette: Layout 3 - Grafite Fosco Neutro (Zero neon / zero azul-marinho) */
  --bg: #0b0d10;
  --surface: #13161b;
  --surface-alt: #1a1e25;
  --surface-code: #07080a;
  --border: #262b34;
  --border-strong: #363d49;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-code: #e5e7eb;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.16);
  --accent-text: #93c5fd;

  --ok: #10b981;
  --ok-soft: rgba(16, 185, 129, 0.15);
  --warn: #f59e0b;
  --err: #ef4444;
  --err-soft: rgba(239, 68, 68, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

code, pre {
  font-family: var(--mono);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: var(--fs-md);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
}

.brand-ver {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: var(--r-sm);
}

.brand-beta {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid var(--ok);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--surface-alt);
}

.btn-sm {
  padding: 8px 14px;
}

/* Split Hero */
.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: var(--fs-2xl);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: var(--fs-md);
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-specs {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Windows Mockup (Right Hero) */
.win-showcase {
  position: relative;
  padding-bottom: 36px;
}

.win-window {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.win-dots {
  display: flex;
  gap: 6px;
}

.win-dots span {
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--border-strong);
}

.win-body {
  padding: 16px;
}

.win-group-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.win-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.win-row:last-child {
  border-bottom: none;
}

.win-row .k {
  color: var(--text-muted);
}

.win-row .v {
  font-weight: 600;
}

.v-ok { color: var(--ok); }
.v-accent { color: var(--accent-text); }

/* Floating Windows Tray Context Menu */
.win-tray-menu {
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 268px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  font-size: var(--fs-xs);
}

.tray-menu-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.tray-mini-dot {
  width: 16px;
  height: 16px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}

.tray-menu-item {
  padding: 5px 8px;
  border-radius: var(--r-sm);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tray-menu-item.highlight {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  max-width: 680px;
  margin-bottom: 34px;
}

.section-header .eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--fs-md);
}

/* Interactive Architecture Simulator */
.sim-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sim-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mode-pill.active {
  background: var(--accent);
  border-color: var(--accent);
}

.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.mode-pill.active .mode-tab {
  color: #ffffff;
  padding-right: 8px;
}

.mode-help-btn {
  display: none;
  place-items: center;
  width: 21px;
  height: 21px;
  margin-right: 9px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.mode-pill.active .mode-help-btn {
  display: inline-grid;
}

.mode-help-btn:hover {
  background: #ffffff;
  color: var(--accent);
}

.context-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--text);
  transition: border-color 0.15s ease;
}

.context-bar:hover {
  border-color: var(--accent);
}

.context-bar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.context-k {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.context-v {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--accent-text);
}

.context-help-badge {
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.context-bar:hover .context-help-badge {
  border-color: var(--accent);
  color: var(--accent-text);
}

.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-intruder {
  background: var(--surface);
  border: 1px solid var(--err);
  color: var(--err);
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-intruder.active {
  background: var(--err);
  color: #ffffff;
}

.btn-intruder:disabled {
  border-color: var(--border-strong);
  color: var(--text-muted);
  background: var(--surface-alt);
  opacity: 0.65;
  cursor: not-allowed;
}

.sim-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.sim-step {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-step .num {
  width: 22px;
  height: 22px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.sim-step.active {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-soft);
}

.sim-step.active .num {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.sim-step.done {
  border-color: var(--ok);
  color: var(--ok);
  background: var(--ok-soft);
}

.sim-step.done .num {
  background: var(--ok);
  border-color: var(--ok);
  color: #ffffff;
}

.sim-step.blocked {
  border-color: var(--err);
  color: var(--err);
  background: var(--err-soft);
}

.sim-step.blocked .num {
  background: var(--err);
  border-color: var(--err);
  color: #ffffff;
}

.sim-stage {
  display: grid;
  grid-template-columns: 1fr 110px 1.05fr 110px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stage-panel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  min-height: 262px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease;
}

.stage-panel.state-accent { border-color: var(--accent); }
.stage-panel.state-ok { border-color: var(--ok); }
.stage-panel.state-err { border-color: var(--err); }

.stage-label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.src-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 11px;
  margin-bottom: 8px;
}

.src-card.sending {
  border-color: var(--accent);
}

.src-card code {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
}

.src-card span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.pipe-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pipe-text {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}

.pipe-svg {
  width: 100%;
  height: 36px;
  overflow: visible;
}

.pipe-base {
  stroke: var(--border-strong);
  stroke-width: 2.5;
  fill: none;
}

.pipe-active {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-dasharray: 7 9;
  fill: none;
  opacity: 0.25;
}

.pipe-active.flowing {
  opacity: 1;
  animation: pipeMove 0.75s linear infinite;
}

.pipe-active.blocked {
  stroke: var(--err);
  opacity: 1;
  stroke-dasharray: 4 5;
  animation: none;
}

@keyframes pipeMove {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

.pipe-dot {
  fill: var(--ok);
  opacity: 0;
}

.pipe-dot.flowing {
  opacity: 1;
  animation: dotMove 1.1s linear infinite;
}

@keyframes dotMove {
  0% { transform: translateX(0px); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(92px); opacity: 0; }
}

.tray-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 12px;
  margin-bottom: 10px;
}

.tray-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tray-circle {
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: var(--fs-sm);
}

.tray-circle.syncing { background: var(--ok); }
.tray-circle.error { background: var(--err); }

.tray-sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.engine-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: var(--fs-sm);
}

.engine-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.engine-row code {
  color: var(--accent-text);
  font-size: var(--fs-xs);
}

.pbar {
  height: 8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-top: 6px;
}

.pbar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.28s ease;
}

.pbar-fill.ok { background: var(--ok); }
.pbar-fill.blocked { background: var(--err); }

.dest-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  font-size: var(--fs-sm);
}

.hwid-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: 8px;
}

.hwid-tag.wait { background: var(--accent-soft); color: var(--accent-text); }
.hwid-tag.ok { background: var(--ok-soft); color: var(--ok); }
.hwid-tag.fail { background: var(--err-soft); color: var(--err); }

.dest-mono {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  word-break: break-all;
  margin-top: 4px;
}

.stage-foot {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 10px;
}

.sim-bottom {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
}

.sim-console {
  background: var(--surface-code);
  color: var(--text-code);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  height: 124px;
  overflow-y: auto;
}

.log-line { margin-bottom: 4px; }
.log-info { color: #7dd3fc; }
.log-ok { color: #6ee7b7; }
.log-err { color: #fca5a5; }

.sim-toast {
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-toast.toast-ok { border-left-color: var(--ok); }
.sim-toast.toast-err { border-left-color: var(--err); }

.toast-title {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 4px;
}

.toast-body {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Bento + Capabilities Matrix (No 3x3 emoji grid!) */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.bento-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bento-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.bento-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.mini-terminal {
  background: var(--surface-code);
  color: var(--text-code);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  line-height: 1.55;
  overflow-x: auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spec-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.spec-item .icon {
  color: var(--ok);
  margin-top: 2px;
}

.spec-item strong {
  display: block;
  font-size: var(--fs-md);
  margin-bottom: 3px;
}

.spec-item span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Manual de Uso (Timeline 4 passos) */
.manual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.manual-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}

.manual-num {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  display: inline-block;
  margin-bottom: 12px;
}

.manual-step h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 8px;
}

.manual-step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Modo Silent & Download */
.deploy-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.panel-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-card > p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cmd-wrap {
  background: var(--surface-code);
  color: var(--text-code);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: var(--fs-sm);
  overflow-x: auto;
  margin-bottom: 12px;
}

.flags-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.flags-list code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
}

.download-card {
  border-color: var(--accent);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: var(--fs-sm);
}

.meta-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.meta-table td:first-child {
  color: var(--text-muted);
  width: 125px;
}

.hash-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  word-break: break-all;
  margin-bottom: 16px;
}

.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover {
  border-color: var(--accent);
}

footer {
  padding: 32px 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  text-align: center;
}

/* Floating Utility Bar (Flags + Dark Mode Icon + Close) */
.floating-bar {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}

.floating-bar.is-hidden {
  display: none;
}

.flag-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.flag-btn:hover {
  transform: scale(1.06);
}

.flag-btn.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.flag-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  margin: 0 2px;
}

.bar-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.bar-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.bar-close-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.bar-close-btn:hover {
  background: var(--surface-alt);
  color: var(--text);
}

/* Architecture Explanation Modal */
.arch-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.arch-modal-backdrop.is-open {
  display: flex;
}

.arch-modal {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.arch-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.arch-modal-head h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
}

.arch-modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px 0;
}

.arch-modal-tab {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.arch-modal-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.arch-modal-body {
  padding: 18px 22px 22px;
}

.arch-diagram-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 18px;
}

.arch-diagram-box svg {
  width: 100%;
  height: auto;
  display: block;
}

.arch-summary {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: var(--fs-sm);
  margin-bottom: 16px;
}

.arch-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-text);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.arch-block {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.arch-block h4 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 8px;
}

.arch-block p,
.arch-block li {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.arch-block ul,
.arch-block ol {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.arch-modal-foot {
  display: flex;
  justify-content: flex-end;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--border);
}

@media (max-width: 700px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .bento-wide,
  .bento-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  .sim-stage {
    grid-template-columns: 1fr;
  }
  .pipe-col {
    transform: rotate(90deg);
    height: 36px;
    margin: 4px 0;
  }
  .manual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav-inner {
    height: auto;
    min-height: 68px;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand {
    flex-wrap: wrap;
    gap: 6px 8px;
  }
  .nav-links {
    display: none;
  }
  .sim-steps,
  .specs-grid,
  .manual-grid,
  .sim-bottom {
    grid-template-columns: 1fr;
  }
  .win-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .win-tray-menu {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}
