:root{
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --primary: #1E3A8A;
  --accent: #F59E0B;
  --border: #E2E8F0;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; }
.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav{
  position: sticky; top:0; z-index:50;
  background: rgba(248,250,252,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}
.brand{
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--primary);
  text-decoration:none;
  font-size: 20px;
}
.menu{
  display:flex; gap: 10px; align-items:center; flex-wrap:wrap;
}
.menu a{
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.menu a:hover{
  color: var(--text);
  border-color: var(--border);
  background:#fff;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);
}

.section{
  padding: 22px 0;
}

.hero{
  padding: 22px 0 10px;
}
.hero-inner{
  padding: 22px;
  display:grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 16px;
}
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-weight: 700;
  padding: 8px 10px;
  border:1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
}
.h1{
  font-size: 34px;
  line-height: 1.15;
  margin: 12px 0 10px;
}
.p{
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 14px;
  padding: 12px 16px;
  text-decoration:none;
  font-weight: 800;
  border:1px solid transparent;
  gap: 8px;
}
.btn-primary{ background: var(--primary); color:#fff; }
.btn-accent{ background: var(--accent); color:#111827; }
.btn-ghost{ background: transparent; border-color: var(--border); color: var(--text); }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.col-12{ grid-column: span 12; }
.col-6{ grid-column: span 6; }
.col-4{ grid-column: span 4; }
@media (max-width: 900px){
  .col-6,.col-4{ grid-column: span 12; }
}

.card-pad{ padding: 16px; }
.card-title{ font-weight: 900; font-size: 18px; margin:0 0 6px; }
.card-sub{ color: var(--muted); margin:0 0 12px; line-height:1.6; }
.card-actions{ display:flex; gap:10px; flex-wrap:wrap; }

.footer{
  border-top:1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
}

/* Blog */
.post-title{ margin: 8px 0 10px; font-size: 30px; line-height:1.2; }
.post-meta{ color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.post-content{ line-height:1.85; }
.post-card a{ text-decoration:none; }
.post-excerpt{ color: var(--muted); line-height:1.7; }

/* Kannada content area */
.kn{
  font-family: "Noto Sans Kannada", system-ui, sans-serif;
  line-height: 1.75;
}
.option{
  padding: 12px 14px;
  border:1px solid var(--border);
  border-radius: 14px;
  background:#fff;
}
.option:hover{ border-color: rgba(30,58,138,.35); }

/* ===== Polished UI addons ===== */
.page-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

code{
  background:#0b1220;
  color:#e2e8f0;
  padding: 3px 8px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

input[type="radio"]{ accent-color: var(--primary); }

button.btn{
  cursor:pointer;
}
button.btn:disabled{ opacity:.6; cursor:not-allowed; }

/* Better tap targets on mobile */
.option{ touch-action: manipulation; }

/* Sticky bottom bar (optional future) */
.sticky-actions{
  position: sticky;
  bottom: 10px;
  z-index: 20;
}
