/* =============================================
   FinOps Consult — Global Stylesheet
   Design system: navy/teal/gold, IBM Plex
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ---- Tokens ---- */
:root {
  --navy:   #0A1628;
  --navy-2: #0E1C2E;
  --navy-3: #12233A;
  --line:   rgba(255,255,255,0.085);
  --line-2: rgba(255,255,255,0.14);
  --teal:   #00C2A8;
  --teal-d: #00A28C;
  --gold:   #FFB800;
  --gold-d: #E0A200;
  --ink:    #EAF1F8;
  --muted:  #8DA2B8;
  --muted-2:#637C97;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw: 1140px;
  --pad:  clamp(20px, 5vw, 64px);
  --r: 13px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--teal); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---- Layout ---- */
.wrap   { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 720px; margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section + .section { padding-top: 0; }

/* ---- Typography ---- */
h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 500;
}
h1 .accent { color: var(--teal); font-weight: 600; }
h1 .gold   { color: var(--gold); font-weight: 600; }

h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.13;
  letter-spacing: -0.025em;
  font-weight: 500;
}
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--teal); opacity: .7; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.gold::before { background: var(--gold); }

.lede { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.65; }
.body-lg { font-size: 18px; line-height: 1.75; color: var(--muted); }
.mono-sm { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .06em; }

.sec-head { margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head h2 { margin-top: 8px; }
.sec-head p  { color: var(--muted); margin-top: 14px; max-width: 56ch; }

/* ---- Buttons ---- */
.btn {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
  transition: transform .15s ease, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #04231E; }
.btn-primary:hover { background: #1ad4ba; transform: translateY(-1px); }
.btn-gold    { background: var(--gold); color: #241900; }
.btn-gold:hover { background: #ffc62e; transform: translateY(-1px); }
.btn-ghost   { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 34px; }

/* ---- Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 600; letter-spacing: .02em;
}
.brand .mark { width: 22px; height: 22px; flex: none; }
.brand small {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .18em; color: var(--muted);
  text-transform: uppercase; font-weight: 500;
  display: block; margin-top: 2px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14.5px; color: var(--muted);
  list-style: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta { padding: 10px 17px !important; }
.hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px var(--pad) 24px;
  border-top: 1px solid var(--line);
  background: var(--navy-2);
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.mobile-nav a:hover { color: var(--ink); }
.mobile-nav .btn { margin-top: 12px; text-align: center; justify-content: center; }

/* ---- Cards ---- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--navy-2);
  padding: clamp(22px, 3vw, 30px);
  transition: border-color .25s, transform .2s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--teal); margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p  { color: var(--muted); font-size: 15px; }

.svc-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 32px);
  background: linear-gradient(180deg, var(--navy-3), var(--navy));
  overflow: hidden;
  transition: border-color .25s, transform .2s;
}
.svc-card::after {
  content: "";
  position: absolute; left: 0; top: 0;
  height: 1px; width: 100%;
  background: var(--teal-d);
  opacity: 0; transition: opacity .3s;
}
.svc-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.svc-card:hover::after { opacity: .7; }
.svc-card .badge {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: #241900; background: var(--gold);
  padding: 4px 10px; border-radius: 20px; font-weight: 600;
}
.svc-card .idx { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.svc-card h3 { margin: 16px 0 8px; }
.svc-card p  { color: var(--muted); font-size: 15px; }
.svc-card .go {
  margin-top: 16px; font-size: 14px;
  color: var(--teal); font-weight: 600;
  display: inline-flex; gap: 7px; align-items: center;
}

/* ---- Grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---- Stat block ---- */
.stat-num {
  font-family: var(--mono);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: .9;
}
.stat-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

/* ---- Trust bar ---- */
.trust-bar {
  border-block: 1px solid var(--line);
  padding-block: 22px;
}
.trust-bar .inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.trust-bar .label { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); }
.trust-bar .items { display: flex; gap: 28px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust-bar .stat  { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.trust-bar .stat b { color: var(--gold); font-weight: 600; }

/* ---- Timeline ---- */
.timeline { position: relative; margin-top: 40px; }
.timeline::before {
  content: ""; position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line-2);
}
.t-step { position: relative; padding: 0 0 32px 64px; }
.t-step:last-child { padding-bottom: 0; }
.t-step .dot {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); border: 1px solid var(--teal-d);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--teal);
}
.t-step .wk { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.t-step h3 { margin: 6px 0 6px; }
.t-step p  { color: var(--muted); font-size: 15px; max-width: 54ch; }

/* ---- Method steps ---- */
.method-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; margin-top: 48px; position: relative;
}
.method-grid::before {
  content: ""; position: absolute;
  top: 19px; left: 5%; right: 5%;
  height: 1px; background: var(--line-2);
}
.method-step { position: relative; padding-right: 20px; }
.method-step .dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--teal);
  position: relative; z-index: 1;
}
.method-step h3 { margin: 20px 0 8px; }
.method-step p  { color: var(--muted); font-size: 14px; }

/* ---- Checklist ---- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; margin-top: 32px; }
.check-item { display: flex; gap: 14px; align-items: flex-start; }
.check-item .tk {
  width: 24px; height: 24px; border-radius: 7px;
  background: rgba(0,194,168,.12); border: 1px solid var(--teal-d);
  flex: none; display: grid; place-items: center; margin-top: 2px;
}
.check-item p { font-size: 16px; }

/* ---- Spec card ---- */
.spec-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  padding: 6px 22px;
  box-shadow: 0 24px 50px -34px rgba(0,0,0,.6);
}
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line); gap: 20px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.spec-row .v { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.spec-row .v.gold { color: var(--gold); }

/* ---- Panels ---- */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--navy-2);
  padding: clamp(24px, 4vw, 40px);
}
.panel.gold-glow {
  border-color: rgba(255,184,0,.25);
  background: linear-gradient(135deg, rgba(255,184,0,.10), rgba(10,22,40,.2) 60%), var(--navy-2);
}

