/* =========================================================
   VAJRA HEALTHCARE — Revenue Cycle Management
   Design system: surgical red / clinical white / ink black
   Type: Fraunces (display) · Inter (UI) · IBM Plex Mono (data)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --ink:        #15100F;   /* near-black, faintly warm */
  --ink-2:      #2A2220;
  --paper:      #FFFFFF;
  --paper-warm: #FBF6F5;   /* off-white section wash */
  --paper-2:    #F6EFEE;

  /* Reds */
  --red:        #C8102E;   /* primary — confident, clinical */
  --red-deep:   #7C0B1C;   /* oxblood depth / gradients */
  --red-bright: #F1283F;   /* highlight, used sparingly */
  --red-tint:   #FBE9EB;   /* faint red wash */

  /* Neutrals */
  --line:       #ECE2E0;   /* warm hairline */
  --line-dark:  #2E2422;   /* hairline on dark */
  --muted:      #6E635F;   /* body text */
  --muted-2:    #9A8F8B;   /* captions */
  --muted-dark: #B8ACA8;   /* muted on dark */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --pad-x: 56px;
  --maxw: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--red-bright); }
.eyebrow.on-dark::before { background: var(--red-bright); }

h1 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
}
h1 em { font-style: italic; color: var(--red); font-weight: 500; }

h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.014em;
  color: var(--ink);
  max-width: 18ch;
}
h2.wide { max-width: 24ch; }

h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3; }

p { color: var(--muted); line-height: 1.72; }
.lede { font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: 54ch; }
.section-intro { font-size: 17px; max-width: 60ch; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(200,16,46,.6);
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(124,11,28,.7); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: #fff; color: var(--ink); }
.btn-ghost-light:hover { background: var(--paper-2); transform: translateY(-2px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px var(--pad-x);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand-name span { color: var(--red); font-style: italic; font-weight: 500; }
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-cta {
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--red); transform: translateY(-1px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px var(--pad-x) 26px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-menu a { padding: 13px 0; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; justify-content: center; }
body.menu-open .mobile-menu { display: flex; }

/* =========================================================
   SECTION SHELL
   ========================================================= */
section { padding: 104px var(--pad-x); }
.section-head { max-width: var(--maxw); margin: 0 auto; }
.section-body { max-width: var(--maxw); margin: 44px auto 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 92px var(--pad-x) 96px;
  background:
    radial-gradient(1100px 520px at 88% -8%, var(--red-tint), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; max-width: 14ch; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 540px; }
.chip {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--muted);
  background: rgba(255,255,255,.6);
}

/* Signature: the revenue cycle ring */
.cycle { width: 100%; max-width: 460px; margin: 0 auto; display: block; }
.cycle .ring-track { fill: none; stroke: var(--line); stroke-width: 10; }
.cycle .ring-arc {
  fill: none;
  stroke: url(#cyclegrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 250 1000;
  transform-origin: 50% 50%;
  animation: ring-spin 14s linear infinite;
}
.cycle .tick { stroke: var(--line); stroke-width: 2; }
.cycle .tick.live { stroke: var(--red); stroke-width: 3; }
.cycle .core-label { font-family: var(--mono); fill: var(--muted-2); letter-spacing: 0.18em; }
.cycle .core-stat { font-family: var(--display); fill: var(--ink); }
.cycle .core-unit { font-family: var(--mono); fill: var(--red); letter-spacing: 0.16em; }
.cycle .vajra { fill: var(--red); }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* =========================================================
   TRUST BAR
   ========================================================= */
.trust { background: var(--ink); padding: 46px var(--pad-x); }
.trust-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.trust-item { padding: 4px 22px; border-left: 1px solid var(--line-dark); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.trust-num b { color: var(--red-bright); font-weight: 500; }
.trust-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  margin-top: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}

/* =========================================================
   CARDS (What we do)
   ========================================================= */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--paper);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(21,16,15,.35); border-color: var(--paper-2); }
.card:hover::before { transform: scaleX(1); }
.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { font-size: 14.5px; }
.divider { height: 1px; background: var(--line); margin: 22px 0 18px; }
.sub-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12.5px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--muted);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.tag:hover { border-color: var(--red); color: var(--red); }

/* =========================================================
   WORKFLOW
   ========================================================= */
.flow { position: relative; margin-top: 8px; }
.flow::before {
  content: "";
  position: absolute;
  left: 23px; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--line), var(--red-tint), var(--line));
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 26px;
  padding: 20px 0;
  align-items: start;
}
.flow-node {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.flow-step:hover .flow-node { border-color: var(--red); color: #fff; background: var(--red); }
.flow-body h3 { font-size: 17px; margin-bottom: 4px; }
.flow-body p { font-size: 14.5px; max-width: 70ch; }
.flow-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }

/* =========================================================
   WHY VAJRA
   ========================================================= */
.why { background: var(--paper-warm); }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  padding-left: 38px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.why-card::before {
  content: "";
  position: absolute;
  left: 0; top: 32px; bottom: 32px;
  width: 3px; border-radius: 3px;
  background: var(--red);
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -26px rgba(21,16,15,.3); }
.why-card h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.35; }
.why-card p { font-size: 14.5px; }

