:root {
    /* Brand Colors */
    --primary: #006BFC;
    --primary-rgb: 0, 107, 252;
    --bg-white: #FFFFFF;
    --text-primary: #111827;
    --text-secondary: #64748B;
    
    /* Glass & Gradients */
    --primary-soft: rgba(0, 107, 252, 0.06);
    --border-color: rgba(0, 107, 252, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-shine: linear-gradient(120deg, transparent, rgba(255,255,255,0.8), transparent);
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0,0,0,0.05);
    --hover-shadow: 0 10px 25px -5px rgba(0, 107, 252, 0.15), 0 8px 10px -6px rgba(0, 107, 252, 0.05);
    --cta-shadow: 0 4px 14px 0 rgba(0, 107, 252, 0.25);
    
    /* Safe Areas */
    --sat: env(safe-area-inset-top, 40px);
    --sab: env(safe-area-inset-bottom, 40px);
}

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

body {
    font-family: "Inter", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Background System
   ========================================================================== */

.animated-grid {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -3;
    background-image:
        linear-gradient(rgba(0,107,252,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,107,252,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    opacity: 0.6;
    pointer-events: none;
}

.ambient-glow-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--primary-soft);
}

.ambient-glow-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(0, 107, 252, 0.03);
}

.cursor-spotlight {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 107, 252, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

/* ==========================================================================
   Language Switcher
   ========================================================================== */

.language-switcher-container {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 4px;
    box-shadow: var(--shadow-soft);
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 32px;
    min-width: 44px; /* Mobile touch target */
    font-family: inherit;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 107, 252, 0.2);
}

.lang-divider {
    width: 1px;
    height: 14px;
    background: var(--border-color);
    margin: 0 2px;
}

.lang-transition {
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

/* ==========================================================================
   Layout Container
   ========================================================================== */

.container {
    width: min(92%, 600px); /* Strictly limited width per PRD */
    margin-inline: auto;
    padding: max(80px, calc(var(--sat) + 40px)) max(16px, env(safe-area-inset-right)) max(40px, var(--sab)) max(16px, env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between major sections */
    transition: opacity 0.2s ease;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes cinematicEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes logoFloat {
    0% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(0, 107, 252, 0)); }
    50% { transform: translateY(-6px); filter: drop-shadow(0 8px 16px rgba(0, 107, 252, 0.4)); }
    100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(0, 107, 252, 0)); }
}

@keyframes logoPulse {
    0% { filter: drop-shadow(0 0 0 rgba(0, 107, 252, 0)); }
    50% { filter: drop-shadow(0 4px 12px rgba(0, 107, 252, 0.2)); }
    100% { filter: drop-shadow(0 0 0 rgba(0, 107, 252, 0)); }
}

.cinematic-entrance {
    animation: cinematicEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-1 {
    animation-delay: 0.15s;
}

/* Reveal Items - start off invisible via CSS, but JS will immediately show them 
   if intersection observer is not supported, or gracefully reveal them. */
.reveal-item {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Fallback for disabled JS / reduced motion */
.revealed-static {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ==========================================================================
   Sections Typography & Layout
   ========================================================================== */

.dynamic-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.01em;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   Shared Components
   ========================================================================== */

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.glass-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

/* Glass Shine */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--glass-shine);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .glass-card:hover {
        border-color: rgba(0, 107, 252, 0.3);
        box-shadow: var(--hover-shadow);
        z-index: 2;
    }
    
    .glass-card:hover::before {
        left: 150%;
        opacity: 1;
        transition: left 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .glass-card:hover .card-icon {
        background: var(--primary);
        color: #fff;
        transform: scale(1.05);
    }

    .glass-card:hover .card-arrow {
        opacity: 1;
        color: var(--primary);
        transform: translateX(4px);
    }
}

.glass-card:active {
    transform: scale(0.98) !important;
}

/* ==========================================================================
   Brand Section (Hero)
   ========================================================================== */

.brand-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.logo-container {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
}

.animated-logo {
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.trust-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.brand-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 320px;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Main CTA */
.primary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 20px 24px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--cta-shadow);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .primary-cta:hover {
        box-shadow: 0 8px 24px rgba(0, 107, 252, 0.35);
        filter: brightness(1.05);
    }
}

.primary-cta:active {
    transform: scale(0.98) !important;
}

.cta-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .primary-cta:hover .cta-arrow {
        transform: translateX(4px);
    }
}

/* ==========================================================================
   Social Cards & Card Content
   ========================================================================== */

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-content {
    flex-grow: 1;
    z-index: 2; /* Keep text above shine */
    text-align: left;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.card-title {
    font-weight: 600;
    font-size: 1.05rem;
}

.link-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-arrow {
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
}


/* ==========================================================================
   Share
   ========================================================================== */

.share-btn {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--border-color);
    padding: 16px;
    justify-content: center;
    gap: 12px;
    font-size: 1.05rem;
}

.share-btn .card-icon {
    width: 36px;
    height: 36px;
    margin-right: 0;
}

.share-btn .card-content {
    flex-grow: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    text-align: center;
    padding: 40px 0 20px 0;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-social-links {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    line-height: 1.5;
}




/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animated-grid {
        transform: none !important;
    }
    
    .glass-card, .primary-cta {
        transform: none !important;
    }
    
    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .animated-logo {
        animation: logoPulse 6s ease-in-out infinite !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 480px) {
    .container {
        padding: max(70px, calc(var(--sat) + 30px)) max(16px, env(safe-area-inset-right)) max(30px, var(--sab)) max(16px, env(safe-area-inset-left));
        gap: 32px;
    }
    
    .primary-cta {
        padding: 16px 20px;
        font-size: 1.05rem;
    }
}



/* For landscape mobile to prevent squishing */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding-top: max(60px, calc(var(--sat) + 20px));
        padding-bottom: 20px;
        gap: 24px;
    }
}
