:root {
  color-scheme: dark;
  --landing-bg: #07101d;
  --landing-surface: rgba(9, 18, 33, 0.72);
  --landing-surface-strong: rgba(8, 16, 30, 0.88);
  --landing-border: rgba(128, 168, 214, 0.18);
  --landing-border-strong: rgba(143, 208, 255, 0.28);
  --landing-text: #f3f8ff;
  --landing-muted: #b6c8df;
  --landing-soft: #8aa3c2;
  --landing-accent: #8fd0ff;
  --landing-accent-strong: #4eb0ff;
  --landing-shadow: 0 24px 60px rgba(1, 8, 18, 0.38);
  --landing-radius-lg: 28px;
  --landing-radius-md: 20px;
  --landing-radius-sm: 14px;
  --landing-max-width: 1200px;
  --header-offset: 104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--landing-text);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 700px at 16% 0%, rgba(54, 112, 194, 0.24), transparent 56%),
    radial-gradient(920px 680px at 100% 12%, rgba(16, 78, 155, 0.18), transparent 54%),
    linear-gradient(180deg, #050910 0%, #07101d 38%, #07111f 100%);
}

section[id],
#privacy-note {
  scroll-margin-top: var(--header-offset);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.landing-shell {
  position: relative;
  overflow-x: clip;
}

.landing-ambient {
  position: fixed;
  inset: auto;
  z-index: -2;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
}

.landing-ambient-one {
  top: 6rem;
  right: -7rem;
  width: 20rem;
  height: 20rem;
  background: rgba(91, 154, 234, 0.16);
}

.landing-ambient-two {
  bottom: 7rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(48, 110, 192, 0.16);
}

.landing-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 100%);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 1.5rem), var(--landing-max-width));
  margin: 0 auto;
  padding: 1rem 0.125rem;
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -0.75rem;
  border-radius: 999px;
  background: rgba(6, 12, 23, 0.42);
  border: 1px solid rgba(126, 164, 209, 0.12);
  z-index: -1;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.site-brand-logo-wrap {
  position: relative;
  display: block;
  width: 150px;
  min-width: 150px;
  aspect-ratio: 1330 / 384;
  height: auto;
  overflow: hidden;
}

.site-brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  transform: none;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

/* On mobile the sticky bottom bar carries the primary CTA, so hide the
   header's Request button there to keep the header from overflowing. */
.site-header-actions .button-sm {
  display: none;
}

.site-nav-admin-login,
.site-nav-app {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 211, 251, 0.36);
  background: transparent;
  color: var(--landing-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.site-nav-admin-login:hover,
.site-nav-admin-login:focus-visible,
.site-nav-app:hover,
.site-nav-app:focus-visible {
  border-color: rgba(168, 220, 255, 0.52);
  background: rgba(18, 35, 61, 0.55);
  color: var(--landing-text);
  outline: none;
}

.is-hidden,
[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inline-link {
  color: var(--landing-accent);
  text-decoration: underline;
  text-decoration-color: rgba(143, 208, 255, 0.45);
  text-underline-offset: 0.18em;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: #d9f1ff;
  outline: none;
}

main {
  display: grid;
  gap: 5rem;
  padding: 1.25rem 0 5rem;
}

.hero-section,
.content-section,
.site-footer {
  width: min(calc(100% - 1.5rem), var(--landing-max-width));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  gap: 2.5rem;
  padding-top: 2.25rem;
}

.content-section {
  display: grid;
  gap: 0.5rem;
}

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

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

.hero-title,
.section-heading h2,
.request-copy h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: 0;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  max-width: 12ch;
}

.hero-subtitle,
.section-heading p,
.request-copy p {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 46ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.button-primary {
  background: linear-gradient(180deg, #a8dcff 0%, #70c2ff 100%);
  color: #04101c;
  box-shadow: 0 18px 40px rgba(57, 144, 212, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #b6e2ff 0%, #85cbff 100%);
}

.button-sm {
  min-height: 2.125rem;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--landing-muted);
  font-size: 0.85rem;
}

.trust-row-divider {
  width: 1px;
  height: 1rem;
  background: var(--landing-border);
}

.how-grid {
  display: grid;
  gap: 1rem;
}

.how-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.3rem;
  border-radius: var(--landing-radius-md);
  border: 1px solid var(--landing-border);
  background:
    linear-gradient(180deg, rgba(19, 34, 57, 0.44), rgba(9, 17, 31, 0.88)),
    rgba(9, 17, 31, 0.88);
  box-shadow: var(--landing-shadow);
}

.how-card h3 {
  margin: 0;
  color: var(--landing-text);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.how-card p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--landing-radius-lg);
  border: 1px solid rgba(143, 208, 255, 0.26);
  background: linear-gradient(135deg, rgba(78, 176, 255, 0.14), rgba(9, 17, 31, 0.9));
  box-shadow: var(--landing-shadow);
}

.cta-band-copy {
  display: grid;
  gap: 0.4rem;
}

.cta-band-copy h3 {
  margin: 0;
  color: var(--landing-text);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
}

.cta-band-copy p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-visual-wrap {
  min-width: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1rem;
  width: min(100%, 48rem);
  margin-inline: auto;
}

.hero-video-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(0.55rem, 1.4vw, 0.85rem);
  border-radius: var(--landing-radius-lg);
  border: 1px solid rgba(128, 168, 214, 0.18);
  background:
    radial-gradient(720px 360px at 72% 0%, rgba(143, 208, 255, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(19, 34, 57, 0.5), rgba(8, 16, 30, 0.9)),
    rgba(9, 17, 31, 0.9);
  box-shadow: var(--landing-shadow);
}

.hero-video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(243, 248, 255, 0.08), transparent 42%),
    linear-gradient(315deg, rgba(78, 176, 255, 0.12), transparent 48%);
  opacity: 0.78;
  pointer-events: none;
}

