:root {
  --bg: #07111f;
  --bg-elevated: #0c1a2c;
  --bg-soft: #10233a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --text-soft: rgba(238, 244, 255, 0.78);
  --text-muted: rgba(238, 244, 255, 0.58);
  --accent: #f4c26b;
  --accent-strong: #ffb12f;
  --accent-soft: rgba(244, 194, 107, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(244, 194, 107, 0.14), transparent 28%),
    linear-gradient(180deg, #081321 0%, #07111f 36%, #09192b 100%);
  color: var(--text);
  line-height: 1.68;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}

.nav-logo {
  width: 156px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #081321;
  box-shadow: 0 12px 30px rgba(244, 194, 107, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(244, 194, 107, 0.24);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero,
.article-hero {
  padding: 76px 0 32px;
}

.hero-grid,
.article-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-card,
.article-card,
.side-card,
.cta-box,
.article-shell,
.related-card,
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card,
.article-card,
.article-shell {
  padding: 34px;
}

.page-title {
  margin: 18px 0 12px;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-title span,
.article-content h2 span {
  color: var(--accent);
}

.page-subtitle {
  max-width: 760px;
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.hero-actions,
.inline-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.side-card {
  padding: 24px;
}

.side-card img {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.meta-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.meta-item {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.section {
  padding: 24px 0 72px;
}

.blog-grid,
.related-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.article-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  margin: 0;
  font-size: 1.45rem;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  line-height: 1.2;
}

.card-copy,
.card-meta,
.muted {
  margin: 0;
  color: var(--text-soft);
}

.card-link,
.inline-link {
  color: var(--accent);
  font-weight: 700;
}

.card-link:hover,
.inline-link:hover {
  color: #ffd38a;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  margin-top: 12px;
}

.article-content {
  min-width: 0;
}

.article-content h2,
.article-content h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article-content h2 {
  margin: 40px 0 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.45rem);
}

.article-content h3 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.article-content p,
.article-content li {
  color: var(--text-soft);
  font-size: 1.04rem;
}

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

.article-content strong {
  color: var(--text);
}

.article-content blockquote,
.callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 16px;
  background: rgba(244, 194, 107, 0.08);
  color: var(--text);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  overflow: hidden;
  border-radius: 16px;
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  color: var(--text-soft);
}

.article-content th {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.toc {
  position: sticky;
  top: 102px;
  padding: 22px;
}

.toc h3,
.side-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.toc ul,
.side-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

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

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

.breadcrumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

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

.article-meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 18px;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

.cta-box {
  padding: 28px;
  margin-top: 36px;
}

.cta-box h3,
.cta-box p {
  margin-top: 0;
}

.stat-card {
  padding: 24px;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 26px 0 44px;
  background: rgba(3, 10, 19, 0.7);
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-top {
  padding-bottom: 20px;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand img {
  width: 160px;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--text-soft);
}

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

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .article-hero-grid,
  .article-shell,
  .blog-grid,
  .related-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .article-hero {
    padding-top: 52px;
  }

  .hero-card,
  .article-card,
  .article-shell,
  .cta-box,
  .side-card,
  .stat-card {
    padding: 22px;
  }

  .page-title {
    font-size: 2.3rem;
  }

  .article-content h2 {
    font-size: 1.7rem;
  }
}
