:root {
  color-scheme: light;
  --page: #f6f8fb;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d9e1ec;
  --blue: #1769e0;
  --cyan: #18c7d2;
  --green: #0a9f63;
  --red: #df3f54;
  --amber: #b7791f;
  --shadow: 0 24px 80px rgba(21, 33, 51, 0.14);
  font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(208px, auto) minmax(280px, 680px) minmax(208px, auto);
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(18px);
}

.landing-topbar-left,
.landing-topbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.landing-topbar-right {
  justify-content: flex-end;
  gap: 8px;
}

.landing-topbar-brand,
.landing-trial-button,
.hero-actions a,
.text-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 760;
}

.landing-topbar-brand {
  appearance: none;
  gap: 8px;
  min-width: 0;
  padding: 0 4px;
  justify-content: flex-start;
  background: transparent;
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.landing-topbar-brand:hover {
  opacity: 0.82;
}

.landing-topbar-brand:active {
  transform: translateY(1px);
}

.landing-topbar-brand:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.landing-brand-logo {
  width: 28px;
  height: 28px;
}

.landing-brand-wordmark {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-search-box {
  width: 100%;
  min-width: 0;
  position: relative;
}

.landing-topbar-search {
  justify-self: stretch;
}

.landing-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  border: 2px solid var(--muted);
  border-radius: 50%;
  opacity: 0.78;
  pointer-events: none;
}

.landing-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
  background: var(--muted);
  transform: rotate(45deg);
  transform-origin: left center;
}

.landing-search-box input[type="search"] {
  width: 100%;
  min-height: 38px;
  padding: 0 16px 0 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.landing-search-box input[type="search"]:focus {
  background: #ffffff;
  border-color: rgba(23, 105, 224, 0.38);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.landing-topbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #263242;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.landing-topbar-nav a,
.site-footer a,
.text-action {
  color: #1c5fc7;
}

.landing-topbar-nav a:hover,
.site-footer a:hover,
.text-action:hover {
  color: #0b3f91;
}

.landing-trial-button {
  padding: 0 18px;
  background: #111827;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef5fc;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(#d7e3f0 1px, transparent 1px),
    linear-gradient(90deg, #d7e3f0 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(540px, calc(100% - 48px));
  margin-left: clamp(24px, 6vw, 104px);
  padding: 74px 0 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 540px;
  margin-bottom: 18px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 28px;
  color: #344256;
}

.hero-lede p {
  margin: 0;
  color: #243653;
  font-size: 18px;
  font-weight: 560;
  line-height: 1.48;
}

.hero-lede-secondary {
  margin-top: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.primary-action {
  padding: 0 22px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 105, 224, 0.22);
}

.secondary-action {
  padding: 0 22px;
  background: #ffffff;
  color: #14345f;
  border: 1px solid #c7d4e4;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(560px, 100%);
  margin: 0;
}

.hero-metrics a {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(199, 212, 228, 0.88);
  border-radius: 8px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-metrics a:hover {
  background: #ffffff;
  border-color: rgba(23, 105, 224, 0.42);
  transform: translateY(-1px);
}

.hero-metrics a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.hero-metrics strong {
  display: block;
  font-size: 18px;
  font-weight: 840;
}

.hero-metrics span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.hero-scene {
  position: absolute;
  inset: 104px -42px 52px 45%;
  z-index: 1;
  display: flex;
  align-items: center;
  color: inherit;
  cursor: pointer;
}

.scene-shell {
  width: min(780px, 96%);
  min-height: 486px;
  padding: 16px;
  background: #0f1724;
  border: 1px solid #27344a;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-scene:hover .scene-shell {
  transform: rotate(-1.2deg) translateY(-2px);
  box-shadow: 0 28px 86px rgba(21, 33, 51, 0.18);
}

.hero-scene:focus-visible {
  outline: none;
}

.hero-scene:focus-visible .scene-shell {
  box-shadow: var(--shadow), 0 0 0 4px rgba(23, 105, 224, 0.22);
}

.scene-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 14px;
  color: #d7e6ff;
  font-size: 13px;
  font-weight: 720;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 12px;
}

.surface-panel,
.heatmap-panel,
.brief-panel,
.flow-panel {
  min-height: 176px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #cfd9e7;
  border-radius: 8px;
}

.panel-heading,
.flow-row,
.risk-strip,
.brief-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-heading {
  margin-bottom: 12px;
  color: #536172;
  font-size: 13px;
}

.panel-heading strong {
  color: #101828;
}

.flow-row {
  min-height: 35px;
  margin-bottom: 7px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
}

.flow-row b {
  color: #111827;
}

.preview-image-frame {
  margin-bottom: 12px;
  height: 174px;
  background: #eef4fb;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  overflow: hidden;
}

.preview-chart-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.preview-chart-image-surface {
  object-position: 50% 52%;
}

.preview-chart-image-heatmap {
  object-position: 0 0;
}

.risk-strip {
  color: #536172;
  font-size: 12px;
}

.brief-panel p {
  color: #304157;
  font-size: 14px;
}

.brief-tags {
  justify-content: flex-start;
}

.brief-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ebf4ff;
  color: #1557ac;
  font-size: 12px;
  font-weight: 760;
}

.flow-row {
  background: #f8fafc;
}

.feature-band,
.workflow-band,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 68px;
  padding: 92px 0 70px;
}

.section-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy p {
  color: #4c596b;
  font-size: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-list article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding-top: 18px;
  border-top: 3px solid #cad6e5;
}

.feature-list article:nth-child(1) {
  border-color: var(--green);
}

.feature-list article:nth-child(2) {
  border-color: var(--blue);
}

.feature-list article:nth-child(3) {
  border-color: var(--cyan);
}

.feature-index {
  color: #7b8797;
  font-size: 13px;
  font-weight: 820;
}

.feature-list h3 {
  margin: 10px 0 8px;
  font-size: 23px;
  line-height: 1.14;
}

.feature-list p {
  color: #4f5c6d;
}

.feature-list a {
  margin-top: auto;
  color: #145bbb;
  font-weight: 760;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: 72px;
  padding: 76px 0 92px;
  border-top: 1px solid var(--line);
}

.workflow-steps {
  display: grid;
  gap: 16px;
}

.workflow-steps article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(199, 212, 228, 0.88);
  border-radius: 8px;
}

