/* RelayIQ — Design System v2.0 implementation */

:root {
  --navy: #013C77;
  --white: #FFFFFF;
  --blue: #3478F6;
  --mist-blue: #CBDDF7;
  --mist: #EFEFEF;
  --grey: #D1D2D3;
  --ink: #0B1620;

  --font-display: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --measure: 640px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Type scale ---------- */

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

.eyebrow.on-dark { color: var(--mist-blue); }

h1, .display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h2, .headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.subhead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
}

p, .body-text {
  font-size: 17px;
  line-height: 1.6;
  color: #2A3542;
  max-width: var(--measure);
}

.on-dark h1, .on-dark h2, .on-dark .subhead { color: var(--white); }
.on-dark p, .on-dark .body-text { color: rgba(255,255,255,0.82); }

a { color: inherit; }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: #2761D6; }

.btn-outline-dark {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline-dark:hover { border-color: var(--white); }

.link-quiet {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
}
.link-quiet:hover { color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo { height: 30px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  margin-right: 32px;
}
.nav-link:hover { color: var(--blue); }

.btn-small { padding: 10px 20px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 96px 0 104px;
}

.motif-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/pattern-nodes.png');
  background-repeat: repeat;
  background-size: 340px 340px;
  opacity: 0.07;
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(1,60,119,0.9) 0%, rgba(1,60,119,0.55) 45%, rgba(1,60,119,0) 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-blue);
  border: 1px solid rgba(203,221,247,0.35);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
}

.hero-headline {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-subhead {
  max-width: 560px;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.85);
}

.hero-actions {
  display: flex;
  align-items: center;
}

.hero-actions .btn-primary { margin-right: 24px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-mist { background: var(--mist); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head .headline { margin-bottom: 16px; }

/* ---------- Problem cards ---------- */

.observation-list {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--grey);
  border-left: none;
  margin-bottom: 40px;
}

.observation-card {
  background: var(--white);
  padding: 32px 28px;
  border-left: 1px solid var(--grey);
  flex: 1 1 0;
}

.observation-card p {
  font-size: 18px;
  color: var(--ink);
  max-width: none;
}

.crm-callout {
  background: var(--navy);
  padding: 28px 32px;
}

.crm-callout strong {
  font-size: 17px;
  color: var(--white);
  margin-right: 10px;
}

.crm-callout span {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
}

/* ---------- Pull quote band ---------- */

.pullquote-band {
  background: var(--navy);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.pullquote-band .wrap {
  max-width: 860px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.pullquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.35;
  color: var(--white);
  letter-spacing: -0.005em;
}

.pullquote-mark {
  display: inline-block;
  font-size: 40px;
  color: var(--blue);
  line-height: 0;
  position: relative;
  top: 10px;
  margin-right: 4px;
}

/* ---------- Shift (before/after) ---------- */

.shift-grid {
  display: flex;
  align-items: stretch;
  margin-bottom: 32px;
}

.shift-panel {
  padding: 32px;
  border-radius: 4px;
  flex: 1 1 0;
}

.shift-panel.before {
  background: var(--mist);
  border: 1px solid var(--grey);
  margin-right: 12px;
}

.shift-panel.after {
  background: var(--mist-blue);
  border: 1px solid var(--blue);
  margin-left: 12px;
}

.shift-panel .label { display: block; margin-bottom: 18px; color: var(--navy); }
.shift-panel.after .label { color: var(--blue); }

.shift-panel ul { list-style: none; }
.shift-panel li {
  font-size: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: var(--ink);
}
.shift-panel li:first-of-type { border-top: none; }

.shift-footer {
  font-size: 17px;
  color: #2A3542;
  max-width: 620px;
}

/* ---------- How it works ---------- */

.steps-list { border-top: 1px solid rgba(255,255,255,0.15); }

.step-row {
  display: flex;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist-blue);
  padding-top: 4px;
  width: 64px;
  flex: 0 0 64px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--white);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
}

.dashboard-preview {
  margin-top: 48px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 20px;
}

.dashboard-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dashboard-preview-head .label { color: rgba(255,255,255,0.6); }

.live-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--blue);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
}

.stage-row {
  padding: 14px 16px;
  border-radius: 4px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
}

.stage-row .label { display: block; color: rgba(255,255,255,0.55); margin-bottom: 8px; }

.stage-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--blue);
  opacity: 0.85;
}

/* ---------- Proof ---------- */

.proof-card {
  border: 1px solid var(--grey);
  padding: 32px;
  margin-bottom: 16px;
}

.proof-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--mist-blue);
  color: var(--navy);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.proof-card p {
  font-style: italic;
  font-size: 18px;
  color: #2A3542;
  max-width: none;
}

/* ---------- Sectors ---------- */

.sector-list { border-top: 1px solid var(--grey); }

.sector-row {
  display: flex;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--grey);
}

.sector-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin-right: 28px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sector-icon svg { width: 22px; height: 22px; }

.sector-name {
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 8px;
}

.sector-row p { margin-bottom: 6px; }
.sector-row p:last-of-type { margin-bottom: 14px; }

.sector-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

/* ---------- Closing CTA ---------- */

.cta-section {
  background: var(--navy);
  padding: 112px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .wrap { position: relative; z-index: 2; }

.cta-section .headline {
  max-width: 700px;
  margin: 0 auto 36px;
  color: var(--white);
}

.cta-note {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo-pill {
  background: var(--white);
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-flex;
}
.footer-logo-pill img { height: 20px; }

.footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  h1, .display { font-size: 40px; }
  h2, .headline { font-size: 30px; }
  .subhead { font-size: 20px; }
  .main-nav .nav-link { display: none; }
  .observation-list { grid-template-columns: 1fr; }
  .shift-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 40px 1fr; }
  .sector-row { grid-template-columns: 44px 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
