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

:root {
  --bg:        #F8FAFC;
  --white:     #FFFFFF;
  --border:    #E5E7EB;
  --text-1:    #111827;
  --text-2:    #6B7280;
  --text-3:    #9CA3AF;
  --blue:      #2563EB;
  --blue-dark: #1D4ED8;
  --indigo:    #6366F1;
  --nav-h:     64px;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --font-body: 'Inter', sans-serif;
  --font-disp: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-1); line-height: 1.6; }

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

/* ── UTILS ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.gradient-text {
  background: linear-gradient(135deg, #2563EB 0%, #6366F1 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.logo-vasratron {
  background: linear-gradient(135deg, #2563EB, #6366F1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 700;
}
.logo-tech { color: #111827; font-weight: 800; }
.logo-tech-f { color: #ffffff; font-weight: 800; }

/* ── NAV ── */
.nav-wrapper {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-disp); font-size: 1.1rem; }
.nav-logo svg { flex-shrink: 0; }
.logo-text { display: flex; align-items: baseline; gap: 1px; }
.logo-blog { font-size: 0.75rem; font-weight: 500; color: var(--text-2); margin-left: 6px; letter-spacing: 0.04em; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 12px;
}
.search-bar input { border: none; background: none; outline: none; font-size: 0.875rem; color: var(--text-1); width: 180px; }
.search-bar input::placeholder { color: var(--text-3); }
.btn-main-site {
  padding: 8px 16px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-main-site:hover { background: var(--blue-dark); }

/* ── HERO ── */
.blog-hero {
  background: radial-gradient(ellipse 120% 80% at 50% -10%, rgba(37,99,235,0.07) 0%, transparent 60%),
              linear-gradient(180deg, #F0F4FF 0%, #F8FAFC 100%);
  padding: 80px 0 64px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-dark);
  margin-bottom: 24px;
}
.blog-hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 600px; margin: 0 auto 32px; line-height: 1.7;
}
.topic-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pill {
  padding: 7px 16px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--white); color: var(--text-2);
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill--active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── FEATURED ── */
.featured-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--blue); margin-bottom: 16px;
}
.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 48px;
  box-shadow: var(--shadow);
}
.article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-2); margin-bottom: 16px;
}
.meta-dot { color: var(--text-3); }
.featured-content h2 {
  font-family: var(--font-disp); font-size: 1.8rem;
  font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 16px;
}
.featured-content > p { color: var(--text-2); line-height: 1.75; margin-bottom: 24px; }
.author-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #6366F1);
  color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name { font-size: 0.875rem; font-weight: 600; color: var(--text-1); }
.author-role { font-size: 0.78rem; color: var(--text-2); }
.btn-read {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; border-radius: 10px;
  background: var(--blue); color: #fff;
  font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-read:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* Code card */
.code-card {
  background: #0F172A; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.cc-header {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cc-dot { width: 10px; height: 10px; border-radius: 50%; }
.cc-dot--red { background: #FF5F57; }
.cc-dot--yellow { background: #FEBC2E; }
.cc-dot--green { background: #28C840; }
.cc-title { font-size: 0.75rem; color: #94A3B8; margin-left: 6px; font-family: monospace; }
.cc-code {
  display: block; padding: 24px 20px;
  font-family: 'Courier New', monospace; font-size: 0.82rem;
  line-height: 1.7; color: #E2E8F0; white-space: pre;
  overflow-x: auto;
}
.c-kw  { color: #818CF8; }
.c-fn  { color: #34D399; }
.c-str { color: #FCD34D; }
.c-num { color: #F472B6; }
.c-op  { color: #94A3B8; }
.cc-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(34,197,94,0.08);
  border-top: 1px solid rgba(34,197,94,0.2);
  font-size: 0.78rem; color: #4ADE80;
  font-family: monospace;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E; animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── ARTICLE GRID ── */
.grid-title {
  font-family: var(--font-disp); font-size: 1.5rem;
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.articles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: #BFDBFE;
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
}
.ac-top { display: flex; align-items: center; justify-content: space-between; }
.ac-read { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }
.article-card h3 {
  font-family: var(--font-disp); font-size: 1rem;
  font-weight: 700; line-height: 1.4; color: var(--text-1);
}
.article-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; flex: 1; }
.ac-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 0.78rem;
}
.ac-date { color: var(--text-3); }
.ac-link { color: var(--blue); font-weight: 600; }
.ac-link:hover { color: var(--blue-dark); }

/* ── TAGS ── */
.tag {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 6px;
  border: 1px solid;
}
.tag--aio     { background: rgba(99,102,241,0.08); color: #4338CA; border-color: rgba(99,102,241,0.2); }
.tag--cloud   { background: rgba(14,165,233,0.08); color: #0369A1; border-color: rgba(14,165,233,0.2); }
.tag--finops  { background: rgba(16,185,129,0.08); color: #065F46; border-color: rgba(16,185,129,0.2); }
.tag--k8s     { background: rgba(37,99,235,0.08); color: #1E40AF; border-color: rgba(37,99,235,0.2); }
.tag--devsec  { background: rgba(245,158,11,0.08); color: #92400E; border-color: rgba(245,158,11,0.2); }
.tag--llm     { background: rgba(167,139,250,0.12); color: #5B21B6; border-color: rgba(167,139,250,0.3); }
.tag--platform { background: rgba(6,182,212,0.08); color: #0E7490; border-color: rgba(6,182,212,0.2); }
.read-time { color: var(--text-3); }
.pub-date  { color: var(--text-3); }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #4338CA 100%);
  padding: 64px 0;
}
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.newsletter-inner h2 {
  font-family: var(--font-disp); font-size: 1.8rem;
  font-weight: 800; color: #fff; margin-bottom: 8px;
}
.newsletter-inner p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.nl-form { display: flex; gap: 10px; flex-shrink: 0; }
.nl-form input {
  padding: 11px 16px; border-radius: 10px;
  border: none; background: rgba(255,255,255,0.12);
  color: #fff; font-size: 0.9rem; width: 240px; outline: none;
  border: 1px solid rgba(255,255,255,0.2);
}
.nl-form input::placeholder { color: rgba(255,255,255,0.55); }
.nl-form button {
  padding: 11px 24px; border-radius: 10px;
  background: #fff; color: #1D4ED8;
  font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.nl-form button:hover { background: #EFF6FF; }

/* ── FOOTER ── */
.blog-footer {
  background: #0F172A;
  padding: 48px 0 24px;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand {
  font-family: var(--font-disp); font-size: 1.2rem;
  display: block; margin-bottom: 8px;
}
.footer-inner > div > p { font-size: 0.85rem; color: #64748B; margin-top: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 0.875rem; color: #94A3B8; transition: color 0.2s; }
.footer-links a:hover { color: #60A5FA; }
.footer-copy p { font-size: 0.78rem; color: #475569; text-align: center; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-visual { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .nl-form { flex-direction: column; width: 100%; }
  .nl-form input { width: 100%; }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .search-bar { display: none; }
  .featured-card { padding: 28px 20px; }
}
