:root {
  color-scheme: dark;
  --bg: #070513;
  --bg-accent: #140b2f;
  --panel: #1b1340;
  --panel-strong: #261b52;
  --panel-elevated: #332266;
  --text: #f8f4ff;
  --muted: #d3c8fa;
  --accent: #7b4dff;
  --accent-strong: #a07dff;
  --accent-secondary: #2bd8ff;
  --accent-tertiary: #68f0c8;
  --border: rgba(139, 108, 255, 0.42);
  --accent-soft: #9e8cff;
  --link: #d8ccff;
  --link-hover: #ffffff;
  --link-visited: #caa4ff;
  --focus-ring: #8cf4ff;
  --button-primary-bg: #5f35d5;
  --button-primary-bg-hover: #532dc0;
  --button-primary-text: #f8f4ff;
  --button-primary-border: #9f87ff;
  --color-bg: var(--bg);
  --color-surface: var(--panel);
  --color-border: var(--border);
  --color-muted: var(--muted);
  --color-accent: var(--link);
  --color-cyan: var(--accent-secondary);
  --shadow: 0 28px 70px rgba(2, 8, 23, 0.45);
  --surface-glow: rgba(123, 77, 255, 0.28);
  --surface-glow-soft: rgba(43, 216, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(124, 77, 255, 0.3), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(36, 214, 255, 0.2), transparent 24%),
    linear-gradient(140deg, #060816 0%, #120a2e 45%, #050611 100%);
  color: var(--text);
  font-family: Inter, Segoe UI, Roboto, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent);
}

main {
  flex: 1 0 auto;
  padding-top: 2.5rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

a:visited {
  color: var(--link-visited);
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: var(--panel-strong);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--focus-ring);
  border-radius: 0.5rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 1rem;
}

.corner-badge {
  position: fixed;
  top: calc(0.65rem + env(safe-area-inset-top, 0px));
  right: calc(0.65rem + env(safe-area-inset-right, 0px));
  z-index: 900;
  pointer-events: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--accent-secondary);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(36, 214, 255, 0.18), rgba(38, 27, 82, 0.96));
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(2, 8, 23, 0.38);
}

.visible-mobile {
  display: none;
}

@media (max-width: 600px) {
  .corner-badge {
    top: calc(0.5rem + env(safe-area-inset-top, 0px));
    right: calc(0.5rem + env(safe-area-inset-right, 0px));
    font-size: 0.68rem;
    padding: 0.25rem 0.52rem;
  }

  .footer-meta-link {
    flex-basis: 100%;
  }

  .visible-mobile {
    display: inline-block;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(10, 12, 28, 0.96), rgba(28, 21, 61, 0.96));
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.24);
}

.site-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  margin-top: 4rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.footer-meta-link {
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--link-hover);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.hero {
  margin: 3rem 0 2rem;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(19, 16, 45, 0.96), rgba(32, 24, 66, 0.92));
  box-shadow: var(--shadow);
}

.hero-nav {
  margin-top: 1.2rem;
}

.hero-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(124, 77, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.26), rgba(36, 214, 255, 0.16));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: var(--link-hover);
  transform: translateY(-1px);
}

.explore-links {
  margin: 1rem 0 1.5rem;
}

.explore-links-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.explore-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.explore-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(124, 77, 255, 0.38);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.26), rgba(36, 214, 255, 0.16));
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.explore-links a:hover,
.explore-links a:focus-visible {
  color: var(--link-hover);
  transform: translateY(-1px);
}

.explore-links a:focus-visible {
  outline: 2px solid rgba(120, 215, 255, 0.95);
  outline-offset: 2px;
}

.lead {
  color: var(--muted);
  max-width: 70ch;
  font-size: 1.03rem;
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 2rem 0;
}

.grid.feature-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-flow: row;
  justify-content: start;
  justify-items: stretch;
  align-items: stretch;
  margin-left: 0;
  margin-right: 0;
}

.grid.feature-grid > .card.feature-card {
  min-width: 0;
  width: 100%;
  margin: 0;
}

.feature-demos-grid {
  grid-template-columns: minmax(0, 1fr);
}

.feature-discovery-grid {
  margin: 1rem 0 1.5rem;
}

.feature-demo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-demo-header h2 {
  margin: 0 0 0.5rem;
}

