@font-face { font-family: Manrope; src: url('/fonts/manrope-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('/fonts/manrope-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Devanagari; src: url('/fonts/devanagari-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
:root {
  --ink: #183d80;
  --paper: #fbf5e9;
  --paper-deep: #e9e2d3;
  --line: rgba(23, 22, 17, .16);
  --saffron: #df5b2a;
  --gold: #e1c17c;
  --plum: #a22e59;
  --green: #183d80;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(40, 28, 19, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, system-ui, sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header { min-height: 82px; display: flex; align-items: center; gap: 28px; padding: 16px clamp(22px, 5vw, 76px); border-bottom: 1px solid var(--line); background: rgba(245, 241, 232, .92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 780; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-mark, .auth-mark { width: 40px; height: 44px; display: inline-grid; place-items: center; color: var(--gold); background: var(--ink); border-radius: 50% 50% 0 0; font: 600 28px Devanagari, serif; padding-top: 5px; text-shadow: 0 1px 0 #fff5ca75, 0 -1px 0 #685124; }
.nav-links { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.nav-links a { text-decoration: none; color: #4b473e; font-size: 14px; }
.nav-links a:hover { color: var(--saffron); }
.nav-cta { padding: 11px 17px; border: 1px solid var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.user-chip { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; text-transform: capitalize; }

.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: center; gap: clamp(40px, 8vw, 130px); padding: clamp(70px, 10vw, 150px) clamp(24px, 8vw, 128px); position: relative; overflow: hidden; }
.hero::before { content: ""; width: 500px; height: 500px; position: absolute; right: -230px; top: -260px; border-radius: 50%; border: 1px solid rgba(223, 91, 42, .35); box-shadow: 0 0 0 80px rgba(234, 183, 91, .08), 0 0 0 160px rgba(61, 23, 60, .04); }
.hero-copy { max-width: 900px; }
.eyebrow { margin: 0 0 18px; color: var(--saffron); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.hero h1, .section h2, .platform-section h2, .contact-section h2, .legal-page h1, .auth-card h1, .admin-title h1, .error-page h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: .97; letter-spacing: -.045em; }
.hero h1 { font-size: clamp(58px, 8.2vw, 126px); }
.hero h1 em { color: var(--saffron); font-weight: 500; }
.hero-lede { max-width: 720px; margin: 34px 0; color: #524d43; font-size: clamp(17px, 1.6vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; text-decoration: none; font-weight: 760; font-size: 14px; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--white); }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.light { background: var(--white); color: var(--plum); }
.button.full { width: 100%; }
.hero-card { aspect-ratio: 4/5; min-height: 430px; padding: 38px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); background: radial-gradient(circle at 25% 20%, #f0b458 0 9%, transparent 10%), radial-gradient(circle at 74% 33%, rgba(223,91,42,.8), transparent 28%), linear-gradient(145deg, var(--plum), #1d1425 75%); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero-card p, .hero-card strong, .hero-card small { position: relative; z-index: 2; }
.hero-card p { margin: 0 0 15px; color: #e9cfdc; font-size: 13px; text-transform: uppercase; letter-spacing: .13em; }
.hero-card strong { display: block; font-family: Georgia, serif; font-size: clamp(30px, 3.2vw, 54px); line-height: 1.03; font-weight: 500; }
.hero-card small { margin-top: 35px; color: #d3c8d3; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.orbit-one { width: 330px; height: 330px; top: -95px; left: -140px; }
.orbit-two { width: 430px; height: 430px; top: -160px; left: -190px; }

.manifesto { padding: 80px clamp(24px, 8vw, 128px); background: var(--ink); color: var(--white); }
.manifesto p { max-width: 1080px; margin: 0; font-family: Georgia, serif; font-size: clamp(33px, 5vw, 70px); line-height: 1.08; }
.manifesto strong { color: var(--gold); font-weight: 500; }
.section { padding: clamp(75px, 10vw, 140px) clamp(24px, 8vw, 128px); }
.section-heading { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.3fr); column-gap: 60px; align-items: end; margin-bottom: 60px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .platform-section h2, .contact-section h2 { font-size: clamp(42px, 6vw, 78px); }
.section-heading > p:last-child { margin: 0 0 7px; color: #635e54; font-size: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 300px; padding: 30px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s ease; }
.service-card:hover { background: var(--white); }
.service-card > span { color: var(--saffron); font-family: Georgia, serif; }
.service-card h3 { margin: auto 0 16px; font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.service-card p { color: #625d53; }
.service-card small { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.platform-section { padding: clamp(75px, 10vw, 140px) clamp(24px, 8vw, 128px); display: grid; grid-template-columns: 1fr 1fr; gap: 75px; background: var(--green); color: var(--white); }
.platform-section > div:first-child > p:last-child { max-width: 660px; color: #cce0d9; font-size: 18px; }
.platform-board { align-self: center; border: 1px solid rgba(255,255,255,.18); box-shadow: 24px 24px 0 rgba(0,0,0,.1); }
.platform-board div { padding: 22px 24px; display: grid; grid-template-columns: 100px 1fr; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.18); }
.platform-board div:last-child { border-bottom: 0; }
.platform-board span { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.platform-board strong { font-size: 16px; }

.approach { background: var(--paper-deep); }
.steps { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.steps li { min-height: 230px; padding: 28px 24px; border-right: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); color: var(--saffron); font-family: Georgia, serif; }
.steps span { display: block; margin-top: 65px; font-family: Georgia, serif; font-size: 30px; }
.steps p { color: #605a50; }
.contact-section { padding: clamp(75px, 10vw, 140px) max(24px, calc((100vw - 1150px)/2)); text-align: center; background: var(--plum); color: var(--white); }
.contact-section h2 { max-width: 1000px; margin-inline: auto; }
.contact-section > p:not(.eyebrow) { max-width: 680px; margin: 28px auto; color: #dcceda; font-size: 17px; }
.site-footer { min-height: 90px; padding: 28px clamp(24px, 5vw, 76px); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: var(--ink); color: #bdb8ae; font-size: 13px; }
.site-footer a { color: var(--white); }

.admin-shell { background: #f1eee7; }
.admin-shell .site-header { position: static; }
.auth-wrap { min-height: calc(100vh - 172px); display: grid; place-items: center; padding: 60px 20px; background: radial-gradient(circle at 50% 5%, rgba(234,183,91,.3), transparent 28%); }
.auth-card { width: min(100%, 500px); padding: clamp(30px, 5vw, 55px); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card .auth-mark { text-decoration: none; margin-bottom: 34px; }
.auth-card h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 18px; }
.auth-card > p:not(.eyebrow) { color: #676157; }
.stacked-form { display: grid; gap: 18px; margin-top: 30px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 750; }
label small { color: #6c665c; font-weight: 500; }
input, select { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #c8c1b4; border-radius: 0; outline: none; }
input:focus, select:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(223,91,42,.12); }
.notice { margin: 20px 0; padding: 13px 15px; background: #fff3cf; border-left: 3px solid var(--gold); font-size: 14px; }
.notice.error { background: #fce7e4; border-color: #b9362a; color: #7c2119; }
.notice.success { background: #e6edf9; border-color: var(--ink); color: var(--ink); }

.admin-page { max-width: 1500px; min-height: calc(100vh - 172px); margin: 0 auto; padding: clamp(45px, 6vw, 90px) clamp(20px, 5vw, 70px); }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.admin-title h1 { font-size: clamp(42px, 5vw, 70px); }
.admin-title p:last-child { color: #625c52; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.metric-grid article { min-height: 150px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: var(--white); border: 1px solid var(--line); }
.metric-grid span { color: #6a645a; font-size: 13px; }
.metric-grid strong { font-family: Georgia, serif; font-size: 46px; font-weight: 500; }
.metric-grid .status-word { color: var(--green); font-family: inherit; font-size: 18px; font-weight: 800; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 14px; }
.panel { padding: 25px; background: var(--white); border: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.panel h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.panel-heading span { color: #6b655b; font-size: 13px; }
.next-panel p { color: #645f55; }
.next-panel ul { padding-left: 18px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 14px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #6a645a; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
td small { display: block; margin-top: 4px; color: #746e63; }
.role, .status { display: inline-block; padding: 5px 8px; background: #ece7de; text-transform: capitalize; font-size: 11px; font-weight: 800; }
.status.active { color: var(--ink); background: #e6edf9; }
details { position: relative; }
summary { cursor: pointer; color: var(--saffron); font-weight: 750; }
.manage-menu { min-width: 240px; margin-top: 10px; padding: 14px; display: grid; gap: 14px; background: #f5f1e8; border: 1px solid var(--line); }
.manage-menu form { display: grid; gap: 7px; }
.manage-menu button { padding: 8px 10px; background: var(--ink); color: var(--white); border: 0; }
.manage-menu label { font-size: 11px; }
.manage-menu input, .manage-menu select { min-height: 38px; font-size: 12px; }

.legal-page, .error-page { width: min(100% - 40px, 850px); min-height: calc(100vh - 172px); margin: 0 auto; padding: 90px 0; }
.legal-page h1, .error-page h1 { font-size: clamp(48px, 7vw, 78px); }
.legal-page h2 { margin-top: 42px; font-family: Georgia, serif; font-weight: 500; font-size: 30px; }
.legal-page p { color: #5d574e; font-size: 17px; }
.muted { font-size: 13px !important; }
.error-page { text-align: center; }
.error-page > span { color: var(--saffron); font-family: Georgia, serif; font-size: 80px; }
.error-page p { margin: 25px 0; color: #5e584e; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .admin-shell .site-header { flex-wrap: wrap; }
  .admin-shell .nav-links { display: flex; flex-wrap: wrap; width: 100%; order: 3; margin-left: 0; gap: 12px 20px; }
  .nav-cta, .user-chip { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-card { width: min(100%, 520px); min-height: 400px; }
  .section-heading, .platform-section { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 70px; padding-inline: 16px; }
  .brand > span:last-child { font-size: 14px; }
  .nav-cta, .user-chip { display: none; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero-actions { display: grid; }
  .hero-card { min-height: 360px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 25px; }
  .service-grid, .steps, .metric-grid { grid-template-columns: 1fr; }
  .platform-board div { grid-template-columns: 80px 1fr; }
  .admin-title { display: block; }
  .admin-title form, .admin-title > a { margin-top: 20px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
