:root {
  --ink: #171d2e;
  --muted: #606b80;
  --paper: #f5f3ee;
  --panel: #fffefa;
  --line: #d8d6ce;
  --blue: #215681;
  --violet: #4e3fd5;
  --coral: #e85e39;
  --green: #087550;
  --gold: #e5ad49;
  --shadow: 0 18px 52px rgba(15, 23, 42, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  border-bottom: 1px solid rgba(23, 29, 46, 0.12);
  background: rgba(245, 243, 238, 0.94);
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffefa;
  font-size: 0.82rem;
}

nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
}

.nav-button,
.primary-action {
  background: var(--coral);
  color: #fffefa;
}

.secondary-action {
  border: 1px solid rgba(255, 254, 250, 0.34);
  background: rgba(255, 254, 250, 0.12);
  color: #fffefa;
}

.hero {
  min-height: calc(86vh - 72px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(33, 86, 129, 0.66), rgba(232, 94, 57, 0.12)),
    url("assets/live-widget.png") center top / cover no-repeat;
  padding: 8vh max(24px, calc((100vw - 1180px) / 2));
}

.hero-copy {
  max-width: 780px;
  color: #fffefa;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 7.4vw, 6.2rem);
  line-height: 0.94;
}

.lede {
  max-width: 720px;
  color: rgba(255, 254, 250, 0.86);
  font-size: 1.18rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.product-strip div {
  min-height: 118px;
  background: #fffefa;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
}

.product-strip dt,
.product-strip dd {
  margin: 0;
}

.product-strip dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-strip dd {
  margin-top: 10px;
  font-size: 1.18rem;
  font-weight: 850;
}

.product-view,
.workflow,
.buyer-band,
.final-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.product-view,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.22fr);
  gap: 48px;
  align-items: center;
}

.section-copy h2,
.buyer-band h2,
.final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.section-copy p,
.buyer-band p,
.final-cta p,
figcaption,
.feature-band p,
.workflow p {
  color: var(--muted);
  line-height: 1.58;
}

figure {
  margin: 0;
}

figure img,
.final-cta img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.feature-band article {
  min-height: 260px;
  background: var(--ink);
  color: #fffefa;
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
}

.feature-band article:nth-child(2) {
  background: #213d50;
}

.feature-band article:nth-child(3) {
  background: #422f54;
}

.feature-band h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.feature-band p {
  color: rgba(255, 254, 250, 0.76);
}

.screenshots {
  background: #fffefa;
  padding: 88px max(24px, calc((100vw - 1180px) / 2));
}

.screenshots .section-copy {
  max-width: 820px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
  margin-top: 34px;
}

.preview-shot {
  grid-column: span 2;
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  align-self: start;
}

.preview-shot.large {
  grid-column: span 4;
}

.preview-shot.tall {
  grid-column: span 2;
}

.preview-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2f7;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.preview-shot.tall img {
  aspect-ratio: 9 / 12;
}

.preview-shot span {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 850;
}

.workflow ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  min-height: 188px;
  border-top: 4px solid var(--coral);
  background: #fffefa;
  padding: 24px;
}

.workflow li:nth-child(2) {
  border-color: var(--blue);
}

.workflow li:nth-child(3) {
  border-color: var(--violet);
}

.workflow li:nth-child(4) {
  border-color: var(--green);
}

.workflow span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 900;
}

.buyer-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.final-cta {
  padding-bottom: 104px;
}

.final-cta .primary-action {
  margin-top: 10px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 15, 28, 0.78);
  cursor: pointer;
}

.lightbox-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  border-radius: 8px;
  background: #fffefa;
  overflow: hidden;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.lightbox-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.lightbox-close {
  border: 1px solid rgba(23, 29, 46, 0.2);
  border-radius: 8px;
  background: #fff;
  padding: 9px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 94px);
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 74vh;
    padding-top: 12vh;
    background-position: center;
  }

  .product-strip,
  .feature-band,
  .workflow ol,
  .buyer-band,
  .product-view,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .product-strip div {
    min-height: auto;
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-shot,
  .preview-shot.large,
  .preview-shot.tall {
    grid-column: span 1;
  }

  .preview-shot.tall img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .screenshots {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand span:last-child {
    line-height: 1.2;
  }

  nav a:not(.nav-button) {
    display: none;
  }

  .nav-button,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  h1 {
    font-size: 3rem;
  }

  .product-view,
  .workflow,
  .buyer-band,
  .final-cta {
    width: min(100% - 32px, 1180px);
    padding: 60px 0;
  }

  .product-strip {
    grid-template-columns: 1fr 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-panel {
    width: calc(100% - 18px);
    max-height: calc(100vh - 18px);
    margin: 9px auto;
  }
}
