#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 18px;
  padding: 100px max(80px, calc(50% - 656px)) 80px max(112px, calc(50% - 624px));
  align-items: center;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-visual .term-stats { display: block; }

.hero-content .hero-actions { margin-bottom: 0; gap: 16px; align-items: center; }
.hero-content .hero-actions .btn-primary { margin-top: 2px; }
.hero-content .hero-actions .btn-ghost { line-height: 1; }

h1 .h1-punch { font-size: 1.12em; }

.term-stats {
  background: #030c16;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 18px 22px;
  display: inline-block;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.term-prompt {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.term-row {
  display: flex;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
}

.term-key { color: #52739e; }
.term-sep { color: #52739e; }
.term-val { color: var(--accent); }

.topo-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.topo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.topo-title {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}

.topo-badge {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.topo-body {
  position: relative;
  height: 300px;
}

.topo-body svg { position: absolute; inset: 0; }

.topo-body--table {
  height: auto;
  position: static;
  padding: 16px 20px;
}

.topo-switch-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.topo-vlan-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
}

.topo-vlan-table thead tr { border-bottom: 1px solid var(--border); }

.topo-vlan-table th {
  text-align: left;
  color: #52739e;
  padding: 0 10px 8px 0;
  font-weight: 400;
}

.topo-vlan-table th:last-child { padding-right: 0; }

.topo-vlan-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.topo-vlan-table tbody tr:last-child { border-bottom: none; }

.topo-vlan-table td { padding: 6px 10px 6px 0; }
.topo-vlan-table td:last-child { padding-right: 0; }
.topo-vlan-table td.port  { color: var(--muted); }
.topo-vlan-table td.vid   { color: var(--accent); }
.topo-vlan-table td.vname { color: var(--text); }

.topo-node {
  position: absolute;
  transform: translateX(-50%);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.topo-node.gateway {
  background: var(--accent-glow);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--accent);
}

.topo-log {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  background: #020810;
}

.topo-log-line {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

.topo-log-line.ok { color: #4ade80; }
.topo-log-arrow { color: var(--dim); margin-right: 4px; }

#features {
  padding: 0 max(80px, calc(50% - 656px)) 120px max(112px, calc(50% - 624px));
}

.features-header { margin-bottom: 56px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-cell {
  background: var(--bg1);
  padding: 36px;
  transition: background 0.2s;
}

.feature-cell:hover { background: var(--bg2); }

.feature-num {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.2);
  letter-spacing: 0.05em;
}

#outputs {
  border-top: 1px solid var(--border);
  padding: 120px max(80px, calc(50% - 656px)) 120px max(112px, calc(50% - 624px));
}

.outputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 56px;
}

.output-panel { background: var(--bg1); padding: 32px; }

.output-panel-header {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.output-file-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.output-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.output-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }

.output-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.output-indicator.active  { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.output-indicator.inactive { background: var(--dim); }

.term-output {
  background: #020810;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.9;
  padding: 24px 28px;
  border-radius: 0;
}

.term-output-prompt {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.term-output-line { display: flex; gap: 10px; }
.term-output-line .arrow { color: var(--dim); }
.term-output-line .msg   { color: var(--muted); }
.term-output-line .msg.ok   { color: #4ade80; }
.term-output-line .msg.info { color: var(--accent); }
.term-output-line .time  { color: var(--dim); margin-left: auto; }
.term-output-line--gap   { margin-top: 8px; }

@media (max-width: 900px) {
  #hero {
    grid-template-columns: 1fr;
    padding: 72px 20px 56px;
    gap: 36px;
    min-height: unset;
  }

  .hero-content .hero-actions { gap: 12px; }

  #features {
    padding: 0 20px 72px;
  }

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

  #outputs {
    padding: 72px 20px;
  }

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

  .term-output { border-radius: 0; }
}
