:root {
    /* DEFAULT LIGHT THEME */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-header: rgba(255, 255, 255, 0.95);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px -3px rgba(0,0,0,0.05), 0 2px 6px -2px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    
    --brand-orange: #f97316;
    --brand-orange-hover: #ea580c;
    --brand-orange-light: #ffedd5;
    
    --brand-green: #15803d;
    --brand-green-light: #dcfce7;
    
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* DARK MODE OVERRIDE */
body.dark-mode {
    --bg-body: #080c16;
    --bg-surface: #111927;
    --bg-alt: #0b111c;
    --bg-header: rgba(11, 17, 28, 0.95);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 15px -3px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.5);
    
    --brand-orange: #f97316;
    --brand-orange-hover: #fb923c;
    --brand-orange-light: rgba(249, 115, 22, 0.15);
    
    --brand-green: #22c55e;
    --brand-green-light: rgba(34, 197, 94, 0.15);
    
    --footer-bg: #05070c;
    --footer-text: #64748b;
}

/* BASE STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-sans); 
    background-color: var(--bg-body); 
    color: var(--text-secondary); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, .text-primary { color: var(--text-primary); font-family: var(--font-serif); }
a { text-decoration: none; color: inherit; transition: all 0.2s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-alt); }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    max-width: 1200px; margin: 0 auto; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.75rem; font-weight: 900; font-family: var(--font-sans); letter-spacing: -0.5px; }
.logo-sign { color: var(--brand-orange); }
.logo-for { color: var(--text-primary); }
.logo-india { color: var(--brand-green); }

.desktop-nav { display: flex; align-items: center; gap: 32px; }
.desktop-nav a:not(.start-petition-btn) { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.desktop-nav a:not(.start-petition-btn):hover { color: var(--brand-orange); }

.start-petition-btn, .mobile-start-btn {
    background: var(--brand-orange); color: white !important;
    padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}
.start-petition-btn:hover { background: var(--brand-orange-hover); transform: translateY(-1px); }

/* THEME TOGGLE & MOBILE */
.theme-toggle {
    background: transparent; border: none; color: var(--text-secondary);
    font-size: 1.25rem; cursor: pointer; width: 40px; height: 40px; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--border-light); color: var(--brand-orange); }
.mobile-only { display: none; }
.mobile-header-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; background: transparent; border: none; font-size: 1.5rem; color: var(--text-primary); cursor: pointer; }

.mobile-nav { display: none; background: var(--bg-surface); padding: 20px; border-bottom: 1px solid var(--border-light); position: absolute; width: 100%; box-shadow: var(--shadow-md); }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 12px 0; font-weight: 600; color: var(--text-primary); border-bottom: 1px solid var(--border-light); }
.mobile-nav .mobile-start-btn { margin-top: 16px; text-align: center; display: block; border: none; }

/* HERO */
.hero { padding: 80px 24px; overflow: hidden; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { 
    display: inline-flex; align-items: center; gap: 8px; 
    background: var(--brand-orange-light); color: var(--brand-orange);
    padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: 0.75rem; 
    letter-spacing: 1px; margin-bottom: 24px;
}
.hero h1 { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 span { color: var(--brand-orange); }
.hero-description { font-size: 1.125rem; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { 
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 8px; font-weight: 600; font-family: var(--font-sans);
    transition: all 0.2s; cursor: pointer; border: none; font-size: 0.95rem;
}
.btn-primary { background: var(--brand-orange); color: white; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3); }
.btn-primary:hover { background: var(--brand-orange-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); color: white; }
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg-alt); border-color: var(--text-muted); }
.hero-visual img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg); }

