:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --accent: #22c1c3;
  --accent-soft: rgba(34, 193, 195, 0.15);
  --accent-strong: #38bdf8;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --surface: #f9fafb;
  --border-subtle: rgba(15,23,42,0.06);
  --radius-lg: 18px;
  --shadow-soft: 0 24px 70px rgba(15,23,42,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #111827, #020617 55%, #020617);
}

.page {
  min-height: 100vh;
  color: var(--surface);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24px);
  background: linear-gradient(to bottom, rgba(2,6,23,0.94), rgba(2,6,23,0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand span:first-child {
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.brand strong {
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

.hero {
  padding-top: 40px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 14px;
}

.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.28);
}

.hero h1 {
  font-size: clamp(32px, 5vw, 40px);
  margin: 0 0 10px;
}

.hero p {
  margin: 0 0 18px;
  line-height: 1.6;
  color: #e5e7eb;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: #9ca3af;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.55);
  transition: all 0.16s ease-out;
}

.button-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 14px 35px rgba(15,23,42,0.9);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.95);
}

.button-ghost {
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
}

.button-ghost:hover {
  background: rgba(15,23,42,0.98);
}

.hero-card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.38), rgba(15,23,42,0.96));
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.35);
}

.hero-card h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

.hero-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #e5e7eb;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.hero-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.92);
  color: #e5e7eb;
}

.section {
  margin-top: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 18px;
  margin: 0;
}

.section-header p {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

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

.card-small {
  background: rgba(15,23,42,0.96);
  border-radius: 16px;
  padding: 16px 15px;
  border: 1px solid rgba(148,163,184,0.35);
}

.card-small h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.card-small p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #d1d5db;
}

.card-small small {
  font-size: 12px;
  color: #9ca3af;
}

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

.post-card {
  background: rgba(249,250,251,0.03);
  border-radius: 18px;
  padding: 16px 15px;
  border: 1px solid rgba(148,163,184,0.4);
}

.post-card a {
  color: #e5e7eb;
  text-decoration: none;
}

.post-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.post-card p {
  font-size: 13px;
  margin: 0 0 10px;
  color: #d1d5db;
}

.post-card footer {
  font-size: 12px;
  color: #9ca3af;
}

.site-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,0.35);
  font-size: 12px;
  color: #9ca3af;
}

.site-footer a {
  color: #a5b4fc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Blog layout */

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  gap: 32px;
  margin-top: 32px;
}

.blog-main h1 {
  font-size: clamp(26px, 4vw, 32px);
  margin-bottom: 8px;
}

.blog-main p {
  margin-top: 0;
  color: #e5e7eb;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.blog-card {
  border-radius: 18px;
  padding: 16px 15px;
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.4);
}

.blog-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.blog-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #d1d5db;
}

.blog-card footer {
  font-size: 12px;
  color: #9ca3af;
}

.blog-card a {
  color: #e5e7eb;
  text-decoration: none;
}

.blog-sidebar {
  font-size: 13px;
  color: #e5e7eb;
}

.blog-sidebar-section {
  margin-bottom: 18px;
}

.blog-sidebar-section h3 {
  font-size: 14px;
  margin: 0 0 6px;
}

.blog-sidebar-section ul {
  margin: 0;
  padding-left: 18px;
  color: #9ca3af;
}

.article {
  margin-top: 28px;
  max-width: 720px;
}

.article h1 {
  font-size: clamp(28px, 4.2vw, 36px);
  margin-bottom: 6px;
}

.article-meta {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 18px;
}

.article-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0 0 14px;
}

.article-content h2 {
  font-size: 20px;
  margin: 22px 0 10px;
}

.article-content ul {
  padding-left: 20px;
  margin: 0 0 14px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content a {
  color: #a5b4fc;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .card-grid,
  .posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
