/* ==========================================================================
   AltronGuru - Next-Gen AI-Powered School & College Management SaaS ERP
   Master Stylesheet (style.css)
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --primary-glow: rgba(79, 70, 229, 0.25);
    
    --secondary: #06b6d4;
    --secondary-hover: #0891b2;
    --secondary-light: #cffafe;
    
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.2);
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --navy-950: #050b14;
    --navy-900: #0a1128;
    --navy-850: #0d1738;
    --navy-800: #121f48;
    --navy-700: #1b2c65;
    
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.35);
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Typography */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--slate-700);
    background-color: #ffffff;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--slate-900);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    max-width: 100%;
    flex-wrap: wrap;
}

.badge-tag-primary {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.badge-tag-accent {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Header & Sticky Navigation */
.navbar-altron {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 9999;
    background: #0a1128 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar-altron.scrolled {
    background: #0a1128 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

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

.nav-link {
    color: var(--slate-300);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3730a3 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #312e81 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at top right, #1b2c65 0%, #0a1128 50%, #050b14 100%);
    color: #ffffff;
    padding-top: 170px;
    padding-bottom: 110px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--slate-300);
    margin-bottom: 36px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-proof-stats {
    display: flex;
    gap: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-item .number {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
}

.proof-item .label {
    font-size: 0.85rem;
    color: var(--slate-400);
}

/* Hero Device Mockup */
.hero-visual {
    position: relative;
}

.mockup-window {
    background: rgba(18, 31, 72, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(79, 70, 229, 0.2);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.mockup-header {
    background: rgba(10, 17, 40, 0.8);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-body {
    padding: 24px;
}

.floating-pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: var(--slate-900);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
}

.floating-pill.pill-top {
    top: -20px;
    right: -20px;
    border-left: 4px solid var(--accent);
}

.floating-pill.pill-bottom {
    bottom: -20px;
    left: -20px;
    border-left: 4px solid var(--primary);
}

/* Feature Grid Cards */
.features-section {
    background: var(--slate-50);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 16px 0;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--slate-600);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--slate-200);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.3);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--slate-100);
}

.feature-list li {
    font-size: 0.88rem;
    color: var(--slate-700);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Role Selector Tabs */
.role-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.role-tab-btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
    background: #ffffff;
    font-weight: 600;
    color: var(--slate-600);
    cursor: pointer;
    transition: var(--transition-fast);
}

.role-tab-btn.active,
.role-tab-btn:hover {
    background: var(--navy-900);
    color: #ffffff;
    border-color: var(--navy-900);
    box-shadow: var(--shadow-md);
}

.role-preview-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    padding: 40px;
}

/* Pricing Section */
.pricing-section {
    background: #ffffff;
}

.pricing-billing-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
}

.switch-label {
    font-weight: 600;
    font-size: 1rem;
    color: var(--slate-700);
}

.switch-input-wrapper {
    position: relative;
    width: 60px;
    height: 32px;
}

.switch-input-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--slate-300);
    transition: var(--transition-fast);
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-fast);
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: var(--primary);
}

input:checked + .switch-slider:before {
    transform: translateX(28px);
}

.save-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.15);
    transform: scale(1.03);
}

.popular-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.plan-price {
    margin: 24px 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1;
}

.plan-price .period {
    color: var(--slate-500);
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    margin: 24px 0 36px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.92rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-700);
}

.pricing-features li i.check {
    color: var(--accent);
}

.pricing-features li i.cross {
    color: var(--slate-400);
}

/* ROI Interactive Calculator */
.roi-box {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-850) 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 60px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.roi-slider-group {
    margin-bottom: 30px;
}

.roi-slider-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 12px;
}

.roi-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--secondary);
}

.roi-result-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 36px;
    text-align: center;
}

.roi-savings-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    margin: 16px 0;
}

/* FAQ Accordion */
.faq-section {
    background: var(--slate-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-question {
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--slate-900);
}

.faq-answer {
    padding: 0 24px 22px;
    color: var(--slate-600);
    font-size: 0.95rem;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 70px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: 20px;
}

.cta-banner p {
    color: var(--slate-200);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 36px;
}

/* Footer */
.footer-altron {
    background: var(--navy-950);
    color: var(--slate-400);
    padding-top: 90px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--slate-400);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .grid-3, .grid-4, .grid-2 {
        grid-template-columns: 1fr;
    }
    .roi-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu, .nav-actions {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-menu.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--navy-900);
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 20px;
    }
    .hero-proof-stats {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   Floating Pan-India Lead Capture Widgets (WhatsApp & Click-to-Call)
   ========================================================================== */
.floating-lead-dock {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.whatsapp-float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
}

.whatsapp-float-btn i {
    font-size: 1.45rem;
}

.whatsapp-float-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    background: #20ba59;
    color: #fff !important;
}

