/* NIL Analytical Solutions — Slate & Steel palette, Sora + Manrope */
:root {
  --bg: #f6f7f9;
  --fg: #2b3444;
  --muted: #6b7480;
  --muted-2: #eef0f4;
  --border: #dde1e8;
  --card: #ffffff;
  --primary: #3b4657;
  --primary-fg: #f6f7f9;
  --accent: #5a6577;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 2px rgba(20,25,35,.05);
  --shadow-md: 0 8px 24px rgba(20,25,35,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-weight: 600; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,247,249,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221,225,232,.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-badge {
  width: 2rem; height: 2rem; border-radius: .5rem;
  background: var(--primary); color: var(--primary-fg);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Sora"; font-weight: 700; font-size: .8rem;
}
.brand-name { font-family: "Sora"; font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em; }
.nav-desktop { display: none; gap: 2rem; font-size: .9rem; font-weight: 500; color: var(--muted); }
.nav-desktop a:hover { color: var(--fg); }
@media (min-width: 768px) { .nav-desktop { display: inline-flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s; }
.btn-sm { padding: .6rem 1.25rem; font-size: .875rem; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: #323c4b; }
.btn-outline { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--muted-2); }
.btn-invert { background: var(--primary-fg); color: var(--primary); }
.btn-invert:hover { background: #e6e8ec; }
.btn-ghost-invert { border-color: rgba(246,247,249,.3); color: var(--primary-fg); }
.btn-ghost-invert:hover { background: rgba(246,247,249,.1); }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; padding: 5rem 1.5rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; padding: 7rem 1.5rem; } }
.eyebrow { font-family: "Sora"; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: 1rem; }
.h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); line-height: 1.1; font-weight: 700; }
.h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem); font-weight: 700; line-height: 1.2; }
.lead { margin-top: 1.5rem; font-size: 1.125rem; color: var(--muted); line-height: 1.7; }
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-center { justify-content: center; }
.hero-image-wrap { position: relative; }
.hero-glow { position: absolute; inset: -1rem; border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(59,70,87,.1), rgba(90,101,119,.1)); filter: blur(40px); }
.hero-image-wrap img { position: relative; border-radius: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-md); }

/* Sections */
.section { padding: 6rem 0; }
.section-muted { background: rgba(238,240,244,.5); }
.section-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-sub { margin-top: 1rem; color: var(--muted); }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow-md); }
.card h3 { margin-top: 1.5rem; font-size: 1.25rem; }
.card p { margin-top: .75rem; color: var(--muted); }
.icon-badge { width: 3rem; height: 3rem; border-radius: .75rem; background: rgba(59,70,87,.1); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }

/* Steps */
.step .step-num { font-family: "Sora"; font-size: 3rem; font-weight: 700; color: var(--border); display: block; }
.step h3 { margin-top: 1rem; font-size: 1.125rem; }
.step p { margin-top: .5rem; font-size: .9rem; color: var(--muted); line-height: 1.6; }

.callout { margin-top: 4rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
  padding: 2rem; border: 1px solid var(--border); background: var(--card); border-radius: 1rem; }
@media (min-width: 640px) { .callout { flex-direction: row; text-align: left; } }
.callout-icon { flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 999px; background: rgba(59,70,87,.1); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.callout h3 { font-size: 1.125rem; }
.callout p { margin-top: .25rem; color: var(--muted); }

/* Case studies */
.case { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; }
.case-tag { font-family: "Sora"; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.case h3 { margin-top: .75rem; font-size: 1.15rem; }
.case > p:not(.case-tag):not(.case-metric) { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.case-metric { margin-top: 1.5rem; font-family: "Sora"; font-weight: 600; color: var(--primary); }

/* CTA */
.cta-card { background: var(--primary); color: var(--primary-fg); border-radius: 1.5rem; padding: 4rem 2rem; text-align: center; }
@media (min-width: 640px) { .cta-card { padding: 5rem 4rem; } }
.cta-title { color: var(--primary-fg); }
.cta-sub { margin: 1rem auto 0; max-width: 640px; font-size: 1.125rem; color: rgba(246,247,249,.8); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 3rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-nav { display: flex; gap: 1.5rem; font-size: .9rem; color: var(--muted); }
.footer-nav a:hover { color: var(--fg); }
.muted { color: var(--muted); font-size: .9rem; }

/* ===========================================================
   Print protection
   Hides all page content when printing
   =========================================================== */

@media print {

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body * {
    display: none !important;
  }

  body::before {
    content: "";
    display: block;
    width: 100vw;
    height: 100vh;
    background:
      url("data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=")
      center center
      no-repeat;
    background-size: contain;
  }

}
@media print {
    html,
    body {
        display: none !important;
    }
}