:root {
  --navy: #153e75;
  --navy-dark: #08284d;
  --teal: #0f766e;
  --amber: #d97706;
  --ink: #101828;
  --muted: #667085;
  --line: rgba(21, 62, 117, 0.14);
  --bg: #f6f8fb;
  --surface: #ffffff;
  --soft: #eef3f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(238, 243, 248, 0.65), transparent 520px),
    var(--bg);
}

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

img {
  display: block;
  max-width: 100%;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: 10px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.topnav a,
.lead,
.metrics p,
.screen-card p,
.system-section p,
.viewer-bar small {
  color: var(--muted);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 650;
}

.topnav a:hover {
  background: var(--soft);
  color: var(--navy);
}

.topnav .nav-cta,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
}

.topnav .nav-cta:hover,
.primary-btn:hover {
  color: white;
  transform: translateY(-1px);
}

main {
  padding: 0 clamp(20px, 4vw, 72px) 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 56px 0 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.2vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.18;
}

.lead {
  max-width: 690px;
  font-size: 1.08rem;
  line-height: 1.75;
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 220ms ease, background 220ms ease;
}

.secondary-btn {
  color: var(--navy);
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.secondary-btn:hover {
  background: var(--soft);
}

.hero-preview {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(21, 62, 117, 0.08), rgba(15, 118, 110, 0.08)),
    var(--surface);
  box-shadow: 0 30px 80px rgba(16, 24, 40, 0.13);
  transform: translateZ(0);
}

.hero-browser {
  position: absolute;
  inset: 42px 34px 38px;
  display: grid;
  grid-template-rows: 42px 1fr;
  overflow: hidden;
  background: white;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(16, 24, 40, 0.16);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-browser-bar,
.hero-dashboard-grid {
  display: grid;
  gap: 14px;
}

.hero-browser-bar {
  grid-template-columns: 120px 1fr 88px;
  align-items: center;
  padding: 0 18px;
  background: #f6f8fb;
}

.hero-browser-bar span,
.hero-status,
.hero-kpi,
.hero-chart,
.hero-actions-panel,
.hero-actions-panel b {
  display: block;
  border-radius: 8px;
}

.hero-browser-bar span {
  height: 12px;
  background: #dbe4ef;
}

.hero-browser-bar span:first-child,
.hero-kpi.navy {
  background: var(--navy);
}

.hero-dashboard-grid {
  grid-template-columns: repeat(3, 1fr) 0.82fr;
  grid-template-rows: 40px 104px 1fr;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(238, 243, 248, 0.72), transparent),
    #ffffff;
}

.hero-status {
  grid-column: 1 / -1;
  background: #eef3f8;
}

.hero-kpi {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-kpi.teal {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.88), rgba(67, 198, 183, 0.88));
}

.hero-chart {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 18px;
  padding: 22px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero-chart i {
  display: block;
  height: var(--h, 55%);
  background: linear-gradient(180deg, var(--navy), var(--teal));
  border-radius: 10px 10px 4px 4px;
}

.hero-chart i:nth-child(1) { --h: 42%; }
.hero-chart i:nth-child(2) { --h: 78%; }
.hero-chart i:nth-child(3) { --h: 52%; }
.hero-chart i:nth-child(4) { --h: 88%; }
.hero-chart i:nth-child(5) { --h: 64%; }
.hero-chart i:nth-child(6) { --h: 70%; }

.hero-actions-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #eef3f8;
}

.hero-actions-panel b {
  background: white;
}

.hero-actions-panel b:first-child {
  background: var(--navy);
}

.hero-preview:hover .hero-browser {
  transform: scale(1.035);
}

.preview-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.metrics article {
  padding: 24px;
  background: white;
  border-radius: 8px;
}

.metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 2.45rem;
  font-weight: 850;
}

.metrics p,
.screen-card p,
.system-section p {
  margin-bottom: 0;
  line-height: 1.6;
}

.screen-card p {
  font-size: 0.92rem;
}

.screen-section,
.system-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

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

.expanded-heading {
  margin-top: 54px;
}

.expanded-grid {
  margin-top: 20px;
}

.screen-card {
  grid-column: span 3;
  overflow: hidden;
  background: white;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.screen-card.featured,
.screen-card.wide {
  grid-column: span 3;
}

.screen-card.compact {
  grid-column: span 3;
}

.screen-card:hover {
  transform: translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12);
}

