:root {
  --bg: #0a0a0f;
  --bg-alt: #12121a;
  --surface: rgba(26, 26, 36, 0.6);
  --surface-solid: #1a1a24;
  --fg: #fafafa;
  --muted: #71717a;
  --accent: #f59e0b;
  --accent-foreground: #0a0a0f;
  --accent-muted: rgba(245, 158, 11, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --glow-sm: 0 0 20px rgba(245, 158, 11, 0.15);
  --glow-md: 0 0 40px rgba(245, 158, 11, 0.2);
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --max-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  background: var(--bg);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(245, 158, 11, 0.03) 0%, transparent 45%);
  z-index: -3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='12' cy='19' r='1'/%3E%3Ccircle cx='64' cy='142' r='1'/%3E%3Ccircle cx='173' cy='44' r='1'/%3E%3Ccircle cx='202' cy='185' r='1'/%3E%3Ccircle cx='115' cy='90' r='1'/%3E%3C/g%3E%3C/svg%3E");
  z-index: -2;
}

.ambient-orb {
  position: fixed;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.orb-top {
  top: -180px;
  left: 50%;
  width: 36rem;
  height: 36rem;
  transform: translateX(-50%);
  background: rgba(245, 158, 11, 0.08);
}

.orb-bottom {
  bottom: -240px;
  right: -120px;
  width: 34rem;
  height: 34rem;
  background: rgba(245, 158, 11, 0.06);
}

.container {
  width: calc(100% - 2.5rem);
  max-width: var(--max-width);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 8vw, 10rem);
}

.section-compact {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.brand-logo {
  display: block;
  height: 1.5rem;
  width: auto;
}

.site-header .brand-logo {
  height: 2.3rem;
}

.brand-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  background: var(--accent);
  box-shadow: var(--glow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.6rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: #f9c76d;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: var(--glow-sm);
}

.pulse {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--accent);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 5.4rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin: 0;
  color: var(--muted);
}

ul,
ol {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

li {
  margin-bottom: 0.38rem;
}

code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  color: #f6e4bf;
}

