/* ============================================================
MORTGAGE & LOANS — DARK GLASSMORPHISM THEME
Syne (display) + Inter (body) + JetBrains Mono (numbers)
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* ---- Backgrounds ---- */
  --bg-base: #070B0F;
  --bg-surface: #0D1117;
  --bg-elevated: #141B23;
  /* Legacy aliases — kept for backward compat with calculator pages */
  --bg-deep: #070B0F;
  --bg-primary: #0D1117;
  --bg-card: rgba(13, 17, 23, 0.80);
  
  /* ---- Accent (single color — CTA / active states / one decorative border) ---- */
  --accent: #00E5A0;
  --accent-glow: rgba(0, 229, 160, 0.18);
  --accent-soft: rgba(0, 229, 160, 0.10);
  
  /* ---- Gold (secondary decorative accent — gradient-text endpoint) ---- */
  --gold: #FFD166;
  --gold-glow: rgba(255, 209, 102, 0.18);
  --gold-soft: rgba(255, 209, 102, 0.10);
  
  /* ---- Status colors (unchanged — functional, not decorative) ---- */
  --success: #22C55E;
  --success-soft: rgba(34, 197, 94, 0.10);
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, 0.10);
  --warning: #F59E0B;
  --warning-soft: rgba(245, 158, 11, 0.10);
  
  /* ---- Text hierarchy ---- */
  --text-primary: #F0F4F8;
  --text-secondary: rgba(240, 244, 248, 0.65);
  --text-muted: rgba(240, 244, 248, 0.35);
  
  /* ---- Border system ---- */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-accent: rgba(0, 229, 160, 0.25);
  /* Legacy glass aliases — mapped to new border system ---- */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-hover: rgba(255, 255, 255, 0.07);
  
  /* ---- Shadows ---- */
  --shadow-card: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  --shadow-glow: 0 0 32px var(--accent-glow);
  
  /* ---- Radii / Transitions ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  
  /* ---- Typography ---- */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* ---- Layout ---- */
  --max-width: 1200px;
  --navbar-height: 68px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before, body::after {
  content: none !important;
  display: none !important;
}

body > * { position: relative; z-index: 1; }
::selection { background: var(--accent); color: white; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--text-primary); }
h1 { font-size: 64px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 24px; font-weight: 600; }

@media(max-width:768px) {
  h1 { font-size: clamp(2rem, 8vw, 48px); }
  h2 { font-size: clamp(1.5rem, 6vw, 32px); }
  h3 { font-size: clamp(1.1rem, 4vw, 20px); }
}

/* ---- Type Scale Utilities ---- */
.text-small, small, caption, .caption { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: rgba(240,244,248, 0.6); line-height: 1.5; }
.text-mono, .num, .stat-num, .stat-value, .result-value, .result-big, .mono { font-family: var(--font-mono) !important; font-weight: 600; }

.bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,229,160,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(0,229,160,0.06), transparent 60%),
    linear-gradient(180deg, #070B0F 0%, #0D1117 60%, #070B0F 100%);
  pointer-events: none;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: floaty 14s ease-in-out infinite;
}
.blob.b1 { width: 380px; height: 380px; background: #00E5A0; top: -120px; right: -120px; opacity: 0.25; }
.blob.b2 { width: 320px; height: 320px; background: #00E5A0; bottom: -120px; left: -100px; animation-delay: -5s; opacity: 0.15; }
.blob.b3 { width: 220px; height: 220px; background: #00E5A0; top: 40%; left: 50%; opacity: 0.08; animation-delay: -9s; }

@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

/* Floating coins / icons in background */
.floaters { position: absolute; inset: 0; pointer-events: none; }
.floaters svg.floater {
  position: absolute;
  color: rgba(255,255,255,0.18);
  animation: floatY 8s ease-in-out infinite;
}
.floaters svg.floater:nth-child(1) { top: 12%;  left: 8%;  width: 36px; animation-delay: -1s; }
.floaters svg.floater:nth-child(2) { top: 22%;  right: 10%; width: 44px; animation-delay: -3s; color: rgba(0,229,160,0.25); }
.floaters svg.floater:nth-child(3) { bottom: 18%; left: 12%; width: 40px; animation-delay: -5s; color: rgba(0,229,160,0.20); }
.floaters svg.floater:nth-child(4) { bottom: 28%; right: 14%; width: 32px; animation-delay: -2s; }
.floaters svg.floater:nth-child(5) { top: 55%;  left: 4%;   width: 28px; animation-delay: -6s; color: rgba(0,229,160,0.15); }
.floaters svg.floater:nth-child(6) { top: 65%;  right: 6%;   width: 36px; animation-delay: -4s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-22px) rotate(8deg); }
}

p { margin-bottom: 1rem; color: var(--text-secondary); }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.page-content { padding-top: calc(var(--navbar-height) + 2rem); padding-bottom: 1rem; min-height: 100vh; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #5A9AFF 50%, var(--gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease infinite;
}

/* ---- 3D Logo ---- */
.logo-3d {
  perspective: 800px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-3d svg {
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  transform-style: preserve-3d;
  filter: drop-shadow(0 4px 12px rgba(0,229,160,0.20));
}
.logo-3d:hover svg {
  transform: rotateY(-15deg) rotateX(8deg) scale(1.08);
  filter: drop-shadow(0 8px 24px rgba(0,229,160,0.35));
}
.logo-3d svg .house-body { animation: houseFloat 4s ease-in-out infinite; transform-origin: center bottom; }
.logo-3d svg .roof-shine { animation: roofShine 3s ease-in-out infinite; }
.logo-3d svg .door-glow { animation: doorPulse 2.5s ease-in-out infinite; }
.logo-3d svg .window-glint { animation: windowGlint 4s ease-in-out infinite; }
.logo-3d svg .dollar-float { animation: dollarFloat 3.5s ease-in-out infinite; }

@keyframes houseFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  25% { transform: translateY(-2px) rotateY(2deg); }
  75% { transform: translateY(1px) rotateY(-1deg); }
}
@keyframes roofShine {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}
@keyframes doorPulse {
  0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 0px rgba(245,166,35,0)); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(245,166,35,0.4)); }
}
@keyframes windowGlint {
  0%, 100% { opacity: 0.3; }
  30% { opacity: 0.9; }
  60% { opacity: 0.4; }
}
@keyframes dollarFloat {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7,11,15,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { padding: 10px 40px; box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.navbar-brand {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; white-space: nowrap;
}
.navbar-brand .brand-copy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1;
  transform-style: preserve-3d;
  perspective: 700px;
}
.navbar-brand .brand-main {
  display: block;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), rgba(0,229,160,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 22px rgba(0,229,160,0.18);
}
.navbar-brand .brand-sub {
  display: block;
  width: max-content;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
  text-transform: none;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.10),
    0 2px 0 rgba(0,229,160,0.12),
    0 8px 18px rgba(0,229,160,0.22);
  transform: translateZ(10px);
}
.navbar-brand:hover .brand-copy { transform: rotateX(5deg) rotateY(-7deg); }

