@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap');

:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-soft: #f7fbff;
  --text: #0f1b2d;
  --muted: #5b6b82;
  --primary: #0a4ecf;
  --primary-dark: #08378f;
  --accent: #00a39b;
  --border: #dbe7f8;
  --danger: #b91c1c;
  --success: #0f9d67;
  --shadow: 0 16px 34px rgba(12, 38, 82, 0.12);
  --shadow-soft: 0 10px 22px rgba(12, 38, 82, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

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

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

body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  width: 38vw;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.45;
}

body::before {
  background: #cde4ff;
  top: -12vw;
  right: -8vw;
}

body::after {
  background: #b8f2e5;
  bottom: -18vw;
  left: -10vw;
}

.container {
  width: min(var(--max-width), calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(219, 231, 248, 0.72);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 138px;
}

.brand img {
  width: 140px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: #162a46;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.4rem 2.15rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  border-color: var(--primary);
}

.site-nav .cta-mini,
.site-nav .cta-mini:hover,
.site-nav .cta-mini.active {
  color: #fff;
  border-color: transparent;
}

.cta-mini {
  background: linear-gradient(120deg, var(--primary), #1a73e8);
  color: #fff;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 20px rgba(10, 78, 207, 0.25);
  transition: transform 0.2s ease;
}

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

.burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.burger span,
.burger::before,
.burger::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: #152744;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.burger::before,
.burger::after {
  position: absolute;
}

.burger::before {
  transform: translateY(-6px);
}

.burger::after {
  transform: translateY(6px);
}

.menu-open .burger span {
  opacity: 0;
}

.menu-open .burger::before {
  transform: rotate(45deg);
}

.menu-open .burger::after {
  transform: rotate(-45deg);
}

main {
  overflow: clip;
}

.section {
  padding: 5rem 0;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 255, 0.8));
  border-top: 1px solid rgba(219, 231, 248, 0.7);
  border-bottom: 1px solid rgba(219, 231, 248, 0.7);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(10, 78, 207, 0.08);
  border: 1px solid rgba(10, 78, 207, 0.16);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  transform: translateY(-4px);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.18;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.hero {
  padding: 4.4rem 0 4.8rem;
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
  grid-template-columns: 1.05fr 0.95fr;
}

.hero-copy p {
  margin-top: 1.3rem;
  max-width: 56ch;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(130deg, var(--primary), #2b7af0);
  color: #fff;
  box-shadow: 0 15px 24px rgba(10, 78, 207, 0.25);
}

.btn-secondary {
  background: #fff;
  color: #15335f;
  border-color: var(--border);
}

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

.hero-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #ffffff, #eef5ff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: -45% -10% auto;
  height: 70%;
  background: radial-gradient(circle, rgba(10, 78, 207, 0.18), transparent 60%);
}

.hero-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.3rem;
  border-bottom: 1px solid rgba(219, 231, 248, 0.8);
}

.hero-amount {
  font-family: 'Sora', sans-serif;
  font-size: 2.2rem;
  color: #0d2444;
}

.hero-small {
  font-size: 0.86rem;
  color: #53709a;
}

.hero-list {
  padding: 1.2rem 1.3rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.hero-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e6eefc;
}

.hero-item img {
  width: 42px;
  height: 42px;
}

.hero-item strong {
  display: block;
  font-size: 0.95rem;
}

.hero-item span {
  font-size: 0.84rem;
  color: #627791;
}

.metrics {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.95rem;
  box-shadow: var(--shadow-soft);
}

.metric strong {
  font-family: 'Sora', sans-serif;
  display: block;
  color: #12366b;
}

.metric span {
  font-size: 0.82rem;
  color: #5b708d;
}

.title-wrap {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.title-wrap p {
  max-width: 66ch;
}

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

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

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

.card {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: rgba(10, 78, 207, 0.08);
  border: 1px solid rgba(10, 78, 207, 0.18);
}

.card-icon img {
  width: 30px;
  height: 30px;
}

.card p {
  margin-top: 0.55rem;
  font-size: 0.96rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.95rem;
  align-items: start;
}

.timeline-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, var(--primary), #2f86f3);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  margin-top: 0.18rem;
}

.timeline-item h3 {
  margin-bottom: 0.4rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 1rem 1rem;
  color: #132c4f;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #4a6594;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  padding: 0 1rem;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding-bottom: 1rem;
}

.page-hero {
  padding: 3.3rem 0 2.3rem;
}

.page-hero p {
  margin-top: 0.9rem;
  max-width: 72ch;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

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

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

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

label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e3556;
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid #d3e2f8;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: #12304f;
  background: #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(10, 78, 207, 0.22);
  border-color: #8bb3f3;
}

.feedback {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--success);
  display: none;
}

.feedback.show {
  display: block;
}

.loan-shell {
  display: grid;
  gap: 1rem;
}

.loan-shell .step-panel h2 {
  margin-bottom: 0.45rem;
}

.loan-shell .step-panel p {
  font-size: 1rem;
}

