/* Ticker / marquee need overflow clipping for the scrolling animation */
.activity-ticker-bar, .amc-marquee-container { max-width: 100vw; overflow-x: hidden; }
/* Hero: max-width only — overflow:hidden on an intermediate container clips
   position:fixed children and breaks transform-based entrance animations */
.hero-cinematic { max-width: 100vw; }
:root {
  --font: 'Plus Jakarta Sans', 'Noto Sans', system-ui, -apple-system, sans-serif;
  --bg: #0C1246;
  --text-primary: #FFFFFF;
  --text-sec: rgba(255,255,255,0.6);
  --accent: #FF6B00;
  --accent-glow: rgba(255,107,0,0.5);
  --success: #22c55e;
  --glass: rgba(255,255,255,0.03);
  --glass-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --nav-bg: rgba(12, 18, 70, 0.5);
  --dock-bg: rgba(21, 29, 107, 0.8);
  --invert: 0;
  
  /* Fluid Typography & Spacing */
  --h1: clamp(42px, 8vw, 92px);
  --h2: clamp(32px, 6vw, 64px);
  --h3: clamp(24px, 4vw, 32px);
  --body: clamp(14px, 1.2vw, 18px);
  --section-pad: clamp(60px, 10vw, 160px);
}

[data-theme="dark"] {
  --bg: #0C1246;
  --text-primary: #FFFFFF;
  --text-sec: rgba(255,255,255,0.6);
  --glass: rgba(255,255,255,0.03);
  --glass-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --nav-bg: rgba(12, 18, 70, 0.5);
  --dock-bg: rgba(21, 29, 107, 0.8);
  --invert: 0;
  --aurora-1: rgba(255,107,0,0.4);
  --aurora-2: rgba(0,102,255,0.3);
  --grid-line: rgba(255,255,255,0.08);
  --slider-track: rgba(255,255,255,0.1);
  --chip-bg: rgba(255,255,255,0.05);
  --chip-hover: rgba(255,255,255,0.1);
  --card-shadow: none;
}

[data-theme="light"] {
  --bg: #EEF2F6; 
  --text-primary: #0F172A;
  --text-sec: #475569;
  --glass: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  --glass-hover: linear-gradient(135deg, rgba(255,255,255,1), rgba(255,255,255,0.6));
  --border: rgba(255,255,255,0.8); 
  --nav-bg: rgba(238,242,246,0.6);
  --dock-bg: rgba(255,255,255,0.95);
  --invert: 1;
  --aurora-1: rgba(255,107,0,0.25); 
  --aurora-2: rgba(0,102,255,0.2); 
  --grid-line: rgba(15,23,42,0.04);
  --slider-track: rgba(15,23,42,0.1);
  --chip-bg: rgba(255,255,255,0.5);
  --chip-hover: rgba(255,255,255,0.9);
  --card-shadow: 0 25px 50px -12px rgba(15,23,42,0.12), inset 0 1px 0 rgba(255,255,255,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text-primary); font-family: var(--font); overflow-x: hidden; transition: background 0.6s, color 0.6s; }

/* Cursor & Mag-btn target */
.cursor-dot, .cursor-ring { position: fixed; pointer-events: none; border-radius: 50%; z-index: 9999; transform: translate(-50%,-50%); }
.cursor-dot { width: 5px; height: 5px; background: var(--text-primary); }
.cursor-ring { width: 30px; height: 30px; border: 1px solid var(--border); transition: transform 0.1s; }
.mag-btn { display: inline-block; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer; }

/* Ambient Background */
.ambient-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); transition: background 0.6s; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.3; mask-image: radial-gradient(circle at center, black 40%, transparent 100%); -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%); }
.aurora, .aurora-1, .aurora-2 { display: none; }

/* Nav */
.nav { position: fixed; top: 0; width: 100%; height: 70px; z-index: 100; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: 0.4s; }

/* Navigation Dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; height: 100%; }
.dropdown-content { 
  display: none; 
  position: absolute; 
  top: 100%; 
  left: 50%; 
  transform: translateX(-50%); 
  min-width: 220px; 
  padding: 12px; 
  margin-top: 15px; 
  z-index: 1001; 
  background: rgba(15, 23, 42, 0.98); 
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); 
  box-shadow: 0 20px 50px rgba(0,0,0,0.8); 
  border-radius: 16px; 
}
/* Invisible bridge to prevent dropdown closing when moving mouse */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  display: none;
}
.nav-dropdown:hover::after { display: block; }
.dropdown-content a { display: block; padding: 12px 16px; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 10px; transition: all 0.3s; }
.dropdown-content a:hover { background: rgba(255,255,255,0.08); color: #fff; transform: translateX(5px); }
.nav-dropdown:hover .dropdown-content { display: block; animation: dropdownFade 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes dropdownFade { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.nav-inner { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.nav-logo img, .footer-brand img { transition: opacity 0.3s; }
.logo-mark { background: var(--text-primary); color: var(--bg); width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.center-nav-links { display: flex; gap: 32px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-link-item { color: var(--text-sec); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.3s; position: relative; }
.nav-link-item:hover, .nav-link-item.active { color: var(--text-primary); }
.nav-link-item.active::after { content: ''; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

/* Theme Toggle */
.theme-toggle { background: transparent; border: none; padding: 8px; cursor: pointer; display: flex; align-items: center; }
.toggle-track { width: 44px; height: 24px; background: var(--glass); border: 1px solid var(--border); border-radius: 99px; position: relative; display: flex; align-items: center; padding: 2px; }
.toggle-thumb { width: 20px; height: 20px; background: var(--text-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: absolute; left: 2px; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden; }
[data-theme="light"] .toggle-thumb { transform: translateX(20px); }
.toggle-icon { font-size: 10px; position: absolute; transition: 0.4s; }
.toggle-icon.sun { top: 20px; }
.toggle-icon.moon { top: 4px; }
[data-theme="light"] .toggle-icon.sun { top: 4px; }
[data-theme="light"] .toggle-icon.moon { top: -20px; }

/* Buttons */
.btn-primary { background: var(--text-primary); color: var(--bg); padding: 10px 20px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 14px; position: relative; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; }
.glow-btn::after { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); filter: blur(5px); animation: sweep 3s infinite; }
[data-theme="light"] .glow-btn::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent); }
@keyframes sweep { 0% { left: -100%; } 100% { left: 200%; } }

/* Hero */
.hero-cinematic { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 108px; position: relative; }
.hero-content { max-width: 900px; display: flex; flex-direction: column; align-items: center; z-index: 1; }
.hero-badge { background: rgba(249,115,22,0.12); border: 1px solid rgba(249,115,22,0.4); padding: 8px 16px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 30px; display: inline-flex; align-items: center; gap: 8px; backdrop-filter: blur(10px); color: #F97316; }
.pulse-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--accent-glow); } 70% { box-shadow: 0 0 0 10px rgba(255,107,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); } }
.hero-title { font-size: var(--h1); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px; color: var(--text-primary); }
.text-glow { background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 30px rgba(255,107,0,0.3)); }
.hero-desc { font-size: var(--body); color: var(--text-sec); max-width: 600px; line-height: 1.6; margin-bottom: 60px; }

/* Floating Assets */
.floating-assets { position: relative; width: 100%; max-width: 700px; height: 160px; margin-top: 20px; }
.float-asset { position: absolute; padding: 16px 20px; display: flex; align-items: center; gap: 14px; animation: float 6s ease-in-out infinite; color: var(--text-primary); }
.asset-1 { top: 0; left: 10%; transform: rotate(-5deg); animation-delay: 0s; }
.asset-2 { bottom: 0; right: 15%; transform: rotate(4deg); animation-delay: -2s; }
.asset-3 { top: 40px; right: -5%; transform: rotate(10deg); animation-delay: -4s; opacity: 0.6; filter: blur(2px); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot,0)); } 50% { transform: translateY(-15px) rotate(var(--rot,0)); } }
.asset-1 { --rot: -5deg; } .asset-2 { --rot: 4deg; } .asset-3 { --rot: 10deg; }
.asset-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--chip-hover); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.asset-icon.accent { background: rgba(255,107,0,0.2); color: var(--accent); }
.asset-icon.warn { background: rgba(255,0,50,0.15); color: #ff0032; }
.asset-info { display: flex; flex-direction: column; text-align: left; }
.asset-val { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.asset-lbl { font-size: 11px; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.05em; }

/* Bento Framework */
.bento-section { padding: var(--section-pad) 0; position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 20px; }

/* Glass Card */
.glass-card { background: var(--glass); border: 1px solid var(--border); border-radius: 24px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); position: relative; overflow: hidden; box-shadow: var(--card-shadow); transition: background 0.6s, border-color 0.6s, box-shadow 0.6s; color: var(--text-primary); }
.bento-hover { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s; cursor: crosshair; }
.bento-hover:hover { transform: translateY(-4px) scale(1.01); border-color: rgba(255,107,0,0.5); z-index: 10; box-shadow: var(--card-shadow), 0 30px 60px rgba(0,0,0,0.2); }

/* Spotlight Focus Hover */
.spotlight { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%); transition: opacity 0.5s; z-index: 0; }
[data-theme="light"] .spotlight { background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0,0,0,0.03), transparent 40%); }
.bento-hover:hover .spotlight { opacity: 1; }