.screen-card figure {
  height: 190px;
  margin: 0;
  overflow: hidden;
  background: var(--soft);
}

.screen-card.featured figure,
.screen-card.wide figure {
  height: 190px;
}

.screen-card.compact figure {
  height: 190px;
}

.screen-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen-card:hover img {
  transform: scale(1.025);
}

.mockup {
  position: relative;
  display: grid;
  grid-template-rows: 26px 1fr 44px;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 62, 117, 0.08), rgba(15, 118, 110, 0.08)),
    #f6f8fb;
}

.mock-nav,
.mock-body,
.mock-main,
.mock-side,
.mock-chart {
  display: grid;
  gap: 10px;
}

.mock-nav {
  grid-template-columns: 1fr 0.7fr 0.45fr;
}

.mock-nav span,
.mock-main i,
.mock-side b,
.mock-chart em {
  display: block;
  border-radius: 8px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.mock-nav span:first-child {
  background: var(--navy);
}

.mock-body {
  grid-template-columns: 1fr 0.42fr;
}

.mock-main {
  grid-template-columns: repeat(2, 1fr);
}

.mock-main i:first-child {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(21, 62, 117, 0.92), rgba(15, 118, 110, 0.88));
}

.mock-side {
  grid-template-rows: repeat(3, 1fr);
}

.mock-chart {
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
}

.mock-chart em {
  height: var(--h, 60%);
  background: linear-gradient(180deg, var(--navy), var(--teal));
}

.mock-chart em:nth-child(1) { --h: 45%; }
.mock-chart em:nth-child(2) { --h: 78%; }
.mock-chart em:nth-child(3) { --h: 62%; }
.mock-chart em:nth-child(4) { --h: 88%; }
.mock-chart em:nth-child(5) { --h: 54%; }

.mockup.auth .mock-body,
.mockup.kyc .mock-body,
.mockup.offer .mock-body {
  grid-template-columns: 0.62fr 1fr;
}