.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: inherit;
    top: 0;
    left: 0;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.phone-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0f172a;
    color: #38bdf8 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.phone-float-btn:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .floating-lead-dock {
        bottom: 16px;
        right: 16px;
        gap: 8px;
    }
    .whatsapp-float-btn span {
        display: none;
    }
    .whatsapp-float-btn {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .phone-float-btn {
        width: 44px;
        height: 44px;
    }

    /* Full-width & centered button alignment on mobile */
    .hero-cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-cta-group .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        text-align: center;
    }

    .cta-banner {
        padding: 44px 20px;
    }
    .cta-banner .btn {
        width: 100%;
        max-width: 320px;
        min-height: 48px;
    }

    .pricing-card .btn {
        width: 100%;
        min-height: 48px;
    }

    .modal-content {
        padding: 24px 18px;
        margin: 16px auto;
        width: calc(100% - 32px);
    }
    .modal-content .btn {
        width: 100%;
        min-height: 48px;
    }

    /* Container padding on narrow screens */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Headings on mobile */
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .section-title h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 375px) {
    /* Ultra-compact mobile screens (320px - 360px) */
    .hero-content h1 {
        font-size: 1.85rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    .brand-logo {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Pan-India Educational Directory & SEO Regional Reach
   ========================================================================== */
.seo-directory-section {
    background: #f8fafc;
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
    padding: 70px 0 50px;
    color: var(--slate-800);
}

.seo-directory-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.seo-directory-header .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.seo-directory-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.seo-directory-header p {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.seo-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.seo-directory-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: var(--transition-fast);
}

.seo-directory-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.seo-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--slate-100);
}

.seo-card-title i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.seo-card-desc {
    font-size: 0.88rem;
    color: var(--slate-600);
    line-height: 1.6;
    margin-bottom: 14px;
}

.seo-pills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.seo-pill {
    display: inline-block;
    background: #f1f5f9;
    color: var(--slate-700);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: var(--transition-fast);
}

.seo-pill:hover {
    background: var(--navy-900);
    color: #ffffff;
    border-color: var(--navy-900);
}

.seo-pill.highlight {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.3);
    font-weight: 600;
}

.seo-banner-note {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-top: 30px;
}

.seo-banner-note h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.seo-banner-note p {
    font-size: 0.92rem;
    color: var(--slate-600);
    max-width: 800px;
    margin: 0 auto 16px;
    line-height: 1.6;
}