.bento-content { position: relative; z-index: 1; padding: 32px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.center { align-items: center; justify-content: center; text-align: center; }
.row-flex { flex-direction: row; align-items: center; }

/* Span Utilities */
.span-4x1 { grid-column: span 4; grid-row: span 1; }
.span-3x2 { grid-column: span 3; grid-row: span 2; }
.span-1x2 { grid-column: span 1; grid-row: span 2; }
.span-2x2 { grid-column: span 2; grid-row: span 2; }
.span-2x1 { grid-column: span 2; grid-row: span 1; }
.span-1x1 { grid-column: span 1; grid-row: span 1; }



/* Typography & Content inside Bento */
.bento-title { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; color: var(--text-primary); }
.bento-desc { font-size: 14px; color: var(--text-sec); line-height: 1.6; }
.bento-text { flex: 1; }

/* Data Vizzes inside Bento */
.sip-visual { display: flex; align-items: flex-end; gap: 12px; height: 140px; margin-top: auto; padding-top: 20px; }
.bar-group { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar { width: 100%; background: var(--slider-track); border-radius: 4px; height: 0; transition: height 1s cubic-bezier(0.16, 1, 0.3, 1); }
.bar.glow-bar { background: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.revealed .bar { height: var(--h); }

.kyc-visual { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.step-ring { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-sec); }
.step-ring.success { border-color: var(--success); color: var(--success); background: rgba(34,197,94,0.1); }
.step-ring.active { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: breathe 2s infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 10px var(--accent-glow); } 50% { box-shadow: 0 0 20px var(--accent-glow); } }
.pulse-line { width: 40px; height: 2px; background: linear-gradient(90deg, var(--success), var(--accent)); opacity: 0.5; }

.stat-val { font-size: clamp(32px, 4vw, 42px); font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(180deg, var(--text-primary), var(--text-sec)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { font-size: 12px; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

.fund-chips-marquee { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.fund-chip { padding: 8px 16px; border-radius: 99px; background: var(--chip-bg); border: 1px solid var(--border); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text-primary); transition: background 0.3s; }
.fund-chip:hover { background: var(--chip-hover); }

/* Interactive Calculator */
.calc-card { padding: 0; grid-column: span 4; }
.calc-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 32px; }
.calc-tabs { display: flex; gap: 6px; background: var(--chip-bg); padding: 4px; border-radius: 12px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; max-width: 100%; }
.calc-tabs::-webkit-scrollbar { display: none; }
.calc-tab { background: transparent; border: none; padding: 10px 18px; border-radius: 8px; color: var(--text-sec); font-weight: 600; font-size: 14px; font-family: var(--font); transition: 0.3s; white-space: nowrap; flex-shrink: 0; cursor: pointer; }
.calc-tab.active { background: var(--text-primary); color: var(--bg); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

.slider-group { margin-bottom: 24px; }
.slider-labels { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--text-sec); }
.slider-val { color: var(--accent); font-size: 16px; font-weight: 700; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; border-radius: 50%; background: var(--text-primary); box-shadow: 0 0 10px rgba(0,0,0,0.2); border: 2px solid var(--border); cursor: grab; margin-top: -10px; transition: transform 0.1s; }
input[type=range]::-webkit-slider-thumb:active { transform: scale(0.9); cursor: grabbing; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: var(--slider-track); border-radius: 4px; }

.calc-outputs { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.output-box { border-left: 2px solid var(--border); padding-left: 20px; }
.out-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-sec); margin-bottom: 4px; }
.out-val { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); transition: color 0.3s; }
.glow-out { border-left-color: var(--accent); }
.glow-out .out-val { font-size: 42px; }

/* Downloader Dock */
.bottom-dock { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); z-index: 1000; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0; }
.bottom-dock.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.dock-inner { display: flex; align-items: center; gap: 20px; padding: 12px 14px 12px 24px; border-radius: 99px; background: var(--dock-bg); border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.dock-text { font-size: 14px; font-weight: 500; color: var(--text-primary); white-space: nowrap; }

/* Reveal Animation — safe-first.
   Base rule always shows content (!important fallback so broken observers
   never leave sections blank). Desktop JS adds .anim-ready, which hides
   elements; observer adds .revealed to fade them in. */
.reveal-up {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.anim-ready .reveal-up {
  opacity: 0 !important;
  transform: translateY(30px) !important;
}
html.anim-ready .reveal-up.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* FIX 2 — Force hero/page-header headings visible on mobile regardless of
   whether IntersectionObserver has fired and added .revealed yet.
   The default .reveal-up state is already visible; this guards specifically
   against html.anim-ready keeping them hidden when JS is slow. */
@media (max-width: 768px) {
  .page-header h1,
  .page-header h2,
  .explore-hero h1,
  .explore-hero h2,
  .page-hero h1,
  .page-hero h2,
  [class*="hero"] h1,
  [class*="hero"] h2 {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    clip-path: none !important;
  }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128,128,128,0.4); }

/* AMC Marquee */
.amc-marquee-container { width: 100%; overflow: hidden; padding: 40px 0; background: transparent; position: relative; border-bottom: 1px solid var(--border); z-index: 2; margin-top: -40px; }
.amc-marquee-track { display: flex; width: max-content; animation: marqueeScroll 25s linear infinite; }
.amc-logo { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-sec); padding: 0 40px; display: flex; align-items: center; gap: 14px; white-space: nowrap; opacity: 0.5; transition: 0.3s; }
.amc-icon { width: 14px; height: 14px; border-radius: 4px; margin-right: 12px; }
.amc-logo:hover { opacity: 1; color: var(--text-primary); cursor: default; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Main Footer */
.main-footer { padding: 80px 0 120px; background: transparent; position: relative; z-index: 2; border-top: 1px solid var(--border); margin-top: 50px;}

/* Search & Filters */
.filter-section { padding: 0 40px; margin-top: 60px; margin-bottom: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; gap: 30px; align-items: center; position: relative; z-index: 10; }
.search-input { width: 100%; max-width: 600px; padding: 18px 24px; border-radius: 50px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-primary); font-size: 16px; font-family: inherit; transition: border-color 0.3s, box-shadow 0.3s; outline: none; box-shadow: 0 4px 20px rgba(0,0,0,0.5); backdrop-filter: blur(10px); }
.search-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); box-shadow: 0 0 20px var(--accent-glow); }
.filter-chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter-chip { padding: 10px 24px; border-radius: 50px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-sec); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.filter-chip:hover, .filter-chip.active { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,255,255,0.1); }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand .nav-logo { margin-bottom: 16px; display: inline-flex; }
.footer-desc { color: var(--text-sec); font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-links h4 { color: var(--text-primary); font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.footer-links a { display: block; color: var(--text-sec); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.compliance-text { color: var(--text-sec); font-size: 11px; max-width: 800px; line-height: 1.5; opacity: 0.8; }
.copyright { color: var(--text-primary); font-size: 12px; font-weight: 600; opacity: 0.8; }

/* Mobile Navigation Dock - Base Styles */
.mobile-nav-dock { 
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); 
    width: calc(100% - 40px); max-width: 500px; height: 64px; 
    background: var(--dock-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 32px;
    display: none; align-items: center; justify-content: space-around;
    padding: 0 10px; z-index: 1100; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.mobile-nav-item { 
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    text-decoration: none; color: var(--text-sec); transition: 0.3s;
}

.mobile-nav-item svg { width: 20px; height: 20px; stroke-width: 2; }
.mobile-nav-item span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.mobile-nav-item.active { color: var(--accent); }

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */

/* ── 1024px: Tablet landscape ── */

/* ── 900px: Hide desktop nav, show mobile dock ── */

/* ── 768px: Stack calculator, footer ── */

/* ── 600px: Single column, full mobile ── */

/* ── 375px: Smallest phones ── */

/* Global Overflow Fix */
html { width: 100%; overflow-x: hidden; }
body { overflow-x: hidden; width: 100%; }

/* Tools Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 150px;
  padding: 10px;
  flex-direction: column;
  gap: 10px;
  background: var(--dock-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  z-index: 200;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.nav-dropdown:hover .dropdown-content {
  display: flex;
}
.dropdown-content a {
  color: var(--text-sec);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Comparison Feature Styles */
.comparison-tray {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  background: var(--dock-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid var(--border);
  z-index: 2000;
  padding: 15px 0;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -20px 40px rgba(0,0,0,0.3);
}
.comparison-tray.visible {
  transform: translateY(0);
}
.tray-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.selected-funds-list {
  display: flex;
  gap: 15px;
}
.selected-fund-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-primary);
}
.remove-fund {
  cursor: pointer;
  color: #ff4757;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
}

/* Compare Toggle — top-right pill on each fund card */
.cmp-toggle {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 5;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px; font-weight: 700;
  color: var(--text-sec);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.cmp-toggle input[type="checkbox"] { display: none; }
.cmp-toggle .cmp-icon { font-size: 13px; line-height: 1; }
.cmp-toggle:hover { border-color: var(--accent); color: var(--accent); }
.cmp-toggle.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Comparison Modal */
.comparison-modal {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 3000;
  display: none;
  flex-direction: column;
  padding: 40px;
  overflow-y: auto;
}
.comparison-modal.open {
  display: flex;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.close-comparison {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.close-comparison:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.comparison-table th, .comparison-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison-table th {
  color: var(--text-sec);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: 25%;
}
.comparison-table td {
  font-size: 18px;
  font-weight: 700;
  width: 25%;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.fund-header-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fund-header-cell img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
}


/* Fund Detail Page Specific Styles */
.breadcrumb {
  font-size: 13px;
  color: var(--text-sec);
  margin-bottom: 24px;
  opacity: 0.7;
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover { color: var(--accent); }

.fund-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 40px;
}
.fund-title-large {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin: 12px 0;
}
.amc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.amc-badge img { width: 20px; height: 20px; object-fit: contain; background: #fff; border-radius: 50%; }

.fund-tags { display: flex; gap: 8px; }
.f-tag {
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.risk-high { color: #f87171; border-color: rgba(248,113,113,0.3); }

.fund-nav-card {
  padding: 20px 30px;
  min-width: 200px;
}
.nav-label { font-size: 12px; color: var(--text-sec); margin-bottom: 4px; }
.nav-price { font-size: 28px; font-weight: 800; }
.nav-change { font-size: 14px; font-weight: 700; margin-left: 8px; }
.pos { color: #4ade80; }
.nav-date { font-size: 11px; opacity: 0.5; margin-top: 4px; }

.graph-tabs { display: flex; gap: 4px; }
.g-tab {
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-sec);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.g-tab.active { background: var(--accent); color: #fff; box-shadow: 0 0 15px var(--accent-glow); }

.stats-grid-small {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.stat-item { 
  padding: 10px 15px; 
  background: rgba(255,255,255,0.03); 
  border-radius: 12px; 
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-label { font-size: 11px; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.stat-val { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.holdings-list { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.holding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
}
.h-name { font-weight: 500; color: var(--text-primary); flex: 1; min-width: 0; }
.h-perc { font-weight: 700; color: var(--text-sec); flex-shrink: 0; white-space: nowrap; text-align: right; }
.view-all-link { display: block; margin-top: 15px; font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600; }

.returns-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.returns-table th { text-align: left; padding: 10px; font-size: 11px; color: var(--text-sec); text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); }
.returns-table td { padding: 12px 10px; font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.05); }
.alpha-badge {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), transparent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.invest-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  background: linear-gradient(to top, rgba(var(--bg-raw, 0,0,0), 0.3) 0%, transparent 100%);
  pointer-events: none;
}
[data-theme="light"] .invest-dock {
  background: linear-gradient(to top, rgba(238,242,246,0.6) 0%, transparent 100%);
}
.invest-dock .dock-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  pointer-events: auto;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.fund-mini-info { display: flex; align-items: center; gap: 12px; }


/* ============================================
   INTERACTIONS v2 — Scroll, Tilt, Ripple,
   Social Proof, Exit Intent, Market Ticker
   ============================================ */

/* 1. Scroll Progress Bar */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff9940);
  box-shadow: 0 0 12px var(--accent-glow);
  z-index: 10000;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* 2. 3D Card Tilt — removed per user preference */

/* 3. Button Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  width: 120px; height: 120px;
  margin-left: -60px; margin-top: -60px;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: rippleOut 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleOut {
  to { transform: scale(3.5); opacity: 0; }
}

/* 4. Social Proof Toasts */
.toast-container {
  position: fixed;
  bottom: 100px; left: 24px;
  z-index: 5000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}

.social-toast {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--dock-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  max-width: 300px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1);
  pointer-events: auto;
}
.social-toast.visible { opacity: 1; transform: translateX(0); }

.toast-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  flex-shrink: 0;
}
.toast-body { flex: 1; min-width: 0; }
.toast-name { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.toast-action { font-size: 11px; color: var(--text-sec); line-height: 1.4; }
.toast-action strong { color: var(--text-primary); }
.toast-time { font-size: 10px; color: var(--text-sec); white-space: nowrap; opacity: 0.7; }


/* 6. Market Ticker */
.market-ticker {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 36px;
}
.ticker-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 99px;
  backdrop-filter: blur(10px);
  font-size: 12px; font-weight: 600;
  color: var(--text-primary);
}
.ticker-label {
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px; font-weight: 700;
}
.ticker-val { font-variant-numeric: tabular-nums; }
.ticker-change { font-size: 11px; font-weight: 700; }
.ticker-change.pos { color: var(--success); }
.ticker-change.neg { color: #f87171; }
.ticker-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* =====================================================
   HOMEPAGE ENHANCEMENTS — Changes 3–13
   ===================================================== */

/* CHANGE 4: Activity Ticker Strip (below nav) */
.activity-ticker-bar {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: 38px;
  background: #0C1246;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 99;
  overflow: hidden;
  display: flex;
  align-items: center;
}
[data-theme="light"] .activity-ticker-bar { background: #1a2570; }
.activity-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: activityTicker 42s linear infinite;
  align-items: center;
}
.activity-ticker-bar:hover .activity-ticker-track { animation-play-state: paused; }
.activity-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}
.activity-ticker-item .t-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
}
.activity-ticker-sep {
  font-size: 14px;
  color: rgba(255,255,255,0.22);
  padding: 0 2px;
  flex-shrink: 0;
}
@keyframes activityTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero padding accounts for fixed nav (70px) + ticker (38px) */
.hero-cinematic { padding-top: 108px; }

/* CHANGE 5: Hindi tagline + SEBI badge */
.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 18px;
}
.hindi-tagline {
  font-size: 18px;
  font-weight: 500;
  color: #E8873A;
  letter-spacing: 0.01em;
}
.sebi-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
[data-theme="light"] .sebi-badge { border-color: rgba(0,0,0,0.15); }

/* CHANGE 3: Toast — hero-only, no mobile-nav overlap */
.toast-container {
  position: fixed;
  bottom: 110px;
  left: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}


/* Section headings shared */
.section-title {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-sec);
  font-size: 15px;
  margin-bottom: 12px;
}

/* CHANGE 6: FD vs MF Comparison */
.fdmf-section { padding: clamp(40px,6vw,80px) 0; }
.fdmf-grid {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  margin-top: 40px;
}
.fdmf-card { padding: clamp(24px,3.5vw,40px); border-radius: 24px; }
.fdmf-mf.fdmf-winner {
  border-color: rgba(255,107,0,0.35);
  background: rgba(255,107,0,0.04);
}
[data-theme="light"] .fdmf-mf.fdmf-winner { background: rgba(255,107,0,0.06); }
.fdmf-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-sec);
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
}
.winner-tag { color: var(--accent); border-color: rgba(255,107,0,0.3); }
.fdmf-returns {
  font-size: clamp(36px,5vw,52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--text-sec);
}
.fdmf-mf .fdmf-returns { color: var(--text-primary); }
.fdmf-return-label { font-size: 12px; color: var(--text-sec); margin-bottom: 20px; }
.fdmf-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.fdmf-item { font-size: 14px; color: var(--text-sec); line-height: 1.5; }
.fdmf-example {
  font-size: 13px;
  color: var(--text-sec);
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.fdmf-example strong { color: var(--text-primary); }
.winner-example { border-color: rgba(255,107,0,0.2); }
.winner-example strong { color: var(--accent); }
.fdmf-vs-col { display: flex; align-items: center; justify-content: center; }
.fdmf-vs {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: var(--text-sec);
  flex-shrink: 0;
}
.fdmf-disclaimer {
  text-align: center;
  font-size: 10px;
  color: var(--text-sec);
  opacity: 0.6;
  max-width: 600px;
  margin: 24px auto 0;
  line-height: 1.5;
}

/* CHANGE 7: Partner logos */
.partners-section {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-sec);
  margin-bottom: 20px;
}
.partners-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.partner-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sec);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.partner-pill:hover { border-color: rgba(255,107,0,0.4); color: var(--text-primary); }
.partner-logo { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }

/* Partners bento card — full-width inside bento grid */
.partners-bento-content {
  flex-direction: row !important;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  min-height: unset;
}
.partners-bento-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-sec);
  white-space: nowrap;
  flex-shrink: 0;
}
.partners-bento-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.partners-bento-row::-webkit-scrollbar { display: none; }

.cities-banner {
  background: #0C1246;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0;
  text-align: center;
}
[data-theme="light"] .cities-banner { background: #1a2570; }
.cities-text { font-size: 14px; color: rgba(255,255,255,0.82); line-height: 1.6; padding: 0 16px; }
.cities-text strong { color: #fff; }

/* CHANGE 9: FAQ accordion */
.faq-section { padding: clamp(40px,6vw,80px) 0; }
.faq-list {
  margin: 40px auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(255,107,0,0.35); }
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
  min-height: 60px;
  line-height: 1.4;
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), color 0.3s;
  color: var(--text-sec);
  line-height: 1;
  user-select: none;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1);
}
.faq-answer-inner { padding: 0 24px 20px; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { font-size: 14px; color: var(--text-sec); line-height: 1.75; }

/* =====================================================
   STEPS SLIDER — SINGLE AUTHORITATIVE BLOCK
   ===================================================== */

/* Section wrapper */
.steps-slider-section { padding: clamp(60px, 8vw, 100px) 0; }
.steps-slider-heading { margin-bottom: 0; text-align: center; }

/* ── Tab Navigation ── */
.step-tab-nav {
  display: flex;
  margin: 36px 0 52px;
  border-bottom: 2px solid var(--border);
}
.step-tab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  font-family: var(--font);
}
.step-tab:hover { background: rgba(255,255,255,0.04); }
[data-theme="light"] .step-tab:hover { background: rgba(0,0,0,0.04); }
.step-tab-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-sec);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}
.step-tab-label {
  font-size: 13px; font-weight: 600;
  color: var(--text-sec);
  transition: color 0.3s;
}
.step-tab-bar {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-tab.active .step-tab-num   { background: var(--accent); color: #fff; }
.step-tab.active .step-tab-label { color: var(--text-primary); font-weight: 700; }
.step-tab.active .step-tab-bar   { transform: scaleX(1); }

/* ── Two-column layout ── */
.steps-slider-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}

/* ── Left: Content slides ── */
.steps-slider-content {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-start;
}
.step-slide {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  animation: stepFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-slide.active { display: flex; }
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge row: circle icon + "STEP XX" label */
.step-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.step-slide-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: rgba(255,107,0,0.12);
  border: 1.5px solid rgba(255,107,0,0.3);
  flex-shrink: 0;
}
.step-slide-num {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-sec);
}