.feature-demo-example h3 {
  margin-bottom: 0.35rem;
}

.feature-demo-example h4 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.95rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card[hidden] {
  display: none;
}

.feature-card .tiled-card-body {
  flex: 1 1 auto;
}

.feature-card-summary {
  margin: 0;
}

.feature-card-related {
  margin: 0;
  color: var(--muted);
}

.feature-card-related strong {
  color: var(--text);
}

.feature-card-related a {
  color: var(--accent);
}

.feature-card .tiled-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-version-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0.35rem;
  color: var(--muted);
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-list li + li::before {
  content: "/";
  color: var(--muted);
}

.breadcrumb-back-link {
  margin: 0 0 1.5rem;
}

.feature-page-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 18rem;
  align-items: start;
}

.feature-article,
.feature-sidebar {
  min-width: 0;
}

.feature-article-header {
  margin-bottom: 2rem;
}

.feature-article-header h1 {
  margin-bottom: 0.75rem;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin: 1rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.feature-meta-item strong {
  color: var(--text);
}

.feature-article-body > * + * {
  margin-top: 1.35rem;
}

.feature-article-body > :is(p, ul, ol, blockquote, table) {
  max-width: 72ch;
}

.feature-article-body > section > :is(p, ul, ol, blockquote, table),
.feature-article-body > aside > :is(p, ul, ol, blockquote, table),
.feature-article-body li > :is(p, ul, ol) {
  max-width: 72ch;
}

.feature-article-body h2,
.feature-article-body h3 {
  scroll-margin-top: 6rem;
}

.feature-article-body section {
  display: grid;
  gap: 0.85rem;
}

.feature-callout {
  margin-top: 1.5rem;
}

.feature-sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
}

.feature-toc {
  padding: 1rem 1rem 1.1rem;
}

.feature-toc h2 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.feature-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.feature-toc-link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.feature-toc-link:hover,
.feature-toc-link:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
}

.feature-toc-item-h3 {
  padding-left: 1rem;
  font-size: 0.95rem;
}

.article-code-block {
  margin: 1.25rem 0;
  border: 1px solid rgba(36, 214, 255, 0.24);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(9, 12, 29, 0.98), rgba(18, 17, 41, 0.96));
}

.article-code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(139, 108, 255, 0.34);
  background: rgba(22, 15, 52, 0.92);
}

.article-code-language {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-code-copy-btn {
  flex-shrink: 0;
}

.article-code-block pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.back-to-top {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(36, 214, 255, 0.35);
  border-radius: 999px;
  background: rgba(19, 16, 45, 0.94);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(36, 214, 255, 0.16);
  color: var(--link-hover);
}

.feature-related-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.feature-related-card {
  height: 100%;
}

.feature-related-reason {
  margin-bottom: 0.6rem;
  color: var(--muted);
}

.feature-related-summary {
  margin-bottom: 0;
}

.newer-capabilities-list {
  list-style: none;
  padding: 0;
}

.newer-capabilities-list li + li {
  margin-top: 1rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 77, 255, 0.26), rgba(36, 214, 255, 0.16));
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.2rem 0.6rem;
}

.feature-pill-csharp {
  border-color: #b999ff;
}

.feature-pill-dotnet {
  border-color: #78d7ff;
}

.feature-snippet-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: start;
}

.home-feature-snippet-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: hidden;
  gap: 0.75rem;
}

