:root {
    --primary: #0A3D2E;
    --primary-dark: #06261D;
    --primary-light: #125742;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --bg: #FDFBF7;
    --surface: #FFFFFF;
    --card: #F9F6EE;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border: #E8E2D5;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ==================== Header & Navigation ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(10, 61, 46, 0.05);
}

.header-top-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(217,119,6,0.3) 0%, rgba(10,61,46,0.2) 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: var(--primary);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.brand-tagline {
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

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

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 6px 2px;
    transition: color 0.2s ease;
}

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

.nav-links a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(10, 61, 46, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease !important;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 61, 46, 0.22);
}

.btn-nav.active::after {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: #F4F1EA;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
    transition: all 0.2s ease;
}

.nav-toggle:active {
    transform: scale(0.95);
    background: #EAE5D9;
}

.nav-toggle .bar {
    width: 18px;
    height: 2.2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(6.2px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(4px);
}
.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-6.2px) rotate(-45deg);
}

/* ==================== Hero Section & Download Cards ==================== */
.hero {
    padding: 50px 0 45px;
    background: linear-gradient(180deg, #FDFBF7 0%, #F5EFE0 100%);
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

.badge-new {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 38px;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 14px;
    font-weight: 800;
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Download Box Group */
.download-box-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    max-width: 480px;
}

/* Google Play Store Badge Card */
.store-badge-card {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.store-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
}

.store-status {
    font-size: 11.5px;
    color: #D97706;
    font-weight: 600;
}

.btn-playstore {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

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

/* Direct APK Download Card */
.apk-download-card {
    width: 100%;
}

.btn-direct-apk {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(10, 61, 46, 0.25);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-direct-apk:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 61, 46, 0.35);
}

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

.btn-top-txt {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.btn-sub-txt {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.hero-actions-secondary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-actions-secondary a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
}

.link-features {
    color: var(--primary);
}

.link-privacy {
    color: var(--text-muted);
}

.link-features:hover, .link-privacy:hover {
    text-decoration: underline;
}

.hero-preview {
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
}

.phone-frame img {
    width: 100%;
    max-width: 290px;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
    border: 4px solid #fff;
    display: block;
}

/* ==================== Features Section ==================== */
.features {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 800;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.f-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.f-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.f-card .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.f-card h3 {
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 700;
}

.f-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
}

/* ==================== Telegram & Play Store Modal ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: #FDFBF7;
    border-bottom: 1px solid var(--border);
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-wrap h3 {
    font-size: 18px;
    color: var(--primary);
    font-weight: 800;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 22px;
}

.modal-desc {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.5;
}

.telegram-quick-box {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tg-info strong {
    color: #0369A1;
    display: block;
    font-size: 14px;
}

.tg-info span {
    color: #0C4A6E;
    font-size: 12.5px;
}

.btn-tg-chat {
    background: #0088cc;
    color: #FFFFFF;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.btn-tg-chat:hover {
    background: #0077b5;
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 18px 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E2E8F0;
    z-index: 1;
}

.divider-text span {
    background: #FFFFFF;
    position: relative;
    z-index: 2;
    padding: 0 12px;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #F8FAFC;
    color: #0F172A;
    transition: border 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #FFFFFF;
}

.form-status {
    font-size: 13.5px;
    margin-bottom: 12px;
}

.form-status.success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 10px;
    border-radius: 8px;
}

.form-status.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 10px;
    border-radius: 8px;
}

.btn-download-now {
    display: inline-block;
    background: var(--primary);
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    margin-top: 6px;
}

.modal-footer-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.btn-submit-request {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #FFFFFF;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.btn-submit-request:hover {
    opacity: 0.95;
}

.btn-fallback-apk {
    background: #F1F5F9;
    color: #334155;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-fallback-apk:hover {
    background: #E2E8F0;
}

/* ==================== Legal Pages (Privacy & Terms) ==================== */
.legal-page {
    padding: 40px 0 60px;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.legal-card h1 {
    color: var(--primary);
    font-size: 30px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.last-updated {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.legal-card h2 {
    color: var(--primary-light);
    font-size: 20px;
    margin: 24px 0 10px;
    font-weight: 700;
}

.legal-card p, .legal-card ul {
    margin-bottom: 14px;
    color: #334155;
    font-size: 15.5px;
}

.legal-card ul {
    padding-left: 20px;
}

.legal-card li {
    margin-bottom: 6px;
}

.legal-card code {
    background: #F1EFEA;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: #B45309;
}

/* ==================== Footer ==================== */
.footer {
    background: #06261D;
    color: #E2E8F0;
    padding: 45px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 36px;
    margin-bottom: 28px;
}

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

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

.footer-col h3 {
    color: #fff;
    font-size: 19px;
}

.footer-col p {
    color: #94A3B8;
    font-size: 14.5px;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 14px;
    font-size: 17px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 14.5px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13.5px;
    color: #94A3B8;
}

/* ==================== Mobile Responsiveness ==================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .download-box-hero {
        margin: 0 auto 24px;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 10px 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        align-items: stretch;
        padding: 18px 20px 24px;
        gap: 8px;
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 16px 32px rgba(10, 61, 46, 0.12);
        display: none;
        animation: fadeInSlide 0.2s ease-out forwards;
    }

    @keyframes fadeInSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    .nav-links a {
        padding: 12px 14px;
        font-size: 16px;
        border-radius: 8px;
        border-bottom: none;
    }

    .nav-links a:hover, .nav-links a.active {
        background: #F7F5EE;
    }

    .nav-links a.active::after {
        display: none;
    }

    .btn-nav {
        text-align: center;
        justify-content: center;
        padding: 12px !important;
        margin-top: 6px;
    }

    .hero {
        padding: 30px 0 26px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    .store-badge-card {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        text-align: left;
    }

    .btn-playstore {
        justify-content: center;
    }

    .hero-preview img {
        max-width: 250px;
    }

    .features {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .modal-card {
        margin: 10px;
    }
}