/* STATS BANNER */
.stats-container { max-width: 900px; margin: -40px auto 60px; padding: 0 24px; position: relative; z-index: 10; }
.stats-inner { 
    background: var(--text-primary); color: var(--bg-surface);
    display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; 
    box-shadow: var(--shadow-lg); overflow: hidden;
}
body.dark-mode .stats-inner { background: #1e293b; color: white; border: 1px solid var(--border-light); }
.stat-box { padding: 32px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-box:last-child { border-right: none; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--brand-orange); font-family: var(--font-sans); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.7); }

/* SECTIONS */
.section { padding: 80px 0; }
.section-header { margin-bottom: 48px; max-width: 600px; }
.section-header.text-center { margin: 0 auto 48px; }
.section-eyebrow { color: var(--brand-orange); font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 12px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }

/* PETITION CARDS */
.petition-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; }
.petition-card { 
    background: var(--bg-surface); border-radius: 16px; border: 1px solid var(--border-light);
    display: flex; flex-direction: column; box-shadow: var(--shadow-sm); 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.petition-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(249, 115, 22, 0.3); }
.card-body { padding: 24px; flex-grow: 1; }
.card-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tag { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.tag-category { background: var(--bg-alt); color: var(--text-secondary); border: 1px solid var(--border-light); }
.tag-featured { background: var(--brand-green-light); color: var(--brand-green); }
.card-title { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.3; }
.card-summary { font-size: 0.9rem; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-location { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }

.card-footer { padding: 20px 24px; border-top: 1px solid var(--border-light); background: var(--bg-alt); border-radius: 0 0 16px 16px; }
.goal-stats { margin-bottom: 16px; }
.goal-text { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.goal-text strong { color: var(--text-primary); font-size: 0.9rem; }
.progress-track { height: 6px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--brand-orange), var(--brand-green)); border-radius: 4px; }
.btn-view { 
    display: block; width: 100%; text-align: center; padding: 12px; 
    background: var(--bg-surface); border: 1px solid var(--border-light); 
    border-radius: 8px; font-weight: 600; color: var(--brand-orange); 
    transition: all 0.2s; 
}
.btn-view:hover { background: var(--brand-orange); color: white; border-color: var(--brand-orange); }

/* HOW IT WORKS */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-card { background: var(--bg-surface); padding: 40px 30px; border-radius: 16px; text-align: center; border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); }
.step-icon { 
    width: 60px; height: 60px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
    background: var(--brand-orange-light); color: var(--brand-orange); font-size: 1.5rem; font-weight: 900; border-radius: 50%;
}
.step-card h3 { margin-bottom: 12px; font-size: 1.3rem; }

/* CTA SECTION */
.cta-box { 
    background: linear-gradient(135deg, var(--brand-orange), #ea580c); 
    border-radius: 24px; padding: 60px 40px; text-align: center; color: white; 
    box-shadow: var(--shadow-lg); 
}
.cta-box h2 { color: white; font-size: 2.5rem; margin-bottom: 16px; }
.cta-box p { font-size: 1.1rem; max-width: 600px; margin: 0 auto 32px; color: rgba(255,255,255,0.9); }
.cta-box .btn-primary { background: white; color: var(--brand-orange); box-shadow: none; }
.cta-box .btn-primary:hover { background: var(--bg-body); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* FOOTER */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 60px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-about .logo .logo-for { color: white; }
.footer-about p { max-width: 350px; font-size: 0.95rem; }
.footer-links h4 { color: white; font-family: var(--font-sans); font-size: 1rem; margin-bottom: 20px; font-weight: 700; }
.footer-links a { display: block; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; font-size: 0.85rem; text-align: center; }

/* RESPONSIVE */
@media(max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-description { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .desktop-nav { display: none; }
    .mobile-only, .menu-button { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; text-align: center; }
    .footer-about p { margin: 0 auto; }
}
@media(max-width: 768px) {
    .stats-inner { grid-template-columns: 1fr; }
    .stat-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .stat-box:last-child { border-bottom: none; }
    .steps-grid { grid-template-columns: 1fr; }
    .petition-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 40px 20px; }
    .cta-box h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}