:root {
  color-scheme: dark;
  --bg: #04162a;
  --bg-soft: #0b223f;
  --card: rgba(8, 28, 54, 0.88);
  --line: rgba(125, 211, 252, 0.18);
  --text: #e5f2ff;
  --muted: #a9bfd8;
  --primary: #7dd3fc;
  --primary-strong: #38bdf8;
  --accent: #c084fc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(192, 132, 252, 0.16), transparent 26%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a:hover {
  color: #d7f2ff;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--line);
  background: rgba(2, 12, 26, 0.9);
  backdrop-filter: blur(12px);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.header-inner,
.footer-inner,
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-strong), var(--accent));
  color: #02101f;
  font-weight: 900;
}

.nav-links,
.footer-links,
.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links a,
.footer-links a,
.button-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  background: rgba(125, 211, 252, 0.06);
}

.button-link:hover,
.nav-links a:hover,
.footer-links a:hover {
  background: rgba(125, 211, 252, 0.14);
}

.page-shell {
  padding: 40px 0 64px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero,
.content-card,
.page-list-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.meta-list,
.detail-grid,
.resource-list {
  display: grid;
  gap: 18px;
}

.meta-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 24px;
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}

.meta-item,
.detail-item,
.page-list-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: rgba(6, 21, 40, 0.72);
}

.content-stack {
  display: grid;
  gap: 20px;
}

.content-card h2,
.detail-item h2,
.page-list-card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.content-card p:last-child,
.detail-item p:last-child,
.page-list-card p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 22px;
}

.two-column {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.resource-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 18px;
}

.note {
  border-left: 4px solid var(--primary-strong);
  padding-left: 16px;
  color: var(--muted);
}

.footer-copy {
  color: var(--muted);
  max-width: 520px;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(1120px, calc(100% - 20px));
  }
}
