:root {
  color-scheme: dark;
  --bg: #070912;
  --surface: #101522;
  --surface-2: #151c2d;
  --text: #f4f7ff;
  --muted: #aab4c8;
  --accent: #a78bfa;
  --accent-2: #22d3a6;
  --danger: #fb7185;
  --border: rgba(167, 139, 250, 0.22);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(124, 58, 237, 0.3), transparent 36rem),
    radial-gradient(circle at 92% 12%, rgba(34, 211, 166, 0.12), transparent 28rem),
    var(--bg);
  line-height: 1.65;
}

a {
  color: #c4b5fd;
}

a:hover {
  color: #ddd6fe;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 99;
  padding: 0.6rem 1rem;
  color: #090b12;
  background: var(--accent-2);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 9, 18, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  min-height: 4.5rem;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.5);
  border-radius: 0.75rem;
  color: #070912;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 28px rgba(167, 139, 250, 0.3);
  font: 800 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

.button,
.nav-links .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: #090b12;
  background: linear-gradient(135deg, #c4b5fd, #5eead4);
  box-shadow: 0 12px 28px rgba(34, 211, 166, 0.12);
  font-weight: 760;
  text-decoration: none;
}

.button:hover {
  color: #090b12;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.button.secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(16, 21, 34, 0.9);
  box-shadow: none;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-banner {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  margin: 2.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
}

.hero {
  display: grid;
  min-height: 68vh;
  padding: 7rem 0 5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-2);
  font: 700 0.78rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  letter-spacing: -0.055em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-top: 0;
}

.lede {
  max-width: 62ch;
  margin: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: rgba(11, 15, 26, 0.9);
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  padding: 0.85rem 1rem;
  gap: 0.42rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #fb7185;
}

.terminal-bar span:nth-child(2) {
  background: #fbbf24;
}

.terminal-bar span:nth-child(3) {
  background: #34d399;
}

.terminal pre {
  min-height: 18rem;
  margin: 0;
  padding: 1.5rem;
  color: #d8b4fe;
  white-space: pre-wrap;
  font: 500 0.88rem/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal .ok {
  color: #5eead4;
}

.section {
  padding: 5rem 0;
}

.section-intro {
  max-width: 65ch;
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(21, 28, 45, 0.9), rgba(12, 16, 27, 0.92));
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.1);
  font: 650 0.72rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.table-wrap + .actions,
.table-wrap + h3 {
  margin-top: 2rem;
}

.section h3 + .table-wrap {
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(11, 15, 26, 0.72);
}

th,
td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

th {
  color: #ddd6fe;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

td code,
.prose code {
  color: #5eead4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 4rem 0 6rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(34, 211, 166, 0.08));
}

.cta h2,
.cta p {
  margin: 0;
}

.cta p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.prose {
  width: min(800px, 100%);
  padding: 5rem 0 7rem;
}

.wide-prose {
  width: min(1040px, 100%);
}

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

.tool-grid .card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.course-card {
  margin: 1.25rem 0;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(21, 28, 45, 0.88), rgba(10, 14, 24, 0.92));
}

.course-card h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.course-card h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: #ddd6fe;
}

.course-card pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: #5eead4;
  background: #070912;
}

.prose h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.prose h2 {
  margin-top: 3rem;
  font-size: 1.55rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.notice {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent-2);
  border-radius: 0.3rem 0.8rem 0.8rem 0.3rem;
  background: rgba(34, 211, 166, 0.07);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  min-height: 7rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .cta,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0.7rem 0;
    align-items: flex-start;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    gap: 0.65rem;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  h1 {
    font-size: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

