/* ============================================
   JAPIFY - Complete Website Styles
   Spiritual Name-Jaap Counter App
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #F59E0B;
    --primary-dark: #D97706;
    --primary-light: #FCD34D;
    --primary-glow: rgba(245, 158, 11, 0.3);
    --bg-dark: #0F0F0F;
    --bg-section: #1A1A1A;
    --bg-card: #232323;
    --bg-card-hover: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3;
    --text-muted: #737373;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --gradient-primary: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    --gradient-dark: linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%);
    --gradient-card: linear-gradient(145deg, #232323 0%, #1A1A1A 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---------- Utility ---------- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-primary);
    color: #000 !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: #000 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-glow-1 {
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent 70%);
}

.hero-glow-2 {
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2), transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-hindi {
    font-size: 1.6rem;
    font-weight: 600;
    opacity: 0.7;
    display: block;
    margin-top: 8px;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding: 20px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: fit-content;
}

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

.stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 300px;
    height: auto;
    border-radius: 36px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    background: #000;
    position: relative;
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: auto;
    display: block;
}

.phone-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.2), transparent 70%);
    z-index: 0;
    border-radius: 50%;
    animation: phone-pulse 4s ease-in-out infinite;
}

@keyframes phone-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Features Grid ---------- */
.features {
    padding: 100px 0;
    background: var(--bg-section);
}

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

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(245, 158, 11, 0.2);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- How It Works ---------- */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-dark);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: var(--shadow-glow);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.5;
}

/* ---------- Screenshots ---------- */
.screenshots {
    padding: 100px 0;
    background: var(--bg-section);
}

.screenshot-carousel {
    overflow: hidden;
}

.screenshot-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 30px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

.screenshot-grid::-webkit-scrollbar {
    height: 6px;
}

.screenshot-grid::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 3px;
}

.screenshot-grid::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.4);
    border-radius: 3px;
}

.screenshot-item {
    text-align: center;
    flex: 0 0 auto;
    scroll-snap-align: center;
    transition: var(--transition);
}

.screenshot-frame {
    width: 240px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: #000;
    transition: var(--transition);
}

.screenshot-item:hover .screenshot-frame {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 16px 50px rgba(245, 158, 11, 0.15);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
}

.screenshot-label {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.screenshot-item:hover .screenshot-label {
    color: var(--primary);
}

/* ---------- Feature Details ---------- */
.feature-details {
    padding: 100px 0;
    background: var(--bg-dark);
}

.feature-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-detail-row:last-child {
    margin-bottom: 0;
}

.feature-detail-row.reverse {
    direction: rtl;
}

.feature-detail-row.reverse > * {
    direction: ltr;
}

.detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.detail-content h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.detail-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.detail-list li i {
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Visual Cards */
.visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.visual-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.8;
}

.visual-flow {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.08);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.flow-item i {
    font-size: 1.8rem;
    color: var(--primary);
}

.flow-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.flow-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    animation: flow-pulse 2s ease-in-out infinite;
}

@keyframes flow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Achievements Card */
.badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    opacity: 0.4;
}

.badge-item.earned {
    opacity: 1;
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.08);
}

.badge-item i {
    font-size: 1.6rem;
    color: var(--primary);
}

.badge-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
}

.badge-item.earned span {
    color: var(--primary-light);
}

/* Voice Card */
.voice-card {
    align-items: center;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 80px;
}

.wave-bar {
    width: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
    animation: wave-animate 1.2s ease-in-out infinite;
    animation-delay: var(--delay);
    height: var(--height);
}

@keyframes wave-animate {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.voice-mic {
    width: 64px;
    height: 64px;
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    animation: mic-pulse 2s ease-in-out infinite;
}

@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

/* ---------- Tech Stack ---------- */
.tech-stack {
    padding: 100px 0;
    background: var(--bg-section);
}

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

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.tech-icon {
    font-size: 2.2rem;
}

.tech-name {
    font-weight: 700;
    font-size: 0.95rem;
}

.tech-version {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- Download Section ---------- */
.download-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.download-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    padding: 80px 60px;
    text-align: center;
}

.download-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.download-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
    filter: blur(60px);
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
}

.download-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-content > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.download-btn.play-store {
    background: var(--gradient-primary);
    color: #000;
}

.download-btn.apk-direct {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.store-icon {
    font-size: 1.8rem;
}

.store-text {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.store-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.store-name {
    font-size: 1.15rem;
    font-weight: 700;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.download-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-info i {
    color: var(--primary);
}

/* ---------- FAQ ---------- */
.faq-section {
    padding: 100px 0;
    background: var(--bg-section);
}

.faq-grid {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: rgba(245, 158, 11, 0.2);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    font-size: 0.8rem;
    transition: var(--transition);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-version {
    margin-top: 6px;
    font-size: 0.75rem !important;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ============================================
   LEGAL PAGES (Privacy Policy & Terms)
   ============================================ */

/* Legal Hero */
.legal-hero {
    padding: 140px 0 60px;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.legal-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 20px 0 12px;
    letter-spacing: -0.02em;
}

.legal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-meta i {
    color: var(--primary);
}

/* Legal Content */
.legal-content {
    padding: 60px 0 100px;
    background: var(--bg-section);
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--primary-light);
}

.legal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section code {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Fira Code', 'Consolas', monospace;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: var(--primary-light);
}

/* Legal Lists */
.legal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 16px;
}

.legal-list li {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Legal Tables */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 500px;
}

.legal-table thead {
    background: rgba(245, 158, 11, 0.1);
}

.legal-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.legal-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

.legal-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.summary-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

/* Legal Highlight Box */
.legal-highlight {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 16px 0;
}

.legal-highlight.warning {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
    border-left-color: #EF4444;
}

.legal-highlight.warning p {
    color: #FCA5A5;
    font-weight: 500;
}

.legal-highlight h4 {
    color: var(--primary);
}

/* Legal Footer Note */
.legal-footer-note {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.legal-footer-note p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 0;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-hindi {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .phone-frame {
        width: 260px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-detail-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-detail-row.reverse {
        direction: ltr;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-hindi {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .steps-container {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .screenshot-grid {
        gap: 16px;
        padding: 16px 10px 24px;
    }

    .screenshot-frame {
        width: 200px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-card {
        padding: 48px 24px;
    }

    .download-content h2 {
        font-size: 1.6rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-logo-row {
        justify-content: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 32px;
    }

    .footer-col {
        align-items: center;
    }

    /* Legal Pages Mobile */
    .legal-hero {
        padding: 110px 0 40px;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-table {
        font-size: 0.8rem;
    }

    .legal-table th,
    .legal-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-hindi {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .phone-frame {
        width: 220px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .feature-detail-row {
        margin-bottom: 60px;
    }

    .detail-content h3 {
        font-size: 1.4rem;
    }

    .visual-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .download-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .screenshot-frame {
        width: 180px;
    }

    /* Legal Pages Small Mobile */
    .legal-title {
        font-size: 1.6rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-list li {
        font-size: 0.88rem;
    }

    .legal-highlight {
        padding: 16px 18px;
    }

    .legal-table {
        min-width: 400px;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--text-primary);
}

/* ---------- Loading Animation ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
