:root {
    --primary: #ff9933;
    /* BJP Saffron */
    --primary-light: #ffb84d;
    --accent: #138808;
    /* BJP Green */
    --bg-light: #f8fafc;
    /* Light background */
    --bg-card: rgba(255, 255, 255, 0.8);
    /* Light card background */
    --text-main: #0f172a;
    /* Dark text */
    --text-muted: #475569;
    --container-width: 1200px;
    --glass-border: rgba(0, 0, 0, 0.05);
    --saffron-gradient: linear-gradient(135deg, #ff9933 0%, #ffb366 100%);
    --green-gradient: linear-gradient(135deg, #138808 0%, #28a745 100%);

    /* Fluid Typography - Scales between 320px and 1200px */
    --fs-h1: clamp(2.5rem, 6vw + 1rem, 4.5rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 3.5rem);
    --fs-h3: clamp(1.5rem, 3vw + 1rem, 2rem);
    --fs-body: clamp(1rem, 0.5vw + 0.8rem, 1.15rem);
    --fs-small: clamp(0.8rem, 0.2vw + 0.7rem, 0.9rem);

    /* Fluid Spacing */
    --section-padding: clamp(4rem, 8vw, 8rem);
    --container-padding: clamp(1rem, 5vw, 2rem);
    --card-padding: clamp(1.5rem, 3vw, 2.5rem);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-body);
    background-color: var(--bg-light);
    /* Impressive Light Mesh Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 153, 51, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(19, 136, 8, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 153, 51, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(19, 136, 8, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.text-gradient {
    background: var(--saffron-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Nav - Extreme Responsive */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: clamp(0.6rem, 2vh, 1rem) 0;
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 800;
}

.logo-icon {
    background: var(--saffron-gradient);
    color: white;
    width: clamp(28px, 4vw, 32px);
    height: clamp(28px, 4vw, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9em;
}

/* Nav Links - Mobile First (Fixed Overlay) */
.nav-links {
    position: fixed;
    right: -100%;
    top: 60px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    width: 100%;
    height: 100vh;
    padding: 4rem var(--container-padding);
    display: flex;
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    border-top: 1px solid var(--glass-border);
    list-style: none;
    gap: 1.5rem;
    z-index: 999;
}

.nav-links.nav-active {
    right: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.25rem;
    transition: color 0.3s;
}

/* Desktop Styles Progressive Enhancement */
@media (min-width: 992px) {
    .nav-links {
        position: static;
        flex-direction: row;
        background: transparent;
        width: auto;
        height: auto;
        padding: 0;
        border: none;
        transition: none;
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .nav-links a {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-muted);
        padding: 0;
    }

    .nav-links a:hover {
        color: var(--primary);
    }

    .header-btns {
        display: flex;
        gap: 1.5rem;
    }
}

/* Hero Section - Absolute Fluidity */
.hero {
    padding: clamp(6rem, 15vh, 12rem) 0 clamp(3rem, 10vh, 6rem);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: clamp(2rem, 8vw, 5rem);
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    /* Font size handled by fluid clamp */
}

.hero-content p {
    color: var(--text-muted);
    margin-bottom: clamp(2rem, 5vh, 3rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
        align-items: center;
    }

    .hero-content p {
        margin-left: 0;
        text-align: left;
    }

    .hero-btns {
        justify-content: flex-start;
    }
}

/* Buttons - Touch Optimized */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    min-height: 48px;
    /* High-end touch target */
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--saffron-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 153, 51, 0.35);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
    min-height: 56px;
}

.btn-outline {
    background: white;
    border: 2px solid var(--primary);
    /* Saffron outline for premium look */
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Stats Counter - Fluid Polish */
.stats {
    padding: var(--section-padding) 0;
    background: white;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: var(--fs-h1);
    font-weight: 800;
    font-family: 'Outfit';
    color: var(--primary);
}

.stat-suffix {
    font-size: 0.6em;
    font-weight: 700;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--fs-small);
    letter-spacing: 1.5px;
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    .stats-grid {
        display: flex;
        justify-content: space-around;
        gap: 2rem;
    }
}

/* Hero Section - Mobile First */
.hero {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 3rem;
}

