:root {
  --ink: #12283a;
  --muted: #617383;
  --navy: #0b263f;
  --blue: #176fc1;
  --blue-dark: #0d579a;
  --teal: #218f92;
  --aqua: #bfe8e5;
  --sand: #f4f1e9;
  --paper: #fff;
  --mist: #f5f8fa;
  --line: #dce6eb;
  --radius: 24px;
  --shadow: 0 30px 90px rgba(11, 38, 63, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 230, 235, .82);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { text-decoration: none; font-size: 20px; font-weight: 780; letter-spacing: -.035em; }
.wordmark span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links > a:hover { color: var(--blue); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 720;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 12px 28px rgba(23, 111, 193, .23); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { border-color: #bfd0db; background: #fff; }
.button.secondary:hover { background: #f4f8fa; }
.nav-button { min-height: 40px; padding-inline: 15px; color: #fff !important; }

.eyebrow { margin: 0 0 17px; color: var(--blue); font-size: 13px; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(49px, 6.6vw, 82px); line-height: .98; letter-spacing: -.058em; text-wrap: balance; }
h2 { margin-bottom: 17px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.046em; text-wrap: balance; }
h3 { letter-spacing: -.025em; }
.lead { color: var(--muted); font-size: 20px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.microcopy { margin: 16px 0 0; color: #748592; font-size: 13px; }

.labs-hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 92px;
  background:
    radial-gradient(circle at 82% 7%, rgba(136, 213, 235, .4), transparent 31%),
    radial-gradient(circle at 4% 88%, rgba(172, 227, 207, .28), transparent 27%),
    linear-gradient(180deg, #f6fafc, #fff 84%);
}
.labs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .38;
  background-image: linear-gradient(rgba(23,111,193,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(23,111,193,.06) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.labs-hero-inner { position: relative; z-index: 1; max-width: 950px; }
.labs-hero h1 { max-width: 880px; }
.labs-hero .lead { max-width: 710px; }

.products { padding: 40px 0 110px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.product-list { display: grid; gap: 28px; }
.product-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(11,38,63,.08);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover { transform: translateY(-4px); border-color: #b7d0df; box-shadow: var(--shadow); }
.product-card::after { content: ""; position: absolute; width: 280px; height: 280px; right: -150px; bottom: -180px; border-radius: 50%; background: rgba(63, 165, 225, .11); }
.product-card.scheduler::after { background: rgba(41, 170, 157, .12); }
.product-icon { width: 180px; height: 180px; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(11,38,63,.2)); }
.product-copy { position: relative; z-index: 1; }
.product-kicker { margin-bottom: 6px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.scheduler .product-kicker { color: #187d7d; }
.product-card h3 { margin-bottom: 9px; font-size: clamp(29px, 4vw, 42px); }
.product-card p { max-width: 650px; margin: 0; color: var(--muted); font-size: 17px; }
.arrow { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; background: var(--navy); font-size: 22px; transition: transform 180ms ease; }
.product-card:hover .arrow { transform: translateX(3px); }

.principles { padding: 105px 0; color: #fff; background: var(--navy); }
.principles .eyebrow { color: #81d5e9; }
.principles h2 { max-width: 780px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.principle { padding: 28px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.055); }
.principle b { display: block; margin-bottom: 8px; font-size: 18px; }
.principle p { margin: 0; color: #bdd0dd; font-size: 15px; }

.product-hero { position: relative; overflow: hidden; padding: 92px 0 100px; background: linear-gradient(180deg, #f4f9fc, #fff); }
.product-hero.scheduler { background: linear-gradient(180deg, #f2faf8, #fff); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; align-items: center; gap: 70px; }
.hero-product-name { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 25px; font-size: 16px; font-weight: 760; }
.hero-product-name img { width: 54px; height: 54px; }
.product-hero h1 { font-size: clamp(48px, 6vw, 74px); }
.product-hero .lead { max-width: 650px; }

.schedule-window { overflow: hidden; border: 1px solid #b9ced7; border-radius: 18px; background: #fff; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.window-top { display: flex; align-items: center; height: 39px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #f7f9fa; }
.dots { display: flex; gap: 7px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d3dce1; }
.window-top b { margin: auto; padding-right: 35px; color: #62737f; font-size: 10px; }
.schedule-body { padding: 17px; }
.schedule-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 13px; }
.schedule-stat { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.schedule-stat span { display: block; color: #7b8d98; font-size: 7px; text-transform: uppercase; }
.schedule-stat b { font-size: 15px; }
.schedule-grid { display: grid; grid-template-columns: 92px repeat(7, 1fr); gap: 4px; }
.schedule-grid div { min-height: 25px; border-radius: 4px; background: #e7eff3; }
.schedule-grid .label { display: flex; align-items: center; padding-left: 7px; color: #627783; background: transparent; font-size: 7px; }
.schedule-grid .blue { background: #48a8d8; }
.schedule-grid .teal { background: #36b99c; }
.schedule-grid .gold { background: #f3ca47; }
.schedule-grid .coral { background: #e87161; }
.schedule-grid .slate { background: #91a8b5; }
.schedule-note { display: flex; gap: 9px; margin-top: 13px; padding: 10px; border-radius: 8px; color: #2d715c; background: #eaf7f2; font-size: 9px; }

.capability-section { padding: 105px 0; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.capability { padding: 27px; border: 1px solid var(--line); border-radius: 18px; }
.capability-number { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 19px; border-radius: 12px; color: #16776f; background: #e5f5f1; font-size: 12px; font-weight: 850; }
.capability h3 { margin-bottom: 8px; font-size: 19px; }
.capability p { margin: 0; color: var(--muted); font-size: 15px; }

.workflow { padding: 105px 0; background: var(--sand); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 45px; }
.step { position: relative; padding: 25px; border: 1px solid #d9d5ca; border-radius: 17px; background: rgba(255,255,255,.67); }
.step small { color: #16827d; font-size: 12px; font-weight: 850; }
.step h3 { margin: 10px 0 7px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta { padding: 90px 0; }
.cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 48px; border-radius: 25px; color: #fff; background: linear-gradient(125deg, #0b2945, #0c517f 62%, #1775bb); box-shadow: var(--shadow); }
.cta-card h2 { margin-bottom: 8px; font-size: clamp(32px, 4vw, 48px); }
.cta-card p { margin: 0; color: #c6dce9; }
.cta-card .button { color: var(--navy); background: #fff; white-space: nowrap; }

footer { padding: 36px 0 46px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #72828e; font-size: 13px; }
.footer-grid a { color: var(--ink); text-decoration: none; font-weight: 700; }

@media (max-width: 920px) {
  .product-card { grid-template-columns: 150px 1fr auto; }
  .product-icon { width: 140px; height: 140px; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 55px; }
  .schedule-window { width: min(600px, 100%); margin-inline: auto; transform: none; }
  .principle-grid, .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .wrap, .narrow { width: min(100% - 28px, 1160px); }
  .nav { min-height: 64px; }
  .nav-links > a:not(.nav-button) { display: none; }
  .labs-hero { padding: 78px 0 60px; }
  h1 { font-size: clamp(45px, 14vw, 64px); }
  .products, .principles, .capability-section, .workflow { padding-block: 76px; }
  .product-card { grid-template-columns: 88px 1fr; gap: 20px; padding: 24px; }
  .product-icon { width: 88px; height: 88px; }
  .arrow { display: none; }
  .product-card p { font-size: 14px; }
  .product-card h3 { font-size: 27px; }
  .principle-grid, .capability-grid { grid-template-columns: 1fr; }
  .product-hero { padding: 68px 0 78px; }
  .steps { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 70px repeat(7, 1fr); gap: 3px; }
  .schedule-grid div { min-height: 20px; }
  .cta-card { grid-template-columns: 1fr; padding: 34px 26px; }
  .cta-card .button { width: 100%; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .product-card, .arrow { transition: none; }
}
