/* ==========================================================================
   NoteKar CSS Design System
   "Udhar ho ya Vyapaar, voice se Noteकर yaar!"
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.1);
    
    /* Curated Light Theme Variables */
    --dark: #f8fafc;
    --dark-card: #ffffff;
    --dark-border: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #475569;
    
    --wa-green: #25d366;
    --wa-chat-bg: #efeae2;
    --wa-incoming: #ffffff;
    --wa-outgoing: #d9fdd3;
    --font-heading: 'Outfit', 'ITF Devanagari', 'Kohinoor Devanagari', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'ITF Devanagari', 'Kohinoor Devanagari', system-ui, -apple-system, sans-serif;
    --shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.05), 0 0 1px 0 rgba(15, 23, 42, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    background-color: var(--dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 2. Typography & Structural Layout */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}

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

section {
    padding: 75px 0;
}

/* 3. Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--dark-border);
    z-index: 100;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon-svg {
    height: 40px;
    width: auto;
    color: var(--primary);
    transition: var(--transition);
}

.logo-text-svg {
    height: 32px;
    width: auto;
    color: var(--text-main);
    transition: var(--transition);
}

.logo:hover .logo-icon-svg {
    transform: scale(1.08) rotate(-4deg);
    color: var(--primary-hover);
}

.logo:hover .logo-text-svg {
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

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

/* 4. Buttons & Interactive Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.btn-wa {
    background-color: var(--wa-green);
    color: white;
    border: none;
}

.btn-wa:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* 5. Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
}

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

.hero-tagline {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--dark-border);
    padding-top: 32px;
}

.stat-item h4 {
    font-size: 2.25rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.875rem;
}

/* 6. Live WhatsApp Mock Sandbox */
.phone-wrapper {
    position: relative;
    width: 320px;
    height: 640px;
    margin: 0 auto;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 2px 2px rgba(255, 255, 255, 0.2);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--wa-chat-bg);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.wa-header {
    background-color: #075e54;
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 60px;
}

.wa-back {
    font-size: 1.25rem;
}

.wa-avatar {
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wa-avatar-svg {
    height: 24px;
    width: auto;
    color: #075e54;
}

.wa-user-info h5 {
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.wa-user-info span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.wa-chat-area {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.msg {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    position: relative;
    word-wrap: break-word;
    animation: popIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.msg-incoming {
    background-color: var(--wa-incoming);
    align-self: flex-start;
    border-top-left-radius: 0;
    color: #000;
}

.msg-outgoing {
    background-color: var(--wa-outgoing);
    align-self: flex-end;
    border-top-right-radius: 0;
    color: #000;
}

.voice-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.voice-play-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.voice-wave {
    flex: 1;
    height: 15px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.voice-wave span {
    display: block;
    width: 2px;
    height: 4px;
    background-color: #8b969e;
    border-radius: 1px;
}

.voice-wave.active span {
    animation: waveBounce 0.8s ease infinite;
}

.voice-wave.active span:nth-child(2) { animation-delay: 0.1s; }
.voice-wave.active span:nth-child(3) { animation-delay: 0.2s; }
.voice-wave.active span:nth-child(4) { animation-delay: 0.3s; }
.voice-wave.active span:nth-child(5) { animation-delay: 0.4s; }
.voice-wave.active span:nth-child(6) { animation-delay: 0.5s; }

.wa-input-bar {
    padding: 8px 12px;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 50px;
}

.wa-input-field {
    flex: 1;
    background-color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #00a884;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sandbox-controls {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sandbox-btn {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.sandbox-btn.active, .sandbox-btn:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

/* 7. Product Features Section */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(16, 185, 129, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* 8. Pricing Section */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-toggle span {
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-border);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

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

input:checked + .slider:before {
    transform: translateX(24px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.price-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.price-card.popular {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, #ffffff 100%);
    border-color: var(--primary);
    box-shadow: 0 20px 45px -10px rgba(16, 185, 129, 0.12), 0 0 0 1px var(--primary);
    transform: scale(1.03);
}

.price-card.popular:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 25px 50px -10px rgba(16, 185, 129, 0.25), 0 0 0 1px var(--primary);
}

.price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.price-card .plan-desc {
    font-size: 0.875rem;
    margin-bottom: 24px;
    height: 45px;
}

.price-val {
    margin-bottom: 32px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.price-period {
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.plan-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.plan-features li.disabled svg {
    color: var(--text-muted);
}

.plan-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* 9. ROI Calculator Section */
.roi-box {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow);
}

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

.roi-sliders {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.slider-header span.val {
    color: var(--primary);
}

.range-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.08);
    outline: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    transition: transform 0.1s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    transition: transform 0.1s ease;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.roi-result {
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.04);
}

.roi-result h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.roi-val {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

/* 10. Testimonials / Personas Carousel */
.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.testimonial-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.testimonial-info h4 {
    font-size: 1rem;
}

.testimonial-info p {
    font-size: 0.8rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    background-color: #07090e;
    background-image: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
    padding: 100px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 48px;
}

.faq-item {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.faq-item h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 11. Footer Section */
footer {
    background-color: #f1f5f9;
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--dark-border);
}

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

.footer-about {
    /* No span needed with explicit columns */
}

.footer-about p {
    margin-top: 16px;
    max-width: 320px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

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

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

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--dark-border);
    padding-top: 40px;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* 12. Animations */
@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes waveBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(2.5); }
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .roi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 20px 15px;
        gap: 16px;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #nav-cta {
        width: 100%;
        max-width: 280px;
    }

    /* Mobile Hero Typography and Layout Improvements */
    .hero {
        padding: 140px 0 60px 0;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
        padding-top: 24px;
    }

    .stat-item h4 {
        font-size: 1.75rem;
    }

    /* Mobile Sandbox Controls Wrapping */
    .sandbox-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
    }

    .sandbox-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 15px;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-about p {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 24px 15px 0 15px;
    }
    
    .testimonials-carousel {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}
