:root {
  --bg: #071019;
  --bg-soft: rgba(12, 18, 30, 0.78);
  --panel: rgba(14, 20, 32, 0.8);
  --panel-strong: rgba(15, 22, 35, 0.96);
  --text: #edf2ff;
  --muted: #97a3ba;
  --line: rgba(148, 163, 184, 0.16);
  --accent: #f97316;
  --accent-2: #fb7185;
  --accent-3: #a78bfa;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 25%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.12), transparent 22%),
    linear-gradient(180deg, #070b12 0%, #04070c 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header,
.hero,
.panel,
.guide-layout,
.site-footer {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 8px 2px 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong,
.site-nav a,
.button,
.hero-stat strong,
.card h3,
.guide-meta strong,
.guide-content h2,
.guide-content h3 {
  letter-spacing: -0.02em;
}

.brand small,
.site-nav a,
.lead,
.hero-stat span,
.eyebrow,
.card p,
.guide-meta span,
.guide-content p,
.guide-content li,
.site-footer {
  color: var(--muted);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.site-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.site-nav a {
  font-size: 0.96rem;
  color: var(--muted);
}

.site-nav a:hover,
.button:hover {
  color: #fff;
}

.hero {
  margin-top: 28px;
  padding: 72px 64px 60px;
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(167, 139, 250, 0.14)),
    var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

h1 {
  margin: 14px 0 16px;
  max-width: 820px;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.card-grid,
.guide-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #5eead4);
  color: #03111f;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stat,
.card,
.guide-content,
.toc {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 16px 0 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.card .tag,
.guide-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: #ffc49a;
  font-size: 0.82rem;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.guide-layout {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 24px;
}

.toc,
.guide-content {
  border-radius: var(--radius-lg);
}

.toc {
  position: sticky;
  top: 102px;
  padding: 24px;
  align-self: start;
}

.toc h3 {
  margin-top: 0;
}

.toc a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
}

.toc a:hover {
  color: #fff;
}

.guide-content {
  padding: 40px;
}

.post-hero {
  margin-top: 28px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(121, 192, 255, 0.12), rgba(139, 92, 246, 0.14)),
    var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.post-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-card h3 {
  margin: 14px 0 12px;
  font-size: 1.35rem;
}

.post-card p {
  color: var(--muted);
  line-height: 1.8;
}

.toc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.toc-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
}

.guide-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-top: 10px;
}

.guide-content h2 {
  margin-top: 36px;
  font-size: 1.7rem;
}

.guide-content h3 {
  margin-top: 24px;
  font-size: 1.2rem;
}

.guide-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 0.15em 0.45em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.guide-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(3, 10, 20, 0.85);
  border: 1px solid var(--line);
}

.guide-content pre code {
  padding: 0;
  background: transparent;
}

.guide-content ul,
.guide-content ol {
  padding-left: 20px;
}

.site-footer {
  margin-top: 28px;
  padding: 10px 4px 0;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header,
  .section-heading,
  .guide-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header,
  .hero,
  .guide-content {
    padding: 20px;
  }

  .site-nav,
  .card-grid,
  .post-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}
