:root {
  --bg: #0d0d10;
  --surface: #16161c;
  --surface-2: #1f1f28;
  --surface-3: #262632;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --text-muted: #a0a6bd;
  --text-soft: #c9cde0;
  --accent: #6dd3ff;
  --accent-2: #ffb347;
  --success: #53d78b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(109, 211, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 179, 71, 0.08), transparent 26%),
    linear-gradient(180deg, #0a0b0f 0%, #11131a 100%);
  color: var(--text);
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

a {
  color: var(--accent);
}

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

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(109, 211, 255, 0.22);
}

.brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 24px;
  margin-bottom: 28px;
}

.hero-main,
.hero-side,
.card,
.article-panel,
.toc-panel {
  background: rgba(22, 22, 28, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 30px;
}

.hero-side {
  padding: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(109, 211, 255, 0.1);
  border: 1px solid rgba(109, 211, 255, 0.16);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.hero p,
.card p,
.hero-side p {
  color: var(--text-muted);
  font-size: 15px;
}

.meta-row,
.stat-grid,
.link-grid,
.blog-grid {
  display: grid;
  gap: 14px;
}

.meta-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.meta-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.meta-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.meta-item span {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

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

.card,
.article-panel,
.toc-panel {
  padding: 24px;
}

.card h2,
.card h3,
.article-prose h2,
.article-prose h3,
.toc-panel h3 {
  margin: 0 0 12px;
  line-height: 1.28;
}

.card h2,
.article-prose h2 {
  font-size: 26px;
}

.card h3,
.article-prose h3,
.toc-panel h3 {
  font-size: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  gap: 24px;
}

.article-prose p,
.article-prose li {
  color: var(--text-soft);
  font-size: 16px;
}

.article-prose ul,
.article-prose ol {
  padding-left: 22px;
  margin: 10px 0 20px;
}

.article-prose blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(109, 211, 255, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
}

.toc-panel {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.toc-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-panel a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
}

.toc-panel a:hover {
  color: var(--accent);
}

.info-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li,
.contact-list li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--text-soft);
}

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

.blog-card {
  background: rgba(22, 22, 28, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.blog-card h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 22px;
}

.blog-card a {
  color: var(--text);
  text-decoration: none;
}

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

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #89e6ff);
  color: #091018;
  border-color: transparent;
}

.button.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.site-footer .links a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-footer .links a:hover {
  color: var(--accent);
}

@media (max-width: 940px) {
  .hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .meta-row,
  .stat-grid,
  .link-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .toc-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 24px, 1180px);
    flex-direction: column;
    align-items: flex-start;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .hero-main,
  .hero-side,
  .card,
  .article-panel,
  .toc-panel,
  .blog-card {
    padding: 20px;
  }

  h1 {
    font-size: 34px;
  }
}
