/* Cadence — shared design tokens & primitives */

:root {
  --bg:           #faf9f7;
  --bg-card:     #ffffff;
  --bg-soft:     #f3f1ec;
  --bg-deep:     #0e1e2a;   /* dark hero panel */
  --bg-deep-2:   #173344;
  --accent:      #106399;   /* ocean blue */
  --accent-dim:  #5a9bd5;
  --accent-soft: #e6eef5;
  --teal:        #356668;
  --teal-soft:   #e3edec;
  --earth:       #6b5c4c;
  --earth-soft:  #ede9e2;
  --danger:      #ba1a1a;
  --danger-soft: #f6e1de;
  --text:        #2f3130;
  --text-muted:  #717880;
  --text-faint:  #a4a8ad;
  --border:      #e3e2e0;
  --border-strong: #c9c7c2;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-card: 0 1px 0 rgba(15, 23, 31, .03), 0 1px 2px rgba(15, 23, 31, .04);
  --shadow-lift: 0 4px 12px rgba(15, 23, 31, .06), 0 1px 2px rgba(15, 23, 31, .04);
  --font-sans:   'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display:'Montserrat', system-ui, sans-serif;
  --font-mono:   ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

/* Layout primitives */
.wrap        { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-tight  { width: 100%; max-width: 920px;  margin: 0 auto; padding: 0 32px; }
.wrap-wide   { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.section     { padding: 96px 0; }
.section-sm  { padding: 64px 0; }
.section-lg  { padding: 128px 0; }

/* Typography */
.font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
}
.h-display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.022em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}
.body  { font-size: 16px; color: var(--text); }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono  { font-family: var(--font-mono); }

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.018em;
  color: var(--text);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.nav-link.active { color: var(--text); background: rgba(16, 99, 153, 0.08); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: transform .15s, background .15s;
}
.nav-cta:hover { background: #1a1c1b; transform: translateY(-1px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #1a1c1b; transform: translateY(-1px); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0d527f; transform: translateY(-1px); }
.btn-ghost   { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-card); border-color: var(--text-muted); }
.btn-link    { color: var(--accent); padding: 0; background: transparent; }
.btn-link:hover { text-decoration: underline; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card-soft {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-dark {
  background: var(--bg-deep);
  color: #e6edf3;
  border-radius: var(--radius);
  padding: 28px;
}
.card-lift { transition: transform .25s ease, box-shadow .25s; }
.card-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pill-accent  { background: var(--accent-soft); color: var(--accent); border-color: rgba(16,99,153,0.15); }
.pill-teal    { background: var(--teal-soft);   color: var(--teal);   border-color: rgba(53,102,104,0.18); }
.pill-earth   { background: var(--earth-soft);  color: var(--earth);  border-color: rgba(107,92,76,0.18); }
.pill-danger  { background: var(--danger-soft); color: var(--danger); border-color: rgba(186,26,26,0.18); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Hero shell */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 24px; display: inline-flex; align-items: center; gap: 10px; }

/* Footer */
.foot {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 96px;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a  { color: var(--text-muted); font-size: 14px; }
.foot a:hover { color: var(--text); }
.foot-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
}

/* Footer CTA strip (NEW-12) */
.foot-cta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.foot-cta-eye {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.foot-cta-h {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.foot-cta-buttons { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.foot-lines {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .foot-cta { grid-template-columns: 1fr; gap: 20px; }
  .foot-cta-buttons { justify-content: flex-start; }
}

/* Decorative blueprint grid (used as bg on some sections) */
.blueprint {
  background-image:
    linear-gradient(to right, rgba(15,23,31,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,31,.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8d6d2; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Hamburger menu ─────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
}
.nav-hamburger:hover { background: rgba(0,0,0,.05); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: rgba(250,249,247,.97);
  backdrop-filter: blur(12px);
}
.nav-mobile-drawer .nav-link {
  padding: 10px 12px;
  font-size: 15px;
  border-radius: 10px;
}
.nav-mobile-drawer .nav-cta {
  margin-top: 8px;
  justify-content: center;
}
.nav-mobile-drawer.open { display: flex; }

/* ── Responsive ─────────────────────────────────── */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }     /* shown in drawer instead */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .section-sm { padding: 44px 0; }
  .h-display { font-size: clamp(30px, 7vw, 56px); }
  .h1 { font-size: clamp(26px, 6vw, 44px); }
  .h2 { font-size: clamp(22px, 5vw, 34px); }
  .card { padding: 20px; }
  .card-soft { padding: 20px; }
}

@media (max-width: 600px) {
  .wrap, .wrap-tight, .wrap-wide { padding: 0 18px; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot { margin-top: 64px; }
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
  .h-display { font-size: clamp(26px, 8vw, 48px); }
  .h1 { font-size: clamp(22px, 7vw, 36px); }
  .h2 { font-size: clamp(20px, 6.5vw, 28px); }
  .h3 { font-size: 18px; }
  .lead { font-size: 15px; }
  .btn { font-size: 13px; padding: 10px 16px; }
  .pill { font-size: 11px; }
  .card { padding: 16px; }
  .card-soft { padding: 16px; }
}
