:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --brand-primary: #6c5ce7;
  --brand-primary-hover: #1c1171;
  --brand-primary-light: #a29bfe;
  --brand-navy: #3d3380;
  --brand-navy-dark: #2a2260;
  --brand-slate: #64748b;
  --brand-muted: #f5f4ff;
  --brand-border: #e8e6f5;
  --shell: min(72rem, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

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

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease,
    transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(108, 92, 231, 0.25);
}

.button-primary:hover {
  background: var(--brand-primary-hover);
}

.button-large {
  min-height: 3.5rem;
  padding-inline: 2.5rem;
  font-size: 1rem;
}

.button-square {
  min-height: 3rem;
  border-radius: 0.375rem;
  background: var(--brand-primary);
  color: #ffffff;
}

.button-square:hover {
  background: #2d145f;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 4, 29, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(80rem, calc(100vw - 2.5rem));
  min-height: 4.75rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand img {
  width: auto;
  height: 2.55rem;
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.desktop-nav {
  gap: 2rem;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(237, 233, 254, 0.86);
  font-size: 0.875rem;
  font-weight: 600;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: #ffffff;
}

.header-actions {
  gap: 1rem;
}

.login-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.8rem 1.75rem;
  color: #ede9fe;
  font-size: 0.875rem;
  font-weight: 600;
}

.login-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.menu-button {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #ffffff;
}

.menu-button span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #07041d;
  padding: 1rem 1.25rem 1.25rem;
}

.mobile-menu a {
  display: block;
  padding-block: 0.5rem;
  color: #ede9fe;
  font-size: 0.875rem;
  font-weight: 500;
}

.mobile-menu a.button {
  display: inline-flex;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #07041d;
  color: #ffffff;
  padding-top: 4.75rem;
}

.hero-bg,
.hero-overlay,
.hero-dots,
.hero-line,
.hero-ring,
.hero-person {
  position: absolute;
  pointer-events: none;
}

.hero-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  inset: 0;
}

.hero-overlay-side {
  background:
    radial-gradient(circle at 73% 42%, rgba(105, 66, 255, 0.42), transparent 31%),
    linear-gradient(
      90deg,
      #07041d 0%,
      rgba(7, 4, 29, 0.96) 30%,
      rgba(7, 4, 29, 0.38) 58%,
      rgba(7, 4, 29, 0.08) 100%
    );
}

.hero-overlay-vertical {
  background: linear-gradient(
    180deg,
    rgba(7, 4, 29, 0.68) 0%,
    rgba(7, 4, 29, 0.08) 38%,
    rgba(7, 4, 29, 0.82) 100%
  );
}

.hero-dots {
  left: 31%;
  top: 27%;
  display: block;
  width: 38rem;
  height: 18rem;
  opacity: 0.25;
  background-image: radial-gradient(circle, rgba(162, 155, 254, 0.55) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.hero-line {
  top: 8rem;
  right: -6rem;
  width: 42rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.8);
  box-shadow: 0 0 22px 7px rgba(139, 92, 246, 0.75);
  transform: rotate(-37deg);
}

.hero-ring {
  right: -4rem;
  bottom: 6rem;
  width: 46rem;
  height: 18rem;
  border: 1px solid rgba(167, 139, 250, 0.55);
  border-radius: 50%;
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.35);
  transform: rotate(-18deg);
}

.hero-person-desktop {
  right: 0.5rem;
  bottom: -2.5rem;
  z-index: 1;
  width: min(50rem, 54vw);
  filter: drop-shadow(0 34px 70px rgba(23, 7, 61, 0.5));
}

.hero-person-mobile {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100svh - 4.75rem);
  align-items: center;
  padding-block: 2rem;
}

.hero-copy {
  max-width: 39rem;
  padding-block: 2rem 3rem;
}

.hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3.35rem, 9vw, 4.8rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 span {
  background: linear-gradient(90deg, #c7c2ff, #9b8cff, #6f5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: rgba(237, 233, 254, 0.78);
  font-size: 1rem;
  line-height: 2;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button-video {
  min-height: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button-video:hover {
  background: rgba(255, 255, 255, 0.08);
}

.play-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
}

.hero-stats {
  display: grid;
  max-width: 47rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.stat-icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-primary-light);
  font-size: 1.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stat-icon svg,
.service-grid svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}


.steps svg
{
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.stat-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.hero-stat strong,
.hero-stat small {
  display: block;
}

.hero-stat strong {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.2;
}

.hero-stat small {
  margin-top: 0.25rem;
  color: rgba(237, 233, 254, 0.68);
  font-size: 0.625rem;
  line-height: 1.35;
}

.process {
  background: #f7f9fc;
  padding-block: 3rem 2.5rem;
}

.section-intro,
.section-heading {
  text-align: center;
}

.divider-dot {
  display: flex;
  max-width: 56rem;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto 1.25rem;
}

.divider-dot::before,
.divider-dot::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #cbd5e1;
}

.divider-dot span {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--brand-primary);
}

.section-intro h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading h2 {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.section-intro p,
.section-heading p {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: var(--brand-slate);
  font-size: 1rem;
  line-height: 1.75;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2rem 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(42, 34, 96, 0.12);
  border-radius: 1rem;
  background: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(42, 34, 96, 0.16);
  list-style: none;
}

.steps li {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.steps li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.steps strong {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 700;
}

.steps span {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-primary-light);
}

.steps h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 700;
}

.how-it-works {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
}

.section-title-line {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.section-title-line span {
  height: 1px;
  flex: 1;
  background: #cbd5e1;
}

.section-title-line h2 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--brand-navy);
  font-size: 1.55rem;
  font-weight: 700;
}

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

.service-grid article {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-grid article:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.service-grid article > span {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: var(--brand-primary);
}

.service-grid h3 {
  margin: 1rem 0 0;
  color: var(--brand-navy);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
}

.service-grid p {
  flex: 1;
  margin: 0.75rem 0 0;
  color: var(--brand-slate);
  font-size: 0.9rem;
  line-height: 1.55;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.testimonials {
  scroll-margin-top: 6rem;
  overflow: hidden;
  background: var(--brand-muted);
  padding-block: 2.5rem;
}

.section-heading > p:first-child {
  color: var(--brand-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.testimonial-image {
  position: relative;
  height: 11rem;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 25%;
}

.testimonial-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(61, 51, 128, 0.78), rgba(61, 51, 128, 0.2), transparent);
}

.testimonial-image span {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  top: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
}

.testimonial-card blockquote {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  padding: 1.25rem;
}

.testimonial-card p {
  margin: 0;
  color: var(--brand-navy);
  font-size: 1rem;
  line-height: 1.45;
}

.testimonial-card figcaption {
  margin-top: auto;
  border-top: 1px solid var(--brand-border);
  padding-top: 1rem;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card strong {
  color: var(--brand-navy);
  font-weight: 600;
}

.testimonial-card figcaption span {
  margin-top: 0.25rem;
  color: var(--brand-slate);
  font-size: 0.9rem;
}

.calculator {
  padding-block: 3rem 4rem;
}

.calculator-shell {
  width: min(48rem, calc(100vw - 2rem));
  margin-inline: auto;
}

.calculator-card {
  margin-top: 2rem;
  border: 1px solid rgba(232, 230, 245, 0.5);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ffffff, #ffffff 58%, rgba(245, 243, 255, 0.55));
  padding: 2rem;
  box-shadow: 0 18px 45px rgba(108, 92, 231, 0.08);
}

.range-field + .range-field {
  margin-top: 1.5rem;
}

.range-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.range-label label {
  color: var(--brand-navy);
  font-weight: 600;
}

.range-label output {
  min-width: 4.5rem;
  border-radius: 0.75rem;
  background: rgba(108, 92, 231, 0.1);
  padding: 0.6rem 1rem;
  color: var(--brand-primary);
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  appearance: none;
  background: var(--brand-border);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  appearance: none;
  background: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.35);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.35);
  cursor: pointer;
}

.income-result {
  margin-top: 1.5rem;
  border: 2px solid rgba(108, 92, 231, 0.3);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), #f5f3ff, #ffffff);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
}

.income-result p {
  margin: 0;
  color: var(--brand-slate);
  font-size: 0.9rem;
  font-weight: 600;
}

.income-result strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--brand-navy);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.income-result strong span:last-child {
  color: var(--brand-primary);
  font-size: 0.55em;
}

.footer {
  background: var(--brand-navy-dark);
  color: #ede9fe;
  padding-block: 4rem 2rem;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 2.5rem);
}

