/* =========================================================
   DigitalDzen M2.0 — clean landing styles
   File: static/lending.css
   ========================================================= */

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #111827;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

section {
  padding: 72px 0;
}

strong {
  font-weight: 800;
}

/* ---------- Main Navigation ---------- */

.main-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(8, 18, 37, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.main-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.main-nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.main-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.main-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: 0.18s ease;
}

.main-nav-links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.08);
}

.main-nav-links .nav-ai-btn {
  color: #07131f;
  background: linear-gradient(180deg, #3ddc84 0%, #22c55e 100%);
}

.main-nav-links .nav-ai-btn:hover {
  color: #07131f;
  background: linear-gradient(180deg, #54e694 0%, #2fd06b 100%);
  transform: translateY(-1px);
}

.main-nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.main-nav-user {
  color: rgba(255,255,255,0.76);
  font-size: 13px;
  font-weight: 700;
}

.mobile-nav-note {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100vh - 83px);
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.10), transparent 30%),
    linear-gradient(135deg, #081225 0%, #0f1b33 50%, #13233f 100%);
  color: #ffffff;
  text-align: center;
  padding: 46px 0 92px;
}

.hero-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.user-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 700;
}

.top-auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: 0.2s ease;
}

.header-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.landing-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 26px;
}

.landing-logo {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.hero h1 {
  max-width: 620px;
  margin: 0 auto 16px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero h3 {
  margin: 0 0 18px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  color: rgba(255,255,255,0.88);
}

.hero-sub {
  max-width: 700px;
  margin: 0 auto 14px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}

.hero-sub-soft {
  max-width: 660px;
  font-size: 16px;
  color: rgba(255,255,255,0.68);
}

.mini {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  color: rgba(255,255,255,0.62);
}

/* ---------- Buttons ---------- */

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-row-main {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: none;
  text-decoration: none;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.btn-primary {
  background: #22c55e;
  color: #07131f;
}

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
}

.btn-hero-main {
  min-width: 300px;
  min-height: 68px;
  padding: 0 38px;
  border-radius: 20px;
  background: linear-gradient(180deg, #3ddc84 0%, #22c55e 100%);
  color: #07131f;
  font-size: 20px;
  box-shadow: 0 18px 34px rgba(34,197,94,0.28);
}

.btn-hero-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(34,197,94,0.34);
}

/* ---------- Common sections ---------- */

.featured,
.problem,
.solution,
.what-you-get,
.quest-info,
.how-it-works,
.social-proof {
  background: #ffffff;
  border-top: 1px solid rgba(15,23,42,0.05);
}

.quest-info,
.what-you-get {
  background: #f8fafc;
}

.featured h2,
.problem h2,
.solution h2,
.what-you-get h2,
.quest-info h2,
.how-it-works h2,
.social-proof h2,
.final-cta h2 {
  margin: 0 auto 22px;
  max-width: 820px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
}

.problem p,
.solution p,
.social-proof p,
.final-cta p {
  max-width: 780px;
  margin: 0 auto 18px;
  font-size: 18px;
  line-height: 1.75;
  text-align: center;
  color: #334155;
}

/* ---------- Cards ---------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.featured-card {
  display: block;
  min-height: 100%;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.07);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15,23,42,0.04);
  transition: 0.18s ease;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15,23,42,0.07);
}

.featured-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.featured-card h3,
.card h3 {
  margin: 0 0 10px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
}

.featured-card p,
.card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
}

/* ---------- What you get ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.07);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15,23,42,0.04);
}

.what-you-get .mini {
  color: #64748b;
}

/* ---------- Problem list ---------- */

.bullets {
  max-width: 760px;
  margin: 26px auto 0;
  padding-left: 22px;
}

.bullets li {
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 28px auto 0;
}

.step {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Quotes ---------- */

.quotes {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 26px auto 0;
}

.quote {
  padding: 18px 20px;
  border-radius: 18px;
  border-left: 4px solid #22c55e;
  background: #f8fafc;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(180deg, #0d172b 0%, #111f37 100%);
  color: #ffffff;
  text-align: center;
}

.final-cta h2 {
  color: #ffffff;
}

.final-cta p {
  color: rgba(255,255,255,0.78);
}

.final-cta .btn-hero-main {
  margin-top: 8px;
}

/* ---------- Old dropdown support, if old pages still use it ---------- */

.maps-dropdown {
  position: relative;
  display: inline-block;
  min-width: 170px;
  height: 48px;
}

.maps-dropdown-btn {
  width: 100%;
  height: 48px;
  min-height: 48px;
  font: inherit;
  cursor: pointer;
}

.maps-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  z-index: 100;
}

.maps-dropdown:hover .maps-dropdown-menu {
  display: block;
}

.maps-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.maps-dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
}

.maps-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .main-nav {
    flex-wrap: wrap;
  }

  .main-nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .main-nav-wrap {
    position: static;
    padding: 10px 0;
  }

  .main-nav {
    min-height: auto;
    align-items: flex-start;
  }

  .main-nav-logo span {
    font-size: 16px;
  }

  .main-nav-links {
    display: none;
  }

  .main-nav-auth {
    margin-left: auto;
  }

  .main-nav-auth .header-btn {
    min-height: 36px;
  }

  .main-nav-user {
    display: none;
  }

  .mobile-nav-note {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0 2px;
  }

  .mobile-nav-note a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding: 34px 0 70px;
  }

  .hero-topbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin-bottom: 34px;
  }

  .top-auth-actions {
    justify-content: center;
  }

  .landing-logo {
    width: 88px;
    height: 88px;
  }

  .hero h1 {
    font-size: 38px;
    max-width: 390px;
  }

  .hero h3 {
    font-size: 17px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-sub-soft {
    font-size: 15px;
  }

  .btn-hero-main {
    width: min(92%, 340px);
    min-width: 0;
    min-height: 62px;
    font-size: 18px;
  }

  .problem p,
  .solution p,
  .social-proof p,
  .final-cta p {
    font-size: 17px;
    text-align: left;
  }

  .social-proof p,
  .final-cta p {
    text-align: center;
  }

  .bullets li,
  .featured-card p,
  .card p,
  .step,
  .quote {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .main-nav {
    gap: 10px;
  }

  .main-nav-logo img {
    width: 34px;
    height: 34px;
  }

  .main-nav-auth {
    gap: 6px;
  }

  .main-nav-auth .header-btn {
    padding: 0 10px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .header-btn {
    font-size: 13px;
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .btn-hero-main {
    min-height: 58px;
  }
}