/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (LIGHT MODE REDESIGN)
   ========================================================================== */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.16);
    
    --accent-cyan: #0891b2;
    --accent-cyan-glow: rgba(8, 145, 178, 0.15);
    --accent-indigo: #4f46e5;
    --accent-indigo-glow: rgba(79, 70, 229, 0.15);
    --accent-violet: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #0891b2 0%, #4f46e5 50%, #7c3aed 100%);
    --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --success: #059669;
    --success-glow: rgba(5, 150, 105, 0.15);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 4px 20px rgba(79, 70, 229, 0.08);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-full: 9999px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Blinker', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input {
    font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   COMMON UTILITIES & TEXT GRADIENTS
   ========================================================================== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ==========================================================================
   STATUS BANNER
   ========================================================================== */
.status-banner {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-glass);
    padding: 8px 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 100;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: var(--radius-full);
    box-shadow: 0 0 8px var(--success);
    display: inline-block;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background-color: var(--success);
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
}

.status-text {
    color: var(--text-secondary);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: var(--transition-normal);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-img {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition-normal);
}

.logo-link:hover .header-logo-img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 80px 0 60px 0;
    text-align: center;
    overflow: hidden;
}

.hero-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, rgba(6, 182, 212, 0.03) 50%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Search Wrapper & Input styling */
.search-wrapper {
    width: 100%;
    max-width: 620px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(79, 70, 229, 0);
    transition: var(--transition-normal);
}

.search-bar:focus-within {
    border-color: var(--accent-indigo);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.search-bar:focus-within .search-icon {
    color: var(--accent-cyan);
}

.search-bar input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 14px 16px 14px 48px;
    font-size: 1rem;
    font-weight: 400;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-search:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: var(--border-hover);
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-section {
    padding: 60px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    display: inline-block;
    margin-bottom: 12px;
    background: rgba(8, 145, 178, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(8, 145, 178, 0.15);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    background-image: var(--card-gradient);
    backdrop-filter: blur(16px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Card Glow Effect on Hover (dynamic color mapping via inline CSS custom property) */
.category-card:hover::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--card-color);
    filter: blur(40px);
    opacity: 0.12;
    pointer-events: none;
    border-radius: var(--radius-full);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background-color: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--card-color);
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.category-card:hover .card-icon {
    background-color: var(--card-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1), 0 0 12px var(--card-color);
    transform: scale(1.05);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
    line-height: 1.5;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.card-link i {
    transition: var(--transition-fast);
}

.category-card:hover .card-link {
    color: var(--accent-cyan);
}

.category-card:hover .card-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   FAQS SECTION (ACCORDION WITH DYNAMIC GRID HEIGHT)
   ========================================================================== */
.faqs-section {
    padding: 60px 0;
    background-image: radial-gradient(circle at 50% 100%, rgba(79, 70, 229, 0.02) 0%, transparent 60%);
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 8px auto 0 auto;
    font-size: 1rem;
}

.faq-container {
    max-width: 820px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--border-hover);
    background-color: rgba(255, 255, 255, 0.95);
}

.faq-item.active {
    border-color: var(--accent-indigo);
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.05);
}

/* Trigger / Header button */
.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 22px 28px;
    cursor: pointer;
    color: var(--text-primary);
}

.faq-question {
    font-size: 1.08rem;
    font-weight: 600;
    padding-right: 20px;
    transition: var(--transition-fast);
}

.faq-item:hover .faq-question {
    color: #000000;
}

.faq-item.active .faq-question {
    color: var(--accent-indigo);
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.faq-item:hover .faq-icon-wrapper {
    background-color: rgba(15, 23, 42, 0.06);
    color: var(--text-primary);
}

.faq-item.active .faq-icon-wrapper {
    background-color: var(--accent-indigo);
    color: #ffffff;
    transform: rotate(180deg);
}

/* Perfect pure CSS auto-height transition */
.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content-inner {
    overflow: hidden;
}

.faq-content p {
    color: var(--text-secondary);
    padding: 0 28px 24px 28px;
    font-size: 0.96rem;
    line-height: 1.6;
}

.faq-content ul, .faq-content ol {
    color: var(--text-secondary);
    padding: 0 28px 24px 52px;
    font-size: 0.96rem;
}

.faq-content li {
    margin-bottom: 8px;
}

.faq-content strong {
    color: var(--text-primary);
}

.faq-item.active .faq-content {
    grid-template-rows: 1fr;
}

/* Search Results Feedback */
.no-results-box {
    text-align: center;
    padding: 48px 24px;
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease-out;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results-box h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.no-results-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-helper-text {
    margin-top: 12px;
    font-weight: 500;
    color: var(--accent-cyan) !important;
}

/* ==========================================================================
   SUPPORT CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 60px 0;
    position: relative;
}

.cta-container {
    max-width: 960px;
}

.cta-card {
    position: relative;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-text {
    max-width: 550px;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-text p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.6;
}

.cta-action {
    flex-shrink: 0;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 20px 0;
    margin-top: 40px;
    color: var(--text-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo-link {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

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

.link-group h4 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.link-group a {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.link-group a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    padding-top: 24px;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-icons a:hover {
    background-color: rgba(15, 23, 42, 0.06);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 36px;
        gap: 24px;
    }
    
    .cta-text {
        max-width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .main-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    .search-bar {
        border-radius: var(--radius-md);
    }
    
    .search-bar input {
        padding: 10px 12px 10px 42px;
        font-size: 0.95rem;
    }
    
    .search-icon {
        left: 16px;
    }
    
    .btn-search {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 24px;
    }
    
    .faq-trigger {
        padding: 18px 20px;
    }
    
    .faq-question {
        font-size: 0.98rem;
    }
    
    .faq-content p {
        padding: 0 20px 18px 20px;
        font-size: 0.9rem;
    }
    
    .faq-content ul, .faq-content ol {
        padding: 0 20px 18px 36px;
        font-size: 0.9rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   VIDEO PLAYER SECTION
   ========================================================================== */
.video-section {
    padding: 40px 0;
    position: relative;
    background-image: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.02) 0%, transparent 60%);
}

.video-container-box {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-player-wrapper {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.video-player-wrapper:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.promo-video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background-color: #000000;
}
