/* Savinudi Manifesto - Clean, Reader-Friendly, Mobile CSS */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1a1d21;
  --muted: #5f6368;
  --link: #0b66c3;
  --link-hover: #0848a0;
  --border: #e4e6ea;
  --accent: #b23a1d;
  --accent-dark: #8f2c14;
  --card-bg: #ffffff;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --radius: 14px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  --bg: #0f1115;
  --bg-alt: #171b21;
  --text: #e8eaed;
  --muted: #a1a7b3;
  --link: #8ab4f8;
  --link-hover: #aecbfa;
  --border: #2a2f36;
  --accent: #ff8a65;
  --accent-dark: #ffab91;
  --card-bg: #1a1e26;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Kannada", "Noto Sans", sans-serif;
  font-size: 17.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto; padding: 10px 14px;
  background: var(--text); color: var(--bg); border-radius: 8px; z-index: 1000;
}

/* Progress bar */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  z-index: 1001; transition: width .1s linear;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1080px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
  letter-spacing: -0.02em; font-size: 18px; color: var(--text); text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #111, #333); color: #fff; font-size: 18px;
}
[data-theme="dark"] .logo-mark { background: linear-gradient(135deg, #fff, #ccc); color: #111; }
.logo small { font-weight: 500; color: var(--muted); font-size: 12px; display: block; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px; transition: .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 12%, transparent); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-org {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff !important;
  padding: 8px 16px !important; border-radius: 999px; font-weight: 700 !important;
}
.btn-org:hover { background: var(--accent-dark) !important; }
.btn-org::after { content: "↗"; font-size: 13px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--bg); cursor: pointer; color: var(--text); font-size: 18px;
}
.icon-btn:hover { background: var(--bg-alt); transform: scale(1.05); }
.hamburger { display: none; }

/* LAYOUT */
.wrap { max-width: 760px; margin: 0 auto; padding: 20px 20px 80px; }

.hero { padding: 56px 0 8px; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 {
  margin: 0 0 12px; font-size: clamp(32px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
}
.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.65; color: var(--muted); margin: 0 0 28px; max-width: 62ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg); text-decoration: none;
  padding: 12px 20px; border-radius: 999px; font-weight: 700;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); color: var(--text); text-decoration: none;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; background: var(--bg);
}

/* Prose */
.prose p { margin: 0 0 1.2em; color: var(--text); }
.prose h2 {
  font-size: clamp(22px,3.5vw,28px); letter-spacing: -0.02em; margin: 48px 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.prose h2::after { content:""; flex:1; height:1px; background: var(--border); }

.card-grid { display: grid; gap: 16px; margin: 20px 0 12px; }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.card-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--bg-alt); color: var(--muted); flex-shrink: 0;
}
.card p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.7; }

.insight {
  border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg));
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0;
}
.insight p { margin: 0; }

ol.commitments { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
ol.commitments li {
  display: flex; gap: 16px; padding: 18px 20px;
  background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border);
}
ol.commitments .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800;
  color: var(--accent); font-size: 14px; padding-top: 4px;
}
ol.commitments strong { display: block; margin-bottom: 4px; }

/* Footer */
footer {
  border-top: 1px solid var(--border); padding: 32px 20px 48px; text-align: center;
  max-width: 1080px; margin: 0 auto; color: var(--muted); font-size: 14px;
}
footer a { color: var(--text); font-weight: 700; }

/* Back to top */
#topBtn {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--text); color: var(--bg); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s;
}
#topBtn.show { opacity: 1; pointer-events: auto; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mobile */
@media (max-width: 760px) {
  .hamburger { display: grid; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s;
    box-shadow: var(--shadow); margin-left: 0;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .logo small { display: none; }
  body { font-size: 16.5px; }
  .wrap { padding: 12px 18px 64px; }
  .hero { padding: 32px 0 4px; }
  .card { padding: 16px 18px; }
}
