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

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(7, 22, 47, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  background-size: 42px 42px, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.home-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(11, 34, 66, 0.08), transparent 24rem),
    radial-gradient(circle at 82% 76%, rgba(180, 35, 47, 0.055), transparent 25rem),
    linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
  color: var(--navy);
  height: 100vh;
  overflow: hidden;
  padding: 1rem;
}

.home-inner {
  display: grid;
  gap: 0.8rem;
  height: 100%;
  margin: 0 auto;
  max-width: 78rem;
}

.home-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  min-height: 0;
}

.home-brand {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand-logo {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  box-shadow: 0 16px 36px rgba(7, 22, 47, 0.12);
  height: 5.4rem;
  object-fit: contain;
  padding: 0.28rem;
  width: 5.4rem;
}

.brand-row,
.launch-header,
.section-title-row,
.header-actions,
.portal-header,
.portal-brand,
.portal-actions,
.launch-heading,
.launcher-contexts,
.launcher-context-card {
  align-items: center;
  display: flex;
}

.brand-mark {
  align-items: center;
  background: white;
  border-radius: 0.45rem;
  color: var(--accent);
  display: inline-flex;
  font-weight: 950;
  height: 2.75rem;
  justify-content: center;
  width: 2.75rem;
}

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

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

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.14;
}

h3 {
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
}

h4 {
  color: var(--navy);
  font-size: 1.2rem;
}

.signin-card,
.demo-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 22px 54px rgba(7, 22, 47, 0.11);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 0.9rem;
}

.muted {
  color: var(--muted);
  line-height: 1.45;
  margin: 0.45rem 0 0;
}

.home-screen .muted {
  color: #52637a;
}

.primary-button,
.secondary-button,
.cta-button,
.ghost-button,
.solution-card button {
  border: 0;
  border-radius: 0.4rem;
  font-weight: 850;
  min-height: 2.45rem;
  padding: 0.6rem 0.9rem;
}

.primary-button,
.cta-button,
.solution-card button {
  background: linear-gradient(180deg, var(--action), var(--action-dark));
  color: white;
}

.cta-button {
  box-shadow: 0 12px 24px rgba(11, 79, 132, 0.24);
  min-height: 2.8rem;
}

.primary-button:hover,
.cta-button:hover,
.solution-card button:hover {
  background: linear-gradient(180deg, #0d5d9a, var(--action-dark));
}

.secondary-button {
  background: white;
  color: var(--navy);
}

.ghost-button {
  background: #eef3f8;
  color: var(--navy);
}

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

.lead-fields label:last-child {
  grid-column: 1 / -1;
}

.lead-fields label {
  display: grid;
  gap: 0.35rem;
}

.lead-fields span {
  color: #24364e;
  font-size: 0.88rem;
  font-weight: 800;
}

.lead-fields input,
.lead-fields select {
  appearance: none;
  background: white;
  border: 1px solid #c9d4e2;
  border-radius: 0.4rem;
  color: var(--navy);
  min-height: 2.35rem;
  padding: 0.5rem 0.65rem;
  width: 100%;
}

.lead-fields select {
  background-image:
    linear-gradient(45deg, transparent 50%, #52637a 50%),
    linear-gradient(135deg, #52637a 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) 1.05rem,
    calc(100% - 0.65rem) 1.05rem;
  background-repeat: no-repeat;
  background-size: 0.36rem 0.36rem;
}

.lead-fields input::placeholder {
  color: #aebbd0;
}

.lead-fields select option {
  color: var(--navy);
}

.demo-confirmation {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.4rem;
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}

.demo-confirmation p {
  color: #e8eef7;
  line-height: 1.45;
  margin: 0;
}

.link-button {
  background: transparent;
  border: 0;
  color: white;
  font-weight: 900;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.form-error {
  color: #fecaca;
  font-size: 0.88rem;
  font-weight: 750;
  margin: 0;
  min-height: 1.25rem;
}

.launch-screen {
  display: grid;
  gap: 0.75rem;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100vh;
  padding: 1rem;
  overflow: hidden;
}

.portal-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
}

.portal-brand {
  gap: 0.75rem;
}

.portal-brand div {
  display: grid;
  gap: 0.15rem;
}

.portal-brand strong {
  color: var(--navy);
}

.portal-brand span {
  color: var(--muted);
  font-size: 0.88rem;
}

.portal-logo,
.launch-icon,
.context-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.portal-logo {
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-radius: 0.4rem;
  color: var(--accent);
  font-weight: 950;
  height: 2.5rem;
  width: 2.5rem;
}

.portal-actions {
  gap: 0.5rem;
}

.icon-button {
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: transparent;
  font-size: 0;
  height: 2.75rem;
  position: relative;
  width: 2.75rem;
}

.icon-button::before {
  color: var(--navy);
  content: "*";
  font-size: 1.05rem;
}

.launch-header {
  background: var(--panel);
  background: linear-gradient(115deg, #173f68, #3d80b8);
  border-radius: 0.5rem;
  box-shadow: 0 18px 42px rgba(7, 22, 47, 0.08);
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem;
}

.launch-header .eyebrow,
.launch-header h2 {
  color: white;
}

.launch-heading {
  gap: 0.9rem;
}

.launch-icon {
  background: white;
  border-radius: 0.4rem;
  color: #173f68;
  font-size: 1.55rem;
  font-weight: 900;
  height: 2.6rem;
  width: 2.6rem;
}

.launcher-contexts {
  gap: 0.55rem;
}

.launcher-context-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  color: white;
  gap: 0.65rem;
  min-height: 3rem;
  min-width: 15rem;
  padding: 0.55rem 0.7rem;
}

.launcher-context-card div {
  display: grid;
  gap: 0.1rem;
}

.launcher-context-card span {
  color: #d9e8f8;
  font-size: 0.82rem;
}

.context-icon {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.35rem;
  color: white;
  font-weight: 900;
  height: 2.35rem;
  width: 2.35rem;
}

.header-actions {
  gap: 0.7rem;
}

.status-pill,
.state-pill,
.adaptive-note {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  min-height: 1.8rem;
  padding: 0.45rem 0.7rem;
}

.status-pill {
  background: #ecfdf5;
  color: #166534;
}

.adaptive-note,
.state-pill {
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
}

.solution-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.section-title-row {
  justify-content: space-between;
  margin: 0.25rem 0 0.7rem;
}

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

.solution-card {
  box-shadow: 0 12px 30px rgba(7, 22, 47, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  padding: 0.85rem;
}

.solution-card p {
  color: var(--muted);
  line-height: 1.35;
  margin: 0.4rem 0;
}

.solution-card button {
  align-self: stretch;
  min-width: 6rem;
}

.module-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0.6rem;
}

.module-chips span {
  background: #edf3f8;
  border-radius: 0.35rem;
  color: #344456;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 0.3rem 0.45rem;
}

@media (max-width: 639px) {
  body {
    overflow: auto;
  }

  .home-screen,
  .launch-screen {
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  .home-inner,
  .home-grid {
    height: auto;
  }

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

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

@media (max-width: 640px) {
  .launch-header,
  .section-title-row,
  .header-actions,
  .portal-header,
  .launcher-contexts {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .lead-fields {
    grid-template-columns: 1fr;
  }
}

