@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-panel: #162033;
  --line: #2a3a55;
  --text: #e8eef8;
  --muted: #93a4c0;
  --accent: #3ecf8e;
  --accent-dim: #1f8f5f;
  --cisco: #49c2ff;
  --hyperv: #7aa2ff;
  --warn: #f0b429;
  --danger: #ff6b6b;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(62, 207, 142, 0.14), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(73, 194, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #0a101c 0%, #0b1220 40%, #0d1526 100%);
  background-attachment: fixed;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--cisco));
  color: #061018;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1rem 0 3rem;
}

.choice-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(160deg, rgba(22, 32, 51, 0.95), rgba(12, 18, 32, 0.92));
  box-shadow: var(--shadow);
  padding: 1.6rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.choice-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(10px);
  pointer-events: none;
}

.choice-card.cisco::before {
  background: var(--cisco);
}

.choice-card.hyperv::before {
  background: var(--hyperv);
}

.choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.choice-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0b1220;
  background: var(--accent);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1rem;
}

.choice-card.cisco .badge {
  background: var(--cisco);
}

.choice-card.hyperv .badge {
  background: var(--hyperv);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.4rem;
  font-weight: 600;
}

.page-header {
  padding: 2rem 0 1.25rem;
}

.page-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 50rem;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.panel {
  background: rgba(18, 26, 43, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 0.85rem;
  max-height: calc(100vh - 8rem);
  overflow: auto;
  position: sticky;
  top: 1rem;
}

.sidebar h3,
.form-panel h3,
.output-panel h3,
.setup-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.topic-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.topic-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}

.topic-btn.active {
  background: rgba(73, 194, 255, 0.12);
  border-color: rgba(73, 194, 255, 0.35);
  color: var(--cisco);
}

.main-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-panel,
.output-panel,
.setup-panel {
  padding: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d1524;
  color: var(--text);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  outline: none;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 0.9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(73, 194, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(73, 194, 255, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2aa875);
  color: #04120c;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--text);
}

.btn-copy {
  background: rgba(73, 194, 255, 0.14);
  border-color: rgba(73, 194, 255, 0.35);
  color: var(--cisco);
}

.output-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 13, 24, 0.45);
}

.stack-item span {
  font-size: 0.95rem;
}

.stack-item .stack-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-right: 0.5rem;
}

.btn-tiny {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-tiny:hover {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.45);
}

.btn-accent {
  background: rgba(62, 207, 142, 0.16);
  border-color: rgba(62, 207, 142, 0.4);
  color: var(--accent);
}

.empty-stack {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.output-code {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  background: #070d18;
  border: 1px solid #1d2a41;
  color: #d7ffe9;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow: auto;
  white-space: pre;
  min-height: 280px;
  max-height: 60vh;
}

.hint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.setup-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.setup-list li {
  margin: 0.45rem 0;
}

.setup-list code,
.inline-code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--cisco);
  background: rgba(73, 194, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.path-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.path-item {
  border: 1px dashed rgba(122, 162, 255, 0.35);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: rgba(122, 162, 255, 0.05);
}

.path-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.os-grid {
  display: grid;
  gap: 0.85rem;
}

.os-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.os-pick {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(7, 13, 24, 0.55);
  color: var(--text);
  border-radius: 12px;
  padding: 1rem 0.9rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.os-pick:hover,
.os-pick.active {
  border-color: rgba(122, 162, 255, 0.55);
  background: rgba(122, 162, 255, 0.1);
  transform: translateY(-2px);
}

.os-pick strong {
  font-size: 1rem;
}

.os-pick span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.composer.hidden,
.hidden {
  display: none !important;
}

.composer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.composer-head h3 {
  margin: 0;
}

.mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mode-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.mode-tab.active {
  color: #0b1220;
  background: var(--hyperv);
  border-color: transparent;
  font-weight: 600;
}

.domain-fields {
  grid-column: 1 / -1;
  border: 1px solid rgba(122, 162, 255, 0.25);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(122, 162, 255, 0.05);
}

.full-span {
  grid-column: 1 / -1;
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.plan-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 13, 24, 0.45);
}

.plan-item .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.plan-item .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.12);
  color: var(--accent);
  margin-right: 0.35rem;
}

.plan-item .tag.warn {
  background: rgba(240, 180, 41, 0.12);
  color: var(--warn);
}

.plan-item .tag.dc {
  background: rgba(122, 162, 255, 0.14);
  color: var(--hyperv);
}

.os-row {
  display: grid;
  grid-template-columns: 1.3fr 90px 1fr 1fr 1.1fr;
  gap: 0.75rem;
  align-items: end;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 13, 24, 0.45);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #123524;
  color: #b8ffd7;
  border: 1px solid #2f7a55;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.footer-note {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0 0 2rem;
}

@media (max-width: 900px) {
  .choice-grid,
  .layout,
  .form-grid,
  .os-row {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }
}

.guide {
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.guide-section {
  padding: 1.25rem 1.35rem;
}

.guide-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.guide-section h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--cisco);
}

.guide-section ol,
.guide-section ul {
  margin: 0.4rem 0 0.7rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.guide-section li {
  margin: 0.4rem 0;
}

.guide-section p {
  margin: 0.45rem 0;
  color: var(--muted);
}

.guide-section strong {
  color: var(--text);
}

.callout {
  border-left: 3px solid var(--warn);
  background: rgba(240, 180, 41, 0.08);
  border-radius: 0 10px 10px 0;
  padding: 0.85rem 1rem;
  margin: 0.85rem 0;
  color: var(--text);
}

.callout.danger {
  border-left-color: var(--danger);
  background: rgba(255, 107, 107, 0.08);
}

.callout.ok {
  border-left-color: var(--accent);
  background: rgba(62, 207, 142, 0.08);
}

.guide pre.cmd {
  margin: 0.6rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #070d18;
  border: 1px solid #1d2a41;
  color: #d7ffe9;
  font-family: var(--mono);
  font-size: 0.84rem;
  overflow: auto;
  white-space: pre-wrap;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--accent);
}

a.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
