:root {
    --primary: #3B4FC8;
    --primary-dark: #2B3A9A;
    --primary-light: #6B7FE0;
    --accent: #7C5CBF;
    --accent-light: #A98FE0;
    --bg-light: #F0F3FF;
    --bg-section: #F8F9FF;
    --text-dark: #1A1F3E;
    --text-body: #2D3052;
    --text-muted: #6B7280;
    --border-light: #D1D9F0;
    --card-shadow: 0 2px 12px rgba(59,79,200,0.09);
    --gradient-hero: linear-gradient(135deg, #2B3A9A 0%, #3B4FC8 55%, #7C5CBF 100%);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-body);
    background: var(--bg-light);
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', 'Playfair Display', 'Georgia', serif;
    color: var(--text-dark);
    font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.top-bar-v2 {
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 0;
    font-size: 0.82rem;
}
.top-vedic { opacity: 0.85; }

.language-toggle .lang-btn {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 2px 12px;
    font-size: 0.78rem;
    border-radius: 4px;
    margin-left: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.language-toggle .lang-btn.active,
.language-toggle .lang-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}

.header-v2 {
    background: #fff;
    box-shadow: 0 2px 12px rgba(59,79,200,0.1);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-text {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.nav-list-v2 {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.nav-link-v2 {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link-v2:hover, .nav-link-v2.active {
    color: var(--primary);
    background: var(--bg-section);
}

.generate-btn-header {
    background: var(--gradient-hero);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.generate-btn-header:hover { opacity: 0.9; color: #fff; }

.hero-v2 {
    background: var(--gradient-hero);
    color: #fff;
    padding: 64px 0 48px;
    position: relative;
    overflow: hidden;
}
.hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-title-v2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-subtitle-v2 {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.88);
    font-weight: 400;
    margin-bottom: 14px;
}
.hero-desc-v2 {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    margin: 0 auto 20px;
}
.trust-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.trust-chip {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}
.hero-for-line {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

.main-content-v2 { padding: 36px 0; }

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}
.sidebar-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.tools-list { list-style: none; padding: 0; margin: 0; }
.tools-list li a {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}
.tools-list li:last-child a { border-bottom: none; }
.tools-list li a:hover { color: var(--primary); }

.form-card-v2 {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(59,79,200,0.10);
    border: 1px solid var(--border-light);
}
.form-title-v2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.form-control, .form-select {
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.93rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,79,200,0.12);
    outline: none;
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text-dark); margin-bottom: 6px; }

.get-kundli-btn {
    background: var(--gradient-hero);
    border: none;
    color: #fff;
    padding: 13px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.1s;
    letter-spacing: 0.01em;
}
.get-kundli-btn:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }

.cta-trust-strip { margin-top: 10px; }
.trust-text { color: var(--text-muted); font-size: 0.82rem; }

.location-dropdown {
    display: none;
    position: absolute;
    z-index: 999;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(59,79,200,0.12);
    max-height: 220px;
    overflow-y: auto;
    width: 100%;
    top: calc(100% + 4px);
    left: 0;
}
.location-dropdown.show {
    display: block;
}
.location-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
    transition: background 0.15s;
}
.location-item:hover { background: var(--bg-section); color: var(--primary); }

.trending-list { list-style: none; padding: 0; margin: 0; }
.trending-list li {
    padding: 6px 0;
    font-size: 0.87rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
}
.trending-list li:last-child { border-bottom: none; }
.trend-icon { color: var(--primary-light); margin-right: 6px; }

.feature-cards-v2 {
    background: var(--bg-section);
    padding: 48px 0;
    border-top: 1px solid var(--border-light);
}
.section-title { font-size: 1.45rem; color: var(--primary-dark); }
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,79,200,0.13);
}
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature-card h5 { font-size: 0.97rem; color: var(--text-dark); margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.btn-feature {
    background: var(--bg-light);
    color: var(--primary);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-feature:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.why-vedic-section {
    background: #fff;
    padding: 56px 0;
    border-top: 1px solid var(--border-light);
}
.why-vedic-section .intro-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.75;
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.why-item {
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}
.why-item .why-icon { font-size: 1.8rem; margin-bottom: 8px; }
.why-item h5 { font-size: 0.93rem; color: var(--primary-dark); margin-bottom: 6px; }
.why-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.faq-section {
    background: var(--bg-section);
    padding: 56px 0;
    border-top: 1px solid var(--border-light);
}
.accordion-item { border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.accordion-button {
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 20px;
}
.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary);
    box-shadow: none;
}
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(59,79,200,0.12); outline: none; }
.accordion-body { font-size: 0.93rem; color: var(--text-muted); padding: 16px 20px; }

.footer-v2 {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    padding: 40px 0 24px;
}
.footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
}
.footer-desc { font-size: 0.87rem; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    margin-right: 16px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 16px;
    margin-top: 24px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
}

@media (max-width: 768px) {
    .hero-title-v2 { font-size: 1.65rem; }
    .hero-subtitle-v2 { font-size: 1rem; }
    .header-nav { display: none; }
    .form-card-v2 { padding: 18px; }
    .feature-cards-v2 { padding: 32px 0; }
}