.hero-video-shell {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--landing-radius-lg) - 0.55rem);
  border: 1px solid rgba(143, 208, 255, 0.14);
  background: #050b14;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(1, 8, 18, 0.34);
}

.hero-video-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050b14;
}

.hero-video-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 0.35rem 0.2rem;
}

.hero-video-caption span {
  color: var(--landing-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-video-caption p {
  margin: 0;
  max-width: 42rem;
  color: var(--landing-muted);
  line-height: 1.68;
}

.lead-form {
  border-radius: var(--landing-radius-lg);
  border: 1px solid var(--landing-border);
  background:
    linear-gradient(180deg, rgba(19, 34, 57, 0.44), rgba(9, 17, 31, 0.88)),
    rgba(9, 17, 31, 0.88);
  box-shadow: var(--landing-shadow);
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
}

.section-heading h2,
.request-copy h2 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.02;
}

.lead-form:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 208, 255, 0.28);
}

.request-grid {
  display: grid;
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.request-copy {
  display: grid;
  align-content: start;
  gap: clamp(1rem, 2vw, 1.35rem);
  max-width: 40rem;
}

.request-lede {
  max-width: 38rem;
}

.request-rail-panel {
  display: grid;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(143, 208, 255, 0.18);
}

.request-rail-label,
.form-section-label {
  display: block;
  color: var(--landing-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.request-check-list,
.request-step-list,
.request-reassurance-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.request-check-list {
  display: grid;
  gap: 0.58rem;
}

.request-check-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #d7e5f5;
  line-height: 1.6;
}

.request-check-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0.1rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--landing-accent);
  box-shadow: 0 0 0 5px rgba(143, 208, 255, 0.08);
}

.request-step-list {
  display: grid;
  gap: 0.78rem;
}

.request-step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
}

.request-step-list > li > span {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 208, 255, 0.26);
  background: rgba(13, 27, 47, 0.72);
  color: var(--landing-accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.request-step-list strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--landing-text);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.request-step-list p {
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.request-reassurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.request-reassurance-list li {
  padding: 0.45rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 208, 255, 0.16);
  background: rgba(12, 25, 43, 0.58);
  color: #d7e5f5;
  font-size: 0.82rem;
  line-height: 1.35;
}

.lead-form {
  display: grid;
  gap: clamp(1rem, 2vw, 1.2rem);
  padding: clamp(1.1rem, 2vw, 1.45rem);
}

.form-section {
  display: grid;
  gap: 1rem;
}

.form-section + .form-section {
  padding-top: 1.1rem;
  border-top: 1px solid rgba(128, 168, 214, 0.14);
}

.form-section-heading {
  display: grid;
  gap: 0.4rem;
}