.home-feature-snippet-grid .feature-snippet-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-feature-snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.home-feature-snippet-title {
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-feature-snippet-header .feature-version-pills {
  flex-shrink: 0;
}

.home-feature-snippet-description {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.feature-snippet-card pre {
  margin: 0;
  max-height: none;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
}

.feature-snippet-card code {
  display: block;
  white-space: pre;
  tab-size: 4;
  overflow-wrap: normal;
  word-break: normal;
}

.home-feature-snippet-card code {
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.home-feature-snippet-card .home-feature-snippet-description code {
  display: inline;
  white-space: normal;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  background: rgba(124, 77, 255, 0.15);
  border-radius: 4px;
}

@media (max-width: 900px) {
  .feature-page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-sidebar {
    position: static;
    order: -1;
  }

  .home-feature-snippet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border: 1px solid rgba(124, 77, 255, 0.32);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(27, 24, 60, 0.96), rgba(18, 16, 42, 0.96));
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(2, 8, 23, 0.28);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(10, 14, 30, 0.35);
}

.tiled-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tiled-card-header h2,
.tiled-card-body p,
.tiled-card-footer p {
  margin: 0;
}

.feature-filter-panel {
  margin: 1.5rem 0;
}

.feature-filter-help {
  margin-top: 0;
}

.feature-filter-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.feature-filter-grid label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.feature-filter-grid select,
.feature-filter-grid input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #160f34;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font: inherit;
}

.feature-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.feature-filter-summary {
  margin-top: 1rem;
  margin-bottom: 0;
  color: var(--muted);
}

pre {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(36, 214, 255, 0.24);
  background: linear-gradient(145deg, rgba(9, 12, 29, 0.98), rgba(18, 17, 41, 0.96));
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hljs {
  color: #ede6ff;
}

.hljs-keyword,
.hljs-title {
  color: #c0acff;
}

.hljs-built_in,
.hljs-type,
.hljs-title.class_ {
  color: #8fd9ff;
  font-weight: 600;
}

.hljs-params {
  color: #d6ccff;
}

.hljs-string {
  color: #8ff2ca;
}

.hljs-number {
  color: #ffd08a;
}

.hljs-comment {
  color: #8a7ab8;
}

.hljs-operator {
  color: #ffb4e1;
}

.hljs-punctuation {
  color: #b8a8e8;
}

/* ===== Snippets Page ===== */
.snippets-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border, #334);
  margin-bottom: 2rem;
}
.snippets-install-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted, #8899aa);
  background: var(--color-surface, #1a1f2e);
  border: 1px solid var(--color-border, #334);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  display: inline-block;
}
.snippet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.snippet-card {
  background: var(--color-surface, #1a1f2e);
  border: 1px solid var(--color-border, #334);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== Hero Redesign ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.75rem 2rem 2.5rem;
  border-bottom: 1px solid var(--color-border, #334);
  margin: 0 0 2rem;
}
.hero > * {
  min-width: 0;
}
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0;
}
.hero-accent {
  color: var(--color-accent, #7c6af7);
}
.hero .lead {
  font-size: 1.05rem;
  color: var(--color-muted, #8899aa);
  margin: 0;
  max-width: 42ch;
}
.hero-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  border: 1px solid var(--button-primary-border);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(36, 214, 255, 0.35);
}

.hero-cta:visited {
  color: var(--button-primary-text);
}

.hero-cta-secondary:visited {
  color: var(--text);
}

.hero-cta:hover {
  background: var(--button-primary-bg-hover);
  color: var(--button-primary-text);
}

.hero-cta-secondary:hover {
  background: rgba(36, 214, 255, 0.12);
  color: var(--text);
}

.hero-cta:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  background: var(--button-primary-bg-hover);
  box-shadow: 0 0 0 4px rgba(92, 233, 255, 0.25);
  color: var(--button-primary-text);
}
.hero-code {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-code-before,
.hero-code-after {
  background: var(--color-surface, #1a1f2e);
  border: 1px solid var(--color-border, #334);
  border-radius: 8px;
  overflow: hidden;
}
.hero-code-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--color-border, #334);
  color: var(--color-muted, #8899aa);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-code-before .hero-code-label { color: var(--color-muted, #8899aa); }
.hero-code-after .hero-code-label { color: var(--color-cyan, #56d4e0); }
.hero-code pre {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  background: transparent;
  overflow-x: auto;
}

/* ===== Spotlight Section ===== */
.spotlight-section {
  margin-top: 2.5rem;
}
.spotlight-section h2 {
  margin-bottom: 0.25rem;
}
.spotlight-subtitle {
  color: var(--color-muted, #8899aa);
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.spotlight-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
}
.spotlight-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.spotlight-card-title {
  margin: 0;
  font-size: 1rem;
}
.spotlight-card-title a {
  color: var(--color-accent, #7c6af7);
  text-decoration: none;
}
.spotlight-card-title a:hover { text-decoration: underline; }
.spotlight-card-title a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.spotlight-version-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-bg, #0d1117);
  border: 1px solid var(--color-border, #334);
  color: var(--color-cyan, #56d4e0);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.spotlight-card-description {
  font-size: 0.875rem;
  color: var(--color-muted, #8899aa);
  margin: 0;
  flex: 1;
}
.spotlight-card-link {
  font-size: 0.85rem;
  color: var(--color-accent, #7c6af7);
  text-decoration: none;
  margin-top: 0.25rem;
}
.spotlight-card-link:hover { text-decoration: underline; }
.spotlight-card-link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem 1.75rem;
  }
  .hero h1 { font-size: 2rem; }
}
.snippet-card-header {
  padding: 1rem 1.25rem 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.snippet-card-title {
  font-size: 1rem;
  margin: 0;
}
.snippet-card-title a {
  color: var(--color-accent, #7c6af7);
  text-decoration: none;
}
.snippet-card-title a:hover { text-decoration: underline; }
.snippet-card-title a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}
.snippet-card-prefix code {
  font-size: 0.8rem;
  background: var(--color-bg, #0d1117);
  border: 1px solid var(--color-border, #334);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  color: var(--color-cyan, #56d4e0);
}
.snippet-card-body {
  padding: 0 1.25rem 0.75rem;
  flex: 1;
}
.snippet-card-description {
  font-size: 0.85rem;
  color: var(--color-muted, #8899aa);
  margin: 0 0 0.5rem;
}
.snippet-preview {
  background: var(--color-bg, #0d1117);
  border: 1px solid var(--color-border, #223);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  overflow-x: auto;
  margin: 0;
  max-height: 140px;
}
.snippet-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border, #334);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.snippet-download-btn,
.snippet-copy-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 5px;
  border: 1px solid var(--color-border, #334);
  background: var(--color-bg, #0d1117);
  color: var(--color-accent, #7c6af7);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.snippet-download-btn:hover,
.snippet-copy-btn:hover {
  background: var(--color-accent, #7c6af7);
  color: #fff;
  border-color: var(--color-accent, #7c6af7);
}

.snippet-download-btn:focus-visible,
.snippet-copy-btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ===== Toolbox and Skills ===== */
.toolbox-heading {
  margin: 2rem 0 1.5rem;
}

.toolbox-heading > :first-child {
  margin-top: 0;
}

.toolbox-heading > :last-child {
  margin-bottom: 0;
}

.toolbox-note {
  color: var(--muted);
}

.toolbox-grid,
.skill-grid {
  align-items: stretch;
}

.skill-grid {
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.toolbox-card,
.skill-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.skill-card {
  min-width: 0;
  gap: 1rem;
  padding: 1.25rem;
}

.toolbox-card h2,
.toolbox-card > p,
.skill-card > p,
.skill-card h2,
.skill-card-meta {
  margin: 0;
}

.toolbox-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  font-weight: 700;
}

.toolbox-card-link:visited {
  color: var(--link);
}

.skill-card--dotnet-team {
  border-color: rgba(43, 216, 255, 0.34);
}

.skill-card--csharp-evolved {
  border-color: rgba(123, 77, 255, 0.44);
}

.skill-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-card-title {
  font-size: 1.2rem;
  line-height: 1.3;
}

.skill-card-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.45rem;
  row-gap: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-source-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.skill-source-badge--dotnet-team {
  border-color: rgba(43, 216, 255, 0.55);
  background: rgba(43, 216, 255, 0.14);
  color: #bff5ff;
}

.skill-source-badge--csharp-evolved {
  border-color: rgba(160, 125, 255, 0.65);
  background: rgba(123, 77, 255, 0.16);
  color: #e5daff;
}

.skill-card > p,
.skill-card-body {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
}

.skill-card-body > :first-child {
  margin-top: 0;
}

.skill-card-body > :last-child {
  margin-bottom: 0;
}

.skill-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-tag-list li {
  border: 1px solid rgba(139, 108, 255, 0.42);
  border-radius: 999px;
  background: rgba(19, 16, 45, 0.92);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  line-height: 1.2;
}

.skill-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(140, 244, 255, 0.12);
}

.skill-card-footer .toolbox-card-link,
.skill-card-footer .skill-status {
  align-self: flex-start;
}

.skill-card .toolbox-card-link {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.skill-status {
  color: var(--accent-tertiary);
  font-weight: 700;
}

.skill-placeholder-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 58ch;
}

@media (max-width: 768px) {
  .skill-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .hero-nav a:hover,
  .hero-nav a:focus-visible,
  .explore-links a:hover,
  .explore-links a:focus-visible {
    transform: none;
  }
}
