:root {
  --bg: #090c12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --text: #f1f4f8;
  --muted: #b8bfce;
  --accent: #2dd4ff;
  --accent-strong: #2563eb;
  --max-width: 900px;
  --radius: 18px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Noto Sans", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 6% 8%, rgba(45, 212, 255, 0.18), transparent 42%),
    radial-gradient(circle at 94% 86%, rgba(37, 99, 235, 0.16), transparent 40%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(14px);
  background: rgba(9, 12, 18, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 32px rgba(45, 212, 255, 0.18);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

main {
  padding: 52px 0 70px;
}

.blog-hero {
  margin-bottom: 28px;
}

.kicker {
  margin: 0;
  color: rgba(45, 212, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

h1 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 760px;
}

.post-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.post-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.post-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.post-state {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: rgba(45, 212, 255, 0.14);
  color: rgba(45, 212, 255, 0.95);
}

.post-state.draft {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.post-card h2 {
  margin: 12px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.25;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: rgba(45, 212, 255, 0.95);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.article {
  margin-top: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: clamp(20px, 5vw, 36px);
  box-shadow: var(--shadow);
}

.article-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.article p {
  margin: 14px 0;
  font-size: 17px;
  line-height: 1.78;
  color: rgba(241, 244, 248, 0.95);
}

.article h2 {
  margin: 26px 0 8px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

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

.article li {
  margin: 10px 0;
  line-height: 1.75;
  color: rgba(241, 244, 248, 0.95);
}

.article a {
  color: rgba(45, 212, 255, 0.95);
  text-decoration: underline;
}

.cta-block {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(45, 212, 255, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(45, 212, 255, 0.13), rgba(37, 99, 235, 0.12));
}

.cta-block h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.cta-block p {
  margin: 8px 0 0;
  color: rgba(241, 244, 248, 0.92);
}

.cta-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .top-nav {
    min-height: 66px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .lead,
  .article p,
  .article li {
    font-size: 16px;
  }

  .cta-actions {
    display: grid;
  }

  .cta-actions .btn {
    width: 100%;
  }
}
