/* ============================================================
   Bagheera Tech — "Ghost Rosette" design system
   Editorial luxury inspired by the black panther:
   warm black coat · amber eyes · jungle green · ivory
   ============================================================ */

:root {
  --ink: #0d0b09;          /* warm panther black */
  --panel: #14110e;
  --panel-2: #191510;
  --line: rgba(242, 237, 227, 0.1);
  --text: #f2ede3;          /* ivory */
  --muted: #a89e8d;         /* warm stone */
  --blue: #d4a342;          /* amber — Financial Systems */
  --teal: #5fae85;          /* jungle green — Healthcare Systems */
  --blue-dim: rgba(212, 163, 66, 0.12);
  --teal-dim: rgba(95, 174, 133, 0.12);
  --radius: 4px;
  --max: 1120px;
  --font-display: "Fraunces", serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 11, 9, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em;
  display: flex; align-items: center; gap: 12px;
}
/* Brand mark: a single quiet rosette */
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1px solid var(--blue);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue) 0%, rgba(212,163,66,0.25) 70%, transparent 100%);
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 0.86rem; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta {
  padding: 10px 22px; border-radius: 2px;
  border: 1px solid var(--blue);
  color: var(--blue) !important; font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--blue); color: var(--ink) !important; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 2px; color: var(--text); padding: 8px 14px;
  font-size: 0.8rem; letter-spacing: 0.12em; cursor: pointer;
}

/* ---------- Type & shared atoms ---------- */
.eyebrow {
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--blue); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 620px; }

.grad-text { color: var(--blue); font-style: italic; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: 2px; font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-primary:hover { background: #e2b458; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

section { padding: 104px 0; }
.section-head { margin-bottom: 54px; max-width: 720px; }

/* ---------- Ghost rosettes ----------
   A black panther's coat hides faint leopard rosettes,
   visible only when light catches the fur. This texture
   does the same: barely there, found rather than shown. */
.rosettes {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at center, transparent 9px, rgba(212, 163, 66, 0.05) 10px, rgba(212, 163, 66, 0.05) 12px, transparent 13px),
    radial-gradient(circle at center, transparent 9px, rgba(242, 237, 227, 0.03) 10px, rgba(242, 237, 227, 0.03) 12px, transparent 13px);
  background-size: 110px 110px, 110px 110px;
  background-position: 0 0, 55px 55px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 25%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 25%, black 20%, transparent 75%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 130px;
  border-bottom: 1px solid var(--line);
}
.hero-bg { display: none; }
.hero-glow-blue, .hero-glow-teal {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  filter: blur(150px); opacity: 0.1; z-index: 0; pointer-events: none;
}
.hero-glow-blue { background: var(--blue); top: -260px; left: -180px; }
.hero-glow-teal { background: var(--teal); bottom: -300px; right: -180px; }
.hero-inner { position: relative; z-index: 1; max-width: 800px; }
.hero .lede { margin: 28px 0 42px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.panther-eyes { display: none; }

.current-line {
  height: 1px; width: 120px; margin-top: 34px;
  background: var(--blue); position: relative;
}
.current-line::after {
  content: ""; position: absolute; top: -2.5px; left: 0;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  animation: prowl 5.5s ease-in-out infinite;
}
@keyframes prowl {
  0%, 100% { left: 0; }
  50% { left: calc(100% - 6px); }
}

/* ---------- Vertical cards (amber / green) ---------- */
.verticals { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vertical-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 44px 38px;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.vertical-card.finance:hover { border-color: rgba(212,163,66,0.55); background: var(--panel-2); }
.vertical-card.health:hover { border-color: rgba(95,174,133,0.55); background: var(--panel-2); }
.vertical-tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; display: inline-block; margin-bottom: 22px;
}
.finance .vertical-tag { color: var(--blue); }
.health .vertical-tag { color: var(--teal); }
.vertical-card h3 { font-size: 1.7rem; margin-bottom: 16px; }
.vertical-card p { color: var(--muted); margin-bottom: 26px; }
.link-arrow { font-weight: 600; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.finance .link-arrow { color: var(--blue); }
.health .link-arrow { color: var(--teal); }

/* ---------- Capabilities grid ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cap {
  background: var(--ink); padding: 34px 30px;
  transition: background 0.3s ease;
}
.cap:hover { background: var(--panel); }
.cap-icon {
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 18px;
  display: grid; place-items: center;
  border: 1px solid var(--blue);
  color: var(--blue); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em;
}
.cap h3 { font-size: 1.15rem; margin-bottom: 8px; }
.cap p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Why section ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why { padding: 36px 32px; border-top: 1px solid var(--blue); background: var(--panel); }
.why-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--blue); display: block; margin-bottom: 20px;
}
.why h3 { margin-bottom: 12px; }
.why p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Detail pages ---------- */
.page-hero { padding: 120px 0 80px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .lede { margin-top: 24px; }
.accent-finance .grad-text { color: var(--blue); }
.accent-health .grad-text { color: var(--teal); }
.accent-health .eyebrow { color: var(--teal); }
.accent-health .eyebrow::before { background: var(--teal); }

.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--ink); padding: 36px 32px; transition: background 0.3s ease; }
.service:hover { background: var(--panel); }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 0.95rem; }
.service-mark {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; display: block; margin-bottom: 16px;
}
.accent-finance .service-mark { color: var(--blue); }
.accent-health .service-mark { color: var(--teal); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel);
  text-align: center;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--muted); margin-bottom: 34px; }

