:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141c;
  --bg-card: #161822;
  --border: #2a2d3a;
  --text: #a8adb8;
  --text-heading: #f0f1f5;
  --text-muted: #6b7280;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --cyan: #22d3ee;
  --radius: 12px;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font: 16px/1.7 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

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

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-heading);
  font-weight: 600;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text-heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-heading);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: #fff;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, #8b5cf633, transparent 55%),
    var(--bg);
}

.guide-hero-inner,
.guide-wrap,
.guides-index,
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.guide-hero-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

h1,
h2,
h3 {
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0 0 0.85rem;
  font-weight: 650;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  max-width: 18ch;
}

.lead {
  margin: 0;
  max-width: 62ch;
  font-size: 1.08rem;
  color: var(--text);
}

.meta-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

@media (max-width: 860px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }
}

.guide-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
}

.guide-content p {
  margin: 0 0 1.1rem;
}

.guide-content h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.guide-content h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.guide-content ul,
.guide-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.guide-content li {
  margin-bottom: 0.45rem;
}

.guide-content li::marker {
  color: var(--accent);
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid #8b5cf655;
  background: #8b5cf614;
}

.callout strong {
  color: var(--text-heading);
}

.disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.side-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.side-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.side-card ol,
.side-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.side-card li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.side-card a {
  color: var(--text);
}

.side-card a:hover {
  color: var(--accent-hover);
}

.cta-box p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-height: 180px;
}

.guide-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.guide-card h2 {
  font-size: 1.15rem;
  margin: 0;
}

.guide-card p {
  margin: 0;
  flex: 1;
  color: var(--text);
  font-size: 0.95rem;
}

.guide-card .read {
  color: var(--accent-hover);
  font-weight: 600;
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #07080c;
}

.site-footer-inner {
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-links a {
  color: var(--text);
}

.breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text);
}