/* Heading */
.step-slide-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.12;
  margin: 0;
}

/* Accent subtitle */
.step-slide-subtitle {
  font-size: 15px; font-weight: 600;
  color: var(--accent);
  margin: 0; line-height: 1.45;
}

/* Description */
.step-slide-desc {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.75;
  margin: 0;
  max-width: 460px;
}

/* 2-column checklist */
.step-slide-checks {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.step-slide-checks li {
  font-size: 13px; font-weight: 500;
  color: var(--text-sec);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-slide-checks li::before {
  content: '';
  width: 18px; height: 18px;
  border-radius: 50%;
  background-color: rgba(34,197,94,0.12);
  border: 1.5px solid rgba(34,197,94,0.35);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2322c55e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* CTA button */
.step-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px; font-weight: 700;
  border-radius: 99px;
  width: fit-content;
  margin-top: 2px;
}

/* Trust badges row */
.step-trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.step-trust-item {
  font-size: 12px; font-weight: 600;
  color: var(--text-sec);
  display: flex; align-items: center; gap: 5px;
}
.step-trust-item::before {
  content: '✓';
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  font-size: 9px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Right: Phone visual ── */
.steps-slider-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Phone mockup */
.step-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}
.step-phone {
  width: 250px;
  background: var(--dock-bg);
  border-radius: 40px;
  border: 2px solid var(--border);
  padding: 16px 12px 22px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 0 60px rgba(255,107,0,0.07);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .step-phone {
  background: #fff;
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 32px 90px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.06) inset;
}
.step-phone-notch {
  width: 70px; height: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  margin: 0 auto 14px;
}
[data-theme="light"] .step-phone-notch { background: rgba(0,0,0,0.12); }
.step-phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  min-height: 390px;
}
[data-theme="light"] .step-phone-screen { background: #f5f7fa; }

/* Dark mode: keep phone mockup white/light so it reads as a real device */
[data-theme="dark"] .step-phone {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 32px 90px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.06) inset;
}
[data-theme="dark"] .step-phone-notch {
  background: rgba(0,0,0,0.12);
}
[data-theme="dark"] .step-phone-screen {
  background: #F1F5F9 !important;
}
/* Force all text inside mockup to stay dark/readable */
[data-theme="dark"] .step-phone * {
  color: #1E293B;
}
/* Exceptions: accent-colored elements keep their own colors */
[data-theme="dark"] .step-phone .phone-screen-logo span,
[data-theme="dark"] .step-phone .phone-back-btn,
[data-theme="dark"] .step-phone .phone-store-btn,
[data-theme="dark"] .step-phone .phone-kyc-btn,
[data-theme="dark"] .step-phone .phone-sip-btn { color: #fff; }
/* Inner cards that used near-transparent dark backgrounds */
[data-theme="dark"] .phone-app-banner,
[data-theme="dark"] .phone-kyc-card,
[data-theme="dark"] .phone-fund-row {
  background: rgba(0,0,0,0.04) !important;
  border-color: #CBD5E1 !important;
}
[data-theme="dark"] .phone-screen-head {
  border-bottom-color: #CBD5E1;
}
/* Slider track uses var(--border) which is dark in dark mode */
[data-theme="dark"] .phone-sip-slider-track,
[data-theme="dark"] .phone-install-bar {
  background: #CBD5E1;
}

/* Individual phone screens */
.phone-screen {
  display: none;
  flex-direction: column;
  padding: 14px 12px;
  gap: 10px;
  animation: stepFadeIn 0.38s ease;
}
.phone-screen.active { display: flex; }

.phone-screen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.phone-screen-logo { font-size: 13px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.phone-screen-logo span { color: var(--accent); }
.phone-topbar-icon { font-size: 14px; color: var(--text-sec); }
.phone-back-btn { font-size: 11px; font-weight: 700; color: var(--accent); }
.phone-step-counter { font-size: 10px; font-weight: 700; color: var(--text-sec); }
.phone-screen-body { display: flex; flex-direction: column; gap: 10px; }

/* Screen 1: App download */
.phone-app-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
}
[data-theme="light"] .phone-app-banner { background: rgba(0,0,0,0.03); }
.phone-app-icon { font-size: 28px; }
.phone-app-name { font-size: 12px; font-weight: 800; color: var(--text-primary); }
.phone-app-sub  { font-size: 9px; color: var(--text-sec); margin-top: 1px; }
.phone-rating   { font-size: 9px; font-weight: 700; color: #f59e0b; margin-top: 3px; }
.phone-store-btns { display: flex; gap: 6px; }
.phone-store-btn {
  flex: 1; padding: 8px 6px;
  border-radius: 9px;
  font-size: 9px; font-weight: 700;
  background: var(--accent); color: #fff;
  text-align: center;
}
.phone-install-bar { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.phone-install-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9940);
  border-radius: 99px;
  animation: progressPulse 2s ease-in-out infinite alternate;
}
@keyframes progressPulse { from { width: 55%; } to { width: 76%; } }
.phone-install-label { font-size: 9px; color: var(--text-sec); text-align: center; }

/* Screen 2: KYC */
.phone-kyc-title { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.phone-kyc-card {
  padding: 9px 11px; border-radius: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
[data-theme="light"] .phone-kyc-card { background: rgba(0,0,0,0.04); }
.phone-kyc-label { font-size: 8px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-sec); margin-bottom: 3px; }
.phone-kyc-input { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.phone-kyc-check {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 9px; color: var(--text-sec); line-height: 1.5;
  padding: 8px 10px;
  background: rgba(34,197,94,0.06);
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.15);
}
.phone-kyc-check-icon { flex-shrink: 0; }
.phone-kyc-btn {
  background: var(--accent); color: #fff;
  padding: 10px 12px; border-radius: 11px;
  font-size: 11px; font-weight: 700; text-align: center;
}

/* Screen 3: SIP setup */
.phone-fund-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
}
[data-theme="light"] .phone-fund-row { background: rgba(0,0,0,0.03); }
.phone-fund-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phone-fund-name { font-size: 11px; font-weight: 700; color: var(--text-primary); }
.phone-fund-cat  { font-size: 9px; color: var(--text-sec); margin-top: 2px; }
.phone-sip-amount-row { display: flex; justify-content: space-between; align-items: center; padding: 2px 0; }
.phone-sip-label  { font-size: 10px; font-weight: 600; color: var(--text-sec); }
.phone-sip-amount { font-size: 22px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.phone-sip-slider-track {
  height: 4px; background: var(--border); border-radius: 99px;
  position: relative; margin: 6px 0;
}
.phone-sip-slider-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 30%; background: var(--accent); border-radius: 99px;
}
.phone-sip-slider-thumb {
  position: absolute; top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.phone-sip-minmax { display: flex; justify-content: space-between; font-size: 8px; color: var(--text-sec); }
.phone-sip-btn {
  background: linear-gradient(135deg, var(--accent), #ff9940);
  color: #fff; padding: 11px;
  border-radius: 11px;
  font-size: 12px; font-weight: 800;
  text-align: center; margin-top: 4px;
  box-shadow: 0 5px 18px var(--accent-glow);
}

/* Dot pagination */
.steps-dots { display: flex; gap: 8px; justify-content: center; }
.steps-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--border);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, width 0.3s;
}
.steps-dot.active { background: var(--accent); width: 24px; }

/* Auto-play indicator */
.steps-autoplay-indicator {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  color: var(--text-sec);
  cursor: pointer; user-select: none;
  transition: color 0.25s;
}
.steps-autoplay-indicator:hover { color: var(--text-primary); }
.steps-autoplay-icon { font-size: 13px; }

/* Disclaimer */
.steps-disclaimer {
  text-align: center;
  font-size: 10px;
  color: var(--text-sec);
  opacity: 0.55;
  max-width: 520px;
  margin: 36px auto 0;
  line-height: 1.6;
}

/* ── Responsive ── */


/* CHANGE 11: Testimonials */
.testimonials-section { padding: clamp(40px,6vw,80px) 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.testimonial-card {
  padding: 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.t-quote { font-size: 14px; color: var(--text-sec); line-height: 1.75; font-style: italic; flex: 1; }
.t-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.t-city { font-size: 12px; color: var(--text-sec); margin-top: 2px; }

/* CHANGE 12: Fund name / title clickable */
.bento-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
.bento-title a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255,107,0,0.35);
  text-underline-offset: 3px;
}
a.fund-chip { text-decoration: none; }
a.fund-chip:hover { border-color: rgba(255,107,0,0.5); color: var(--text-primary); }

/* CHANGE 13: Calculator typed inputs */
.calc-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.calc-input-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sec);
  flex: 1;
  min-width: 0;
}
.calc-number-input {
  width: 110px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  text-align: right;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  flex-shrink: 0;
}
.calc-number-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.08); }
[data-theme="light"] .calc-number-input {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.12);
  color: #0F172A;
}
[data-theme="light"] .calc-number-input:focus { border-color: var(--accent); }
.calc-number-input::-webkit-inner-spin-button,
.calc-number-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-number-input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* =====================================================
   CHANGE 2 — Blog "Learn & Grow" Section (Homepage)
   ===================================================== */
