:root {
  color-scheme: dark;
  --ink: #050609;
  --panel: #0c1014;
  --paper: #f7f2e8;
  --muted: #b4bbb7;
  --soft: rgba(247, 242, 232, 0.72);
  --line: rgba(247, 242, 232, 0.18);
  --teal: #7892c4;
  --ember: #d49a62;
  --shadow: rgba(0, 0, 0, 0.58);
  --field-bg: rgba(12, 16, 20, 0.72);
  --button-ink: #06110f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f3f0e8;
  --panel: #e8e4da;
  --paper: #10151a;
  --muted: #56605f;
  --soft: rgba(16, 21, 26, 0.72);
  --line: rgba(16, 21, 26, 0.18);
  --teal: #365a9a;
  --ember: #a35f28;
  --shadow: rgba(35, 43, 43, 0.18);
  --field-bg: rgba(255, 255, 255, 0.68);
  --button-ink: #f7f2e8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
  transition: color 260ms ease, background-color 260ms ease;
}

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

.site-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  background: var(--ink);
  transition: background-color 260ms ease;
}

.hero {
  position: relative;
  min-height: min(760px, 86vh);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 26px clamp(18px, 4vw, 64px) clamp(34px, 6vh, 62px);
  isolation: isolate;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
  z-index: -3;
  filter: saturate(0.98) contrast(1.02);
  transform: scale(1.04);
}

.hero__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.92) 0%, rgba(5, 6, 9, 0.72) 46%, rgba(5, 6, 9, 0.38) 100%),
    linear-gradient(180deg, rgba(5, 6, 9, 0.28), rgba(5, 6, 9, 0.88));
}

:root[data-theme="light"] .hero__shade {
  background:
    linear-gradient(90deg, rgba(243, 240, 232, 0.94) 0%, rgba(243, 240, 232, 0.78) 50%, rgba(243, 240, 232, 0.48) 100%),
    linear-gradient(180deg, rgba(243, 240, 232, 0.2), rgba(243, 240, 232, 0.92));
}

:root[data-theme="light"] .hero__image {
  filter: saturate(0.72) contrast(0.9) brightness(1.28);
}

.nav {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
}

.nav__link {
  padding: 10px 0;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--paper);
  border-color: var(--teal);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: color-mix(in srgb, var(--ink) 68%, transparent);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--teal);
  transform: rotate(8deg);
  outline: none;
}

.theme-toggle__icon {
  grid-area: 1 / 1;
  font-size: 1.25rem;
  line-height: 1;
  transition: opacity 180ms ease, transform 240ms ease;
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: scale(0.5) rotate(-30deg);
}

:root[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.5) rotate(30deg);
}

:root[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.brand {
  width: clamp(190px, 21vw, 300px);
  height: 58px;
  overflow: hidden;
  border-radius: 4px;
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand:hover,
.brand:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0, 37, 150, 0.26);
}

.hero__content {
  width: min(1120px, 100%);
  margin: 0 auto;
  align-self: center;
  padding: clamp(48px, 9vh, 110px) 0 clamp(26px, 5vh, 64px);
}

.is-ready .nav,
.is-ready .hero__eyebrow,
.is-ready h1,
.is-ready .lede,
.is-ready .signup {
  animation: rise-in 760ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.is-ready h1 {
  animation-delay: 180ms;
}

.is-ready .lede {
  animation-delay: 270ms;
}

.is-ready .signup {
  animation-delay: 360ms;
}

.is-ready .hero__eyebrow {
  animation-delay: 100ms;
}

.hero__eyebrow {
  margin: 0 0 20px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  width: min(960px, 100%);
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(9, 83, 255, 0.24);
}

.lede {
  width: min(680px, 100%);
  margin: 24px 0 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.signup {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  width: min(540px, 100%);
  margin-top: 34px;
  position: relative;
}

.signup input,
.signup button {
  min-height: 54px;
  border: 1px solid var(--line);
  font: inherit;
  border-radius: 6px;
}

.signup input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 18px;
  color: var(--paper);
  background: var(--field-bg);
  box-shadow: 0 20px 45px var(--shadow);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.signup input::placeholder {
  color: color-mix(in srgb, var(--paper) 48%, transparent);
}

.signup input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent), 0 20px 45px var(--shadow);
}

.signup button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  color: var(--button-ink);
  background: var(--paper);
  border-color: var(--paper);
  font-weight: 760;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.signup button::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(9, 83, 255, 0.28), transparent);
  transform: translateX(-120%) rotate(18deg);
}

.signup button:hover::after,
.signup button:focus-visible::after {
  animation: button-sheen 720ms ease;
}

