/* Grantigo — shared design system */
:root {
  --dark-blue: #10396B;
  --blue: #5285FF;
  --green: #59C471;
  --yellow: #F7C74C;
  --purple: #A865EB;
  --light-blue: #B1D4E1;

  --bg: #FBFBF9;
  --bg-alt: #F2F4F8;
  --ink: #0B1B33;
  --ink-2: #2A3A52;
  --muted: #5C6B82;
  --line: #E4E8EE;
  --white: #FFFFFF;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,57,107,0.06);
  --shadow-md: 0 8px 24px rgba(16,57,107,0.08);
  --shadow-lg: 0 24px 60px rgba(16,57,107,0.14);

  --container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.1; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--dark-blue); color: var(--white); }
.btn-primary:hover { background: #0a2952; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink); padding: 14px 16px; }
.btn-ghost:hover { color: var(--blue); }
.btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── NAV ── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,249,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-item { position: relative; }
.nav-item > .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  padding: 8px 0;
  transition: color .15s;
}
.nav-item > .nav-trigger:hover, .nav-item.open > .nav-trigger { color: var(--dark-blue); }
.nav-item > .nav-trigger svg { transition: transform .2s; }
.nav-item.open > .nav-trigger svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 720px;
  max-width: 90vw;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}
.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a.dd-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  transition: background .15s;
}
.nav-dropdown a.dd-item:hover { background: var(--bg-alt); }
.dd-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.dd-text .dd-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.dd-text .dd-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.4;
}
@media (max-width: 1000px) {
  .nav-dropdown { grid-template-columns: 1fr; width: 320px; }
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 36px; width: auto; display: block; }
footer.site .logo img { filter: brightness(0) invert(1); height: 32px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .15s;
}
.nav-links a:hover { color: var(--dark-blue); }
.nav-links a.active { color: var(--dark-blue); font-weight: 600; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ── SECTIONS ── */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── PAGE HERO (smaller than home hero) ── */
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(82,133,255,0.08), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(89,196,113,0.06), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 56px); }
.page-hero .lede {
  font-size: 19px;
  color: var(--ink-2);
  margin: 24px 0 32px;
  max-width: 640px;
}
.page-hero .breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}
.page-hero .breadcrumb a { color: var(--blue); }

/* ── COMMON CARD GRID ── */
.cards-3, .cards-2, .cards-4 {
  display: grid;
  gap: 20px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; } }

.card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 12px;
  transition: all .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.card .tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(82,133,255,0.1);
  color: var(--blue);
}
.card h3 { margin-bottom: 4px; }
.card p { color: var(--ink-2); font-size: 14.5px; }
.card .meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.card .meta strong { color: var(--ink); font-weight: 600; }
.card a.more {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
}

/* ── DARK SECTIONS ── */
.dark-section {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.dark-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 28% 70%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(2px 2px at 64% 32%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1px 1px at 82% 78%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 48% 12%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(2px 2px at 92% 22%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 6% 60%, rgba(255,255,255,0.5), transparent 50%);
  pointer-events: none;
}
.dark-section .container { position: relative; }
.dark-section h1, .dark-section h2, .dark-section h3 { color: var(--white); }
.dark-section .eyebrow { color: var(--yellow); }
.dark-section p { color: rgba(255,255,255,0.78); }

/* ── CHECK LIST ── */
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--ink-2); font-size: 15px;
}
.checks svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.dark-section .checks li { color: rgba(255,255,255,0.85); }

/* ── PILLS / BADGES ── */
.sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  background: var(--white);
}
.sec-pill svg { color: var(--green); }
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── FORMS (shared) ── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(82,133,255,0.15);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.form-card .btn { width: 100%; justify-content: center; padding: 14px; }
.form-success, .form-error {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; display: none;
}
.form-success { background: rgba(89,196,113,0.12); color: #2f7a44; border: 1px solid rgba(89,196,113,0.4); }
.form-error { background: rgba(249,97,103,0.1); color: #b03a3f; border: 1px solid rgba(249,97,103,0.3); }
.form-success.show, .form-error.show { display: block; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 4px; }
.form-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--dark-blue);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.stat .label { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(160deg, var(--dark-blue) 0%, #0a2244 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(2px 2px at 14% 22%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1.5px 1.5px at 78% 60%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(2px 2px at 38% 78%, rgba(255,255,255,0.4), transparent 50%);
}
.cta-strip .container { position: relative; }
.cta-strip h2 { color: var(--white); }
.cta-strip p { color: rgba(255,255,255,0.78); font-size: 18px; margin: 16px auto 28px; max-width: 560px; }
.cta-strip .btn-primary { background: var(--white); color: var(--dark-blue); }
.cta-strip .btn-primary:hover { background: var(--bg); }
.cta-strip .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.cta-strip .btn-secondary:hover { border-color: var(--white); }
.cta-strip .btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── FOOTER ── */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
footer.site ul a { color: rgba(255,255,255,0.7); transition: color .15s; }
footer.site ul a:hover { color: var(--white); }
.foot-tagline { color: rgba(255,255,255,0.65); margin: 14px 0 20px; max-width: 320px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* utils */
.hide-sm { }
@media (max-width: 600px) { .hide-sm { display: none; } }
.muted { color: var(--muted); }
.center { text-align: center; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 640px; }
.gap-sm { gap: 8px; }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split.tight { gap: 40px; }

/* pretty image */
.frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ── floating KPI tile (overlays segment-hero images) ── */
.frame-wrap { position: relative; }
.kpi-float {
  position: absolute;
  bottom: 24px; left: -20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 16px 40px rgba(11,27,51,0.18);
  z-index: 2;
  max-width: 280px;
  display: flex; align-items: center; gap: 14px;
}
.kpi-float .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--white);
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 13px;
}
.kpi-float .num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px; line-height: 1.1;
  color: var(--dark-blue);
  letter-spacing: -0.02em;
}
.kpi-float .lab { font-size: 12px; color: var(--muted); margin-top: 3px; }
.kpi-float-tr {
  position: absolute;
  top: 22px; right: -16px;
  background: rgba(11,27,51,0.94);
  color: var(--white);
  padding: 11px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(11,27,51,0.22);
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
}
.kpi-float-tr .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(89,196,113,0.25);
}
@media (max-width: 600px) {
  .kpi-float { left: 8px; bottom: 8px; max-width: 240px; padding: 12px 14px; }
  .kpi-float-tr { right: 8px; top: 8px; }
}

/* prose */
.prose { max-width: 720px; }
.prose h2 { margin-top: 48px; margin-bottom: 16px; }
.prose h3 { margin-top: 32px; margin-bottom: 8px; }
.prose p { margin-bottom: 16px; color: var(--ink-2); font-size: 16px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; color: var(--ink-2); }
.prose ul li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
