/* Athreyasa — design system v3: light, clinical, data-forward. No black/near-black fills. */

:root {
  --navy: #10233e;      /* text / accents only — never a large fill */
  --slate-700: #3d4a5c;
  --slate-500: #647084;
  --slate-300: #a7b1bf;
  --line: #dde3ea;
  --paper: #ffffff;
  --paper-2: #f6f8fb;
  --paper-3: #eef2f7;
  --amber: #a9660f;
  --amber-bright: #c8791a;
  --amber-tint: #fbeee0;
  --maxw: 1152px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "IBM Plex Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: #3a4453; }
a { color: inherit; }
.mono { font-family: "IBM Plex Mono", monospace; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Libre Franklin", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand .mark {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: var(--paper-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand .mark svg { width: 20px; height: 20px; }

nav.primary { display: flex; gap: 26px; flex-wrap: wrap; }
nav.primary a {
  text-decoration: none;
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
nav.primary a:hover, nav.primary a.active { border-color: var(--amber); color: var(--navy); }

@media (max-width: 900px) {
  nav.primary { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-amber {
  background: var(--amber-bright);
  color: #fff;
}
.btn-amber:hover { background: var(--amber); }
.btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Hero (light, technical grid motif) ---------- */
.hero {
  background:
    linear-gradient(180deg, #fff, var(--paper-2)),
    repeating-linear-gradient(0deg, rgba(16,35,62,0.035) 0px, rgba(16,35,62,0.035) 1px, transparent 1px, transparent 44px),
    repeating-linear-gradient(90deg, rgba(16,35,62,0.035) 0px, rgba(16,35,62,0.035) 1px, transparent 1px, transparent 44px);
  color: var(--navy);
  padding: 84px 0 68px;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
}
.hero h1 {
  color: var(--navy);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  max-width: 820px;
}
.hero p.lead {
  color: var(--slate-700);
  font-size: 1.08rem;
  max-width: 620px;
  margin-bottom: 30px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
  max-width: 760px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-stats .stat { border-left: 2px solid var(--amber); padding-left: 14px; }
.hero-stats .stat .n { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.3rem; color: var(--navy); }
.hero-stats .stat .l { font-size: 0.8rem; color: var(--slate-500); margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.on-paper-2 { background: var(--paper-2); }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head .kicker {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 10px;
  font-family: "IBM Plex Mono", monospace;
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3, .card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.93rem; color: #4b5666; margin-bottom: 0; }
.card .label {
  font-family: "IBM Plex Mono", monospace;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

/* accent card — used where a "dark panel" once was; now a light card with a left accent bar */
.card-accent {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber-bright);
  border-radius: var(--radius);
  padding: 28px;
}
.card-accent h3 { font-size: 1.1rem; margin-bottom: 10px; }

/* ---------- Doors (two business lines) ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .doors { grid-template-columns: 1fr; } }
.door {
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.door.accent { border-color: var(--amber-bright); border-width: 1.5px; }
.door .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
  width: fit-content;
  background: var(--paper-2);
  color: var(--amber);
  border: 1px solid var(--line);
}
.door.accent .tag { background: var(--amber-tint); color: var(--amber); border-color: #ecd3ae; }
.door h3 { font-size: 1.3rem; margin-bottom: 12px; }
.door ul { padding-left: 18px; margin: 16px 0; flex-grow: 1; }
.door li { margin-bottom: 7px; font-size: 0.93rem; }
.door a.more { font-weight: 700; text-decoration: none; color: var(--amber); border-bottom: 2px solid var(--amber); padding-bottom: 2px; width: fit-content; margin-top: 6px; }

/* ---------- Quality strip ---------- */
.quality-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quality-strip .q { padding: 24px; border-left: 1px solid var(--line); background: #fff; }
.quality-strip .q:first-child { border-left: none; }
.quality-strip .q h4 { font-size: 0.95rem; margin-bottom: 6px; }
.quality-strip .q p { font-size: 0.85rem; margin-bottom: 0; }
@media (max-width: 860px) {
  .quality-strip { grid-template-columns: 1fr 1fr; }
  .quality-strip .q:nth-child(3) { border-left: none; }
}
@media (max-width: 560px) {
  .quality-strip { grid-template-columns: 1fr; }
  .quality-strip .q { border-left: none; border-top: 1px solid var(--line); }
  .quality-strip .q:first-child { border-top: none; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 620px; }
table.data th {
  text-align: left;
  background: var(--paper-2);
  color: var(--slate-700);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}
table.data td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.mono { font-family: "IBM Plex Mono", monospace; font-size: 0.84rem; color: var(--slate-700); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
.table-group-title { font-family: "Libre Franklin", sans-serif; font-weight: 800; font-size: 1.2rem; margin: 40px 0 12px; }
.table-group-title:first-of-type { margin-top: 0; }
.table-note { font-size: 0.86rem; color: var(--slate-500); margin-top: -6px; margin-bottom: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { color: var(--navy); margin-bottom: 6px; font-size: 1.3rem; }
.cta-band p { color: var(--slate-700); margin-bottom: 0; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--paper-2);
  color: var(--slate-500);
  padding: 52px 0 26px;
  border-top: 1px solid var(--line);
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
footer.site h4 { color: var(--navy); font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
footer.site a { color: var(--slate-500); text-decoration: none; font-size: 0.9rem; }
footer.site a:hover { color: var(--amber); }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
footer.site .brand { color: var(--navy); margin-bottom: 10px; }
footer.site .bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 700px) {
  footer.site .cols { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card .row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-card .row:first-child { border-top: none; padding-top: 0; }
.contact-card .row .k { width: 100px; flex: none; font-weight: 700; font-size: 0.82rem; color: var(--slate-500); font-family: "IBM Plex Mono", monospace; }
.contact-card .row .v { font-size: 0.94rem; }
.contact-card .row a { color: var(--amber); text-decoration: none; font-weight: 600; }

.step-list { display: grid; gap: 0; }
.step-list .s { padding: 16px 0; border-top: 1px solid var(--line); }
.step-list .s:first-child { border-top: none; padding-top: 0; }
.step-list .s h4 { margin: 0 0 4px; font-size: 0.95rem; }
.step-list .s p { margin: 0; font-size: 0.88rem; }
