:root {
  --bg: #0c111b;
  --ink: #eaf2ff;
  --muted: #94a3b8;
  --accent: #ffb347;
  --accent-2: #57d9ff;
  --accent-3: #ff6bcb;
  --panel: rgba(17, 24, 39, 0.72);
  --panel-border: rgba(148, 163, 184, 0.22);
  --glow: 0 20px 60px rgba(12, 17, 27, 0.6);
  --code-bg: #0a0f1a;
  --code-border: rgba(87, 217, 255, 0.35);
  --code-ink: #e8f0ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Fira Sans", "Avenir Next", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(87, 217, 255, 0.12), transparent 50%),
    radial-gradient(circle at 85% 0%, rgba(255, 179, 71, 0.2), transparent 45%),
    linear-gradient(130deg, #0b0f1a 0%, #0f172a 35%, #0b1020 100%);
  min-height: 100vh;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 52px 20px 80px; }
header { margin-bottom: 28px; }
header h1 {
  font-size: 42px;
  margin: 0 0 8px;
  letter-spacing: 0.6px;
  text-shadow: 0 0 18px rgba(87, 217, 255, 0.25);
}
header p { margin: 0 0 6px; color: var(--muted); }
nav a {
  color: var(--accent-2);
  text-decoration: none;
  margin-right: 16px;
  font-weight: 600;
}
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--glow);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card a { color: var(--accent); text-decoration: none; }
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(87, 217, 255, 0.6);
  box-shadow: 0 24px 70px rgba(87, 217, 255, 0.25), 0 0 30px rgba(255, 107, 203, 0.2);
}
.post {
  padding: 28px 32px;
}
.post h2, .post h3 {
  color: var(--accent-2);
}
.post p {
  line-height: 1.7;
  color: #d7e3f7;
}
.post-meta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(87, 217, 255, 0.1);
  border: 1px solid rgba(87, 217, 255, 0.2);
  margin-bottom: 18px;
}
h2, h3, h4 { margin-top: 28px; }
pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 16px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--code-border);
  box-shadow: inset 0 0 12px rgba(87, 217, 255, 0.12);
}
pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
code {
  background: rgba(255, 255, 255, 0.08);
  color: #ffe6b5;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 179, 71, 0.08);
}
ul, ol { padding-left: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.meta { color: var(--muted); font-size: 14px; }
.hero {
  position: relative;
  padding: 48px 32px 56px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(87, 217, 255, 0.15), rgba(255, 179, 71, 0.08));
}
.hero::after {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(circle, rgba(255, 107, 203, 0.25), transparent 55%);
  opacity: 0.7;
  animation: pulse 6s ease-in-out infinite;
}
.hero-content { position: relative; z-index: 1; }
.tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #1a1020;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 107, 203, 0.25);
}
.float {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.35;
  animation: drift 14s ease-in-out infinite;
}
.float.one { width: 120px; height: 120px; background: #57d9ff; top: -30px; right: 12%; animation-delay: -2s; }
.float.two { width: 80px; height: 80px; background: #ffb347; bottom: -30px; left: 8%; animation-delay: -6s; }
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s ease forwards;
}
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.24s; }
.stagger > *:nth-child(4) { animation-delay: 0.36s; }
.stagger > *:nth-child(5) { animation-delay: 0.48s; }
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(12px) translateX(-12px); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.flakes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
.flake {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(87, 217, 255, 0.75);
  box-shadow: 0 0 12px rgba(87, 217, 255, 0.9);
  animation: flake-fall 1.8s ease-out forwards;
}
.flake.alt {
  width: 4px;
  height: 4px;
  background: rgba(255, 179, 71, 0.8);
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.8);
}
@keyframes flake-fall {
  to { transform: translateY(120px) scale(0.3); opacity: 0; }
}
@media (max-width: 720px) {
  header h1 { font-size: 30px; }
  .wrap { padding: 32px 16px 56px; }
}
