:root {
  /* Cool off-white paper + steel blue — inspired by John's layout, no royal, no gradient */
  --paper:    #F4F7FB;   /* blue-tinted off-white */
  --paper-2:  #EDF2F8;
  --paper-3:  #E4EBF3;
  --white:    #FFFFFF;

  --ink:      #0B1220;   /* near-black with blue undertone */
  --ink-2:    #152131;
  --ink-3:    #3A4A60;
  --muted:    #5C6B80;
  --line:     #D8E0EB;
  --line-2:   #C4CFDD;

  --blue:     #1E5EA6;   /* steel blue — calm, editorial */
  --blue-2:   #164876;
  --blue-3:   #0E3A60;
  --blue-soft:#DCE8F5;   /* chip/pill fill */
  --blue-ink: #0C2C4C;

  --ok:       #0F6B3F;
  --ok-bg:    #E5F3EC;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* === TYPOGRAPHY === */
.display {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--ink);
}
.display .accent { color: var(--blue); }
.h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
}
.h2.light { color: var(--paper); }
h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--ink);
}
h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--blue);
  padding: 7px 16px;
  border: 1px solid var(--blue-soft);
  border-radius: 999px;
  background: var(--blue-soft);
  margin-bottom: 24px;
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.eyebrow.center { text-align: center; }
.sub, .lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 660px;
  margin: 0 0 28px;
  font-weight: 400;
}
.lede.light { color: rgba(244, 247, 251, 0.82); }

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 247, 251, 0.96);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand-mark { color: var(--blue); flex-shrink: 0; }
.brand-name {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.022em;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.nav-links > a,
.nav-btn {
  color: var(--ink-3);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.003em;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s ease;
}
.nav-links > a:hover,
.nav-btn:hover { color: var(--blue); }
.nav-dd { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -12px;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 20px 50px -18px rgba(11,18,32,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-dd:hover .nav-menu,
.nav-dd:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-2);
}
.nav-menu a:hover { background: var(--paper-2); color: var(--blue); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.link-subtle {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}
.link-subtle:hover { color: var(--blue); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 16px;
  }
  .nav-links.open .nav-dd { width: 100%; }
  .nav-links.open .nav-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 6px 0 0 12px;
  }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.003em;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

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

.btn-ghost {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-inverse {
  background: var(--white);
  color: var(--blue);
}
.btn-inverse:hover { background: var(--paper-3); }

.btn-ghost-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

/* === HERO === */
.hero {
  padding: 80px 0 100px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero .container { text-align: center; max-width: 980px; }
.hero .display { margin-left: auto; margin-right: auto; }
.hero .sub { margin-left: auto; margin-right: auto; }
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
  justify-content: center;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
}
.value {
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: left;
  transition: border-color .15s, transform .15s;
}
.value:hover { border-color: var(--blue-soft); transform: translateY(-2px); }
.value-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.value h3 { margin-bottom: 8px; font-size: 17px; }
.value p {
  font-size: 14.5px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* === SECTIONS === */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.section-alt { background: var(--paper-2); }
.section-mute { background: var(--paper-3); }
.section-dark {
  background: var(--blue-3);
  color: var(--white);
  border: none;
}
.section-head { margin-bottom: 44px; max-width: 720px; text-align: center; margin-left: auto; margin-right: auto; }
.section-head .eyebrow { text-align: center; }

/* === PRODUCTS === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product {
  padding: 28px 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product:hover {
  border-color: var(--blue-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -20px rgba(11,18,32,0.12);
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-head h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.012em; }
.product p { color: var(--ink-3); font-size: 14.5px; margin: 0; flex: 1; line-height: 1.6; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--muted);
  border: 1px solid var(--line);
}
.pill-live {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #C6E3D0;
}
.pill-solid {
  background: var(--blue-soft);
  color: var(--blue);
  border: none;
  padding: 5px 14px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* === SPLIT (featured product) === */
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.split-text .pill-solid { margin-bottom: 18px; display: inline-block; }
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.window {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(11,18,32,0.14);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.window-bar > span:nth-child(-n+3) {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.window-bar > span:first-child { background: #ff5f57; }
.window-bar > span:nth-child(2) { background: #febc2e; }
.window-bar > span:nth-child(3) { background: #28c840; }
.window-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: var(--muted);
}
.window-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
}
.row { display: flex; gap: 16px; align-items: center; }
.row-head {
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.row-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.row-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.cell.val {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  height: 100px;
  gap: 6px;
  padding: 8px 0;
}
.chart .bar {
  height: var(--h, 50%);
  background: var(--paper-3);
  border-radius: 2px 2px 0 0;
}
.chart .bar:nth-child(3n+2) { background: var(--blue); }
.row-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-text { text-align: center; }
}

/* === TRUST === */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.trust {
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.trust strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink);
}
.trust span {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === CTA DARK === */
.section-dark {
  padding: 112px 0;
  background: var(--blue-3);
}
.section-dark .eyebrow { color: rgba(244, 247, 251, 0.55); }
.cta-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}
.section-dark .cta-row { justify-content: center; margin-top: 32px; }

/* === FOOTER === */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 60px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 42px;
  align-items: start;
}
.footer-brand .brand { margin-bottom: 20px; }
.footer-tag {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  max-width: 280px;
  line-height: 1.55;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--ink-3);
  transition: color .15s;
}
.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.build-tag {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* === BACK TO TOP === */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  border: none;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 60;
  box-shadow: 0 12px 30px -10px rgba(11,18,32,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-2); }

@media (max-width: 560px) {
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .section-dark { padding: 80px 0; }
  .container { padding: 0 20px; }
}