.footer-brand-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.05;
}
.footer-brand-title span:first-child {
  background: linear-gradient(135deg, var(--accent), rgba(0,229,160,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand-title span:last-child {
  width: max-content;
  font-family: var(--font-display);
  font-size: 0.96em;
  font-weight: 800;
  color: var(--text-primary);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.16),
    0 2px 0 rgba(0,229,160,0.12),
    0 8px 18px rgba(0,229,160,0.20);
}

.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; }

.site-search {
  position: relative;
  flex: 0 1 220px;
  max-width: 260px;
  margin-left: 14px;
}
.site-search-form { position: relative; display: flex; align-items: center; }
.site-search-input {
  width: 100%;
  min-width: 150px;
  height: 38px;
  padding: 0 42px 0 38px !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-size: 0.84rem !important;
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid var(--glass-border) !important;
}
.site-search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.site-search-submit {
  position: absolute;
  right: 4px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.site-search-submit:hover { background: var(--accent); color: #fff; }

.site-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 92vw);
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(7,11,15,0.98);
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: none;
  z-index: 1200;
}
.site-search.open .site-search-results { display: block; }

.site-search-result {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}
.site-search-result:hover { background: var(--glass-hover); color: var(--text-primary); }
.site-search-result strong { display: block; font-size: 0.88rem; line-height: 1.35; margin-bottom: 4px; }
.site-search-result span { display: block; font-size: 0.76rem; color: var(--text-muted); line-height: 1.45; }
.site-search-empty { padding: 12px 14px; color: var(--text-muted); font-size: 0.82rem; }

.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition);
  white-space: nowrap; position: relative; text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--glass); }
.nav-link.active { color: var(--text-primary); background: var(--accent-soft); box-shadow: none; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }

.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.navbar-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); position: absolute; left: 7px; transition: var(--transition); border-radius: 2px; }
.navbar-toggle span:nth-child(1){top:10px} .navbar-toggle span:nth-child(2){top:17px} .navbar-toggle span:nth-child(3){top:24px}
.navbar-toggle.open span:nth-child(1){top:17px;transform:rotate(45deg)} .navbar-toggle.open span:nth-child(2){opacity:0} .navbar-toggle.open span:nth-child(3){top:17px;transform:rotate(-45deg)}

/* ---- Page Hero ---- */
.page-hero { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 60px 0 50px; min-height: 280px; }
.page-hero .hero-text { flex: 1; }
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .hero-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; max-width: 560px; }
.page-hero .hero-visual { flex: 0 0 300px; display: flex; align-items: center; justify-content: center; }
.page-hero .hero-visual svg { width: 100%; max-width: 280px; height: auto; animation: float 6s ease-in-out infinite; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); } .breadcrumb a:hover { color: var(--accent); } .breadcrumb .sep { opacity: 0.4; }

/* ---- Cards ---- */
.card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card); padding: 28px; transition: var(--transition);
}
.card:hover { border-color: rgba(255,255,255,0.15); box-shadow: var(--shadow-card), var(--shadow-glow); transform: translateY(-4px); }
.card-accent { border-left: 3px solid var(--accent); }
.card-gold { border-left: 3px solid var(--border-default); }
.card-success { border-left: 3px solid var(--success); }
.card-danger { border-left: 3px solid var(--danger); }
.card-highlight { border: 1px solid var(--border-accent); box-shadow: var(--shadow-card); }

