*, *::before, *::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f8f9fb;
}

body {
  min-height: 100%;
  margin: 0;
  color: #111827;
  background: #f8f9fb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

a {
  color: #43aad6;
}

.site-header {
  min-height: 56px;
  position: relative;
  border-top: 5px solid #43aad6;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.wrapper,
.footer-wrapper {
  width: min(800px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header .wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.site-title {
  float: left;
  line-height: 56px;
  text-decoration: none;
}

.site-logo {
  height: 28px;
  width: auto;
  margin-top: -5px;
  vertical-align: middle;
}

.site-nav {
  float: right;
  line-height: 56px;
  font-size: 0.95rem;
}

.site-nav .nav-trigger,
.site-nav .menu-icon {
  display: none;
}

.site-nav .page-link {
  color: #111827;
  line-height: 1.5;
  text-decoration: none;
}

.site-nav .page-link:not(:last-child) {
  margin-right: 20px;
}

.site-nav a.page-link:hover,
.site-nav span.page-link {
  color: #43aad6;
}

.site-nav span.page-link {
  font-weight: 600;
}

.landing-content {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.heatmap3d-hero,
.heatmap3d-section {
  margin-bottom: 2.5rem;
}

.heatmap3d-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}

.heatmap3d-hero-copy,
.heatmap3d-summary,
.heatmap3d-card,
.heatmap3d-section-note,
.heatmap3d-metric {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.07);
}

.heatmap3d-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 2.25rem;
}

.heatmap3d-eyebrow {
  margin: 0 0 0.75rem;
  color: #dc800f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heatmap3d-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.heatmap3d-lead {
  margin: 0;
  max-width: 42rem;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.7;
}

.heatmap3d-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.heatmap3d-primary-link,
.heatmap3d-secondary-link,
.heatmap3d-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 4px;
  color: #111827;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.heatmap3d-primary-link {
  border-color: #dc800f;
  background: #fff;
  color: #111827;
}

.heatmap3d-primary-link:hover,
.heatmap3d-secondary-link:hover,
.heatmap3d-card-link:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.25);
  background: #fff;
  color: #111827;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.heatmap3d-primary-link.is-active:hover,
.heatmap3d-secondary-link.is-active:hover,
.heatmap3d-card-link.is-active:hover {
  border-color: #dc800f;
  background: #dc800f;
  color: #fff;
  box-shadow: 0 12px 24px rgba(220, 128, 15, 0.24);
}

.heatmap3d-summary {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 1.25rem;
}

.heatmap3d-model-panel {
  position: relative;
  min-height: 250px;
  margin-bottom: 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 6px;
  background: #fff;
}

#landing-canvas {
  position: absolute;
  inset: 0;
  min-height: 250px;
}

#landing-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.heatmap3d-summary h2,
.heatmap3d-section h2,
.heatmap3d-section-note h2,
.heatmap3d-card h3 {
  margin-top: 0;
}

.heatmap3d-summary-list,
.heatmap3d-card-points {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: #4b5563;
}

.heatmap3d-summary-list li,
.heatmap3d-card-points li {
  margin-bottom: 0.65rem;
}

.heatmap3d-section-heading {
  margin-bottom: 1rem;
}

.heatmap3d-section-heading p,
.heatmap3d-card p,
.heatmap3d-section-note p {
  color: #4b5563;
  line-height: 1.7;
}

.heatmap3d-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.heatmap3d-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}

.heatmap3d-card-kicker {
  margin: 0 0 0.4rem;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heatmap3d-card-preference {
  border-top: 4px solid #ff6b6b;
}

.heatmap3d-card-reachability {
  border-top: 4px solid #51cf66;
}

.heatmap3d-card-link {
  align-self: flex-start;
  margin-top: auto;
}

.heatmap3d-section-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.heatmap3d-metric {
  padding: 1.25rem;
  text-align: center;
}

.heatmap3d-metric strong {
  display: block;
  color: #111827;
  font-size: 2rem;
  line-height: 1;
}

.heatmap3d-metric span {
  display: block;
  margin-top: 0.55rem;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
}

.heatmap3d-section-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.footer-text {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .heatmap3d-hero,
  .heatmap3d-card-grid,
  .heatmap3d-section-metrics {
    grid-template-columns: 1fr;
  }

  .heatmap3d-hero-copy,
  .heatmap3d-summary {
    min-height: 0;
  }

  .heatmap3d-section-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .wrapper,
  .footer-wrapper {
    width: min(100% - 1.25rem, 1120px);
  }

  .site-nav {
    position: absolute;
    top: 9px;
    right: 0.75rem;
    min-width: 46px;
    border: 1px solid rgba(17, 24, 39, 0.16);
    border-radius: 5px;
    background: #fff;
    line-height: 1.5;
    text-align: right;
  }

  .site-nav label[for="nav-trigger"] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    cursor: pointer;
  }

  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    padding-top: 10px;
    line-height: 0;
    text-align: center;
  }

  .site-nav .menu-icon > svg {
    fill: #111827;
  }

  .site-nav input ~ .trigger {
    clear: both;
    display: none;
  }

  .site-nav input:checked ~ .trigger {
    display: block;
    padding-bottom: 5px;
  }

  .site-nav .page-link {
    display: block;
    margin-left: 20px;
    padding: 5px 10px;
  }

  .site-nav .page-link:not(:last-child) {
    margin-right: 0;
  }

  .landing-content {
    width: min(100% - 1.25rem, 1120px);
    padding: 1.5rem 0;
  }

  .heatmap3d-hero-copy,
  .heatmap3d-summary,
  .heatmap3d-card,
  .heatmap3d-section-note {
    padding: 1.25rem;
  }

  .heatmap3d-model-panel,
  #landing-canvas {
    min-height: 220px;
  }

  .heatmap3d-actions {
    flex-direction: column;
  }

  .heatmap3d-primary-link,
  .heatmap3d-secondary-link,
  .heatmap3d-card-link {
    width: 100%;
  }
}