.lede {
  margin-top: 1.1rem;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.cta-group {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease-out;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px rgba(10, 10, 15, 1);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  border-color: var(--border-hover);
  color: var(--fg);
  background: transparent;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.inline-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.code-card {
  padding: 1.1rem;
}

.code-card pre {
  margin: 0;
  white-space: pre-wrap;
  color: #f5f5f7;
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: "JetBrains Mono", monospace;
}

.pill-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 64ch;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  padding: 1.2rem;
  transition: all 300ms ease-out;
}

.card:hover {
  transform: scale(1.02);
  border-color: var(--border-hover);
  background: rgba(26, 26, 36, 0.8);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.code-sample {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.2);
}

.code-sample code,
.quick-command code {
  font-family: "JetBrains Mono", monospace;
}

.timeline-preview {
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.timeline-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.stats {
  margin-top: 1.4rem;
}

.stats .card {
  text-align: center;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.quickstart {
  margin-top: 1.3rem;
}

.step {
  padding: 1rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #ffcf7e;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.quick-command {
  margin-top: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.87rem;
}

.faq {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.faq-button {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-button:hover {
  color: #ffd590;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms ease, opacity 280ms ease;
  opacity: 0;
  color: var(--muted);
  padding-inline: 1rem;
}

.faq-panel p {
  margin-bottom: 1rem;
}

.faq-item[data-open="true"] .faq-panel {
  max-height: 20rem;
  opacity: 1;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.92rem;
}

th {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: #f4d9a8;
  background: rgba(245, 158, 11, 0.06);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3.2rem;
  background: rgba(10, 10, 15, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-email {
  margin-top: 0.55rem;
}

.footer-email a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-email a:hover,
.footer-email a:focus-visible {
  color: var(--accent);
}

.spacer-top {
  margin-top: 1.2rem;
}

.section-highlight {
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.2), 0 0 30px rgba(245, 158, 11, 0.15);
}

.blog-controls {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.blog-search-wrap {
  display: grid;
  gap: 0.45rem;
}

.blog-control-label {
  font-size: 0.85rem;
  color: #d4d4d8;
  font-weight: 500;
}

.blog-search-input {
  width: 100%;
  min-height: 2.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(26, 26, 36, 0.85);
  color: var(--fg);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.blog-search-input:focus-visible {
  outline: none;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blog-filter-pill {
  cursor: pointer;
  transition: all 200ms ease-out;
  background: rgba(255, 255, 255, 0.02);
}

.blog-filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.blog-filter-pill.is-active {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #ffcf7e;
  box-shadow: var(--glow-sm);
}

.blog-count {
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: #a1a1aa;
}

.blog-list-grid {
  align-items: stretch;
}

.blog-list-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100%;
}

.blog-list-card h3 a,
.blog-mini-card h3 a {
  color: var(--fg);
  text-decoration: none;
}

.blog-list-card h3 a:hover,
.blog-mini-card h3 a:hover,
.blog-list-card h3 a:focus-visible,
.blog-mini-card h3 a:focus-visible {
  color: var(--accent);
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #d4d4d8;
}

.blog-card-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f9c76d;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: #a1a1aa;
}

.blog-read-link {
  color: #ffcf7e;
  font-weight: 600;
  text-decoration: none;
}

.blog-read-link:hover,
.blog-read-link:focus-visible {
  color: var(--accent);
}

.blog-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: #a1a1aa;
}

.blog-breadcrumbs a {
  color: #d4d4d8;
  text-decoration: none;
}

.blog-breadcrumbs a:hover,
.blog-breadcrumbs a:focus-visible {
  color: var(--accent);
}

.blog-article-hero {
  display: grid;
  gap: 0.85rem;
}

.blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  font-size: 0.88rem;
  color: #d4d4d8;
}

.blog-meta-row a {
  color: #ffcf7e;
  text-decoration: none;
}

.blog-meta-row a:hover,
.blog-meta-row a:focus-visible {
  color: var(--accent);
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 16.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.blog-article-layout > * {
  min-width: 0;
}

.blog-toc {
  position: sticky;
  top: 5.6rem;
  padding: 1rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
}

.blog-toc h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.blog-toc-nav {
  display: grid;
  gap: 0.4rem;
}

.blog-toc-link {
  color: #d4d4d8;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  padding-left: 0.55rem;
  transition: all 200ms ease-out;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-toc-link:hover,
.blog-toc-link:focus-visible {
  color: var(--accent);
}

.blog-toc-link.is-active {
  color: #ffcf7e;
  border-left-color: rgba(245, 158, 11, 0.55);
}

.blog-toc-subitem {
  padding-left: 1.15rem;
  font-size: 0.84rem;
}

.blog-article-content {
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.blog-article-content > * + * {
  margin-top: 0.95rem;
}

.blog-article-content h2,
.blog-article-content h3 {
  margin-top: 1.45rem;
}

.blog-article-content h2:first-child,
.blog-article-content h3:first-child {
  margin-top: 0;
}

.blog-article-content p,
.blog-article-content li {
  color: #d4d4d8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-article-content li + li {
  margin-top: 0.4rem;
}

.blog-article-content a {
  color: #ffcf7e;
}

.blog-article-content a:hover,
.blog-article-content a:focus-visible {
  color: var(--accent);
}

.blog-article-content pre {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem 0.95rem;
  overflow: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.blog-article-content pre code {
  white-space: pre;
  display: block;
  color: #f3f4f6;
  font-size: 0.85rem;
}

.blog-article-content code {
  color: #f7d79a;
}

.blog-article-content .sourceCode {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-article-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.blog-article-content th,
.blog-article-content td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.blog-article-content blockquote {
  margin: 0;
  border-left: 3px solid rgba(245, 158, 11, 0.45);
  padding: 0.6rem 0 0.6rem 0.85rem;
  color: #d4d4d8;
  background: rgba(245, 158, 11, 0.05);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.blog-inline-related {
  margin: 0.95rem 0 0.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(245, 158, 11, 0.08);
}

.blog-inline-related p {
  margin-top: 0.4rem;
}

.blog-inline-related-grid {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.6rem;
}

.blog-inline-related-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.25);
  text-decoration: none;
  color: #f4f4f5;
  background: rgba(10, 10, 15, 0.3);
}

.blog-inline-related-link:hover,
.blog-inline-related-link:focus-visible {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--glow-sm);
}

.blog-inline-related-link span {
  font-size: 0.82rem;
  color: #d4d4d8;
}

.blog-related-head {
  max-width: 62ch;
  margin-bottom: 1rem;
}

.blog-mini-grid {
  align-items: stretch;
}

.blog-mini-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.blog-prevnext-link {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: #f4f4f5;
  background: rgba(26, 26, 36, 0.6);
}

.blog-prevnext-link span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
}

.blog-prevnext-link:hover,
.blog-prevnext-link:focus-visible {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--glow-sm);
}

.blog-cta {
  text-align: left;
}

.blog-muted {
  font-size: 0.88rem;
  color: #a1a1aa;
}

@media (max-width: 920px) {
  .hero,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-layout,
  .blog-prevnext {
    grid-template-columns: 1fr;
  }

  .blog-toc {
    position: static;
    max-height: none;
  }

  .orb-top {
    width: 24rem;
    height: 24rem;
  }

  .orb-bottom {
    width: 22rem;
    height: 22rem;
    right: -120px;
  }
}

@media (max-width: 840px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 4.25rem;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(18, 18, 26, 0.98);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .cta-group .btn {
    width: 100%;
  }

  .blog-search-wrap {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .blog-article-content {
    padding: 0.9rem;
  }

  .blog-meta-row {
    gap: 0.45rem;
    font-size: 0.84rem;
  }

  .blog-breadcrumbs {
    font-size: 0.8rem;
  }
}