.card-stat { padding: 20px 24px; text-align: center; }
.card-stat .stat-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.card-stat .stat-value { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 600; color: var(--text-primary); }
.card-stat .stat-trend { font-size: 0.78rem; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.card-stat .stat-trend.up { color: var(--success); } .card-stat .stat-trend.down { color: var(--danger); }

.result-hero {
  background: linear-gradient(135deg, rgba(0,229,160,0.07), rgba(0,229,160,0.03));
  border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; position: relative; overflow: hidden;
}
.result-hero::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(0,229,160,0.05) 0%, transparent 60%); animation: pulse-glow 4s ease-in-out infinite; }
.result-hero .result-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; position: relative; }
.result-hero .result-big { font-family: var(--font-mono); font-size: 2.75rem; font-weight: 600; color: var(--accent); position: relative; }

/* ---- Form ---- */
.form-group { margin-bottom: 1.25rem; position: relative; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-hint { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }

input[type="number"], input[type="text"], select, textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 0.95rem;
  color: var(--text-primary); background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  outline: none; transition: var(--transition); -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: rgba(255,255,255,0.06); }

select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238B9DC3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer;
}

.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.95rem; color: var(--accent); pointer-events: none; font-weight: 600; }
.input-group .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-muted); pointer-events: none; }
.input-group input { padding-left: 32px; }
.input-group.has-suffix input { padding-right: 40px; }

.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.form-check label { font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; margin: 0; font-weight: 400; }

