/* Lean Personal Finance - Core Styles */
:root {
  --brand-primary: #1b6ef3;
  --brand-secondary: #0b2d66;
  --brand-accent: #23c08b;
  --brand-warm: #ffb347;
  --bg-light: #f5f8ff;
  --text-dark: #101828;
  --text-muted: #475467;
  --border-light: #e4e7ec;
  --shadow-soft: 0 14px 40px rgba(16, 24, 64, 0.12);
  --shadow-card: 0 10px 30px rgba(16, 24, 64, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.6;
}

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

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

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

.section {
  padding: 80px 0;
}

.section.light {
  background: var(--bg-light);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(27, 110, 243, 0.25);
}

.btn-secondary {
  border: 1px solid var(--brand-primary);
  color: var(--brand-primary);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(35, 192, 139, 0.12);
  color: var(--brand-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

header {
  padding: 20px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--brand-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.floating-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  font-weight: 600;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.35;
  animation: float 9s ease-in-out infinite;
}

.blob.one {
  width: 260px;
  height: 260px;
  background: var(--brand-primary);
  top: -40px;
  right: -60px;
}

.blob.two {
  width: 200px;
  height: 200px;
  background: var(--brand-accent);
  bottom: -80px;
  left: -40px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(27, 110, 243, 0.2);
}

.card h3 {
  margin-bottom: 10px;
}

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

.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.how-card img {
  border-radius: 18px;
  margin-bottom: 16px;
  height: 180px;
  width: 100%;
  object-fit: cover;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat {
  text-align: center;
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.stat h3 {
  font-size: 2rem;
  color: var(--brand-primary);
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial img {
  border-radius: 16px;
  height: 180px;
  object-fit: cover;
}

.cta {
  background: linear-gradient(120deg, var(--brand-secondary), var(--brand-primary));
  color: #ffffff;
  border-radius: 32px;
  padding: 50px;
  display: grid;
  gap: 20px;
}

.faq details {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.form-card {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  font-size: 1rem;
}

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

.login-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.legal-content {
  display: grid;
  gap: 20px;
}

.legal-content h2 {
  margin-top: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.table th {
  background: var(--bg-light);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.warning {
  background: rgba(255, 179, 71, 0.16);
  border-left: 4px solid var(--brand-warm);
  padding: 20px;
  border-radius: 16px;
}

footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.ssl-badge {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.disclaimer {
  font-size: 0.85rem;
  color: #9aa4c7;
  margin-top: 16px;
}

.mini-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #9aa4c7;
  margin-top: 24px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(35, 192, 139, 0.2);
  display: grid;
  place-items: center;
  color: var(--brand-accent);
  font-size: 2.2rem;
  margin: 0 auto 20px;
}

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

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

  .cta {
    padding: 32px;
  }
}
