:root {
  color-scheme: light;
  --accent: #b4232f;
  --action: #0b4f84;
  --action-dark: #083c66;
  --bg: #f4f7fb;
  --ink: #07162f;
  --line: #d8e0ea;
  --muted: #52637a;
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(11, 79, 132, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.page-shell {
  margin: 0 auto;
  max-width: 80rem;
  min-height: 100vh;
  padding: 1rem;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.4rem 0;
}

.brand,
.nav-actions,
.hero-actions {
  align-items: center;
  display: flex;
}

.brand {
  color: var(--ink);
  font-weight: 950;
  gap: 0.75rem;
}

.brand-mark {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: 0 16px 36px rgba(7, 22, 47, 0.12);
  color: var(--accent);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 950;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.nav-actions {
  color: var(--action);
  font-weight: 850;
  gap: 1.1rem;
}

.nav-actions a:hover,
.front-door-card a:hover,
.secondary-action:hover {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
  padding: 3.2rem 0 2.1rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  max-width: 15ch;
}

h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3.8vw, 3.3rem);
  line-height: 1.04;
}

h3 {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.15;
}

.hero-lede,
.platform-preview p,
.problem-band p,
.front-door-card p,
.plan-grid p,
.demo-band p {
  color: var(--muted);
  line-height: 1.48;
  margin: 0;
}

.hero-lede {
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  max-width: 42rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-action,
.secondary-action {
  align-items: center;
  border-radius: 0.45rem;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.68rem 1rem;
}

.primary-action {
  background: linear-gradient(180deg, var(--action), var(--action-dark));
  box-shadow: 0 12px 24px rgba(11, 79, 132, 0.22);
  color: #ffffff;
}

.secondary-action {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--action);
}

.platform-preview,
.front-doors,
.problem-band,
.plan-band,
.demo-band {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 18px 50px rgba(7, 22, 47, 0.08);
}

.platform-preview {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.preview-topline {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.status-dot {
  background: var(--accent);
  border-radius: 999px;
  height: 0.75rem;
  width: 0.75rem;
}

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

.preview-grid span,
.front-door-icon,
.plan-grid span {
  background: #e9f2fb;
  color: var(--action);
  font-weight: 950;
}

.preview-grid span {
  border-radius: 0.45rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.65rem;
}

.front-doors,
.problem-band,
.plan-band,
.demo-band {
  margin-top: 1rem;
  padding: 1rem;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.front-door-grid,
.plan-grid {
  display: grid;
  gap: 0.8rem;
}

.front-door-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.front-door-card,
.plan-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
}

.front-door-card,
.plan-grid article {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 540ms ease,
    transform 540ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.front-door-card.is-visible,
.plan-grid article.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.front-door-card a {
  color: var(--action);
  font-weight: 900;
}

.front-door-icon,
.plan-grid span {
  align-items: center;
  border-radius: 0.45rem;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.problem-band,
.demo-band {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-band {
  align-items: center;
  margin-bottom: 4rem;
}

.demo-band .primary-action {
  justify-self: end;
}

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

  .front-door-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-band .primary-action {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar,
  .nav-actions,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .front-door-grid,
  .plan-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.8rem;
  }
}
