:root {
  --bg-0: #0b1020;
  --bg-1: #121b33;
  --panel: rgba(15, 24, 45, 0.86);
  --panel-strong: rgba(11, 18, 34, 0.96);
  --ink: #f2f5ff;
  --muted: #b3bdd7;
  --accent: #7af0c1;
  --accent-strong: #33d79a;
  --hot: #ffd166;
  --border: rgba(146, 164, 205, 0.32);
  --shadow: 0 18px 36px rgba(3, 8, 18, 0.45);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 10% 5%, #1f2f54 0%, transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(49, 116, 210, 0.38) 0%, transparent 30%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 52%, #0d1630 100%);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.wrap {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 2.75rem 0 1.5rem;
  animation: fade-up 420ms ease-out both;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.76rem;
  font-family: "Menlo", "Consolas", "Liberation Mono", monospace;
}

.site-header h1 {
  margin: 0.45rem 0 0;
  font-family: "Franklin Gothic Medium", "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  font-size: clamp(2rem, 5.6vw, 4rem);
  line-height: 0.98;
  max-width: 16ch;
  text-wrap: balance;
}

.intro {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0f1b35;
}

code {
  font-family: "Menlo", "Consolas", "Liberation Mono", monospace;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-meta span {
  border: 1px solid var(--border);
  background: rgba(18, 29, 54, 0.7);
  color: #d8e2ff;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  font-size: 0.78rem;
  font-family: "Menlo", "Consolas", "Liberation Mono", monospace;
}

.layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
  grid-template-columns: 1fr;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  animation: fade-up 500ms ease-out both;
}

.panel h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  font-family: "Franklin Gothic Medium", "Arial Narrow Bold", "Helvetica Neue", sans-serif;
}

.install pre {
  margin: 0.65rem 0 0;
  border: 1px solid rgba(114, 133, 177, 0.3);
  border-radius: 12px;
  background: #0a1226;
  color: #dce6ff;
  padding: 0.75rem;
  overflow: auto;
}

.overview ol {
  margin: 0;
  padding-left: 1.2rem;
  color: #dbe4ff;
}

.overview li + li {
  margin-top: 0.25rem;
}

.skills-head,
.viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.badge {
  border-radius: 999px;
  background: rgba(122, 240, 193, 0.14);
  border: 1px solid rgba(122, 240, 193, 0.4);
  color: #cdfde8;
  font-size: 0.78rem;
  font-family: "Menlo", "Consolas", "Liberation Mono", monospace;
  padding: 0.22rem 0.6rem;
}

.search {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.search span {
  font-size: 0.82rem;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(6, 12, 25, 0.7);
  color: var(--ink);
  padding: 0.58rem 0.7rem;
  font: inherit;
}

.search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.skill-list {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.7rem;
  min-height: 272px;
}

.skill-btn {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 31, 59, 0.95) 0%, rgba(11, 20, 39, 0.95) 100%);
  color: #ecf1ff;
  text-align: left;
  border-radius: 12px;
  padding: 0.72rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.skill-btn:hover,
.skill-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(122, 240, 193, 0.6);
  box-shadow: 0 10px 18px rgba(1, 6, 16, 0.45);
  outline: none;
}

.skill-btn.active {
  border-color: rgba(255, 209, 102, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.72);
}

.skill-btn .title {
  display: block;
  margin-bottom: 0.34rem;
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}

.skill-btn .desc {
  display: block;
  color: #b5c4ea;
  font-size: 0.85rem;
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

button {
  border: 1px solid rgba(122, 240, 193, 0.5);
  background: linear-gradient(170deg, rgba(34, 77, 69, 0.95) 0%, rgba(26, 64, 56, 0.9) 100%);
  color: #eafff6;
  border-radius: 10px;
  padding: 0.48rem 0.78rem;
  font: 600 0.9rem "Avenir Next", "Segoe UI", sans-serif;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  border-color: var(--accent);
  background: linear-gradient(170deg, rgba(45, 102, 91, 1) 0%, rgba(34, 86, 76, 1) 100%);
  outline: none;
}

.selected-skill {
  margin: 0;
  color: #ccd8f7;
  font-size: 0.9rem;
  min-height: 1.35rem;
}

.viewer-head h2 {
  margin-bottom: 0.3rem;
}

.code-view {
  margin: 0.8rem 0 0;
  border-radius: 12px;
  border: 1px solid rgba(113, 134, 184, 0.36);
  background: var(--panel-strong);
  color: #e4ecff;
  padding: 1rem;
  min-height: 300px;
  max-height: 560px;
  overflow: auto;
  font-family: "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 0.84rem;
}

.status {
  min-height: 1.35rem;
  margin: 0.55rem 0 0;
  color: var(--hot);
  font-size: 0.82rem;
}

.site-footer {
  padding: 0.45rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "install overview"
      "skills skills"
      "viewer viewer";
  }

  .install {
    grid-area: install;
  }

  .overview {
    grid-area: overview;
  }

  .skills {
    grid-area: skills;
  }

  .viewer {
    grid-area: viewer;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 2rem;
  }

  .site-header h1 {
    font-size: clamp(1.75rem, 12vw, 2.35rem);
  }

  .actions button {
    flex: 1;
  }
}