.radio-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.radio-pills input[type="radio"] { display: none; }
.radio-pills label { padding: 10px 18px; border-radius: var(--radius-xl); font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 1px solid var(--glass-border); color: var(--text-secondary); background: var(--glass); transition: var(--transition); white-space: nowrap; }
.radio-pills input:checked+label { background: var(--accent); color: #070B0F; border-color: var(--accent); box-shadow: none; }
.radio-pills label:hover { border-color: var(--border-accent); background: var(--glass-hover); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--glass); outline: none; border: none; padding: 0; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: white; cursor: pointer; box-shadow: 0 0 10px rgba(0,229,160,0.3), 0 2px 8px rgba(0,0,0,0.3); transition: transform 0.2s ease; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: white; cursor: pointer; border: none; box-shadow: 0 0 10px rgba(0,229,160,0.3), 0 2px 8px rgba(0,0,0,0.3); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-xl); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); text-decoration: none; position: relative; overflow: hidden; }
.btn-primary { background: var(--accent); color: #070B0F; box-shadow: 0 4px 20px rgba(0,229,160,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,160,0.35); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background: var(--glass); border: 1px solid var(--accent); color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 10px 20px; }
.btn-ghost:hover { background: var(--glass); color: var(--text-primary); }
.btn-gold { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-default); box-shadow: none; }
.btn-gold:hover { transform: translateY(-2px); background: var(--glass-hover); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-block { width: 100%; }

.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.25); transform: scale(0); animation: ripple-anim 0.6s linear; pointer-events: none; }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ---- Results ---- */
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 0.88rem; color: var(--text-secondary); }
.result-value { font-family: var(--font-mono); font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.result-value.highlight { font-size: 1.4rem; color: var(--accent); }
.result-value.positive { color: var(--success); }
.result-value.negative { color: var(--danger); }
.result-value.warning { color: var(--warning); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }

/* ---- Banners ---- */
.alert-banner { padding: 14px 18px; border-radius: var(--radius-md); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-banner.warning { background: var(--warning-soft); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-banner.info { background: var(--accent-soft); border: 1px solid var(--border-accent); color: var(--accent); }
.alert-banner.danger { background: var(--danger-soft); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-banner.success { background: var(--success-soft); border: 1px solid rgba(16,185,129,0.3); color: var(--success); }

#rates-fallback-banner { position: fixed; top: var(--navbar-height); left: 0; right: 0; z-index: 999; border-radius: 0; margin: 0; justify-content: center; }

.info-box { background: rgba(0,229,160,0.05); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 14px 18px; margin: 1.25rem 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.info-box strong { color: var(--accent); }

/* ---- Accordion ---- */
.accordion { border: 1px solid var(--glass-border); border-radius: var(--radius-md); margin: 1rem 0; overflow: hidden; }
.accordion-header { padding: 14px 18px; background: var(--glass); cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); display: flex; align-items: center; justify-content: space-between; user-select: none; transition: background 0.2s ease; }
.accordion-header:hover { background: var(--glass-hover); }
.accordion-header::after { content: '\25B8'; transition: transform 0.3s ease; color: var(--text-muted); }
.accordion-header.open::after { transform: rotate(90deg); }
.accordion-body { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.accordion-body.open { padding: 14px 18px; max-height: 800px; }

/* ---- Chart ---- */
.chart-container { position: relative; width: 100%; margin: 1.5rem 0; background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 20px; }
.chart-container canvas { max-height: 350px; }

/* ---- Table ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.data-table th { background: rgba(255,255,255,0.03); color: var(--text-secondary); padding: 12px 14px; text-align: left; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--glass-border); }
.data-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-secondary); }
.data-table td:first-child { color: var(--accent); font-weight: 600; }
.data-table tr:hover td { background: var(--glass-hover); }
.data-table tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

.post-body table, .card-inner table {
  display: block; width: 100%; max-width: 100%; overflow-x: auto; white-space: nowrap; border-collapse: collapse;
}
.post-body table th, .post-body table td, .card-inner table th, .card-inner table td { padding: 10px 12px; }

/* ---- Presets ---- */
.preset-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.preset-btn { padding: 8px 14px; border: 1px solid var(--glass-border); border-radius: var(--radius-xl); background: var(--glass); font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition); font-family: var(--font-body); }
.preset-btn:hover, .preset-btn.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---- Tooltip ---- */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-primary); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.78rem; max-width: 280px; z-index: 100; opacity: 0; visibility: hidden; transition: var(--transition); pointer-events: none; box-shadow: var(--shadow-card); }
[data-tooltip]:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.disclaimer { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 1.5rem; }
.disclaimer strong { color: var(--text-secondary); }

/* ---- Footer ---- */
.site-footer { background: rgba(7,11,15,0.98); backdrop-filter: blur(20px); border-top: 1px solid var(--glass-border); padding: 1rem 0 3; margin-top: 2.5rem; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.4; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-section h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-section p, .footer-section a { font-size: 0.82rem; color: var(--text-muted); line-height: 2; transition: color 0.2s ease; }
.footer-section a { display: block; transition: all 0.2s ease; }
.footer-section a:hover { color: var(--accent); padding-left: 6px; }
.equal-housing { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.5rem 0; text-align: center; font-size: 0.75rem; color: var(--text-muted); }
.footer-legal { margin-top: 12px; font-size: 0.72rem; line-height: 1.8; color: rgba(139,157,195,0.5); max-width: 800px; margin-left: auto; margin-right: auto; }
.footer-legal a { color: rgba(139,157,195,0.6); display: inline; }
.footer-legal a:hover { color: var(--accent); }

/* ---- Animations ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes countUp { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 16px var(--accent-glow); } 50% { box-shadow: 0 0 28px var(--accent-glow); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

[data-animate] { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.4,0,0.2,1); }
[data-animate].animate-in { opacity: 1; transform: translateY(0); }
[data-animate="fadeInLeft"] { transform: translateX(-24px); }
[data-animate="fadeInLeft"].animate-in { transform: translateX(0); }
[data-animate="fadeInRight"] { transform: translateX(24px); }
[data-animate="fadeInRight"].animate-in { transform: translateX(0); }

.skeleton { background: linear-gradient(90deg, var(--glass) 25%, var(--glass-hover) 50%, var(--glass) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); height: 20px; }

@media(max-width:1024px) { .container { padding: 0 24px; } .navbar { padding: 12px 24px; } .footer-inner { padding: 0 24px; } .footer-grid { grid-template-columns: 1fr 1fr; } }

@media(max-width:1280px) {
  .navbar { padding: 12px 24px; }
  .navbar-toggle { display: block; flex: 0 0 36px; }
  .navbar-nav {
    position: fixed; top: var(--navbar-height); left: 0; right: 0;
    background: rgba(7,11,15,0.98); backdrop-filter: blur(24px);
    flex-direction: column; align-items: stretch; padding: 16px; gap: 4px;
    border-bottom: 1px solid var(--glass-border); transform: translateY(-120%);
    transition: transform 0.3s ease; max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto; z-index: 999;
  }
  .navbar-nav.open { transform: translateY(0); }
  .nav-link { display: block; padding: 12px 16px; width: 100%; }
  .site-search { display: none; }
}

@media(max-width:768px) {
  .navbar-brand { font-size: clamp(15px, 4vw, 18px); }
  .navbar-brand .brand-main { font-size: clamp(15px, 4vw, 18px); }
  .navbar-brand .brand-sub { font-size: clamp(14px, 3.8vw, 17px); }
  .navbar-toggle { display: block; }
  .navbar-nav { position: fixed; top: var(--navbar-height); left: 0; right: 0; background: rgba(7,11,15,0.98); backdrop-filter: blur(24px); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--glass-border); transform: translateY(-120%); transition: transform 0.3s ease; max-height: calc(100vh - var(--navbar-height)); overflow-y: auto; z-index: 999; }
  .navbar-nav.open { transform: translateY(0); }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); width: 100%; }
  .site-search { order: 2; flex: 1 1 100%; max-width: none; width: 100%; margin: 12px 0 0; }
  .site-search-results { left: 0; right: 0; width: 100%; }
  .page-hero { flex-direction: column; padding: 40px 0 30px; text-align: center; }
  .page-hero .hero-visual { flex: none; max-width: 200px; }
  .page-hero .hero-desc { margin: 0 auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media(max-width:480px) { .container { padding: 0 16px; } .card { padding: 20px; } .stat-grid { grid-template-columns: 1fr; } .result-hero .result-big { font-size: 2rem; } .radio-pills { flex-direction: column; } .radio-pills label { text-align: center; } }

@media(max-width:480px) {
  body::after { content: none; display: none; width: 0; height: 0; }
  .navbar { padding: 12px 16px; }
  .navbar-brand { min-width: 0; max-width: calc(100% - 48px); overflow: hidden; text-overflow: ellipsis; font-size: 17px; }
  .navbar-brand .brand-main { font-size: 17px; }
  .navbar-brand .brand-sub { font-size: 16px; }
  [data-animate="fadeInLeft"], [data-animate="fadeInRight"] { transform: translateY(24px); }
  [data-animate="fadeInLeft"].animate-in, [data-animate="fadeInRight"].animate-in { transform: translateY(0); }
  .calc-layout, .calc-layout > *, .card, .result-hero, .vs-card, .alert-banner, .chart-container { min-width: 0 !important; max-width: 100% !important; }
  .calc-layout [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .data-table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
  .result-hero::before, .result-hero::after { inset: 0 !important; width: auto !important; height: auto !important; }
}

@media print { .navbar, .site-footer, .navbar-toggle { display: none; } body { background: white; color: black; } .card { box-shadow: none; border: 1px solid #ccc; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-card-3d:focus-visible, .blog-card:focus-visible, .quick-card:focus-visible { outline: 2px solid var(--accent, #7c6fff); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .orb { animation: none !important; }
}

select option { background-color: #0e2142; color: #ffffff; }

#cookie-banner { position: sticky; bottom: 0; left: 0; right: 0; z-index: 9000; background: var(--bg, #0a0a12); border-top: 0.5px solid rgba(255,255,255,0.12); padding: 14px 24px; display: none; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.75); }
#cookie-banner a { color: var(--accent, #7c6fff); }
#cookie-banner.visible { display: flex; }
#cookie-btn-all { background: var(--success, #10b981); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; cursor: pointer; font-size: 13px; }
#cookie-btn-ess { background: transparent; color: rgba(255,255,255,0.6); border: 0.5px solid rgba(255,255,255,0.2); padding: 8px 18px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.reset-link { font-size:12px; color: var(--muted, rgba(255,255,255,0.4)); display:block; text-align:center; margin-top:8px; }

/* Section spacing — 56px desktop / 40px mobile */
.section-rhythm,
.about-hero,
.stats-row,
.mission-section,
.values-section,
.process-section,
.team-section,
.faq-section,
.page-hero,
.filter-bar + *,
.featured-wrapper,
.blog-grid,
.newsletter-wrapper,
.cta-card-wrapper {
  padding-top: 56px;
  padding-bottom: 56px;
}

/* Contact page: balanced spacing */
.contact-hero {
  padding-top: 56px;
  padding-bottom: 32px;
}

.contact-layout {
  padding-top: 32px;
  padding-bottom: 56px;
}

@media (max-width: 768px) {
  .section-rhythm,
  .about-hero,
  .stats-row,
  .mission-section,
  .values-section,
  .process-section,
  .team-section,
  .faq-section,
  .page-hero,
  .featured-wrapper,
  .blog-grid,
  .newsletter-wrapper,
  .cta-card-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .contact-hero {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .contact-layout {
    padding-top: 24px;
    padding-bottom: 40px;
  }
}

/* Section inner block gap — 64px between content groups */
.section-blocks {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Card padding upgrade — 32px everywhere */
body .card,
body .mission-card,
body .process-card,
body .value-card,
body .stat-card,
body .info-card,
body .contact-form-card,
body .loan-type-card,
body .nl-card,
body .rel-card,
body .author-box {
  padding: 32px !important;
}

@media (max-width: 480px) {
  body .card,
  body .mission-card,
  body .process-card,
  body .value-card,
  body .stat-card,
  body .info-card,
  body .contact-form-card,
  body .loan-type-card {
    padding: 24px !important;
  }
}

/* ============================================================
STAT GHOST NUMBERS — huge transparent background numerals
that sit behind real content for premium depth effect
============================================================ */
.stat-ghost-wrap { position: relative; overflow: hidden; }
.stat-ghost-num {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: clamp(80px, 15vw, 160px); font-weight: 600;
  color: var(--text-primary); opacity: 0.04; user-select: none; pointer-events: none;
  white-space: nowrap; line-height: 1; z-index: 0; letter-spacing: -0.03em;
}
.stat-ghost-content { position: relative; z-index: 1; }

/* ============================================================
SCROLL ANIMATION SYSTEM — Prompt 5
Section reveal, stagger children, count-up triggers
============================================================ */
/* Stagger children start hidden, slide up slightly */
[data-stagger-child] {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-stagger-child].animate-in { opacity: 1; transform: translateY(0); }

/* Section reveal base */
[data-animate] {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
HERO AMBIENT GRADIENT — 8s subtle background drift
============================================================ */
@keyframes heroBgDrift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 30% 60%; }
  50%  { background-position: 60% 40%; }
  75%  { background-position: 25% 55%; }
  100% { background-position: 0% 50%; }
}
.bg { animation: heroBgDrift 8s ease-in-out infinite; background-size: 160% 160%; }

/* ============================================================
NAVBAR SCROLL STATE — progressive shrink + blur enhancement
============================================================ */
.navbar {
  background: rgba(7, 11, 15, var(--nav-bg-alpha, 0.88));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
  padding-top: 8px; padding-bottom: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}

/* ============================================================
PREFERS-REDUCED-MOTION — disable all animations site-wide
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-animate], [data-stagger-child] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bg, .orb, .blob, .floaters svg.floater, .grid-overlay, .logo-3d svg .house-body, .logo-3d svg .roof-shine, .logo-3d svg .door-glow, .logo-3d svg .window-glint, .logo-3d svg .dollar-float { animation: none !important; transition: none !important; }
}

/* ---- Blog Post SVG Sizing ---- */
.post-hero .hero-img, .post-page .hero-img, main .hero-img { width: 100% !important; height: clamp(320px, 34vw, 460px) !important; min-height: 0 !important; max-width: none !important; max-height: none !important; aspect-ratio: auto !important; padding: 0 !important; align-items: center !important; justify-content: center !important; }
.post-hero .hero-img img, .post-page .hero-img img, main .hero-img img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: fill !important; object-position: center !important; display: block !important; }
.post-hero .hero-img svg, .post-page .hero-img svg, main .hero-img svg { width: 100% !important; height: 100% !important; display: block !important; opacity: 1 !important; }
.post-body .card .card-inner > img.para-illustration, .post-body .card > img.para-illustration { float: none !important; clear: both !important; width: 100% !important; max-width: 100% !important; height: clamp(260px, 30vw, 360px) !important; max-height: none !important; object-fit: contain !important; object-position: center !important; display: block !important; margin: 0 auto 24px !important; border-radius: var(--radius-md, 16px) !important; background: rgba(8,13,24,.88) !important; }
.post-body .img-ph-card img { width: 100% !important; height: clamp(280px, 34vw, 420px) !important; max-height: none !important; object-fit: contain !important; display: block !important; }

@media(max-width:768px) {
  .post-hero .hero-img, .post-page .hero-img, main .hero-img { height: 240px !important; }
  .post-body .card .card-inner > img.para-illustration, .post-body .card > img.para-illustration, .post-body .img-ph-card img { height: 260px !important; }
}

/* ---- SVG Logo Color Synchronization ---- */
#houseGrad stop:nth-child(1) { stop-color: var(--accent) !important; }
#houseGrad stop:nth-child(2) { stop-color: var(--accent) !important; }
#houseGrad stop:nth-child(3) { stop-color: rgba(0,229,160,0.6) !important; }
#roofGrad stop:nth-child(1) { stop-color: var(--accent) !important; }
#roofGrad stop:nth-child(2) { stop-color: var(--accent) !important; }
#bodyGrad stop:nth-child(1) { stop-color: rgba(0, 229, 160, 0.20) !important; }
#bodyGrad stop:nth-child(2) { stop-color: rgba(0, 229, 160, 0.06) !important; }

/* ---- Premium Global Glassmorphism Card Overrides ---- */
body .card, body .loan-type-card, body .result-hero, body .nl-card, body .stat-card, body .rel-card, body .author-box {
  background: rgba(13, 17, 23, 0.80) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) !important; -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ============================================================
PREMIUM CARD LIGHT ECONOMY — gradient edge, inner glow, refined hover lift, ambient dot-grid
============================================================ */
/* Ambient dot-grid, fixed across all pages, opacity 0.025 */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
  background-image: radial-gradient(circle, #ffffff 1px, transparent 1.4px); background-size: 28px 28px;
}

/* Inner top-left glow added as an extra background layer */
body .card, body .tool-card-3d, body .source-card-3d, body .step-card-3d, body .why-card-3d, body .cta-card-3d, body .mission-card, body .process-card, body .value-card, body .stat-card, body .blog-card, body .featured-card, body .info-card, body .contact-form-card, body .loan-type-card, body .nl-card, body .rel-card, body .author-box {
  background-image: radial-gradient(ellipse at top left, rgba(0,229,160,0.04) 0%, transparent 60%) !important;
}

/* Gradient edge (bright top / dark bottom) + 2px hover lift */
body .card, body .mission-card, body .process-card, body .value-card, body .stat-card, body .blog-card, body .featured-card, body .info-card, body .contact-form-card, body .loan-type-card, body .nl-card, body .rel-card, body .author-box {
  border-top-color: rgba(255,255,255,0.15) !important; border-bottom-color: rgba(255,255,255,0.03) !important;
}
body .card:hover, body .mission-card:hover, body .process-card:hover, body .value-card:hover, body .stat-card:hover, body .blog-card:hover, body .featured-card:hover, body .info-card:hover, body .contact-form-card:hover, body .loan-type-card:hover, body .nl-card:hover, body .rel-card:hover, body .author-box:hover {
  transform: translateY(-2px) !important; border-top-color: rgba(255,255,255,0.28) !important;
}

/* Leading icon / headline figure: scale(1.05) on card hover */
.card-icon, .stat-num, .step-num, .source-icon, .faq-num, .num { display: inline-block; transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }
.card:hover .card-icon, .card:hover .stat-num, .card:hover .num, .card:hover .faq-num, .mission-card:hover .card-icon, .process-card:hover .card-icon, .process-card:hover .step-num, .value-card:hover .card-icon, .stat-card:hover .stat-num, .stat-card:hover .stat-value, .blog-card:hover .card-icon, .featured-card:hover .card-icon, .info-card:hover .card-icon, .contact-form-card:hover .card-icon, .tool-card-3d:hover .card-icon, .source-card-3d:hover .source-icon, .step-card-3d:hover .step-num, .why-card-3d:hover .card-icon, .cta-card-3d:hover .card-icon { transform: scale(1.05); }

/* ============================================================
SOURCE CARD 3D — "How This Data Is Chosen" section
============================================================ */
:root {
  --accent-1: rgba(0,212,180,0.90); --accent-2: rgba(0,212,180,0.75); --accent-3: rgba(0,212,180,0.60);
  --accent-4: rgba(0,212,180,0.50); --accent-5: rgba(0,212,180,0.40); --accent-6: rgba(0,212,180,0.30);
  --accent-7: rgba(0,212,180,0.25); --accent-8: rgba(0,212,180,0.20); --accent-9: rgba(0,212,180,0.15);
  --accent-10: rgba(0,212,180,0.10); --card-radius: 20px; --glow-spread: 80px;
}

.source-grid-3d { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; margin: 3rem 0 4rem; align-items: stretch; grid-auto-rows: 1fr; }
.source-single { max-width: 780px; margin: 2.5rem auto 4rem; }

.source-card-3d {
  position: relative; background: color-mix(in srgb, var(--card-accent) 4%, rgba(255,255,255,.03));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.06); border-top: 1px solid color-mix(in srgb, var(--card-accent) 38%, rgba(255,255,255,.07));
  box-shadow: 0 0 18px color-mix(in srgb, var(--card-accent) 7%, transparent), inset 0 1px 0 color-mix(in srgb, var(--card-accent) 18%, rgba(255,255,255,.04));
  border-radius: var(--card-radius); padding: 32px 28px 26px;
  transition: box-shadow .25s ease, background .25s ease, border-top-color .25s ease;
  overflow: hidden; min-height: 280px; width: 100%; height: 100%;
  display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 18px; align-items: start;
}
.source-card-3d::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--card-radius);
  background: radial-gradient(circle 260px at var(--mx,50%) var(--my,50%), rgba(255,255,255,.12) 0%, transparent 70%);
  opacity: 0; transition: opacity .35s ease; z-index: 2; pointer-events: none;
}
.source-card-3d:hover::before { opacity: 1; }
.source-card-3d::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--card-radius); padding: 1px;
  background: radial-gradient(circle 260px at var(--mx,50%) var(--my,50%), var(--card-accent) 0%, transparent 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease; z-index: 2; pointer-events: none;
}
.source-card-3d:hover::after { opacity: .65; }
.source-card-3d:hover {
  background: color-mix(in srgb, var(--card-accent) 7%, rgba(255,255,255,.05));
  border-top-color: color-mix(in srgb, var(--card-accent) 65%, rgba(255,255,255,.1));
  box-shadow: 0 0 34px color-mix(in srgb, var(--card-accent) 18%, transparent), 0 12px 34px rgba(0,0,0,.24), inset 0 1px 0 color-mix(in srgb, var(--card-accent) 32%, rgba(255,255,255,.06));
}