.workflow-steps span {
  width: 42px;
  height: 42px;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  color: #124c9f;
  font-weight: 840;
}

.workflow-steps h3 {
  grid-column: 2;
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.16;
}

.workflow-steps p {
  grid-column: 2;
  margin-bottom: 0;
  color: #566274;
  font-size: 16px;
  line-height: 1.55;
}

.section-copy-narrow {
  align-self: center;
}

.text-action {
  justify-content: flex-start;
  color: #145bbb;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: #596678;
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

@media (max-width: 1060px) {
  .landing-topbar {
    grid-template-columns: minmax(170px, auto) minmax(220px, 1fr) auto;
    padding: 0 14px;
  }

  .landing-topbar-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 34px;
  }

  .hero-copy {
    order: 1;
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 54px;
  }

  .hero-scene {
    order: 2;
    position: relative;
    inset: auto;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto 22px;
  }

  .scene-shell {
    width: 100%;
    transform: none;
  }

  .hero-scene:hover .scene-shell {
    transform: translateY(-2px);
  }

  .feature-band,
  .workflow-band {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .workflow-band {
    align-items: stretch;
  }

  .section-copy-narrow {
    order: 1;
  }

  .workflow-steps {
    order: 2;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .landing-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    height: auto;
    gap: 14px;
    padding: 10px 16px;
  }

  .landing-topbar-left {
    min-width: 0;
  }

  .landing-topbar-brand {
    min-width: 0;
    font-size: 16px;
  }

  .landing-brand-logo {
    width: 26px;
    height: 26px;
  }

  .landing-topbar-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .landing-trial-button {
    width: 52px;
    min-width: 52px;
    min-height: 34px;
    padding: 0;
    font-size: 0;
    white-space: nowrap;
  }

  .landing-trial-button::after {
    content: "App";
    font-size: 13px;
  }

  .hero-copy {
    width: calc(100% - 32px);
    min-width: 0;
    padding-top: 42px;
  }

  .hero-scene {
    width: calc(100% - 32px);
  }

  h1 {
    font-size: 38px;
  }

  .hero-lede {
    overflow-wrap: anywhere;
  }

  .hero-lede p {
    font-size: 17px;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-metrics,
  .feature-list,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .scene-shell {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
  }

  .surface-panel,
  .heatmap-panel {
    min-width: 0;
    padding: 12px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .preview-image-frame {
    height: 160px;
  }

  .risk-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .brief-panel,
  .flow-panel {
    display: none;
  }

  .feature-band,
  .workflow-band,
  .site-footer {
    width: calc(100% - 32px);
  }

  .feature-band {
    padding-top: 58px;
  }

  .workflow-band {
    padding-bottom: 56px;
  }

  .workflow-steps article {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