.blog-teaser-section {
  padding: clamp(48px, 8vw, 80px) 0;
  border-top: 1px solid var(--border);
}
.blog-teaser-section .section-subtitle {
  margin-bottom: 40px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(20px);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,107,0,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.blog-category-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.25);
  border-radius: 99px;
  padding: 4px 10px;
  width: fit-content;
}
.blog-headline {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.02em;
  flex: 1;
}
.blog-desc {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  margin-top: auto;
  transition: color 0.25s, gap 0.25s;
}
.blog-read-more:hover { color: var(--accent); gap: 9px; }
.blog-view-all {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.blog-view-all:hover { opacity: 0.75; }


/* =====================================================
   CHANGE 4 — Mobile Bottom Nav Audit
   ===================================================== */

/* Hide social proof toasts on phones (show only on desktop/tablet ≥ 1024px) */

.mobile-nav-dock {
  /* Safe area for devices with home bar indicator */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  /* Min tap targets ensured via individual items */
}
.mobile-nav-item {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 4px;
  -webkit-tap-highlight-color: transparent;
}
/* Saffron active state */
.mobile-nav-item.active {
  color: var(--accent) !important;
}
.mobile-nav-item.active svg {
  stroke: var(--accent);
}
/* Inactive state explicitly grey */
.mobile-nav-item:not(.active) {
  color: rgba(255,255,255,0.45);
}
[data-theme="light"] .mobile-nav-item:not(.active) {
  color: rgba(15,23,42,0.45);
}
/* Tools bottom sheet — mobile only */
#toolsNavBtn {
  background: none; border: none; font-family: var(--font); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-sec); min-height: 44px; min-width: 44px;
  padding: 6px 4px; -webkit-tap-highlight-color: transparent;
}
.tools-sheet-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 1190;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.tools-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.tools-sheet {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
  pointer-events: none;
}
.tools-sheet.open { transform: translateY(0); pointer-events: auto; }