.source-card-3d .icon-kicker-row { display: flex; align-items: center; gap: 16px; grid-column: 1 / -1; grid-row: 1; margin-bottom: 14px; }
.source-card-3d .source-icon { position: relative; z-index: 1; width: 52px; height: 52px; margin: 0; flex-shrink: 0; }
.source-card-3d .source-icon svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--card-accent) 35%, transparent)); transition: filter .3s ease; }
.source-card-3d:hover .source-icon svg { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--card-accent) 55%, transparent)); }
.source-card-3d .source-kicker { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--card-accent); font-family: var(--font-mono, 'JetBrains Mono', monospace); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.source-card-3d .source-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--card-accent); box-shadow: 0 0 14px var(--card-accent); }
.source-card-3d .card-title { font-size: 1.06rem; font-weight: 700; margin: 0; grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; }
.source-card-3d .source-desc { font-size: .86rem; color: var(--text-secondary, #a0a0b0); line-height: 1.65; margin: 18px 0 0; grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 1; }
.source-card-3d .source-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; grid-column: 1 / -1; grid-row: 4; align-self: end; position: relative; z-index: 1; }
.source-card-3d .source-list span { border: 1px solid color-mix(in srgb, var(--card-accent) 28%, rgba(255,255,255,.06)); background: color-mix(in srgb, var(--card-accent) 9%, rgba(255,255,255,.02)); color: color-mix(in srgb, var(--card-accent) 60%, var(--text-muted, #6b6880)); border-radius: 999px; padding: 6px 9px; font-size: .72rem; font-weight: 600; transition: background .2s ease, border-color .2s ease; }
.source-card-3d .card-shadow { position: absolute; bottom: -8px; left: 15%; right: 15%; height: 20px; background: var(--card-accent); filter: blur(var(--glow-spread)); opacity: 0; transition: opacity .3s ease; border-radius: 50%; z-index: -1; }
.source-card-3d:hover .card-shadow { opacity: .14; }

.source-card-3d[data-accent="1"]  { --card-accent: var(--accent-1); }
.source-card-3d[data-accent="2"]  { --card-accent: var(--accent-2); }
.source-card-3d[data-accent="3"]  { --card-accent: var(--accent-3); }
.source-card-3d[data-accent="4"]  { --card-accent: var(--accent-4); }
.source-card-3d[data-accent="5"]  { --card-accent: var(--accent-5); }
.source-card-3d[data-accent="6"]  { --card-accent: var(--accent-6); }
.source-card-3d[data-accent="7"]  { --card-accent: var(--accent-7); }
.source-card-3d[data-accent="8"]  { --card-accent: var(--accent-4); }
.source-card-3d[data-accent="9"]  { --card-accent: var(--accent-9); }
.source-card-3d[data-accent="10"] { --card-accent: var(--accent-10); }

.data-source-section { padding-top: 4rem; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.05); }
.data-source-section .section-header { text-align: center; margin-bottom: 0; }
.data-source-section .section-header h2 { margin-bottom: .75rem; }
.data-source-section .section-header p { color: var(--text-muted, #6b6880); max-width: 520px; margin: 0 auto; font-size: .95rem; line-height: 1.7; }

.num-highlight { font-weight: 700; }
.num-highlight.is-orange { color: #FDCB6E; }
.num-highlight.is-emerald { color: #55EFC4; }

@media (max-width: 720px) {
  .source-grid-3d { grid-template-columns: 1fr; }
  .source-single { margin: 2rem 0 3rem; }
}

/* ============================================================
CALC HERO — başlık + source-card birleşik blok
============================================================ */
.calc-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 3rem; padding: 56px 0 48px; }
.calc-hero .calc-hero-left { flex: 1; min-width: 0; }
.calc-hero .calc-hero-right { flex: 0 0 280px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; }
.calc-hero .calc-hero-right img, .calc-hero .calc-hero-right svg { width: 100%; max-width: 260px; height: auto; border-radius: 14px; box-shadow: 0 8px 40px rgba(45,126,255,0.2); animation: float 6s ease-in-out infinite; }
.calc-hero h1 { margin-bottom: .75rem; font-size: clamp(2rem, 4vw, 3rem); }
.calc-hero .hero-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.75rem; max-width: 520px; }
.calc-hero .source-card-3d { min-height: unset; flex: 1; }
.calc-hero .card-image-row { display: flex; align-items: stretch; gap: 24px; }
.calc-hero .card-image-side { flex: 0 0 260px; display: flex; align-items: center; justify-content: center; }
.calc-hero .card-image-side img { width: 100%; max-width: 260px; height: auto; border-radius: 14px; box-shadow: 0 8px 40px rgba(45,126,255,0.2); animation: float 6s ease-in-out infinite; }
.calc-hero .calc-hero-right { display: none; }

@media (max-width: 900px) {
  .calc-hero { flex-direction: column; padding: 40px 0 28px; gap: 2rem; }
  .calc-hero .card-image-row { flex-direction: column; }
  .calc-hero .card-image-side { flex: none; width: 100%; max-width: 220px; align-self: center; }
}

/* ============================================================
   FAQ SECTION STYLING
   ============================================================ */
.faq-section {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 40px 0 8px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 32px;
}
.faq-section h2 {
  text-align: left;
  font-size: 1.4rem;
  margin-bottom: 24px;
  font-family: var(--font-display, 'Syne', sans-serif);
  color: var(--text-primary);
}
.faq-item {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 16px;
  margin-bottom: 16px;
  transition: border-color .3s ease, box-shadow .3s ease;
  overflow: hidden;
}
.faq-item:hover {
  border-color: rgba(255, 255, 255, .12);
}
.faq-item.active {
  border-color: var(--border-accent, rgba(0, 229, 160, 0.25));
  box-shadow: 0 0 40px var(--accent-glow, rgba(0, 229, 160, 0.18)), 0 4px 20px rgba(0, 0, 0, .2);
}
.faq-q {
  padding: 30px 34px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary, #f0ece4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color .3s ease;
}
.faq-q:hover {
  color: var(--accent, #00E5A0);
}
.faq-item.active .faq-q {
  color: var(--accent, #00E5A0);
  padding-bottom: 8px;
}
.faq-q .faq-chevron {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft, rgba(0, 229, 160, 0.10));
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .3s ease;
}
.faq-q .faq-chevron svg {
  width: 14px;
  height: 14px;
  transition: stroke .3s ease;
}
.faq-item.active .faq-q .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-glow, rgba(0, 229, 160, 0.18));
}
.faq-q .faq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft, rgba(0, 229, 160, 0.10));
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent, #00E5A0);
  margin-right: 16px;
  transition: background .3s ease, color .3s ease;
}
.faq-item.active .faq-q .faq-num {
  background: var(--accent-glow, rgba(0, 229, 160, 0.18));
  color: var(--accent, #00E5A0);
}
.faq-q-text {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: left;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4, 0, .2, 1), padding .4s ease, opacity .4s ease;
  padding: 0 34px;
  font-size: .9rem;
  color: var(--text-secondary, #a0a0b0);
  line-height: 1.85;
  opacity: 0;
}
.faq-item.active .faq-a {
  max-height: 500px;
  padding: 0 34px 24px 82px;
  opacity: 1;
}
.faq-a .faq-accent-line {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent, #00E5A0), var(--gold, #FFD166));
  margin-bottom: 14px;
}
@media(max-width: 768px) {
  .faq-q {
    padding: 20px 24px;
    font-size: .95rem;
  }
  .faq-q .faq-num {
    width: 28px;
    height: 28px;
    font-size: .7rem;
    margin-right: 12px;
  }
  .faq-item.active .faq-a {
    padding: 0 20px 20px 64px;
  }
}

@keyframes formSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}