.mockup.success .mock-main i:first-child,
.mockup.eligibility .mock-main i:first-child {
  background: linear-gradient(135deg, var(--teal), #43c6b7);
}

.mockup.collections .mock-main i:first-child,
.mockup.notifications .mock-main i:first-child {
  background: linear-gradient(135deg, var(--amber), #f2b76b);
}

.mockup.ops .mock-main i:first-child,
.mockup.underwriting .mock-main i:first-child {
  background: linear-gradient(135deg, #0b172a, var(--navy));
}

.mock-landing-hero,
.mock-form-screen,
.mock-dashboard,
.mock-payment-grid {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.mock-landing-hero {
  grid-template-columns: 0.9fr 1.1fr;
}

.mock-landing-hero section,
.mock-landing-hero aside,
.mock-form-screen aside,
.mock-form-screen main,
.mock-form-screen section,
.mock-dashboard section,
.mock-dashboard aside,
.mock-payment-grid main,
.mock-payment-grid aside {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.mock-landing-hero section b,
.mock-landing-hero section i,
.mock-landing-hero aside strong,
.mock-landing-hero aside em,
.mock-landing-hero aside button,
.mock-form-screen i,
.mock-form-screen b,
.mock-form-screen strong,
.mock-form-screen em,
.mock-form-screen button,
.mock-dashboard i,
.mock-dashboard b,
.mock-dashboard strong,
.mock-dashboard em,
.mock-payment-grid b,
.mock-payment-grid strong,
.mock-payment-grid em,
.mock-table-lines span {
  display: block;
  min-height: 12px;
  border: 0;
  border-radius: 8px;
  background: #dbe4ef;
}

.mock-landing-hero section b:first-child,
.mock-landing-hero aside button,
.mock-form-screen button,
.mock-dashboard i:first-child,
.mock-payment-card b {
  background: var(--navy);
}

.mock-landing-hero section b:nth-child(2),
.mock-landing-hero section b:nth-child(3) {
  min-height: 28px;
  background: #eef3f8;
}

.mock-landing-hero section i {
  min-height: 46px;
  background: linear-gradient(135deg, rgba(21, 62, 117, 0.88), rgba(15, 118, 110, 0.88));
}

.mock-landing-hero aside strong {
  min-height: 32px;
  background: var(--teal);
}

.mock-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-trust span {
  border-radius: 8px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.mock-form-screen {
  grid-template-columns: 0.45fr 1fr 0.62fr;
}

.mock-form-screen aside i {
  min-height: 22px;
}

.mock-form-screen aside i:first-child,
.mock-form-screen main b:nth-child(2),
.mock-form-screen section strong {
  background: var(--teal);
}

.mock-form-screen main {
  grid-template-columns: repeat(2, 1fr);
}

.mock-form-screen main b:first-child {
  grid-column: span 2;
  min-height: 38px;
}

.mock-dashboard {
  grid-template-columns: repeat(3, 1fr) 0.72fr;
  grid-template-rows: 44px 1fr;
}

.mock-dashboard section {
  grid-column: 1 / 4;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
}

.mock-dashboard section b {
  min-height: var(--h, 58%);
  background: linear-gradient(180deg, var(--navy), var(--teal));
}

.mock-dashboard section b:nth-child(1) { --h: 48%; }
.mock-dashboard section b:nth-child(2) { --h: 86%; }
.mock-dashboard section b:nth-child(3) { --h: 62%; }
.mock-dashboard section b:nth-child(4) { --h: 74%; }

.mock-dashboard aside {
  grid-row: 1 / 3;
  grid-column: 4;
}

.mock-dashboard aside strong {
  background: var(--navy);
}

.mock-payment-grid {
  grid-template-columns: 1fr 0.38fr;
}

.mock-payment-grid main {
  grid-template-rows: 28px 1fr 48px;
}

.mock-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 10px;
}

.mock-timeline i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: var(--teal);
}

.mock-timeline i:nth-child(n + 4) {
  background: #dbe4ef;
}

.mock-payment-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mock-payment-card b,
.mock-payment-card strong {
  min-height: 36px;
}

.mock-payment-card em {
  min-height: 18px;
}

.mock-table-lines {
  display: grid;
  gap: 8px;
}

.mock-payment-grid aside b:first-child {
  background: var(--navy);
}

.feature-visual {
  --a: var(--navy);
  --b: var(--teal);
  --c: var(--amber);
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(21, 62, 117, 0.08), rgba(15, 118, 110, 0.08)),
    #f6f8fb;
}

.feature-visual > *,
.feature-visual span,
.feature-visual b,
.feature-visual i,
.feature-visual .chat,
.feature-visual .folder,
.feature-visual .bell,
.feature-visual .risk-score,
.feature-visual .success-mark {
  border-radius: 8px;
}

.mini-nav,
.fee-total,
.limit-pill,
.secure-line,
.upload-zone,
.sign-line,
.schedule-row,
.next-pay,
.savings-badge,
.ticket-row,
.notice-line,
.promise-card,
.call-strip {
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.mini-nav {
  width: 72%;
  height: 18px;
  background: var(--a);
}

.cost-stack {
  display: grid;
  grid-template-columns: 1.2fr 0.45fr 0.25fr;
  align-items: end;
  gap: 8px;
}

.cost-stack b {
  display: block;
  height: var(--h, 72px);
  background: var(--a);
}

.cost-stack b:nth-child(2) {
  --h: 42px;
  background: var(--b);
}

.cost-stack b:nth-child(3) {
  --h: 22px;
  background: var(--c);
}

.legend,
.offer-metrics,
.ops-kpis,
.decision-buttons,
.risk-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.legend span,
.offer-metrics span,
.ops-kpis span,
.decision-buttons b,
.risk-lanes span {
  display: block;
  height: 18px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.gauge {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--b) 0 74%, #dbe4ef 74% 100%);
}

.gauge span {
  width: 64px;
  height: 64px;
  background: white;
}

.score-lines,
.check-list,
.receipt-lines,
.doc-list,
.queue-lines {
  display: grid;
  gap: 8px;
}

.score-lines b,
.check-list span,
.receipt-lines span,
.doc-list span,
.queue-lines span {
  display: block;
  height: 14px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.phone-box,
.id-card,
.offer-note,
.folder,
.bell,
.risk-score {
  background: linear-gradient(135deg, var(--a), #2f659f);
}

.phone-box {
  width: 86px;
  height: 116px;
  margin: auto;
  border-radius: 18px;
}

.otp-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.otp-row span {
  height: 28px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.id-card,
.offer-note,
.folder {
  height: 62px;
}

.upload-zone {
  display: block;
  height: 54px;
  border: 2px dashed rgba(21, 62, 117, 0.2);
}

.offer-note {
  height: 74px;
}

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

.calendar-grid span {
  height: 24px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.calendar-grid span:nth-child(7),
.calendar-grid span:nth-child(8) {
  background: var(--b);
}

.schedule-row {
  height: 20px;
}

.schedule-row.short {
  width: 72%;
}

.success-mark {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 0 auto;
  color: white;
  background: var(--b);
  border-radius: 50%;
  font-size: 2.2rem;
  font-weight: 900;
}

.payoff-slider {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.payoff-slider span {
  width: 68%;
  height: 8px;
  background: var(--b);
}

.savings-badge {
  height: 44px;
  background: rgba(15, 118, 110, 0.16);
}

.payoff-bars,
.ops-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
}

.payoff-bars i,
.ops-chart i {
  display: block;
  height: var(--h, 54px);
  background: linear-gradient(180deg, var(--a), var(--b));
}

.payoff-bars i:nth-child(2),
.ops-chart i:nth-child(2) {
  --h: 78px;
}

.payoff-bars i:nth-child(3),
.ops-chart i:nth-child(4) {
  --h: 64px;
}

.folder {
  border-radius: 8px 8px 14px 14px;
}

.folder::before {
  content: "";
  display: block;
  width: 76px;
  height: 18px;
  background: #2f659f;
  border-radius: 8px 8px 0 0;
}

.chat {
  height: 36px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
}

.chat.right {
  margin-left: 24%;
  background: var(--b);
}

.chat.small {
  width: 72%;
}

.bell {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--c);
}

.notice-line {
  height: 24px;
}

.notice-line.amber {
  background: rgba(217, 119, 6, 0.18);
}

.ops-kpis span:first-child,
.risk-lanes span:first-child {
  background: var(--a);
}

.ops-chart {
  height: 88px;
}

.risk-score {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  background: conic-gradient(var(--c) 0 64%, #dbe4ef 64% 100%);
  border-radius: 50%;
}

.decision-buttons {
  grid-template-columns: repeat(2, 1fr);
}

.decision-buttons b:first-child {
  background: var(--b);
}

.decision-buttons b:last-child {
  background: rgba(217, 119, 6, 0.22);
}

.risk-lanes span:nth-child(2) {
  background: var(--c);
}

.risk-lanes span:nth-child(3) {
  background: #b42318;
}

.promise-card {
  height: 54px;
}

.call-strip {
  height: 26px;
  background: rgba(217, 119, 6, 0.16);
}

.card-copy {
  padding: 18px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.6fr);
  gap: 40px;
  align-items: end;
  margin-top: 20px;
  padding: 48px;
  background: var(--soft);
  border-radius: 18px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.swatches span {
  min-height: 118px;
  padding: 14px;
  color: white;
  background: var(--color);
  border-radius: 12px;
  font-weight: 850;
}

.swatches span:nth-child(4) {
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}

.viewer-body {
  overflow: hidden;
  background: #0b172a;
}

.viewer-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 18px;
  color: white;
  background: rgba(8, 40, 77, 0.92);
  backdrop-filter: blur(18px);
}

.viewer-bar > div {
  text-align: center;
}

.viewer-bar strong,
.viewer-bar small {
  display: block;
}

.back-link,
.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}

.open-link {
  justify-self: end;
}

.back-link:hover,
.open-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

iframe {
  display: block;
  width: 100vw;
  height: calc(100vh - 64px);
  margin-top: 64px;
  border: 0;
  background: white;
}

@media (max-width: 980px) {
  .hero,
  .system-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-preview,
  .hero-preview img {
    min-height: 420px;
  }

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

  .screen-card,
  .screen-card.featured,
  .screen-card.wide,
  .screen-card.compact {
    grid-column: span 6;
  }

  .viewer-bar {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem);
    line-height: 1.02;
  }

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

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .screen-card figure,
  .screen-card.featured figure,
  .screen-card.wide figure {
    height: 230px;
  }

  .screen-card,
  .screen-card.featured,
  .screen-card.wide,
  .screen-card.compact {
    grid-column: span 12;
  }

  .system-section {
    padding: 28px;
  }

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

  .viewer-bar {
    height: 58px;
    gap: 8px;
    padding: 0 10px;
  }

  .viewer-bar > div {
    display: none;
  }

  iframe {
    height: calc(100vh - 58px);
    margin-top: 58px;
  }
}
