:root {
  --ink: #16102f;
  --muted: #69627f;
  --line: #e7e1f4;
  --paper: #ffffff;
  --soft: #f7f4ff;
  --violet: #6736e7;
  --violet-dark: #32136f;
  --orange: #ff8a22;
  --green: #16a765;
  --blue: #2878ff;
  --shadow: 0 14px 36px rgba(36, 18, 86, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbf9ff;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(231, 225, 244, 0.72);
  transition: background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(38, 22, 83, 0.07);
}

.nav-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  color: var(--violet-dark);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(103, 54, 231, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #3e355e;
  font-weight: 650;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle {
  flex-direction: column;
  gap: 4px;
}

.nav-open .menu-toggle span {
  opacity: 0;
}

.nav-open .menu-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .menu-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 740px;
  padding: 152px 0 78px;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 255, 0.92) 58%, rgba(255, 247, 238, 0.94) 100%),
    linear-gradient(180deg, #ffffff, #f7f4ff);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(251, 249, 255, 0), #fbf9ff);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  width: min(620px, 100%);
  position: relative;
  z-index: 2;
  animation: heroCopyIn 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(103, 54, 231, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--violet-dark);
  font-weight: 750;
  font-size: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  margin-bottom: 20px;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: 0;
  max-width: 760px;
}

.lead {
  max-width: 610px;
  margin-bottom: 30px;
  color: #51486f;
  font-size: 18px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 12px 24px rgba(103, 54, 231, 0.22);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--violet-dark);
}

.btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: #3e355e;
  font-weight: 700;
  border: 1px solid rgba(231, 225, 244, 0.72);
  overflow-wrap: anywhere;
}

.hero-points b {
  font-size: 15px;
  line-height: 1.25;
}

.hero-points i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.phone-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  transform: none;
  filter: drop-shadow(0 22px 36px rgba(43, 22, 95, 0.14));
  transition: transform 0.25s ease, filter 0.25s ease;
  will-change: transform;
}

.hero-phone-image {
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  animation: phoneIn 0.8s ease 0.08s both;
}

.phone-stage.is-interactive {
  transform: translate3d(var(--phone-x, 0), var(--phone-y, 0), 0);
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 28px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.metric-grid,
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric,
.doc-card,
.role-card,
.contact-panel,
.process-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(39, 21, 84, 0.045);
}

.metric {
  padding: 24px;
}

.metric span,
.doc-card span {
  color: var(--muted);
  font-weight: 750;
}

.metric strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--violet-dark);
  font-size: 27px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.metric p {
  margin: 0;
  color: var(--muted);
}

.example-box {
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: 8px;
  background: #fff8ee;
  border: 1px solid #ffdcb2;
  color: #62411e;
}

.example-box strong {
  color: #a95000;
}

.process-band {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-list article {
  padding: 22px;
  min-height: 202px;
}

.process-list span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--violet);
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 18px;
}

.process-list h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.role-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.role-card {
  padding: 28px;
}

.role-card p {
  color: var(--muted);
}

.boundary-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #342a51;
  font-weight: 740;
}

.boundary-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.role-side {
  background: #241056;
  color: #fff;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.role-side strong {
  display: block;
  font-size: 24px;
  line-height: 1.18;
  margin-bottom: 12px;
}

.role-side p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.seal {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 34px;
  font-weight: 900;
}

.docs {
  padding-top: 78px;
}

.doc-card {
  padding: 24px;
  min-height: 212px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(39, 21, 84, 0.08);
}

.doc-card h3 {
  margin: 12px 0 8px;
}

.doc-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.doc-card b {
  color: var(--violet);
}

.contact-band {
  padding: 0 0 84px;
}

.contact-panel {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 255, 0.96)),
    #fff;
}

.contact-panel h2 {
  font-size: 42px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.contact-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list div {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-list span,
.contact-list b {
  display: block;
}

.contact-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-list b {
  overflow-wrap: anywhere;
}

.site-footer {
  background: #171124;
  color: rgba(255, 255, 255, 0.82);
  padding: 38px 0;
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-footer p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 740;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  transform: translate(-50%, -50%) scale(0.96);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: #171124;
  color: #fff;
  padding: 12px 18px;
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.quick-strip {
  width: min(1160px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-item {
  min-height: 116px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  transition: transform 0.22s ease, background 0.22s ease;
}

.quick-item:hover {
  transform: translateY(-3px);
}

.quick-item span {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.quick-item strong {
  color: var(--violet-dark);
  font-size: 22px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.quick-accent {
  background: var(--violet);
}

.quick-accent span,
.quick-accent strong {
  color: #fff;
}

.metric {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.metric:hover,
.process-list article:hover,
.doc-card:hover {
  border-color: rgba(103, 54, 231, 0.32);
}

.metric:hover,
.process-list article:hover {
  transform: translateY(-3px);
}

.metric::before {
  content: "";
  display: block;
  width: 42px;
  height: 6px;
  border-radius: 8px;
  background: var(--violet);
  margin-bottom: 20px;
}

.metric:nth-child(2)::before {
  background: var(--blue);
}

.metric:nth-child(3)::before {
  background: var(--orange);
}

.loan-showcase {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
}

.loan-scale,
.loan-badges {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(39, 21, 84, 0.045);
}

.loan-scale {
  padding: 26px;
}

.scale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.scale-head span {
  color: var(--muted);
  font-weight: 800;
}

.scale-head strong {
  color: var(--violet-dark);
  font-size: 28px;
  overflow-wrap: anywhere;
}

.scale-track {
  height: 14px;
  border-radius: 8px;
  background: #efe9ff;
  overflow: hidden;
}

.scale-track i {
  display: block;
  width: 88%;
  height: 100%;
  border-radius: inherit;
  background: var(--violet);
}

.has-js .scale-track i {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s ease;
}

.loan-showcase.is-visible .scale-track i {
  transform: scaleX(1);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.loan-badges {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.loan-badges span {
  min-height: 98px;
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.loan-badges b {
  color: var(--violet-dark);
  font-size: 30px;
  line-height: 1;
}

.process-list article {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.process-list article::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -20px;
  width: 44px;
  height: 2px;
  background: var(--line);
}

.process-list article:last-child::after {
  display: none;
}

.role-mini {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.role-mini span {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 800;
}

.doc-card {
  position: relative;
  overflow: hidden;
}

.doc-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--violet);
}

.doc-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--soft);
  color: var(--violet);
  font-style: normal;
  font-weight: 900;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

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

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-bottom: 38px;
  }

  .hero-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .phone-stage {
    position: relative;
    right: auto;
    top: auto;
    width: min(390px, 100%);
    margin: 0 auto;
    transform: none;
  }

  h1 {
    font-size: 58px;
  }

  .section-head,
  .role-grid,
  .contact-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .metric-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .quick-strip,
  .loan-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--soft);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .download-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .download-actions .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .quick-strip,
  .loan-showcase,
  .loan-badges {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    margin-top: -24px;
  }

  .scale-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .process-list article {
    min-height: auto;
  }

  .process-list article::after {
    display: none;
  }

  .contact-panel {
    padding: 24px;
  }

  .section h2,
  .contact-panel h2 {
    font-size: 32px;
  }
}
