/* Custom Unique Variables Theme configuration */
:root {
    --z-body-bg: #f8fafc;
    --z-card-bg: #f1f5f9; /* Soft tint framework wrapper background */
    --z-surface-bg: #ffffff;
    --z-border-line: #cbd5e1;
    --z-text-dark: #0f172a;
    --z-text-paragraph: #475569;
    --z-text-muted: #64748b;
    
    /* Core Accent Palette mimicking uploaded asset layout */
    --z-accent-green: #e2f2ed;
    --z-text-green: #0d684d;
    --z-star-bg: #15803d;


    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --surface: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
    --radius-round: 9999px;
    --radius-box: 16px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    
    /* Button Colors */
    --z-color-danger: #dc2626;
    --z-color-success: #16a34a;
    --z-color-dark: #003333;
    
    /* Global Rounding Definition */
    --z-radius-main: 8px;
    --z-font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--z-body-bg);
    font-family: var(--z-font-stack);
    color: var(--z-text-dark);
    line-height: 1.6;
    padding-bottom: 0px;
}

/* ================= UTILITIES ================= */
.sub-title {
    display: block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.text-center { text-align: center; }

/* ================= NAVIGATION BAR ================= */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 5%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo span { color: var(--primary); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.menu li { position: relative; }

.menu li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    transition: var(--transition);
}

.menu li a:hover, .menu li a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.arrow-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* --- Desktop Dropdown System (Width > 768px) --- */
@media (min-width: 769px) {
    .menu .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--surface);
        min-width: 240px;
        list-style: none;
        border-radius: 12px;
        padding: 8px;
        margin-top: 4px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
    }

    .menu .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 0;
        width: 100%;
        height: 12px;
    }

    .menu li:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }

    .dropdown-menu .dropdown-sub-menu,
    .dropdown-sub-menu .dropdown-deep-menu {
        display: none;
        position: absolute;
        right: 100%;
        top: -8px;
        background: var(--surface);
        min-width: 240px;
        list-style: none;
        border-radius: 12px;
        padding: 8px;
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--border-color);
        margin-right: 4px;
    }

    .dropdown-menu .dropdown-sub-menu::before,
    .dropdown-sub-menu .dropdown-deep-menu::before {
        content: '';
        position: absolute;
        top: 0;
        right: -12px;
        width: 12px;
        height: 100%;
    }

    .dropdown-sub:hover > .dropdown-sub-menu,
    .dropdown-sub-inner:hover > .dropdown-deep-menu {
        display: block;
        animation: fadeIn 0.15s ease-out;
    }
}


/* ================= PREMIUM HERO & CANALS LAYER ================= */
:root {
    --hero-bg-dark: #0f172a;
    --hero-bg-blue: #1e40af;
    --doodle-color: #F2F3F3;
    --radius-premium: 12px;
}

.hero-premium {
    padding: 160px 5% 200px;
    text-align: center;
    background: radial-gradient(circle at 80% 20%, var(--hero-bg-blue), var(--hero-bg-dark) 75%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#premiumDoodleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Isolating backdrop layer to ensure perfect contrast behind text */
.hero-backdrop-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, transparent 80%);
    z-index: 2;
    pointer-events: none;
}

.hero-premium-content {
    max-width: 840px;
    margin: 0 auto;
    position: relative;
    z-index: 3; /* Completely forces copy stacks over the interactive graphics */
}

.hero-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #38bdf8;
    margin-bottom: 20px;
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
}

.hero-premium h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-premium p {
    font-size: 19px;
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* Premium Button Architecture */
.btn-primary {
    background: #2563eb;
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-premium);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--radius-premium);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .hero-premium { padding: 120px 5% 140px; }
    .hero-premium h1 { font-size: 38px; }
    .hero-premium p { font-size: 16px; }
    .hero-cta-group { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn-primary, .btn-secondary { width: 100%; }
}

