/* Dhanyug — site styles */
:root {
  --navy: #0C2D57;
  --navy-deep: #081f3d;
  --navy-soft: #13396b;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #526077;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --green: #16a34a;
  --green-bright: #22c55e;
  --red: #dc2626;
  --red-bright: #ef4444;
  --warn-bg: #fff8eb;
  --warn-line: #f5c26b;
  --warn-ink: #7a4b00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--font-mono); font-size: .9em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-weight: 500; font-size: .95rem; color: var(--text); text-decoration: none;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--bg-soft); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff !important; }
.btn-primary:hover { background: #128a3e; }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--navy); color: var(--navy) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(34, 197, 94, .14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #dbe5f3; padding: 88px 0 96px; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--green-bright); }
.hero .lead { font-size: 1.18rem; max-width: 560px; color: #c3d1e6; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green-bright); margin-bottom: 16px;
}
.section .eyebrow { color: var(--green); }
.hero-note { font-size: .85rem; color: #93a6c2; margin-top: 22px; }
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #c3d1e6; padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { max-width: 680px; font-size: 1.1rem; margin: 0; }

/* Code card */
.code-card {
  background: #06182f; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); overflow: hidden;
}
.code-card .bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-card .bar span { width: 11px; height: 11px; border-radius: 50%; background: #1e3a5f; }
.code-card .bar .file { width: auto; height: auto; background: none; margin-left: 10px; font-family: var(--font-mono); font-size: .78rem; color: #6f86a6; }
.code-card pre {
  margin: 0; padding: 18px 20px; font-family: var(--font-mono); font-size: .84rem; line-height: 1.75;
  color: #c9d6ea; overflow-x: auto;
}
.c-k { color: #7cc4ff; } .c-s { color: #9be29b; } .c-c { color: #5f7593; font-style: italic; }
.c-f { color: #ffd479; } .c-n { color: #f5a97f; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #e9f0fa; color: var(--navy); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card ul { color: var(--muted); padding-left: 1.1em; margin: 12px 0 0; }
.card ul li { margin-bottom: 4px; }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  background: #e9f0fa; color: var(--navy); margin-bottom: 14px;
}
.tag-green { background: #e5f6ec; color: #11713a; }
.tag-amber { background: var(--warn-bg); color: var(--warn-ink); }

/* Pipeline steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .85rem; font-weight: 600; color: var(--green);
  display: block; margin-bottom: 10px;
}
.step p { color: var(--muted); margin: 0; }

/* Principles list */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.principle .mark { font-family: var(--font-mono); color: var(--green); font-weight: 600; }
.principle h3 { margin-bottom: 4px; }
.principle p { color: var(--muted); margin: 0; }

/* Notice / warning */
.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 5px solid #e0a43a;
  border-radius: 10px; padding: 20px 24px; color: var(--warn-ink); font-size: .96rem;
}
.notice strong { color: #5c3800; }
.notice p:last-child { margin-bottom: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 760px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip div { background: #fff; padding: 22px; }
.stat-strip b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); }
.stat-strip span { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--navy); color: #c3d1e6; border-radius: 20px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 560px; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* Program modules */
.module { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; padding-top: 0; }
.module .meta { font-size: .92rem; color: var(--muted); }
.module .meta b { display: block; font-family: var(--font-mono); color: var(--green); font-size: .85rem; margin-bottom: 6px; }
.module ul { columns: 2; column-gap: 32px; padding-left: 1.1em; color: var(--muted); margin: 14px 0 0; }
.module ul li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 760px) { .module { grid-template-columns: 1fr; gap: 8px; } .module ul { columns: 1; } }

/* Articles */
.article-card { display: flex; flex-direction: column; }
.article-card h3 { margin-top: 2px; }
.article-card .foot { margin-top: auto; padding-top: 18px; font-size: .85rem; color: var(--muted); font-family: var(--font-mono); }

/* Legal prose */
.legal { padding: 64px 0 88px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; margin-top: 1em; padding-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: #334155; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 28px 0; }
.toc b { font-family: var(--font-head); color: var(--ink); }
.toc ol { margin: 10px 0 0; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .92rem; color: var(--ink); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green-bright); border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { font-size: .92rem; color: var(--green); min-height: 1.4em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9fb1cb; padding: 64px 0 28px; font-size: .93rem; }
.site-footer a { color: #c9d6ea; text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-disclaimer {
  margin-top: 44px; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; font-size: .84rem; line-height: 1.6; color: #8ea2bf;
}
.footer-disclaimer strong { color: #d7e1ef; }
.footer-bottom { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #7489a8; }

/* Disclaimer consent bar */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-top: 4px solid #e0a43a; border-radius: 14px; box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
  padding: 20px 22px; display: none; gap: 18px; align-items: center;
}
.consent.show { display: flex; }
.consent p { margin: 0; font-size: .9rem; color: #334155; }
.consent .btn { white-space: nowrap; }
@media (max-width: 700px) { .consent { flex-direction: column; align-items: stretch; } }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.not-found .code { font-family: var(--font-mono); font-size: 4rem; color: var(--navy); font-weight: 600; }
