/* =====================================================
   FONTS – INTER FROM GOOGLE
===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --accent: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f8fafc;

  --dark: #0f172a;
  --dark-2: #1e293b;
  --muted: #64748b;
  --muted-light: #94a3b8;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow: 0 20px 40px rgba(15, 23, 42, .12);
  --shadow-soft: 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-hover: 0 24px 48px rgba(15, 23, 42, .18);

  --gradient-primary: linear-gradient(135deg, #2563eb, #1d4ed8);
  --gradient-dark: linear-gradient(180deg, #0f172a 0%, #0f172a 100%);
  --glow-primary: 0 12px 40px rgba(37, 99, 235, .30);
  --glow-green: 0 12px 40px rgba(16, 185, 129, .25);
  --border-soft: 1px solid rgba(255, 255, 255, .09);
  --border-light: 1px solid #e2e8f0;
}

/* =====================================================
   CSS RESET
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* =====================================================
   BODY & TYPOGRAPHY
===================================================== */
body {
  background: var(--bg);
  color: var(--dark);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 700;
}

p {
  line-height: 1.75;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  text-decoration: underline;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0 0;
}

.section-soft {
  background: var(--surface-alt);
  padding: 80px 0;
  margin-top: 80px;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

/* =====================================================
   TYPOGRAPHY SCALE
===================================================== */
section h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 10px;
  font-weight: 800;
}

section p.subtitle,
section p.muted {
  font-size: 17px;
  max-width: 680px;
  margin-bottom: 36px;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-primary);
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--glow-primary);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(37, 99, 235, .4);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: #fff;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .1);
  text-decoration: none;
  color: #fff;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  text-decoration: none;
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* =====================================================
   BADGE
===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* =====================================================
   HERO – DARK FINTECH
===================================================== */
.hero-pro {
  background:
    radial-gradient(ellipse 1200px 600px at 5% -5%, rgba(37, 99, 235, .25), transparent),
    radial-gradient(ellipse 800px 500px at 95% 10%, rgba(16, 185, 129, .12), transparent),
    var(--gradient-dark);
  color: #fff;
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid-pro {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 18px 0 20px;
}

.hero-left p {
  font-size: 18px;
  color: #b0bcdc;
  max-width: 500px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin: 36px 0;
  flex-wrap: wrap;
}

.hero-stats div {
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.hero-stats strong {
  font-size: 28px;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}

.hero-stats span {
  font-size: 13px;
  color: #94a3b8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* HERO CARD */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 28px 32px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}

.mock-card .muted {
  color: #94a3b8;
  font-size: 13px;
}

.mock-card strong {
  font-size: 22px;
  font-weight: 700;
  display: block;
  margin: 6px 0;
}

.emi-amount {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mock-card.subtle {
  background: rgba(255, 255, 255, .04);
  box-shadow: none;
  font-size: 14px;
  color: #94a3b8;
  text-align: center;
  padding: 18px;
}

/* =====================================================
   TOOL GRID & CARDS
===================================================== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid #e8edf5;
  box-shadow: var(--shadow-soft);
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity .25s;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.tool-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

a.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d7f8;
  text-decoration: none;
}

/* =====================================================
   FORM ELEMENTS – GLOBAL
===================================================== */
input[type=number],
input[type=text],
input[type=email],
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #dde3ef;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
  line-height: 1.5;
}

input[type=number]:focus,
input[type=text]:focus,
input[type=email]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--slider-color, var(--primary)) var(--slider-fill, 0%), #e2e8f0 var(--slider-fill, 0%));
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--slider-color, var(--primary));
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
  cursor: pointer;
  margin-top: -7px;
  /* Centers thumb on 6px track for some browsers */
}

/* Firefox support */
input[type=range]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #e2e8f0;
  border-radius: 999px;
}

input[type=range]::-moz-range-progress {
  background: var(--slider-color, var(--primary));
  height: 6px;
  border-radius: 999px;
}

input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--slider-color, var(--primary));
  border: 3px solid #fff;
  cursor: pointer;
}

button {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  cursor: pointer;
}

/* =====================================================
   CARD / RESULT BOX GENERIC 
===================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid #e8edf5;
}

.result-box {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  border: 1px solid #e8edf5;
}

.result-box p {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.result-box h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
}

/* =====================================================
   AD SLOT
===================================================== */
.ad-slot {
  margin: 32px 0;
  padding: 14px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px dashed #dde3ef;
}

.ad-label {
  font-size: 11px;
  color: var(--muted-light);
  margin-bottom: 6px;
}

/* =====================================================
   SECTION SOFT OVERRIDE (light bg sections)
===================================================== */
.section-soft h2,
.section-soft h3 {
  color: var(--dark);
}

/* =====================================================
   IMAGES
===================================================== */
img {
  max-width: 100%;
  display: block;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media(max-width:1024px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media(max-width:900px) {
  .hero-grid-pro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-right {
    display: none;
  }

  .hero-pro {
    padding: 100px 0 80px;
  }
}

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

  .section {
    padding: 60px 0 0;
  }

  .section-soft {
    padding: 60px 0;
    margin-top: 60px;
  }

  .card {
    padding: 20px;
  }

  body {
    font-size: 15px;
  }
}