/* =========================================================
   SECURITY
   ========================================================= */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  background: #fff;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.sec-card:hover { transform: translateY(-3px); border-color: var(--red); }
.sec-ic {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--red-tint);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.sec-ic svg { width: 19px; height: 19px; }
.sec-card h3 { font-size: 16px; margin-bottom: 8px; }
.sec-card p { font-size: 13.5px; }

/* =========================================================
   SPECIALTIES
   ========================================================= */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.spec-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
}
.spec-block .sub-label { color: var(--red); }

/* =========================================================
   ENGAGEMENT
   ========================================================= */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.eng-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.eng-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(21,16,15,.3); }
.eng-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  position: relative;
}
.eng-card.featured::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(160deg, var(--red), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.eng-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.eng-card.featured .eng-tag { color: var(--red-bright); }
.eng-card h3 { font-size: 19px; margin-bottom: 12px; }
.eng-card.featured h3 { color: #fff; }
.eng-card p { font-size: 14px; flex: 1; }
.eng-card.featured p { color: var(--muted-dark); }
.best-for {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.eng-card.featured .best-for { color: var(--muted-dark); border-top-color: var(--line-dark); }
.best-for b { color: var(--red); font-weight: 500; }
.eng-card.featured .best-for b { color: var(--red-bright); }

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta {
  background:
    radial-gradient(700px 360px at 50% -30%, rgba(241,40,63,.28), transparent 60%),
    var(--ink);
  text-align: center;
  padding: 110px var(--pad-x);
}
.cta h2 { max-width: 20ch; margin: 16px auto 18px; color: #fff; }
.cta h2 em { font-style: italic; color: var(--red-bright); }
.cta p { max-width: 52ch; margin: 0 auto 34px; color: var(--muted-dark); font-size: 17px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #0E0B0A; color: #fff; padding: 72px var(--pad-x) 36px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-name { color: #fff; }
.footer-desc { font-size: 14px; color: var(--muted-dark); line-height: 1.7; margin: 18px 0 22px; max-width: 38ch; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  font-size: 12.5px;
  color: var(--muted-dark);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.footer-social a:hover { border-color: var(--red); color: #fff; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 14px; color: var(--muted-dark); text-decoration: none; margin-bottom: 11px; transition: color .18s var(--ease), padding-left .18s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-dark); }
.footer-badge svg { width: 14px; height: 14px; color: var(--red); }

/* =========================================================
   MOTION — reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root { --pad-x: 36px; }
  .trust-num { font-size: 28px; }
}
@media (max-width: 880px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cycle { max-width: 360px; }
  .card-grid, .why-grid, .spec-grid, .flow-columns { grid-template-columns: 1fr; }
  .sec-grid, .eng-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .trust-item { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  :root { --pad-x: 22px; }
  section { padding: 72px var(--pad-x); }
  .hero { padding: 56px var(--pad-x) 64px; }
  .trust { padding: 36px var(--pad-x); }
  .footer-grid { grid-template-columns: 1fr; }
  .flow-step { grid-template-columns: 40px 1fr; gap: 18px; }
  .flow-node { width: 40px; height: 40px; }
  .flow::before { left: 19px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}
