:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --blue: #3142d7;
  --blue-strong: #2436c5;
  --blue-soft: #edf1ff;
  --green: #0a8f63;
  --green-soft: #e9f8f1;
  --orange: #d97706;
  --orange-soft: #fff3e2;
  --violet: #6957d9;
  --violet-soft: #f0eeff;
  --shadow: 0 24px 70px rgba(18, 32, 64, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(49, 66, 215, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 46%, #ffffff 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), #36b37e);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(49, 66, 215, 0.22);
}

.nav {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  padding: 0 13px;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--blue-soft);
  color: var(--blue);
  outline: none;
}

.section,
.product-section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 720;
  padding: 0 20px;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(49, 66, 215, 0.25);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button.dark {
  background: rgba(255, 255, 255, 0.72);
}

.metric,
.month-card,
.delta-card,
.plain-card,
.insight-card,
.channel-board article,
.timeline div,
.region-grid div,
.feature-strip div,
.media-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
}

.metric span,
.metric small,
.region-grid small,
.feature-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.section,
.product-section {
  padding: 70px 0;
}

.summary {
  padding-top: 88px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 28px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.insight-card {
  min-height: 245px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(18, 32, 64, 0.07);
}

.insight-card p,
.plain-card p,
.channel-board p,
.timeline p,
.product-intro p {
  color: var(--muted);
}

.accent-blue {
  background: linear-gradient(180deg, #ffffff, var(--blue-soft));
}

.accent-green {
  background: linear-gradient(180deg, #ffffff, var(--green-soft));
}

.accent-violet {
  background: linear-gradient(180deg, #ffffff, var(--violet-soft));
}

.accent-orange {
  background: linear-gradient(180deg, #ffffff, var(--orange-soft));
}

.product-section {
  border-top: 1px solid var(--line);
}

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.product-intro p {
  max-width: 760px;
  margin-bottom: 0;
  font-size: 18px;
}

.status-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(49, 66, 215, 0.18);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14px;
  font-weight: 780;
  padding: 0 14px;
  white-space: nowrap;
}

.status-pill.success {
  border-color: rgba(10, 143, 99, 0.2);
  background: var(--green-soft);
  color: var(--green);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.metric {
  padding: 22px;
}

.metric strong {
  display: block;
  margin: 8px 0 8px;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.metric.highlight {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(49, 66, 215, 0.2);
}

.metric.highlight span,
.metric.highlight small,
.metric.highlight strong {
  color: #ffffff;
}

.month-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(280px, 0.82fr);
  gap: 14px;
  margin-bottom: 20px;
}

.month-card,
.delta-card {
  padding: 24px;
}

.month-card.is-current {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  border-color: rgba(49, 66, 215, 0.2);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(49, 66, 215, 0.2);
}

.month-title {
  display: flex;
  min-height: 70px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.month-title span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 780;
}

.month-title strong {
  font-size: 22px;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.month-card.is-current .month-title span,
.month-card.is-current dt,
.month-card.is-current dd {
  color: #ffffff;
}

.month-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.month-card.is-current dl {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.month-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
}

.month-card.is-current dl div {
  background: rgba(255, 255, 255, 0.1);
}

.month-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.month-card dd {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 840;
  letter-spacing: -0.02em;
}

.delta-card {
  background: linear-gradient(180deg, #ffffff, var(--green-soft));
}

.delta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 16px;
}

.delta-list div {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
}

.delta-list .good {
  background: #dff7eb;
}

.delta-list strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.delta-list .good strong {
  color: var(--green);
}

.delta-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.2;
}

.delta-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.two-col,
.promo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.plain-card {
  padding: 24px;
}

.plain-card.warning {
  background: var(--orange-soft);
  border-color: rgba(217, 119, 6, 0.2);
}

.clean-list,
.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.compact-block {
  margin-top: 34px;
}

.compact-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.compact-head p {
  color: var(--muted);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.region-grid div {
  padding: 22px;
}

.region-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.region-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.25;
}

.warm {
  background: linear-gradient(180deg, rgba(255, 243, 226, 0), rgba(255, 243, 226, 0.48));
}

.cool {
  background: linear-gradient(180deg, rgba(237, 241, 255, 0), rgba(237, 241, 255, 0.64));
}

.friends {
  width: 100%;
  max-width: none;
  background: linear-gradient(135deg, #10204d, #3142d7);
  color: #ffffff;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: max(20px, calc((100vw - 1180px) / 2));
}

.friends .product-intro {
  margin-bottom: 0;
}

.friends .eyebrow,
.friends .product-intro p {
  color: rgba(255, 255, 255, 0.72);
}

.green {
  background: linear-gradient(180deg, rgba(233, 248, 241, 0), rgba(233, 248, 241, 0.72));
}

.channel-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0;
}

.channel-board article {
  padding: 24px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.timeline div {
  position: relative;
  padding: 22px;
}

.timeline span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
}

.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 14px;
  margin-bottom: 18px;
}

.feature-strip div {
  padding: 24px;
}

.feature-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.visual-showcase {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.mortgage-showcase {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.62fr) minmax(190px, 0.5fr);
  align-items: start;
}

.alga-showcase {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(170px, 0.43fr));
  align-items: start;
}

.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(180deg, #ffffff, #f8faff);
  box-shadow: 0 16px 46px rgba(18, 32, 64, 0.08);
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.media-card figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  padding: 12px 14px;
}

.media-card.wide img {
  aspect-ratio: 16 / 7.2;
  padding: 10px;
}

.media-card.square img {
  aspect-ratio: 1 / 1;
  padding: 10px;
}

.media-card.story img {
  aspect-ratio: 9 / 16;
  max-height: 620px;
  padding: 10px;
}

.landing-preview {
  margin-top: 18px;
}

.landing-preview .media-card {
  min-height: 0;
}

.landing-preview .media-card img {
  height: auto;
  object-fit: contain;
  padding: 16px;
}

.scroll-preview {
  display: block;
  max-height: 820px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.scroll-preview figcaption {
  position: sticky;
  top: 0;
  z-index: 1;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.scroll-preview img {
  width: min(100%, 1120px);
  max-height: none;
  margin: 0 auto;
  object-position: top;
}

.quote {
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-tags span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  padding: 7px 11px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0 46px;
}

.footer a {
  color: var(--blue);
  font-weight: 760;
}

@media (max-width: 1040px) {
  .product-intro {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .metrics-row,
  .month-compare,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .region-grid,
  .channel-board,
  .mortgage-showcase,
  .alga-showcase,
  .landing-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .section,
  .product-section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .insight-grid,
  .metrics-row,
  .month-compare,
  .two-col,
  .promo-layout,
  .timeline,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .section,
  .product-section {
    padding: 52px 0;
  }

  .compact-head,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