/* ---- CTA Band ---- */
.cta-band {
  border: 1px solid rgba(255,184,0,.25);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,184,0,.10), rgba(10,22,40,.2) 60%), var(--navy-2);
  padding: clamp(34px, 5vw, 56px);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { max-width: 22ch; margin-bottom: 0; }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  padding: 22px 0; font-size: 18px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
summary::-webkit-details-marker { display: none; }
summary .pl { font-family: var(--mono); color: var(--teal); font-size: 20px; flex: none; transition: transform .25s; }
details[open] summary .pl { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 15.5px; padding: 0 0 24px; max-width: 64ch; line-height: 1.65; }

/* ---- Quote ---- */
.pull-quote {
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 28px;
}
.pull-quote p { font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.pull-quote .by { font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); margin-top: 16px; letter-spacing: .04em; }

/* ---- Ledger chart ---- */
.ledger-wrap {
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 22px 16px;
  box-shadow: 0 24px 50px -34px rgba(0,0,0,.6);
}
.ledger-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ledger-top .t { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ledger-top .v { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.delta-pill {
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--gold);
  border: 1px solid rgba(255,184,0,.28); background: rgba(255,184,0,.05);
  padding: 3px 9px; border-radius: 30px; letter-spacing: .02em;
}
.ledger-cap { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-top: 12px; text-align: center; }

/* ---- Pain cards ---- */
.pains { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pain { background: var(--navy); padding: 30px 28px; transition: background .3s; }
.pain:hover { background: var(--navy-2); }
.pain .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.pain h3 { margin: 14px 0 8px; }
.pain p { color: var(--muted); font-size: 15px; }

/* ---- Outcome cards ---- */
.oc { border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; background: var(--navy-2); transition: transform .2s, border-color .2s; }
.oc:hover { transform: translateY(-2px); border-color: var(--line-2); }
.oc .num { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--gold); letter-spacing: -0.02em; }
.oc h3 { font-size: 16px; margin: 14px 0 6px; }
.oc p { color: var(--muted); font-size: 14px; }

/* ---- Result hero ---- */
.result-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: radial-gradient(120% 140% at 12% 0%, rgba(255,184,0,.07), transparent 55%), var(--navy-2);
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.result-big { font-family: var(--mono); font-size: clamp(52px, 9vw, 96px); font-weight: 600; color: var(--gold); line-height: .9; letter-spacing: -0.03em; }
.result-big span { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 16px; font-weight: 500; }
.result-by { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--muted-2); letter-spacing: .04em; }

/* ---- Disclaimer ---- */
.disclaimer {
  font-family: var(--mono); font-size: 12px; color: var(--muted-2);
  line-height: 1.6; border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 20px; margin-top: 12px;
}

/* ---- Metric row ---- */
.metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.metric { background: var(--navy); padding: 26px 24px; }
.metric .v { font-family: var(--mono); font-weight: 600; font-size: clamp(26px, 3.6vw, 36px); color: var(--gold); letter-spacing: -0.02em; }
.metric .v.teal { color: var(--teal); }
.metric .k { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* ---- Glance panel ---- */
.glance { border: 1px solid var(--line); border-radius: var(--r); background: var(--navy-2); padding: 6px 22px; }
.glance-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 20px; }
.glance-row:last-child { border-bottom: none; }
.glance-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.glance-row .v { font-family: var(--mono); font-size: 14px; color: var(--ink); text-align: right; }

/* ---- Insights ---- */
.insight-card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--navy-2); padding: 28px;
  transition: border-color .25s, transform .2s;
  display: flex; flex-direction: column;
}
.insight-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.insight-card .pillar {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.insight-card h3 { font-size: 18px; margin-bottom: 10px; }
.insight-card p { color: var(--muted); font-size: 15px; flex: 1; }
.insight-card .read-more { margin-top: 18px; color: var(--teal); font-weight: 600; font-size: 14px; }

/* ---- Article ---- */
.article-body { max-width: 68ch; }
.article-body p  { color: var(--muted); font-size: 17px; line-height: 1.8; margin-bottom: 20px; }
.article-body h2 { margin: 40px 0 16px; font-size: 26px; }
.article-body h3 { margin: 28px 0 12px; font-size: 20px; }
.article-body ul { margin: 0 0 20px 20px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }

/* ---- Contact form ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--navy);
  border: 1px solid var(--line-2); border-radius: 7px;
  padding: 13px 16px; color: var(--ink);
  font-family: var(--sans); font-size: 15px;
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-2); }
.form-group select option { background: var(--navy-2); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 10px; }

/* ---- About beliefs ---- */
.belief { border-left: 2px solid var(--teal); padding: 4px 0 4px 18px; margin-bottom: 18px; }
.belief h4 { margin-bottom: 6px; }
.belief p { color: var(--muted); font-size: 15px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 54px 40px;
  margin-top: clamp(40px, 7vw, 90px);
}
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 500; }
.footer-col a  { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom small { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .method-grid::before { display: none; }
  .result-panel { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-desktop-cta { display: none; }
  .hamburger { display: flex; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