.form-section-heading p,
.form-section-copy {
  margin: 0;
  color: var(--landing-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.advisor-gate-notice {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid rgba(143, 208, 255, 0.34);
  background: linear-gradient(180deg, rgba(21, 45, 74, 0.72), rgba(8, 16, 30, 0.84));
}

.advisor-gate-notice:focus {
  outline: 2px solid rgba(143, 208, 255, 0.78);
  outline-offset: 3px;
}

.advisor-gate-notice strong {
  letter-spacing: 0;
}

.advisor-gate-notice p {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.7;
}

.consent-fieldset {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  margin: 0;
  padding: 1.1rem 0 0;
  border: 0;
  border-top: 1px solid rgba(128, 168, 214, 0.14);
}

.consent-fieldset .form-section-label {
  margin: 0;
  padding: 0;
}

.consent-grid {
  display: grid;
  gap: 0.62rem;
}

.consent-fieldset .consent-grid {
  grid-template-columns: minmax(0, 1fr);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  padding: 0.78rem 0.85rem;
  border-radius: 0.88rem;
  border: 1px solid rgba(128, 168, 214, 0.16);
  background: rgba(7, 14, 26, 0.48);
  color: #d7e5f5;
  font-size: 0.9rem;
  line-height: 1.55;
  transition: border-color 160ms ease, background 160ms ease;
}

.consent-check input {
  margin-top: 0.2rem;
  accent-color: var(--landing-accent-strong);
}

.consent-check span {
  display: block;
}

.consent-check.is-invalid {
  border-color: rgba(255, 148, 168, 0.58);
  background: rgba(41, 16, 26, 0.34);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field span {
  color: #d7e5f5;
  font-size: 0.92rem;
}

.field em {
  color: var(--landing-soft);
  font-style: normal;
}

.field-help {
  display: block;
  margin-top: -0.15rem;
  color: var(--landing-soft);
  font-size: 0.84rem;
  line-height: 1.6;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(128, 168, 214, 0.18);
  border-radius: 1rem;
  background: rgba(7, 14, 26, 0.74);
  color: var(--landing-text);
  padding: 0.95rem 1rem;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.field textarea[rows="3"] {
  min-height: 7rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: rgba(143, 208, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(143, 208, 255, 0.08);
  background: rgba(10, 18, 32, 0.88);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: rgba(255, 148, 168, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 148, 168, 0.08);
}

.field-full {
  grid-column: 1 / -1;
}

.form-privacy {
  margin: 0;
  color: var(--landing-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

.form-status {
  min-height: 1.5rem;
  color: var(--landing-muted);
  line-height: 1.5;
}

.form-status.is-success {
  color: #baf7d8;
}

.form-status.is-error {
  color: #ffc1cf;
}

.button-submit {
  width: 100%;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 5rem;
}

.site-footer-note {
  margin: 0;
  color: var(--landing-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer-note a {
  color: var(--landing-soft);
}

.site-footer-note a:hover,
.site-footer-note a:focus-visible {
  color: var(--landing-accent);
  outline: none;
}

.mobile-cta-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 18;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(6, 11, 20, 0), rgba(6, 11, 20, 0.94) 28%);
  backdrop-filter: blur(18px);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hero-video-card {
    padding: 0.45rem;
    border-radius: 1.1rem;
  }

  .hero-video-shell {
    border-radius: 0.85rem;
  }

  .hero-video-caption {
    padding: 0.85rem 0.2rem 0.15rem;
  }
}

@media (min-width: 720px) {
  .how-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .cta-band .button {
    flex: 0 0 auto;
  }

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

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

}

@media (min-width: 900px) {
  .site-header {
    padding-top: 1.35rem;
  }

  .site-header-actions .button-sm {
    display: inline-flex;
  }

  .site-brand-logo-wrap {
    width: 10.4rem;
    height: 3rem;
  }

  .site-brand-logo {
    width: 100%;
    height: 100%;
  }

  .site-nav-admin-login,
  .site-nav-app {
    margin-left: 0.35rem;
  }

  .request-grid {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
  }

  .site-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .mobile-cta-bar {
    display: none;
  }
}

@media (min-width: 1240px) {
  .hero-section {
    width: min(calc(100% - 1.5rem), 1280px);
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(2.75rem, 4vw, 4.5rem);
    padding-top: 3.5rem;
  }

  .hero-visual-wrap {
    justify-content: flex-end;
    align-self: start;
  }

  .hero-visual {
    width: min(100%, 52rem);
    margin-left: auto;
    margin-right: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