.footer-cta p {
  max-width: 36rem;
  margin: 1rem 0 0;
  color: #ddd6fe;
  font-size: 1.1rem;
  line-height: 1.65;
}

.footer-cta .button {
  margin-top: 2rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
}

.footer-bottom img {
  height: 2.4rem;
  width: auto;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-bottom nav a {
  color: #ede9fe;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ddd6fe;
  font-weight: 800;
}

.social-links svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.social-links a:hover {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #ffffff;
}

.copyright {
  margin: 2.5rem 0 0;
  color: rgba(221, 214, 254, 0.6);
  text-align: center;
  font-size: 0.75rem;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.apply-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #07041d;
  color: #ffffff;
  padding-top: 4.75rem;
}

.apply-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(108, 92, 231, 0.34), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(162, 155, 254, 0.26), transparent 26%),
    linear-gradient(180deg, #07041d 0%, #110a35 52%, #07041d 100%);
}

.apply-shell {
  position: relative;
  z-index: 1;
  width: min(48rem, calc(100vw - 2rem));
  margin-inline: auto;
  padding: 3rem 0 5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(237, 233, 254, 0.78);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.back-link:hover {
  color: #ffffff;
}

.back-link svg,
.apply-submit svg,
.success-actions svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apply-intro {
  margin-top: 2rem;
}

.apply-intro h1 {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0;
}

.apply-intro p {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: rgba(237, 233, 254, 0.74);
  font-size: 1rem;
  line-height: 1.8;
}

.apply-card {
  margin-top: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  padding: 2rem;
}

.application-form {
  display: grid;
  gap: 1.35rem;
}

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

.form-field label {
  display: block;
  margin-bottom: 0.55rem;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-field label span {
  color: var(--brand-primary-light);
}

.form-field input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.form-field input::placeholder {
  color: rgba(237, 233, 254, 0.42);
}

.form-field input:focus {
  border-color: var(--brand-primary-light);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(162, 155, 254, 0.14);
}

.form-field input[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.82);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.field-error {
  margin: 0.4rem 0 0;
  color: #fca5a5;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.apply-submit {
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.25rem;
  padding-inline: 2.25rem;
  font-size: 1rem;
}

.apply-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  margin: -0.35rem 0 0;
  color: #fca5a5;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.form-status:empty {
  display: none;
}

.apply-shell-success {
  display: grid;
  width: min(48rem, calc(100vw - 2rem));
  min-height: calc(100svh - 4.75rem);
  place-items: center;
  padding-block: 4.75rem 5rem;
}

.success-panel {
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  width: 100%;
  padding: 0;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 5.75rem;
  height: 5.75rem;
  place-items: center;
  border: 1px solid rgba(20, 211, 174, 0.38);
  border-radius: 999px;
  background: rgba(45, 110, 159, 0.32);
  color: #14d3ae;
  box-shadow: 0 0 40px rgba(20, 211, 174, 0.12);
}

.success-icon svg {
  width: 2.15rem;
  height: 2.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-panel h2 {
  margin: 1.15rem 0 0;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  font-weight: 700;
}

.success-panel p {
  max-width: 39rem;
  margin: 0;
  color: rgba(237, 233, 254, 0.68);
  font-size: 1.12rem;
  line-height: 1.65;
}

.success-panel .success-thanks {
  margin-top: 0.3rem;
  color: rgba(237, 233, 254, 0.82);
  font-size: 1.13rem;
  line-height: 1.3;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.success-actions .button,
.success-actions .login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.55rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.success-actions .button {
  min-width: 13.75rem;
  box-shadow: 0 12px 26px rgba(108, 92, 231, 0.34);
}

.success-actions .login-link {
  min-width: 18.5rem;
  border: 1px solid rgba(237, 233, 254, 0.18);
  background: rgba(255, 255, 255, 0.015);
  color: #ffffff;
  padding-inline: 1.75rem;
  cursor: pointer;
}

.success-actions .login-link:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(237, 233, 254, 0.28);
}

@media (min-width: 640px) {
  .brand img {
    height: 2.75rem;
  }

  .hero h1 {
    font-size: 4.9rem;
  }

  .hero-copy > p {
    font-size: 1.125rem;
  }

  .section-intro h2 {
    font-size: 2.25rem;
  }

  .section-intro p,
  .section-heading p {
    font-size: 1.125rem;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .section-title-line h2 {
    font-size: 1.875rem;
  }

  .steps strong {
    font-size: 2.5rem;
  }

  .steps h3 {
    font-size: 1.125rem;
  }

  .income-result strong {
    font-size: 3.75rem;
  }

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

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

  .apply-submit {
    width: auto;
    justify-self: start;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.8rem;
  }

  .section-intro h2 {
    font-size: 2.75rem;
    line-height: 1.15;
  }
}

@media (min-width: 1280px) {
  .desktop-nav a {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 5.45rem;
  }
}

@media (min-width: 1536px) {
  .hero h1 {
    font-size: 6.15rem;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    width: min(80rem, calc(100vw - 2.5rem));
    min-height: 4.25rem;
  }

  .brand img {
    height: 2.25rem;
  }

  .menu-button {
    display: block;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-bg {
    object-position: 58% center;
  }

  .hero-dots,
  .hero-line,
  .hero-ring,
  .hero-person-desktop {
    display: none;
  }

  .hero-person-mobile {
    display: block;
    z-index: 1;
    top: 6.75rem;
    right: -7rem;
    width: 36rem;
    opacity: 1;
    filter: drop-shadow(0 24px 50px rgba(23, 7, 61, 0.55));
    mask-image: linear-gradient(to bottom, black 62%, transparent 100%);
  }

  .hero-content {
    min-height: calc(92svh - 4.75rem);
  }

  .hero-copy {
    padding-top: 15rem;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 12vw, 4.9rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .steps {
    gap: 0.5rem;
    margin-top: 2rem;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .steps li {
    min-height: 4.75rem;
    gap: 0.75rem;
    border: 1px solid rgba(42, 34, 96, 0.12);
    border-radius: 1rem;
    background: var(--brand-navy);
    padding: 0.75rem;
    box-shadow: 0 18px 40px rgba(42, 34, 96, 0.16);
  }

  .steps li + li {
    border-left: 1px solid rgba(42, 34, 96, 0.12);
  }

  .steps strong {
    font-size: 1.25rem;
  }

  .steps span {
    width: 2.5rem;
    height: 2.5rem;
  }

  .steps h3 {
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.25;
  }

  .testimonial-strip {
    display: flex;
    margin-inline: -1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: 1rem;
    padding-bottom: 1rem;
  }

  .testimonial-card {
    width: 22rem;
    max-width: 82vw;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .header-inner {
    min-height: 4.75rem;
  }

  .brand img {
    height: 2.75rem;
  }

  .process {
    padding-block: 2.5rem;
  }

  .steps {
    gap: 0.75rem;
    margin-top: 2.5rem;
  }

  .steps li {
    min-height: 10rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .steps strong {
    font-size: 2.5rem;
  }

  .steps span {
    margin-left: auto;
  }

  .steps h3 {
    font-size: 1.125rem;
  }
}

@media (max-width: 767px) {
  .header-actions {
    display: none;
  }

  .header-inner {
    width: calc(100vw - 2.5rem);
  }

  .hero-buttons {
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .hero-buttons .button {
    width: min(18.5rem, 100%);
  }

  .hero-person-mobile {
    right: 3.5rem;
    width: 21rem;
  }

  .hero-copy {
    padding-top: 13.5rem;
  }

  .hero-copy > p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1rem;
  }

  .hero-stat {
    gap: 1rem;
  }

  .hero-stat strong {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
  }

  .hero-stat small {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .process {
    padding-block: 3rem;
  }

  .section-intro h2 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 1.875rem;
  }

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

  .section-title-line {
    gap: 1rem;
  }

  .calculator-card {
    padding: 1.25rem;
  }

  .apply-shell {
    padding-block: 2rem 4rem;
  }

  .apply-shell-success {
    padding-block: 3rem 4rem;
  }

  .apply-card {
    border-radius: 1.125rem;
    padding: 1.25rem;
  }

  .success-icon {
    width: 5.75rem;
    height: 5.75rem;
  }

  .success-panel p,
  .success-panel .success-thanks {
    font-size: 1rem;
  }

  .success-actions {
    width: 100%;
  }

  .success-actions .button,
  .success-actions .login-link {
    width: 100%;
    min-width: 0;
  }

  .range-label {
    align-items: flex-start;
  }

  .range-label label {
    max-width: 12rem;
  }

  .income-result {
    padding: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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