:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #6366f1;
    --success: #10b981;
    --danger: #ef4444;
    --bkash: #E2136E;
    --dark: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gray-50);
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge {
    font-size: 10px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-top: 2px;
    display: inline-block;
}

.btn-primary {
    background: var(--danger);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.highlight {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.btn-hero {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    padding: 18px 44px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 35px -8px rgba(0, 0, 0, 0.3);
}

/* Section headings */
.section-title {
    font-size: 38px;
    font-weight: 900;
    text-align: center;
    color: var(--gray-900);
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

/* Features */
.features {
    padding: 80px 0;
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 15px;
}

/* Videos */
.videos {
    padding: 80px 0;
    background: var(--white);
}

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

.video-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gray-900);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
}

.video-wrapper img,
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.video-lazy {
    cursor: pointer;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    padding-left: 4px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    pointer-events: none;
}

.video-lazy:hover .video-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: var(--danger);
}

.video-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.video-card p {
    color: var(--gray-600);
    font-size: 15px;
    margin-bottom: 12px;
}

.video-link {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.video-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Pricing */
.pricing {
    padding: 80px 0;
}

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

.pricing-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    padding: 44px 28px 32px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.35);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow);
}

.pricing-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 14px;
}

.pricing-price {
    margin-bottom: 26px;
    line-height: 1.1;
}

.price-currency {
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-600);
    vertical-align: top;
}

.price-amount {
    font-size: 54px;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -2px;
}

.price-period {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-top: 6px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 26px;
}

.pricing-features li {
    padding: 9px 0;
    font-size: 15px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
    border-bottom: 0;
}

.btn-buy {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    border: 0;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-bkash-manual {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: var(--white);
    color: var(--bkash);
    border: 2px solid var(--bkash);
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-bkash-manual:hover {
    background: var(--bkash);
    color: var(--white);
}

/* Payment modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.65);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 20px;
    padding: 40px 32px 32px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.payment-modern h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.payment-modern p {
    color: var(--gray-600);
    font-size: 15px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.payment-step {
    display: none;
}

.payment-step.active {
    display: block;
}

.payment-icon {
    font-size: 46px;
    margin-bottom: 10px;
}

.payment-summary {
    margin-bottom: 24px;
}

.payment-summary strong {
    color: var(--gray-900);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option strong {
    display: block;
    font-weight: 700;
}

.payment-option small {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 500;
}

.payment-option span:nth-child(2) {
    flex: 1;
}

.payment-option-icon {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    background: var(--gray-100);
}

.payment-option-arrow {
    flex: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-300);
    transition: all 0.3s;
}

.payment-option:hover .payment-option-arrow {
    transform: translateX(4px);
}

.payment-option-online:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.payment-option-online:hover .payment-option-arrow {
    color: var(--primary);
}

.payment-option-online .payment-option-icon {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

.payment-option-bkash:hover {
    border-color: var(--bkash);
    background: #fdf2f8;
}

.payment-option-bkash:hover .payment-option-arrow {
    color: var(--bkash);
}

.payment-option-bkash .payment-option-icon {
    background: var(--bkash);
    color: var(--white);
}

.secure-note {
    font-size: 13px;
    color: var(--gray-600);
}

/* Shown only when the online gateway failed and we redirected the customer
   here. Deliberately choosing manual bKash keeps it hidden. */
.gateway-notice {
    text-align: left;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 5px solid #f59e0b;
    border-radius: 10px;
    padding: 13px 15px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #78350f;
}

.gateway-notice[hidden] {
    display: none;
}

/* Manual bKash instructions */
.instruction-box {
    text-align: left;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
}

.manual-bkash-box {
    background: #fdf2f8;
    border-color: #f9a8d4;
}

.instruction-step {
    font-size: 14.5px;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.phone-number {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--bkash);
    text-align: center;
    background: var(--white);
    border: 2px dashed var(--bkash);
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    user-select: all;
    -webkit-user-select: all;
}

/* Forms */
.payment-form {
    text-align: left;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--gray-900);
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder {
    color: var(--gray-300);
}

.btn-submit {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    border: 0;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-back {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: transparent;
    color: var(--gray-600);
    border: 0;
    padding: 12px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* Loading */
.loading-spinner {
    width: 52px;
    height: 52px;
    margin: 6px auto 22px;
    border: 5px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Manual submission confirmation */
.contact-box {
    text-align: left;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
}

.manual-success-box {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.contact-box p {
    font-size: 14.5px;
    margin-bottom: 10px;
}

.info-to-send {
    white-space: pre-line;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 14px;
    word-break: break-word;
    user-select: all;
    -webkit-user-select: all;
}

.btn-whatsapp {
    display: block;
    background: #25D366;
    color: var(--white);
    padding: 16px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.manual-close-btn {
    margin-top: 8px;
}

/* How it works */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
}

.step {
    text-align: center;
    padding: 12px;
}

.step-number {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
}

.step h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step p {
    color: var(--gray-600);
    font-size: 15px;
}

/* Download */
.download {
    padding: 80px 0 100px;
}

.download-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 44px 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.download-card h2 {
    font-size: 32px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}

.download-card p {
    color: var(--gray-600);
    font-size: 16px;
    margin-bottom: 26px;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 5px solid #f59e0b;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.warning-icon {
    font-size: 24px;
    flex: none;
    line-height: 1.2;
}

.warning-content p {
    margin: 0;
    font-size: 15px;
    color: #78350f;
}

.warning-content strong {
    color: #7c2d12;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
    padding: 17px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

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

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 56px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
}

.footer-section h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 14.5px;
    margin-bottom: 7px;
}

.footer-section a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 600;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-stats {
        gap: 36px;
    }

    .section-title {
        font-size: 32px;
    }
}

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

    .header-content {
        gap: 12px;
    }

    .logo {
        font-size: 17px;
        gap: 10px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 21px;
    }

    .btn-primary {
        padding: 9px 16px;
        font-size: 13px;
    }

    .hero {
        padding: 56px 0 72px;
    }

    .hero-title {
        font-size: 33px;
    }

    .hero-subtitle {
        font-size: 16.5px;
        margin-bottom: 32px;
    }

    .hero-stats {
        gap: 28px;
        margin-bottom: 32px;
    }

    .stat-number {
        font-size: 28px;
    }

    .btn-hero {
        display: block;
        padding: 16px 24px;
        font-size: 17px;
    }

    .features,
    .videos,
    .pricing,
    .how-it-works {
        padding: 56px 0;
    }

    .download {
        padding: 56px 0 72px;
    }

    .section-title {
        font-size: 27px;
        margin-bottom: 34px;
    }

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

    .price-amount {
        font-size: 46px;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        padding: 34px 20px 24px;
        border-radius: 16px;
        max-height: 94vh;
    }

    .payment-modern h3 {
        font-size: 21px;
    }

    .phone-number {
        font-size: 22px;
    }

    .download-card {
        padding: 32px 20px;
    }

    .download-card h2 {
        font-size: 26px;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 16px;
    }
}