.signup button:hover,
.signup button:focus-visible {
  background: color-mix(in srgb, var(--paper) 90%, white);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(247, 242, 232, 0.16);
}

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

.form-note {
  min-height: 1.35em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sib-form-container {
  width: min(540px, 100%);
  margin-top: 34px;
}

.sib-form-container .signup {
  width: 100%;
  margin-top: 0;
}

#sib-container {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}

.signup__field-block {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0;
}

.signup__consent {
  order: 1;
  flex: 1 0 100%;
  padding: 2px 0 0;
}

.signup__consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.5;
  cursor: pointer;
}

.signup .signup__checkbox {
  flex: 0 0 auto;
  width: 17px;
  min-width: 17px;
  height: 17px;
  min-height: 17px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--teal);
  box-shadow: none;
}

.signup__consent a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.signup__field-block .form__entry,
.signup__field-block .form__label-row {
  width: 100%;
}

.entry__field {
  width: 100%;
  min-width: 0;
  display: flex;
}

.entry__field .input {
  width: 100%;
}

.entry__error {
  display: none;
  margin-top: 8px;
  color: #ff9e9e;
  font-size: 0.78rem;
  line-height: 1.4;
}

.entry__error:not(:empty) {
  display: block;
}

.progress-indicator__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.sib-hide-loader-icon {
  display: none;
}

.input--hidden {
  display: none !important;
}

.sib-form-message-panel {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.sib-form-message-panel.is-visible {
  display: block !important;
}

#success-message.is-visible {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
}

.sib-form-message-panel__inner-text {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.consent-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.consent-note a,
.legal-content a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--teal) 65%, transparent);
  text-underline-offset: 3px;
}

.consent-note a:hover,
.consent-note a:focus-visible,
.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--teal);
}

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

.about {
  position: relative;
  isolation: isolate;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(86px, 12vw, 160px) clamp(24px, 6vw, 76px) clamp(92px, 12vw, 150px);
}

.about__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.65fr);
  gap: 34px clamp(48px, 9vw, 130px);
  align-items: end;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about h2 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.about__summary {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-card {
  min-height: 380px;
  padding: 30px clamp(24px, 3vw, 42px) 42px;
  display: flex;
  flex-direction: column;
}

.about-card + .about-card {
  border-left: 1px solid var(--line);
}

.about-card__number {
  margin: 0 0 clamp(70px, 8vw, 116px);
  color: var(--ember);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.about-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.about-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current="page"] {
  color: var(--paper);
}

.legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 6%, color-mix(in srgb, var(--teal) 8%, transparent), transparent 28%),
    var(--ink);
}

.legal-nav {
  width: min(1120px, calc(100% - 48px));
  padding-top: 26px;
}

.legal-content {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(80px, 10vw, 132px) 0 clamp(80px, 10vw, 124px);
}

.legal-content .eyebrow {
  margin: 0 0 20px;
}

.legal-content h1 {
  width: 100%;
  margin-bottom: 16px;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-meta {
  margin: 0 0 52px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.25;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 1.4rem;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content strong {
  color: var(--paper);
}

.legal-content code {
  color: var(--paper);
  font-size: 0.92em;
}

.legal-footer {
  width: min(1120px, calc(100% - 48px));
}

@media (max-width: 720px) {
  .hero {
    min-height: 82vh;
    padding-top: 18px;
  }

  .hero__image {
    object-position: 62% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(5, 6, 9, 0.96), rgba(5, 6, 9, 0.66)),
      linear-gradient(180deg, rgba(5, 6, 9, 0.22), rgba(5, 6, 9, 0.98));
  }

  .brand {
    width: min(190px, 58vw);
    height: 48px;
  }

  .brand__logo {
    height: 100%;
  }

  .signup {
    flex-direction: column;
  }

  .signup__field-block {
    flex: 0 0 auto;
  }

  .entry__field {
    flex-basis: auto;
  }

  .signup button {
    width: 100%;
  }

  .about__intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .eyebrow {
    grid-column: auto;
    margin-bottom: 4px;
  }

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

  .about-card {
    min-height: 0;
    padding: 28px 0 42px;
  }

  .about-card + .about-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-card__number {
    margin-bottom: 54px;
  }

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

}

@media (max-width: 420px) {
  h1 {
    font-size: 2.6rem;
    line-height: 0.98;
  }

  .nav {
    gap: 10px;
  }

  .nav__actions {
    gap: 12px;
  }

  .nav__link {
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero__image {
    transform: none;
  }

}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes button-sheen {
  from {
    transform: translateX(-120%) rotate(18deg);
  }

  to {
    transform: translateX(460%) rotate(18deg);
  }
}