/* Page Hero Banner (Shared across inner pages) */
.page-hero-banner {
    background: radial-gradient(circle at top right, #1b2c65 0%, #0a1128 50%, #050b14 100%);
    color: #ffffff;
    padding: 130px 0 65px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 992px) {
    /* Prevent any grid or flex children from overflowing the viewport */
    .hero-grid > *,
    .grid-2 > *,
    .grid-3 > *,
    .grid-4 > *,
    .roi-grid > *,
    .features-grid > *,
    .pricing-grid > *,
    .contact-grid > *,
    .role-preview-card > *,
    .roi-box > *,
    .footer-grid > *,
    .seo-directory-grid > *,
    .dashboard-grid-mock > * {
        min-width: 0;
        max-width: 100%;
    }

    .floating-pill.pill-top {
        right: 8px !important;
        left: auto !important;
    }

    .floating-pill.pill-bottom {
        left: 8px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    /* Sleek mobile sticky navbar & compact top section spacing across all pages */
    .nav-wrapper {
        height: 64px !important;
    }

    .nav-menu.mobile-open {
        top: 64px !important;
    }

    .hero-section,
    .page-hero-banner,
    header.navbar-altron + section {
        padding-top: 84px !important;
        padding-bottom: 34px !important;
    }

    .section-padding {
        padding: 44px 0 !important;
    }

    .section-header {
        margin: 0 auto 28px !important;
    }

    /* Proportional, clean responsive typography for all titles and subtitles */
    h1,
    .hero-content h1,
    .page-hero-banner h1,
    header.navbar-altron + section h1 {
        font-size: 1.65rem !important;
        line-height: 1.28 !important;
        margin-bottom: 12px !important;
        letter-spacing: -0.02em !important;
        word-break: break-word;
    }

    h2,
    .section-header h2,
    .cta-banner h2,
    section h2 {
        font-size: 1.38rem !important;
        line-height: 1.3 !important;
        margin-bottom: 12px !important;
        word-break: break-word;
    }

    h3,
    .feature-card h3,
    .pricing-card h3,
    .seo-directory-header h3,
    .role-preview-content h3,
    section h3 {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
        word-break: break-word;
    }

    h4,
    .seo-banner-note h4,
    .seo-card-title {
        font-size: 1.02rem !important;
        line-height: 1.35 !important;
    }

    .hero-lead,
    .page-hero-banner p,
    header.navbar-altron + section p,
    .section-header p,
    .cta-banner p {
        font-size: 0.94rem !important;
        line-height: 1.55 !important;
        margin-bottom: 18px !important;
    }

    .badge-tag {
        font-size: 0.72rem !important;
        padding: 5px 12px !important;
        margin-bottom: 12px !important;
    }

    /* Grid & card alignment and spacing fixes on mobile */
    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }

    .grid-2 > * {
        order: 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .grid-2[style*="margin-bottom"],
    .grid-3[style*="margin-bottom"],
    .grid-4[style*="margin-bottom"] {
        margin-bottom: 36px !important;
    }

    .feature-card {
        padding: 22px 18px !important;
    }

    .feature-icon-box {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
        margin-bottom: 14px !important;
    }

    /* Override oversized inline paddings on inner cards, mockups, and forms */
    div[style*="padding: 50px"],
    div[style*="padding: 40px"],
    div[style*="padding: 36px"],
    div[style*="padding: 30px"],
    form[style*="padding: 36px"],
    .guided-tour-box,
    .guided-tour-form,
    .app-metric-box {
        padding: 22px 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .app-metric-box .metric-value {
        font-size: 2.4rem !important;
    }

    .seo-directory-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* Ensure buttons wrap gracefully instead of overflowing narrow mobile viewports */
    .btn {
        white-space: normal !important;
        word-break: break-word;
        line-height: 1.35;
        padding: 12px 18px;
        max-width: 100%;
    }

    /* Fix hero visual & floating pills overflow on mobile */
    .hero-section,
    .page-hero-banner,
    .page-header,
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .hero-visual {
        max-width: 100%;
        overflow: hidden;
    }

    .mockup-header span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .mockup-body {
        padding: 16px !important;
    }

    .floating-pill {
        position: static !important;
        margin: 10px auto 0 !important;
        width: fit-content;
        max-width: 100%;
    }

    /* Fix ROI Calculator, Role Preview Card, and Contact Form Card padding on mobile */
    .roi-box {
        padding: 24px 16px !important;
        border-radius: 18px;
        margin-top: 28px !important;
    }

    .roi-result-card,
    .roi-savings-card {
        padding: 22px 16px !important;
    }

    .roi-savings-number {
        font-size: 2.1rem !important;
        word-break: break-word;
    }

    .role-preview-card {
        padding: 22px 16px !important;
    }

    /* Fix Pricing Billing Switch & Pricing Cards on mobile */
    .pricing-billing-switch {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        max-width: 100%;
        margin-bottom: 28px !important;
    }

    .pricing-card {
        padding: 24px 18px !important;
        max-width: 100%;
    }

    .pricing-card.popular {
        transform: none !important;
    }

    .plan-price {
        flex-wrap: wrap !important;
    }

    .plan-price .amount,
    .price-amount {
        font-size: 2.2rem !important;
    }

    /* Compact responsive Footer vertical spacing and list item gaps */
    .footer-altron {
        padding: 36px 0 22px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        margin-bottom: 20px !important;
    }

    .footer-brand p,
    .footer-col p {
        margin: 8px 0 12px !important;
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }

    .footer-col h4 {
        margin-bottom: 8px !important;
        font-size: 0.95rem !important;
    }

    .footer-links {
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer-links li {
        margin-bottom: 5px !important;
        line-height: 1.4 !important;
    }

    .footer-links a {
        font-size: 0.88rem !important;
    }

    .footer-bottom {
        padding-top: 14px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        font-size: 0.82rem !important;
    }

    .footer-bottom > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    h1,
    .hero-content h1,
    .page-hero-banner h1,
    header.navbar-altron + section h1 {
        font-size: 1.48rem !important;
    }

    h2,
    .section-header h2,
    .cta-banner h2,
    section h2 {
        font-size: 1.26rem !important;
    }

    h3,
    .feature-card h3,
    .pricing-card h3,
    .seo-directory-header h3,
    .role-preview-content h3,
    section h3 {
        font-size: 1.08rem !important;
    }
}

