
:root{
  --bg:#f8fafc; --bg-soft:#f5f7fb; --surface:#ffffff; --text:#0f172a; --muted:#475569;
  --accent:#2563eb; --accent-2:#0ea5e9; --border:#e2e8f0; --shadow:0 8px 24px rgba(2,6,23,.06);
}
html.dark{
  --bg:#0b1220; --bg-soft:#0e1627; --surface:#111a2c; --text:#e9edf5; --muted:#a8b3cf;
  --accent:#60a5fa; --accent-2:#22d3ee; --border:rgba(255,255,255,.12);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto;
  color:var(--text); background:linear-gradient(180deg, var(--bg-soft), var(--bg) 60%);
  line-height:1.6;
}
.container{width:min(1100px,92%); margin:0 auto}
a{color:var(--accent); text-decoration:none} a:hover{color:var(--accent-2)}

.header{position:sticky; top:0; z-index:40; background:rgba(255,255,255,.7);
  backdrop-filter:saturate(1.2) blur(8px); border-bottom:1px solid var(--border)}
html.dark .header{background:rgba(17,26,44,.7)}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{display:flex; align-items:center; gap:10px; font-weight:700}
.brand .logo{width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow:var(--shadow)}
.nav-links{display:flex; gap:18px; align-items:center}
.nav-links a{color:var(--muted); padding:8px 12px; border-radius:10px}
.nav-links a.active, .nav-links a:hover{background:var(--surface); color:var(--text); box-shadow:var(--shadow)}
.nav-toggle{display:none}
.theme-btn{border:1px solid var(--border); background:var(--surface); padding:8px 12px; border-radius:10px; cursor:pointer; box-shadow:var(--shadow)}

.hero{padding:60px 0 30px}
.hero-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:28px}
.card{background:var(--surface); border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow)}
.card-pad{padding:28px}
.hero h1{font-size: clamp(28px, 4vw, 46px); line-height:1.15; margin:0 0 10px}
.lead{color:var(--muted); font-size:clamp(16px,2vw,18px)}
.badge{display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--border);
  background:#fff; border-radius:999px; font-size:14px; color:var(--muted)}
html.dark .badge{background:#0f1a2f}
.dot{width:8px; height:8px; border-radius:50%; background:var(--accent)}
.form-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.input{padding:12px 14px; border-radius:12px; border:1px solid var(--border); min-width:250px; background:#fff}
html.dark .input{background:#0b1220; color:var(--text)}
.btn{display:inline-flex; align-items:center; gap:10px; padding:12px 16px; border-radius:12px; border:1px solid var(--border);
  background:#fff; color:var(--text); font-weight:600; cursor:pointer; box-shadow:var(--shadow)}
html.dark .btn{background:#0b1220}
.btn.primary{background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#fff; border:none}

.kpis{display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:16px}
.kpi{padding:18px; border-top:3px solid var(--accent); border-radius:12px; background:var(--surface); border:1px solid var(--border)}
.kpi .label{color:var(--muted); font-size:14px} .kpi .value{font-weight:800; font-size:22px}

.section{padding:40px 0} .section h2{font-size:26px; margin:0 0 16px}
.grid{display:grid; gap:18px} .cards-3{grid-template-columns:repeat(3,1fr)}
.card .meta{display:flex; gap:12px; color:var(--muted); font-size:14px; margin-top:8px}
.card .title{font-weight:700; font-size:18px; margin:8px 0 6px}
.card .desc{color:var(--muted)} .card .tag{display:inline-block; padding:6px 10px; border-radius:999px; border:1px solid var(--border); color:var(--muted); font-size:12px}

.footer{padding:28px 0; color:var(--muted)}

.two-col{display:grid; grid-template-columns:1fr 1fr; gap:24px}
.prose p{margin:0 0 12px} .list{padding-left:16px} .list li{margin:8px 0}

.post-header{padding:22px 0 0}
.post-header h1{font-size:clamp(26px,3.2vw,40px); margin:8px 0}
.post-meta{color:var(--muted); display:flex; flex-wrap:wrap; gap:12px; font-size:14px}
.post-body{padding:16px 0}
.post-body h2{margin-top:18px}

@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
  .cards-3{grid-template-columns:1fr 1fr}
  .nav-links{display:none}
}
@media (max-width: 600px){
  .kpis{grid-template-columns:1fr}
  .cards-3{grid-template-columns:1fr}
}
