:root {
  --shadow-soft: 0 18px 55px rgba(15, 30, 60, 0.08);
  --shadow-lift: 0 22px 70px rgba(15, 30, 60, 0.13);
  --surface: rgba(255, 255, 255, 0.82);
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.topbar {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.brand {
  min-width: 0;
}

.mark {
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.18);
}

.button {
  white-space: nowrap;
}

.eyebrow {
  box-shadow: 0 10px 30px rgba(15, 30, 60, 0.04);
}

.hero {
  min-height: min(900px, calc(100vh - 42px));
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.08) 44%),
    radial-gradient(circle at 8% 18%, rgba(13, 148, 136, 0.16), transparent 30%),
    radial-gradient(circle at 78% 12%, rgba(245, 158, 11, 0.13), transparent 24%),
    linear-gradient(120deg, rgba(14, 165, 233, 0.08), transparent 48%);
}

.hero-grid {
  gap: clamp(32px, 5vw, 68px);
  padding-top: clamp(44px, 7vw, 80px);
  padding-bottom: clamp(44px, 7vw, 80px);
}

.hero h1,
main h1 {
  max-width: 820px;
  letter-spacing: 0;
}

.hero .lead {
  max-width: 700px;
}

.hero .lead[style] {
  font-size: 0.94rem !important;
  line-height: 1.72 !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.hero .cta-row {
  margin-top: 28px;
}

.screen {
  border-color: rgba(159, 180, 173, 0.76);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
}

.screen-inner {
  border-radius: 8px;
}

.block {
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 88px);
}

.section-copy {
  font-size: 17px;
}

.card,
.soft-card,
.qa,
.term,
.intro,
.definition,
.short,
.cta,
.demo-picker,
#value-proposition .buyer-card,
#value-proposition .metric-card,
#value-proposition .pointers,
#value-proposition .summary-table {
  border-radius: 8px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.card,
.soft-card,
.qa,
.term,
.demo-question-card {
  box-shadow: 0 10px 34px rgba(15, 30, 60, 0.045);
}

.card:hover,
.soft-card:hover,
.demo-question-card:hover {
  box-shadow: var(--shadow-soft) !important;
}

.triangle .card {
  display: flex;
  flex-direction: column;
}

.triangle .card .small {
  font-size: 15px;
  line-height: 1.72;
}

.grid-3,
.grid-4,
.grid-5,
.term-grid,
.faq-list,
.related {
  gap: 18px;
}

.dark {
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.12), transparent 38%),
    #0f1e3c;
}

.dark .card {
  box-shadow: none;
}

#value-proposition .pillar-nav {
  gap: 10px;
}

#value-proposition .pillar-nav-btn {
  border-radius: 8px;
  min-height: 34px;
}

#value-proposition .pillars-grid {
  border-radius: 8px;
}

#value-proposition .summary-table {
  display: block;
  overflow-x: auto;
}

footer a:hover,
.back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .links {
    gap: 14px;
    font-size: 13px;
  }

  .brand span[style] {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .screen {
    min-height: 360px;
  }

  .mini-grid {
    margin-top: 28px;
  }

  footer .wrap[style] {
    align-items: flex-start !important;
  }

  footer .wrap > div[style] {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 60px;
  }

  .nav {
    min-height: 60px;
  }

  .actions .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-grid > *,
  .nav > *,
  main > * {
    min-width: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100%;
    overflow: hidden;
  }

  .hero h1,
  .hero .lead {
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p {
    overflow-wrap: anywhere;
  }

  h1,
  h2,
  h3 {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none;
  }

  .hero-grid {
    padding-left: 24px;
    padding-right: 24px;
  }

  .screen {
    min-height: 320px;
    padding: 12px;
  }

  .screen-inner[style] {
    padding: 24px 20px !important;
  }

  .fields,
  .demo-contact-grid {
    grid-template-columns: 1fr !important;
  }

  .span-2 {
    grid-column: auto !important;
  }

  main {
    padding-top: 56px;
  }

  #product-explorer .wrap {
    max-width: 100%;
    overflow: hidden;
  }

  #product-explorer h2,
  #product-explorer .section-copy {
    max-width: 100%;
  }

  #product-explorer .pm3-tabs {
    flex-direction: column;
  }

  #product-explorer .pm3-tab {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  #product-explorer .pm3-body {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: auto;
  }

  #product-explorer .pm3-stages {
    display: block;
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  #product-explorer .pm3-stage-header {
    position: static;
    min-width: 0;
    width: 100%;
  }

  #product-explorer .pm3-stage {
    min-width: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-right: 0;
  }

  #product-explorer .pm3-right,
  #product-explorer .pm3-detail,
  #product-explorer .pm3-ucs {
    min-width: 0;
  }

  #product-explorer .pm3-uc-grid,
  #product-explorer .pm3-buyer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .beta-banner {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 4px;
    letter-spacing: 0.04em;
    line-height: 1.35;
    padding: 7px 14px;
  }

  .beta-banner span:last-child {
    width: 300px;
    max-width: 300px;
    text-align: center;
    white-space: normal;
  }

  .brand {
    gap: 8px;
  }

  .brand .beta-badge {
    display: none;
  }

  .nav > div > span[style] {
    display: none !important;
  }

  .actions {
    display: none;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.24;
  }

  .hero-grid > div:first-child,
  .hero-grid > div:first-child .lead,
  .hero h1 {
    width: 320px !important;
    max-width: 320px !important;
  }

  #product-explorer h2,
  #product-explorer .section-copy,
  #product-explorer .eyebrow {
    width: 320px !important;
    max-width: 320px !important;
  }

  #product-explorer .eyebrow {
    white-space: normal;
  }

  #value-proposition .hero-inner,
  #value-proposition .hero h2,
  #value-proposition .hero-lead,
  #value-proposition .pillar-nav,
  #value-proposition .pillar-callout {
    width: 300px !important;
    max-width: 300px !important;
  }

  #value-proposition .hero-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #value-proposition .hero {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  #value-proposition .hero h2 {
    font-size: 38px !important;
    line-height: 1.08 !important;
  }

  #value-proposition .pillar-nav-btn {
    max-width: 100%;
    white-space: normal;
  }

  .cta-row .button,
  .demo-actions .button {
    width: 100%;
  }

  .card,
  .soft-card,
  .qa,
  .term {
    padding: 18px;
  }

  .screen p[style] {
    font-size: 0.98rem !important;
  }
}