.loan-shell .field label {
  font-size: 0.98rem;
}

.loan-shell input:not([type='range']),
.loan-shell select {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  padding: 0.95rem 1rem;
  border-width: 2px;
}

.loan-shell .step-badge {
  font-size: 0.95rem;
  padding: 0.45rem 0.95rem;
}

.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.step-badge {
  font-size: 0.86rem;
  font-weight: 700;
  color: #173f79;
  background: #e8f1ff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e4eefc;
  overflow: hidden;
}

.progress-fill {
  width: 16.66%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.step-panel {
  display: none;
  animation: fadeIn 0.24s ease;
}

.step-panel.active {
  display: block;
}

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

.range-row {
  display: grid;
  gap: 0.8rem;
}

.range-value {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  color: #0b2f67;
}

input[type='range'] {
  width: 100%;
  padding: 0;
  border: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), #3d95ff);
  border-radius: 999px;
  appearance: none;
}

input[type='range']::-webkit-slider-thumb {
  appearance: none;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  width: 21px;
  height: 21px;
  border: 4px solid var(--primary);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.step-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.video-shell {
  margin-top: 0.9rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #c8dcf7;
  background: radial-gradient(circle at 50% 5%, #0f2d56, #081428 68%);
  position: relative;
  min-height: 280px;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.88;
}

.video-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.scanner {
  width: min(78%, 280px);
  aspect-ratio: 3 / 4;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.scanner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 163, 155, 0) 0%,
    rgba(0, 163, 155, 0.62) 45%,
    rgba(0, 163, 155, 0.02) 100%
  );
  transform: translateY(-100%);
  animation: scan 2.8s linear infinite;
}

@keyframes scan {
  to {
    transform: translateY(100%);
  }
}

.scan-status {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.scan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #e8f8f6;
  color: #146a68;
  font-size: 0.82rem;
  font-weight: 700;
}

.scan-pill::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #17a39a;
  box-shadow: 0 0 0 8px rgba(23, 163, 154, 0.2);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 163, 154, 0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(23, 163, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 163, 154, 0);
  }
}

.scan-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #d2e4fb;
  overflow: hidden;
}

.scan-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(120deg, #09b8b0, #1d7ef2);
  transition: width 0.16s linear;
}

.scan-note {
  font-size: 0.9rem;
  color: #37587f;
}

.scan-success {
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--success);
  display: none;
}

.scan-success.show {
  display: block;
}

.summary-box {
  margin-top: 1rem;
  border: 1px solid #c7dbfa;
  border-radius: 14px;
  background: linear-gradient(145deg, #f2f8ff, #ffffff);
  padding: 1rem;
  display: none;
}

.summary-box.show {
  display: block;
}

.summary-box ul {
  margin: 0;
  padding-left: 1rem;
  color: #23406a;
  display: grid;
  gap: 0.4rem;
}

.app-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.app-shot {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0.8rem;
}

.app-shot img {
  border-radius: 18px;
}

.feature-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #33557f;
  display: grid;
  gap: 0.42rem;
}

.inline-banner {
  border: 1px solid #cae0fd;
  border-radius: 16px;
  background: linear-gradient(145deg, #e9f4ff, #f8fdff);
  padding: 1rem;
  margin-top: 1rem;
}

.site-footer {
  margin-top: 4rem;
  background: #06090f;
  color: #d9e4f6;
}

.footer-inner {
  padding: 2.1rem 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
}

.footer-brand img {
  width: 148px;
}

.footer-brand p {
  color: #9fb4d7;
  font-size: 0.9rem;
  max-width: 50ch;
}

.store-link {
  display: inline-grid;
  gap: 0.45rem;
  justify-items: end;
  color: #f1f5ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.store-link img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .site-nav {
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.4rem 0.9rem;
  }

  .hero-grid,
  .app-layout,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #dce8fa;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.24s ease;
    padding: 0;
    max-height: calc(100vh - 76px);
    overflow: auto;
  }

  .site-nav a,
  .site-nav .cta-mini {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid #e6effe;
    border-radius: 0;
  }

  .site-nav .cta-mini {
    margin-top: 0;
    box-shadow: none;
    border: 0;
    background: linear-gradient(120deg, var(--primary), #1a73e8);
    color: #fff;
  }

  .menu-open .site-nav {
    transform: scaleY(1);
  }

  .burger {
    display: inline-flex;
    position: relative;
  }

  .header-actions {
    display: none;
  }

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

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 4rem 0;
  }

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

  .store-link {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max-width), calc(100% - 1.35rem));
  }

  .hero-panel,
  .form-card,
  .card,
  .app-shot {
    border-radius: 18px;
  }

  .btn {
    width: 100%;
  }

  .kicker {
    margin-bottom: 1.15rem;
    transform: translateY(-6px);
  }

  .loan-shell .field label {
    font-size: 1rem;
  }

  .loan-shell input:not([type='range']),
  .loan-shell select {
    font-size: 1.06rem;
    min-height: 52px;
  }

  .step-controls .btn {
    width: auto;
    flex: 1;
  }
}