.tools-sheet-handle {
  width: 36px; height: 4px; border-radius: 99px;
  background: var(--border); margin: 0 auto 20px;
}
.tools-sheet-heading {
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-sec); margin-bottom: 16px;
}
.tools-sheet-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; border-radius: 16px; text-decoration: none;
  color: var(--text-primary); border: 1px solid var(--border);
  margin-bottom: 10px; transition: border-color 0.2s, background 0.2s;
}
.tools-sheet-item:hover, .tools-sheet-item:active { border-color: var(--accent); background: var(--glass); }
.tools-sheet-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--chip-bg); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.tools-sheet-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.tools-sheet-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.tools-sheet-desc { font-size: 12px; color: var(--text-sec); }
.tools-sheet-arrow { width: 16px; height: 16px; margin-left: auto; flex-shrink: 0; stroke: var(--text-sec); }

/* Toasts must NOT overlap mobile nav */

/* =====================================================
   CHANGE 5 — Global Typography & Spacing Polish
   ===================================================== */

/* Section vertical padding */
.bento-section,
.fdmf-section,
.partners-section,
.steps-section,
.testimonials-section,
.faq-section,
.blog-teaser-section {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* FIX 1 — Safety net: any section not explicitly styled still gets enough
   top padding so headings aren't flush against the section edge, and
   env(safe-area-inset-top) covers notched devices */
section, .section, [class*="section-"] {
  padding-top: max(48px, env(safe-area-inset-top));
}

/* FIX 3 — scroll-margin-top: the fixed mobile header (~60–72px tall)
   overlaps section headings when anchors are scrolled into view.
   Adding scroll-margin-top to all headings, sections, and anchor IDs
   ensures the browser scrolls far enough to keep headings visible. */
/* scroll-margin-top must clear nav(70px) + ticker(38px) = 108px + breathing */
h1, h2, h3,
section, [id] {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  h1, h2, h3,
  section, [id] {
    scroll-margin-top: 120px;
  }
}

/* Body text minimum 14px on mobile */

/* Line height across all body text */
body { line-height: 1.6; }

/* Hero heading on mobile: 32–36px bold */

/* Section headings on mobile: 22–26px */

/* Prevent orphan words in headings */
.section-title,
.hero-title,
.bento-title {
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero-title { max-width: none; text-wrap: balance; }
.section-title { max-width: 28ch; }
.bento-title { max-width: none; }

/* =====================================================
   MOBILE RESPONSIVE FIX — v3.3 Comprehensive Patch
   Fixes all layout issues on mobile/tablet viewports
   ===================================================== */

/* ── 1. FAB (Floating Action Buttons) — missing styles ── */
.fab-stack {
  position: fixed;
  right: 20px;
  bottom: 100px; /* above mobile nav dock */
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.fab-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dock-bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.fab-btn:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
/* Tooltip */
.fab-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%; transform: translateY(-50%);
  background: var(--dock-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 11px; font-weight: 600; font-family: var(--font);
  padding: 5px 10px; border-radius: 8px;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s;
}
.fab-btn:hover[data-tip]::after { opacity: 1; }
/* Hide FAB on mobile — mobile nav dock handles these */

/* ── 2. Page-header inner pages — responsive padding ── */
/* Inner pages have no ticker bar — nav is 70px, so 110px gives good breathing room */
/* FIX 1 — Inner-page hero: no overflow clipping that could hide the heading */
.page-header {
  /* nav(70px) + ticker(38px) + 40px breathing = 148px */
  padding-top: 148px;
  padding-bottom: 30px;
  overflow: visible;
  height: auto;
  min-height: auto;
}

/* FIX 4 — Ensure any page using <main>, .page-content or .page-main
   isn't tucked behind the fixed 70px navbar */
main, .page-content, .page-main {
  padding-top: 72px;
}

@media (max-width: 768px) {
  main, .page-content, .page-main {
    padding-top: 60px;
  }
}


/* ── 3. Fix bento-title / section-title centering breakage on mobile ── */
/* The global max-width + auto margin makes non-centered bento titles look broken */
.bento-content .bento-title {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

/* ── 4. Hero section — ensure content is padded on small screens ── */

/* ── 5. Bento Grid — ensure all cards go full-width on mobile ── */

/* ── 6. Calculator card — proper span on 2-col grid (768px–600px) ── */


/* ── 7. FD vs MF grid — mobile stack fix ── */

/* ── 8. Filter section — horizontal scroll on mobile ── */

/* ── 9. AMC page bento grid — collapse to 1 col on mobile ── */

/* ── 10. Footer mobile fixes ── */


/* ── 11. Steps slider — mobile layout fix ── */

/* ── 12. Partners bento row — scrollable on mobile ── */

/* ── 13. Testimonials — proper mobile horizontal scroll ── */

/* ── 14. Blog grid — full width on mobile ── */

/* ── 15. Mobile nav dock — safe area + z-index fix ── */

/* ── 16. Comparison tray — mobile padding ── */


/* ── 17. Activity ticker — hidden on very small ── */

/* ── 18. General overflow safety net ── */

/* ── 19. Cursor — hide on touch/mobile ── */

/* ── 20. Nav inner — logo doesn't overflow on very small ── */

/* ── 21. Explore page featured card — mobile stack ── */

/* ── 22. AMC page mis-closed tag fix — visual safety ── */
.bento-section a.bento-card.span-2x1 { display: flex; }

/* ── 23. NFO / SIP page section padding ── */

/* ── 24. Dock text overflow on very small ── */

/* =====================================================
   RESPONSIVE — Single Authoritative Block
   Breakpoints: 1024 → 900 → 768 → 600 → 480 → 375
   All rules in ONE place. No duplicates, no conflicts.
   ===================================================== */

/* ── Touch devices: hide cursor ── */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ─────────────────────────────────────────────────────
   1024px — Tablet landscape
   ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container, .nav-inner { padding: 0 24px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .span-4x1, .span-3x2, .span-2x2, .span-2x1 { grid-column: span 2; }
  .span-1x2 { grid-column: span 1; grid-row: span 1; }
  .calc-card { grid-column: span 2; }
  .bento-content { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ─────────────────────────────────────────────────────
   900px — Mobile (show dock, hide desktop nav)
   ───────────────────────────────────────────────────── */
@media (max-width: 900px) {

  /* Nav */
  .center-nav-links { display: none !important; }
  .nav-inner { padding: 0 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-primary { padding: 8px 16px !important; font-size: 13px !important; }
  .theme-toggle { transform: scale(0.85); }

  /* Mobile nav dock */
  .mobile-nav-dock { display: flex !important; }
  .bottom-dock { display: none !important; }

  /* Hero */
  .hero-cinematic { padding-top: 120px; padding-bottom: 60px; min-height: auto; }
  .asset-3 { display: none; }
  .asset-2 { right: 5%; }

  /* FIX 3 — Page header: nav(70) + ticker(38) + breathing(20) = 128px */
  .page-header { padding-top: 128px; padding-bottom: 40px; }

  /* Social toasts — hide on mobile */
  .toast-container, .social-toast { display: none !important; }

  /* FAB — mobile nav handles navigation */
  .fab-stack { display: none !important; }

  /* Page header (inner pages) — nav(70) + ticker(38) + breathing(20) = 128px */
  .page-header { padding-top: 128px; padding-bottom: 20px; height: auto; min-height: auto; }
  .page-header .hero-title { font-size: clamp(28px, 8vw, 44px) !important; }

  /* Tools bottom sheet */
  .tools-sheet-backdrop, .tools-sheet { display: block; }

  /* Steps slider: visual stacks above content */
  .steps-slider-wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps-slider-visual { order: -1; }
  .steps-slider-content { min-height: unset; }
  .step-slide-desc { max-width: 100%; }
  .step-slide-title { font-size: clamp(22px, 6vw, 30px); }

  /* Partners bento: stack vertically */
  .partners-bento-content { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .partners-bento-row { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Explore featured card */
  .bento-card .bento-content[style*="space-between"] { flex-wrap: wrap; gap: 16px; }
  .bento-card .bento-content[style*="space-between"] > a.btn-primary { width: 100%; margin-left: 0 !important; justify-content: center; }

  /* Footer */
  .main-footer { padding-bottom: 140px; }

  /* OVERFLOW SAFETY NET - Prevents wide marquees zooming out the screen.
     overflow-x:clip removed from section elements — body/html already handle
     it and clip on intermediate containers breaks position:fixed + transforms */
  body, html, .hero-cinematic, .bento-section, .steps-slider-section, .footer-grid, .faq-section, .fdmf-section {
    max-width: 100vw;
  }
}

/* ─────────────────────────────────────────────────────
   768px — Tablet portrait
   ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 16px; }
  .bento-content { padding: 18px; }

  /* Make glass cards visible on mobile — backdrop-filter alone is invisible
     on light backgrounds; add a solid semi-transparent fill instead. */
  .bento-card.glass-card {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
  }
  [data-theme="dark"] .bento-card.glass-card {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Calculator layout */
  .calc-card { grid-column: span 2; }
  .calc-header { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; max-width: 100%; width: 100%; }
  .calc-tabs { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; display: flex; }
  .calc-tabs::-webkit-scrollbar { display: none; }
  .calc-tab { padding: 9px 14px; font-size: 13px; flex-shrink: 0; }
  .calc-body { grid-template-columns: 1fr; gap: 24px; }
  .calc-outputs { flex-direction: row; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
  .output-box { flex: 1 1 calc(50% - 6px); border-left: none; border-top: 2px solid var(--border); padding-left: 0; padding-top: 10px; }
  .glow-out { border-top-color: var(--accent); flex: 1 1 100%; }
  .out-val { font-size: 22px; }
  .glow-out .out-val { font-size: 26px; }
  input[type=range] { width: 100%; }
  .calc-number-input { width: 80px; font-size: 12px; padding: 5px 8px; }
  .calc-input-row label { font-size: 12px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .main-footer { padding: 48px 0 140px; }

  /* Partners */
  .partners-bento-content { flex-direction: column !important; align-items: flex-start; gap: 12px; padding: 16px 20px; }
  .partners-bento-row { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }

  /* Filter section */
  .filter-section { padding: 0 16px; margin-top: 20px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 8px; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; white-space: nowrap; }
  .search-input { width: 100%; max-width: none; font-size: 14px; }

  /* Fund detail page */
  .fund-header-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .fund-nav-card { width: 100%; }
  .invest-dock { padding: 10px; }
  .invest-dock .dock-inner { padding: 10px 15px; }

  /* FD vs MF */
  .fdmf-grid { grid-template-columns: 1fr; gap: 16px; }
  .fdmf-mf { order: -2; }
  .fdmf-vs-col { order: -1; }

  /* Testimonials — horizontal scroll */
  .testimonials-grid {
    grid-template-columns: repeat(3, min(88vw, 320px));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    gap: 16px;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial-card { scroll-snap-align: center; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Comparison tray */
  .tray-inner { flex-direction: column; gap: 12px; padding: 0 16px; }
  .selected-funds-list { flex-wrap: wrap; gap: 8px; }
  .selected-fund-item { font-size: 12px; padding: 6px 10px; }
  .comparison-table { display: block; overflow-x: auto; }

  /* Body text */
  body { font-size: 14px; }
  p, .bento-desc, .hero-desc, .footer-desc { font-size: 14px; line-height: 1.6; }
}

/* ─────────────────────────────────────────────────────
   600px — Mobile
   ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .container, .nav-inner { padding: 0 14px; }

  /* Grid: everything single column */
  .bento-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .span-4x1, .span-3x2, .span-2x2, .span-2x1,
  .span-1x2, .span-1x1, .calc-card { grid-column: span 1 !important; grid-row: span 1 !important; }
  .bento-content { padding: 16px; gap: 10px; }

  /* Hero */
  .hero-cinematic { padding-left: 16px; padding-right: 16px; }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(30px, 9vw, 36px) !important; line-height: 1.1; font-weight: 800; }
  .hero-desc { font-size: 14px; margin-bottom: 24px; }
  .hero-badge { margin-bottom: 16px; }
  .market-ticker { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; padding-bottom: 0; }
  .ticker-item { width: auto; max-width: 300px; display: flex; justify-content: center; }

  /* Typography */
  .section-title { font-size: clamp(22px, 6vw, 26px) !important; }
  .bento-title { font-size: clamp(18px, 5vw, 22px); }
  .stat-val { font-size: 28px; }

  /* Calculator */
  .calc-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start; }
  .calc-tabs::-webkit-scrollbar { display: none; }
  .calc-tab { flex-shrink: 0; }
  .calc-outputs { flex-direction: column; gap: 12px; }
  .output-box { border-left: none !important; border-top: 1px solid var(--border); padding-left: 0 !important; padding-top: 12px; }
  .glow-out { border-top-color: var(--accent) !important; }
  .out-val { font-size: 20px !important; }
  .glow-out .out-val { font-size: 24px !important; }
  .calc-number-input { width: 76px; font-size: 12px; padding: 5px 8px; }
  .calc-input-row label { font-size: 12px; }

  /* Partners pill */
  .partners-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .partners-row::-webkit-scrollbar { display: none; }
  .partner-pill { scroll-snap-align: start; flex-shrink: 0; padding: 6px 12px; font-size: 12px; }
  .partner-logo { width: 20px; height: 20px; }

  /* FD vs MF */
  .fdmf-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .fdmf-vs-col { display: none; }
  .fdmf-mf { order: unset; }
  .fdmf-card { padding: 20px; }

  /* Card actions */
  .card-actions { flex-direction: column !important; gap: 8px !important; }
  .card-actions a { width: 100% !important; flex: none !important; text-align: center; }
  .bento-card .bento-content.row-flex { flex-direction: column !important; align-items: flex-start !important; gap: 16px; }
  .bento-card .bento-content.row-flex .btn-primary { margin-left: 0 !important; width: 100%; justify-content: center; }

  /* Filters */
  .filter-chips { gap: 8px; }
  .filter-chip { padding: 7px 14px; font-size: 12px; }
  .fund-title-large { font-size: 24px; }
  .fund-tags { flex-wrap: wrap; }
  .graph-tabs { flex-wrap: wrap; gap: 6px; }
  .g-tab { padding: 5px 10px; font-size: 11px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .compliance-text { font-size: 10px; }

  /* Steps slider */
  .steps-slider-section { padding: 40px 0 60px; }
  .step-tab-nav { margin: 20px 0 30px; overflow-x: auto; scrollbar-width: none; }
  .step-tab-nav::-webkit-scrollbar { display: none; }
  .step-tab { flex-shrink: 0; min-width: 80px; padding: 12px 14px; gap: 8px; }
  .step-tab-label { font-size: 11px; }
  .step-phone { width: 220px; }
  .step-phone-screen { min-height: 350px; }
  .step-slide-checks { grid-template-columns: 1fr; gap: 9px; }
  .step-slide-cta { width: 100%; justify-content: center; }
  .step-trust-badges { gap: 10px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: repeat(3, min(82vw, 300px)); overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
  .testimonial-card { padding: 20px; scroll-snap-align: center; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-card { padding: 20px 18px; }

  /* Mobile nav dock */
  .mobile-nav-dock { width: calc(100% - 24px); }

  /* Comparison modal */
  .comparison-modal { padding: 20px 16px; }
  .modal-header { margin-bottom: 20px; }
  .comparison-table td, .comparison-table th { padding: 12px 8px; font-size: 13px; }

  /* Page header — nav(70) + ticker(38) + breathing(10) = 118px */
  .page-header { padding-top: 118px; padding-bottom: 10px; }

  /* Bento section padding */
  .bento-section { padding-top: clamp(28px, 6vw, 48px); padding-bottom: clamp(28px, 6vw, 48px); }

  /* FAQ */
  .faq-question { font-size: 14px; padding: 16px 20px; min-height: 56px; }
  .faq-answer-inner { padding: 0 20px 16px; }

  /* Trust row */
  .hindi-tagline { font-size: 15px; }
  .hero-trust-row { gap: 10px; }

  /* AMC stat group */
  .stat-group { gap: 12px !important; }
}

/* ─────────────────────────────────────────────────────
   375px — Smallest phones
   ───────────────────────────────────────────────────── */
@media (max-width: 375px) {
  .container, .nav-inner { padding: 0 12px; }
  .mobile-nav-dock { width: calc(100% - 16px); }
  .mobile-nav-item span { font-size: 9px; }
  .mobile-nav-item svg { width: 18px; height: 18px; }
  .nav-logo img { max-width: 120px !important; }
  .dock-inner { gap: 10px; padding: 10px 12px 10px 16px; }
  .dock-text { font-size: 12px; }
  .activity-ticker-item { padding: 0 12px; font-size: 10px; }
  .hero-title { font-size: clamp(26px, 8vw, 30px) !important; }
}

/* EMERGENCY MOBILE FIX */
@media (max-width: 900px) {
  body, html { overflow-x: hidden !important; width: 100vw !important; max-width: 100vw !important; }
  .mobile-nav-dock { width: 100vw !important; max-width: 100vw !important; left: 0 !important; transform: none !important; border-radius: 0 !important; border-left: none !important; border-right: none !important; bottom: 0 !important; }
  .filter-chips { min-width: 0 !important; width: 100% !important; overflow-x: auto !important; }
  .bento-content { min-width: 0 !important; }
  .activity-ticker-track, .amc-marquee-track { width: auto !important; }
  .amc-marquee-container { min-width: 0 !important; width: 100vw !important; max-width: 100vw !important; overflow-x: hidden !important; }
  .market-ticker { min-width: 0 !important; width: 100vw !important; max-width: 100vw !important; overflow-x: auto !important; scrollbar-width: none !important; }
  .market-ticker::-webkit-scrollbar { display: none !important; }
}

/* Reduced-motion safety net: always show content for users who prefer no animations */
@media (prefers-reduced-motion: reduce) {
  .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* Reset browser default button styles for Tools nav item */
button.mobile-nav-item {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ─────────────────────────────────────────────────────
   AUM Bento Card
   ───────────────────────────────────────────────────── */
.aum-card-content { justify-content: flex-start; }

.aum-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
}

.aum-hero-stat {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.aum-plus {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--accent);
}

.aum-trend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aum-trend-svg {
  width: 100%;
  height: 60px;
  display: block;
}

.aum-trend-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.85;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────
   Mobile dock — 5-item layout
   ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mobile-nav-dock {
    padding: 0 6px;
    gap: 0;
  }
  .mobile-nav-item {
    flex: 1;
    min-width: 0;
    padding: 0 4px;
  }
  .mobile-nav-item span { font-size: 9px; letter-spacing: 0.03em; }
}

/* Navbar — Company dropdown positioning fix for many items */
@media (max-width: 1200px) {
  .center-nav-links { gap: 20px; }
}
@media (max-width: 1100px) {
  .center-nav-links { gap: 14px; }
  .nav-link-item { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════
   AUM CARD V2 — Premium redesign
   ═══════════════════════════════════════════════════ */
.aum-card-v2 { position: relative; overflow: hidden; }

.aum-glow-orb {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,107,0,0.22) 0%, rgba(255,107,0,0) 70%);
  border-radius: 50%;
  bottom: -80px; right: -60px;
  pointer-events: none;
}

.aum-v2-content {
  display: flex; flex-direction: column; gap: 20px;
  position: relative; z-index: 1; height: 100%;
}

.aum-v2-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.aum-v2-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-sec);
}
.aum-live-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent); background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.25);
  border-radius: 99px; padding: 3px 10px;
}

.aum-v2-number {
  font-size: clamp(52px, 9vw, 76px);
  font-weight: 800; line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(255,107,0,0.4);
}
.aum-v2-cr { font-size: 0.65em; vertical-align: baseline; }
.aum-v2-plus { font-size: 0.5em; vertical-align: super; color: var(--accent); opacity: 0.7; }

/* Milestone progress bar */
.aum-milestone { display: flex; flex-direction: column; gap: 6px; }
.aum-milestone-labels {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600;
}
.aum-milestone-current { color: var(--accent); font-weight: 800; font-size: 12px; }
.aum-milestone-track {
  height: 6px; background: rgba(255,255,255,0.08);
  border-radius: 99px; position: relative; overflow: visible;
}
.aum-milestone-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #FF6B00 0%, #ffaa55 100%);
  box-shadow: 0 0 12px rgba(255,107,0,0.5);
  transition: width 1.4s cubic-bezier(0.16,1,0.3,1);
}
.aum-milestone-thumb {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; background: #FF6B00;
  border: 2px solid var(--bg); border-radius: 50%;
  box-shadow: 0 0 10px rgba(255,107,0,0.7);
}
.aum-milestone-note {
  font-size: 11px; color: var(--text-sec); font-weight: 500;
}

/* 3 mini stats row */
.aum-v2-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 20px;
  margin-top: auto;
}
.aum-v2-stat { flex: 1; text-align: center; }
.aum-v2-stat-val {
  font-size: 22px; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.02em; line-height: 1;
}
.aum-v2-stat-sup { font-size: 0.55em; vertical-align: super; }
.aum-v2-stat-lbl { font-size: 11px; color: var(--text-sec); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.aum-v2-stat-divider { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   (download modal removed — replaced by lead gen modal)
   ═══════════════════════════════════════════════════ */

@media (max-width: 480px) {
  /* Fix 2: Reduce section padding so content doesn't clip at 390px */
  .container, .nav-inner { padding: 0 16px; }

  /* Fix 3: Calculator card — full width, no fixed min-width */
  .calc-card { width: 100%; max-width: 100%; min-width: 0; }

  /* Fix 4: Hero / step phone mockup — prevent overflow */
  .step-phone-wrap { max-width: 100%; overflow: hidden; }

  /* Fix 5: Chip / tab rows — scroll horizontally instead of wrapping */
  .calc-tabs, .chips, .filter-chips, .tab-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .calc-tabs::-webkit-scrollbar,
  .chips::-webkit-scrollbar,
  .filter-chips::-webkit-scrollbar,
  .tab-row::-webkit-scrollbar { display: none; }


}

/* ─────────────────────────────────────────────────────
   AUM Card v2 — Mobile responsive
   ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .aum-v2-number { font-size: clamp(44px, 12vw, 56px); }
  .aum-v2-stats { padding: 12px 14px; }
  .aum-v2-stat-val { font-size: 18px; }
  .aum-v2-content { gap: 14px; }
  .aum-milestone-labels span:first-child,
  .aum-milestone-labels span:last-child { display: none; }
}

/* ─────────────────────────────────────────────────────
   Nav — prevent overflow between 900–1100px
   ───────────────────────────────────────────────────── */
@media (max-width: 960px) and (min-width: 901px) {
  .center-nav-links { gap: 10px; }
  .nav-link-item { font-size: 12px; }
}

/* ─────────────────────────────────────────────────────
   SIP Frequency Toggle
   ───────────────────────────────────────────────────── */
.freq-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.freq-label {
  font-size: 13px;
  color: var(--text-sec);
  min-width: 80px;
}
.freq-pills {
  display: flex;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
[data-theme="dark"] .freq-pills {
  background: rgba(255,255,255,0.08);
}
.freq-pill {
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: inherit;
  transition: background 0.2s, color 0.2s;
}
.freq-pill.active {
  background: #F97316;
  color: #fff;
}

/* Header download button — superseded by btn-primary in nav-actions */
.header-download-btn {
  display: none !important;
}


/* =====================================================
   LEAD CAPTURE MODAL
   ===================================================== */
.lead-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
@media (min-width: 600px) {
  .lead-modal-overlay { align-items: center; }
}
.lead-modal-overlay.is-open {
  opacity: 1; pointer-events: all;
}
.lead-modal-box {
  background: #0F1A3E;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  width: 100%; max-width: 440px;
  transform: translateY(40px);
  transition: transform 0.3s ease;
}
@media (min-width: 600px) {
  .lead-modal-box { border-radius: 20px; }
}
.lead-modal-overlay.is-open .lead-modal-box {
  transform: translateY(0);
}
.lead-modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px;
}
.lead-modal-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: #F97316; text-transform: uppercase; margin-bottom: 4px;
}
.lead-modal-title {
  font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.lead-modal-sub {
  font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.5;
}
.lead-modal-close {
  background: rgba(255,255,255,0.08); border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 18px; color: rgba(255,255,255,0.6);
  cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.lead-field { margin-bottom: 16px; }
.lead-label {
  display: block; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 8px;
}
.lead-input {
  width: 100%; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 12px 14px;
  font-size: 15px; color: #fff; outline: none;
  transition: border-color 0.2s;
}
.lead-input::placeholder { color: rgba(255,255,255,0.25); }
.lead-input:focus { border-color: #F97316; }
.lead-phone-row { display: flex; align-items: center; gap: 8px; }
.lead-prefix {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 12px 12px;
  font-size: 14px; color: rgba(255,255,255,0.7);
  white-space: nowrap; flex-shrink: 0;
}
.lead-phone-input { flex: 1; }
.lead-error { font-size: 12px; color: #f87171; min-height: 18px; margin-bottom: 8px; }
.lead-submit-btn {
  width: 100%; background: #F97316; color: #fff;
  border: none; border-radius: 12px;
  padding: 15px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 4px;
  transition: opacity 0.2s, transform 0.1s;
}
.lead-submit-btn:hover { opacity: 0.92; }
.lead-submit-btn:active { transform: scale(0.98); }
.lead-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.lead-fine {
  text-align: center; font-size: 11px;
  color: rgba(255,255,255,0.3); margin-top: 10px;
}
.lead-success-wrap { text-align: center; padding: 16px 0; }
.lead-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 2px solid rgba(34,197,94,0.4);
  font-size: 24px; color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.lead-success-title {
  font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px;
}
.lead-success-sub {
  font-size: 14px; color: rgba(255,255,255,0.5);
  line-height: 1.6; margin-bottom: 24px;
}
.lead-whatsapp-btn {
  width: 100%; background: #25D366; color: #fff;
  border: none; border-radius: 12px;
  padding: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer;
}