.hero-content h1 {
    font-size: 2.75rem;
    /* Smaller for mobile */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero {
        padding: 10rem 0 6rem;
    }

    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
        gap: 4rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Election Countdown - Mobile First */
.countdown-section {
    padding: 3rem 0;
    background: var(--saffron-gradient);
    color: white;
    /* Contrast for saffron */
}

.countdown-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.countdown-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.timer-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    min-width: 70px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timer-unit span {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Outfit';
    line-height: 1;
}

@media (min-width: 992px) {
    .countdown-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .countdown-header h3 {
        font-size: 2.5rem;
    }

    .timer {
        gap: 2rem;
    }

    .timer-unit {
        padding: 1rem 1.5rem;
        min-width: 100px;
    }

    .timer-unit span {
        font-size: 2.5rem;
    }
}

.hero-image img {
    max-width: 100%;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Timeline / How it Works - Fluid Polish */
.how-it-works {
    padding: var(--section-padding) 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: clamp(2rem, 5vh, 4rem) auto 0;
    padding-left: clamp(2rem, 5vw, 3.5rem);
    border-left: 2px dashed var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.timeline-dot {
    position: absolute;
    left: calc(-1 * (clamp(32px, 4vw, 36px) / 2 + 1.25rem));
    /* Dynamic centering on dashed line */
    top: 0;
    width: clamp(32px, 4vw, 36px);
    height: clamp(32px, 4vw, 36px);
    background: var(--saffron-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(255, 153, 51, 0.3);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    /* Font size handled by fs-h3 clamp */
}

/* Feature Grid - Fluid Refinement */
.features {
    padding: var(--section-padding) 0;
}

.section-header h2 {
    margin-bottom: 1rem;
    /* Font size handled by fluid clamp */
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 768px) {
    .feature-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.feature-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--saffron-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Communications Section - Fluid Polish */
.communications {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.comm-flex {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.comm-visual {
    order: -1;
}

.comm-visual img {
    max-width: 100%;
    border-radius: clamp(16px, 3vw, 24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.comm-list {
    list-style: none;
    margin-top: 2rem;
    text-align: left;
    display: inline-block;
}

@media (min-width: 992px) {
    .comm-flex {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .comm-visual {
        order: 0;
        flex: 0.8;
    }

    .comm-content {
        flex: 1;
    }
}

/* Explainer Section - Mobile First */
.explainer {
    padding: 4rem 0;
}

.explainer-grid {

    /* Explainer Section - Fluid Polish */
    .explainer {
        padding: var(--section-padding) 0;
    }

    .explainer-grid {
        display: flex;
        flex-direction: column;
        gap: clamp(2.5rem, 6vw, 5rem);
        text-align: center;
    }

    .explainer-visual {
        position: relative;
        border-radius: clamp(16px, 3vw, 32px);
        overflow: hidden;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    }

    .play-btn {
        width: clamp(60px, 8vw, 80px);
        height: clamp(60px, 8vw, 80px);
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        color: var(--primary);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .check-list {
        list-style: none;
        margin-top: 2rem;
        text-align: left;
        display: inline-block;
    }

    @media (min-width: 992px) {
        .explainer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            text-align: left;
            align-items: center;
        }
    }

    /* Auto Reply Section - Fluid Polish */
    .auto-reply {
        padding: var(--section-padding) 0;
    }

    .auto-reply-card {
        background: var(--saffron-gradient);
        padding: clamp(2rem, 5vh, 5rem) var(--container-padding);
        border-radius: clamp(24px, 4vw, 40px);
        color: white;
        text-align: center;
    }

    .flow-diagram {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-top: clamp(2rem, 5vh, 4rem);
        font-weight: 700;
    }

    @media (min-width: 992px) {
        .auto-reply-card {
            color: var(--bg-dark);
        }

        .flow-diagram {
            flex-direction: row;
            gap: 2.5rem;
        }
    }

    /* FAQ Accordion - Fluid Refinement */
    .faq {
        padding: var(--section-padding) 0;
        background: rgba(255, 153, 51, 0.03);
    }

    .faq-question {
        padding: 1.5rem var(--card-padding);
        /* Font size handled by body clamp */
    }

    /* Footer - Fluid Polish */
    footer {
        padding: clamp(3rem, 5vh, 4rem) 0;
        border-top: 1px solid var(--glass-border);
        text-align: center;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    @media (min-width: 992px) {
        .footer-content {
            flex-direction: row;
            justify-content: space-between;
        }
    }

    /* Mobile Menu Styles */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        min-height: 44px;
        /* A11y touch target */
        justify-content: center;
    }

    @media (min-width: 992px) {
        .mobile-menu-btn {
            display: none;
        }
    }

    .mobile-menu-btn span {
        width: 32px;
        height: 3px;
        background-color: var(--text-main);
        border-radius: 10px;
        transition: all 0.3s;
    }

    /* Burger Animation */
    .toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 7px);
    }

    .toggle span:nth-child(2) {
        opacity: 0;
    }

    .toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -7px);
    }