/* ---------- About ---------- */
.about-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.stat-stack { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--ink); padding: 28px 30px; }
.stat b { font-family: var(--font-display); font-weight: 500; font-size: 2rem; display: block; color: var(--blue); }
.stat span { color: var(--muted); font-size: 0.9rem; }
.about-body p + p { margin-top: 20px; }
.about-body p { color: var(--muted); }
.about-body p strong { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--muted); margin-bottom: 26px; }
.contact-line { font-size: 0.95rem; margin-bottom: 12px; color: var(--text); }
.contact-line span { color: var(--blue); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; font-weight: 600; }
form.contact-form { display: grid; gap: 18px; }
.field label {
  display: block; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%; background: transparent; border: 1px solid var(--line);
  border-radius: 2px; padding: 14px 16px; color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
}
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 44px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 330px; margin-top: 14px; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav div { display: grid; gap: 12px; align-content: start; }
.footer-nav b {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin-bottom: 4px;
}
.footer-nav a { color: var(--muted); font-size: 0.94rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Focus & motion ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .current-line::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cap-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .about-cols, .contact-cols { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  section { padding: 72px 0; }
  .hero { padding: 100px 0 84px; }
  .verticals, .cap-grid, .why-grid, .service-list { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 16px 24px 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 0.95rem; }
  .nav-cta { margin-top: 8px; }
  .nav-toggle { display: block; }
}

/* ---------- v4 additions: section indexes, stats band, agentic AI ---------- */
.sec-index {
  display: block; font-size: 0.72rem; letter-spacing: 0.24em;
  color: var(--muted); margin-bottom: 10px;
}
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.stat-cell { background: var(--ink); padding: 34px 26px; text-align: center; }
.stat-cell b { font-family: var(--font-display); font-weight: 500; font-size: 2.1rem; display: block; color: var(--blue); }
.stat-cell span { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.04em; }

.domains-strip {
  display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center;
  padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.domains-strip span {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}

.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ai-card {
  border: 1px solid var(--line); border-left: 2px solid var(--blue);
  background: var(--panel); padding: 36px 32px; border-radius: 0;
  transition: background 0.3s ease;
}
.ai-card:hover { background: var(--panel-2); }
.ai-card.green { border-left-color: var(--teal); }
.ai-card h3 { margin-bottom: 12px; }
.ai-card p { color: var(--muted); font-size: 0.95rem; }
.ai-card ul { margin: 16px 0 0 0; list-style: none; display: grid; gap: 8px; }
.ai-card li { color: var(--muted); font-size: 0.92rem; padding-left: 18px; position: relative; }
.ai-card li::before { content: "—"; position: absolute; left: 0; color: var(--blue); }
.ai-card.green li::before { color: var(--teal); }
.ai-note { margin-top: 30px; padding: 22px 26px; border: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.ai-note strong { color: var(--text); }
@media (max-width: 900px) { .stats-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .ai-grid { grid-template-columns: 1fr; } .stats-row { grid-template-columns: 1fr 1fr; } }

/* ---------- v5: photographic identity ---------- */
.brand-logo {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  object-fit: cover; border: 1px solid rgba(212, 163, 66, 0.5);
}
.brand-mark { display: none; }
.hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 62%;
  background-image: url("panther-eye.jpg");
  background-size: cover; background-position: 62% 38%;
  z-index: 0; pointer-events: none;
  mask-image: linear-gradient(to left, black 30%, transparent 92%);
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 92%);
  opacity: 0.85;
}
.hero { background: var(--ink); }
.hero-inner { max-width: 640px; }
@media (max-width: 900px) {
  .hero-photo { width: 100%; opacity: 0.35;
    mask-image: linear-gradient(to left, black 20%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.2) 100%);
    -webkit-mask-image: linear-gradient(to left, black 20%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.2) 100%);
  }
}
