/* ============================================================
   Staxo Bills Landing Page - Premium CSS
   Theme: White + Emerald Green (#00695C) + Dark (#0D1B1E)
   ============================================================ */


@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
    --emerald: #00695C;
    --emerald-light: #00897B;
    --emerald-dark: #004D40;
    --emerald-glow: rgba(0, 105, 92, 0.15);
    --dark: #0D1B1E;
    --dark-lighter: #1A2F33;
    --white: #FFFFFF;
    --off-white: #F8FAF9;
    --text-primary: #1A1A2E;
    --text-secondary: #5A5A7A;
    --text-light: #8A8AA0;
    --border: #E8ECE9;
    --green-tint: #F0FAF8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-emerald: 0 8px 30px rgba(0, 105, 92, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-urdu: 'Noto Naskh Arabic', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.urdu { font-family: var(--font-urdu); direction: rtl; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.nav-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--emerald);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-brand-icon svg { width: 18px; height: 18px; color: white; }

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--emerald);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--emerald); }
.nav-links a:hover::after { width: 100%; }

.nav-login {
    padding: 10px 24px;
    background: var(--emerald);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.nav-login:hover {
    background: var(--emerald-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-emerald);
}

.nav-login::after { display: none !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

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

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 60px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--green-tint) 50%, var(--white) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 105, 92, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 105, 92, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero-text h1 .highlight { color: var(--emerald); }

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

.hero-subtitle-urdu {
    font-family: var(--font-urdu);
    direction: rtl;
    text-align: right;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 36px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--emerald);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-emerald);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: var(--emerald);
    border: 2px solid var(--emerald);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--emerald);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-frame {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.mockup-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mockup-topbar {
    height: 36px;
    background: var(--dark);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F56;
}

.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #27C93F; }

.mockup-screen {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--green-tint) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 20px;
}

.mockup-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ SECTIONS ============ */
section { padding: 100px 60px; }

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

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header .urdu-subtitle {
    font-family: var(--font-urdu);
    direction: rtl;
    font-size: 1.15rem;
    color: var(--text-light);
}

/* ============ SCREENSHOT SLIDER ============ */
.screenshots { background: var(--off-white); }

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    min-width: 340px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.slider-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.slider-slide .caption {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover { background: var(--emerald); color: var(--white); border-color: var(--emerald); }
.slider-btn.prev { left: -20px; }
.slider-btn.next { right: -20px; }

/* ============ FEATURES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 36px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--green-tint);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--emerald);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-card .urdu-title {
    font-family: var(--font-urdu);
    direction: rtl;
    text-align: right;
    font-size: 0.95rem;
    color: var(--emerald);
    margin-bottom: 12px;
}

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

/* ============ PRICING ============ */
.pricing { background: var(--off-white); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border-color: var(--emerald);
    box-shadow: var(--shadow-emerald);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover { transform: scale(1.05) translateY(-4px); }

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--emerald);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-card .plan-urdu {
    font-family: var(--font-urdu);
    direction: rtl;
    text-align: right;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--emerald);
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li svg { color: var(--emerald); flex-shrink: 0; }

.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid var(--emerald);
    color: var(--emerald);
    background: transparent;
    font-family: var(--font-body);
}

.pricing-btn:hover {
    background: var(--emerald);
    color: var(--white);
    transform: translateY(-1px);
}

.pricing-card.popular .pricing-btn {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
}

.pricing-card.popular .pricing-btn:hover {
    background: var(--emerald-dark);
    box-shadow: var(--shadow-emerald);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 60px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .nav-brand { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--emerald-light); }

.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25D366;
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
    transition: var(--transition);
}

.whatsapp-btn:hover { background: #1EB353; transform: translateY(-1px); }

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

.footer-bottom .powered { font-style: italic; color: rgba(255,255,255,0.4); }

/* ============ FREE TRIAL BANNER ============ */
.trial-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 18px 40px;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.trial-banner.visible { bottom: 0; }

.trial-banner p { font-size: 1rem; font-weight: 500; }
.trial-banner .urdu { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-left: 12px; }

.trial-banner .btn-primary { padding: 10px 24px; font-size: 0.9rem; }

.trial-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1.2rem;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 90%;
    max-width: 480px;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.modal .modal-urdu {
    font-family: var(--font-urdu);
    direction: rtl;
    text-align: right;
    color: var(--text-light);
    margin-bottom: 24px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px var(--emerald-glow);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.modal .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }

.success-message {
    text-align: center;
    padding: 20px 0;
    display: none;
}

.success-message svg { color: var(--emerald); margin-bottom: 12px; }
.success-message p { color: var(--text-secondary); }

/* ============ ANIMATIONS ============ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-text h1 { font-size: 2.8rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
    .pricing-card.popular { transform: scale(1); }
}

@media (max-width: 768px) {
    section { padding: 60px 20px; }
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }
    .hamburger { display: flex; }
    .hero { padding: 100px 20px 60px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-mockup { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.8rem; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .trial-banner { flex-direction: column; gap: 12px; padding: 16px 20px; }
}