/* ================= FLOATING SEARCH AREA ================= */
.search-section {
    padding: 0 5%;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}


.search-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-box);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.search-container h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.search-container form {
    display: grid;
    grid-template-columns: repeat(3, 15fr) 10fr;
    gap: 16px;
    align-items: center;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '▾';
    font-size: 12px;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-main);
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f1f5f9;
}

select:focus:not(:disabled) {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-container button {
    width: 100%;
    padding: 14px;
    background-color: #223669;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover { background-color: #0F172A; }




/* ================= POPULAR BUBBLES SECTION ================= */
.popular {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 5% 50px;
    text-align: center;
}

.popular h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.bubble-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.bubble {
    padding: 12px 28px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-round);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
}

.bubble:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ================= FAQ BLOCK SECTION ================= */
.faq {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 5%;
}

.faq h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 36px;
    letter-spacing: -0.5px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-box {
    background: var(--surface);
    padding: 24px 30px;
    border-radius: var(--radius-box);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.faq-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-box p {
    color: var(--text-muted);
    font-size: 15px;
}





/* ================= FOOTER COMPONENT ================= */
footer {
    background: #0f172a;
    color: #f8fafc;
    padding-top: 80px;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 0 5% 60px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1.5;
    min-width: 260px;
}

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand h2 span { color: var(--primary); }

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    flex: 1;
    min-width: 180px;
}

.footer-links h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul { list-style: none; }

.footer-links li { margin: 12px 0; }

.footer-links li a {
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: white;
    padding-left: 4px;
}

.credits {
    text-align: center;
    padding: 24px 5%;
    font-size: 15px;
    color: #64748b;
    border-top: 1px solid #1e293b;
    background: #0b0f19;
}


.foot-disclaimer {
    font-size: 0.7rem;
    margin-top: 10%;
    color: #7e96b0;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= MOBILE TARGET RESPONSIVE SYSTEM ================= */
@media (max-width: 992px) {
    .search-container form { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Primary Container Navigation Hidden Offscreen Initially */
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        padding: 10px 0;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
        gap: 0;
    }

    .menu.active {
        display: flex;
    }

    .menu li {
        width: 100%;
    }

    .menu li a {
        width: 100%;
        padding: 14px 24px;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
    }

    /* Native-like Accordion Trees for Mobile Devices */
    .menu .dropdown-menu,
    .dropdown-menu .dropdown-sub-menu,
    .dropdown-sub-menu .dropdown-deep-menu {
        display: none; /* Controlled exclusively by clicking headers */
        position: static;
        width: 100%;
        background: #f8fafc;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    /* Sub-levels get slightly darker backgrounds to distinguish depth */
    .dropdown-menu .dropdown-sub-menu { background: #f1f5f9; }
    .dropdown-sub-menu .dropdown-deep-menu { background: #e2e8f0; }

    /* Open Class triggered by JS click updates */
    .menu .open-active {
        display: block !important;
    }

    /* Rotate icons downwards when an accordion row is open */
    .arrow-rotate > .arrow-icon {
        transform: rotate(90deg);
    }

    .hero h1 { font-size: 34px; }
    .search-container form { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; gap: 36px; }
}


/* ================= ABOUT US SECTION ================= */
.about-us-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 5% 60px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-brand-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}

.about-brand-visual::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: -1;
    top: -20px;
    left: -20px;
    filter: blur(20px);
}

.visual-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 40px 24px;
    border-radius: var(--radius-box);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.accent-card {
    background: #0f172a;
    border-color: #1e293b;
    margin-top: 30px;
}

.visual-metric {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.accent-card .visual-metric {
    color: white;
}

.visual-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.accent-card .visual-label {
    color: #94a3b8;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.about-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ================= ABOUT US MOBILE RESPONSIVE ================= */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .accent-card {
        margin-top: 0;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .about-brand-visual {
        grid-template-columns: 1fr;
    }
}