:root {
    /* Blue/Red Theme Palette */
    --color-primary: #2C5298;
    /* Blue from logo */
    --color-primary-light: #4c72b8;
    /* Lighter Blue */
    --color-primary-dark: #1b3566;
    /* Darker Blue */
    --color-secondary: #ebf2ff;
    /* Very pale blue */
    --color-accent: #DB3831;
    /* Red from logo */
    --color-text-main: #1f2937;
    --color-text-light: #6b7280;
    --color-bg-white: #ffffff;
    --color-bg-off-white: #f9fafb;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-off-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Increased to be above everything */
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Navbar Buttons */
.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
}

.nav-btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.nav-btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.nav-btn-outline:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    color: var(--color-primary-dark);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 90px;
    left: 0;
    background-color: var(--color-bg-white);
    min-width: 250px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 8px 8px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-top: 2px solid var(--color-primary);
}

.mega-menu {
    width: 600px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    /* Center aligning logic */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-bg-white);
    z-index: 1100;
    /* Higher than navbar */
    box-shadow: var(--shadow-lg);
}

.mega-menu-3-cols {
    width: 900px;
    grid-template-columns: repeat(3, 1fr);
}

.nav-item:hover .dropdown-menu {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

.nav-item:hover .mega-menu {
    display: grid;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-left: 10px;
}

.dropdown-item {
    padding: 10px 15px;
    color: var(--color-text-main);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-text-main);
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.hero-content {
    flex: 1.2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 16px 32px;
    background-color: white;
    color: var(--color-primary);
    font-weight: bold;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: #f8f9fa;
}

.hero-btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Video Wrapper */
.hero-video-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.video-container {
    width: 100%;
    max-width: 700px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #000;
    line-height: 0;
}

.device-mockup {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.device-mockup iframe,
.device-mockup video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    /* Aggressive scale to hide internal player gaps */
    border: none;
    display: block;
}

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-video-wrapper {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    /* .hero-video-wrapper {
        display: block;
        margin-top: 20px;
    } */

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Features Grid */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-label {
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 20px;
}

.grid-fixed-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 20px;
}

@media (max-width: 900px) {
    .grid-fixed-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid-fixed-3 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-secondary);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    color: #111;
}

.card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Feature Detail Page */
.page-header {
    background-color: var(--color-primary);
    color: white;
    padding: 80px 0;
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
}

.back-link:hover {
    color: white;
}

.detail-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.sidebar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h3 {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-link {
    display: block;
    padding: 10px;
    color: var(--color-text-light);
    border-radius: 6px;
    margin-bottom: 5px;
}

.sidebar-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Footer */
footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 80px;
    }

    .navbar .logo img {
        height: 60px !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        z-index: 2000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-item {
        height: auto;
        padding: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-link {
        width: 100%;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: white;
        cursor: pointer;
    }

    .nav-link i[data-lucide="chevron-down"] {
        transition: transform 0.3s ease;
    }

    .nav-item.open>.nav-link i[data-lucide="chevron-down"] {
        transform: rotate(180deg);
    }

    .dropdown-menu,
    .mega-menu,
    .mega-menu-3-cols {
        position: static;
        width: 100%;
        transform: none;
        display: none;
        /* Controlled by .open class */
        grid-template-columns: 1fr;
        padding: 5px 0 10px 25px;
        /* Indented for hierarchy */
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--color-primary);
        background-color: #f8fafc;
    }



    .dropdown-item {
        padding: 10px 15px;
        /* Significantly reduced height */
        margin: 0;
        font-size: 14px;
        min-height: 44px;
        /* Optimal for touch */
    }

    .dropdown-item i {
        width: 16px !important;
        height: 16px !important;
    }

    .nav-item:hover .dropdown-menu,
    .nav-item:hover .mega-menu {
        display: none;
    }

    .nav-item.open .dropdown-menu,
    .nav-item.open .mega-menu {
        display: grid;
    }

    .nav-item.open>.nav-link {
        color: var(--color-primary);
        font-weight: 600;
        background-color: var(--color-secondary);
    }

    .nav-btn {
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: block;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 40px;
    }

    .highlights-grid {
        grid-template-columns: 1fr !important;
    }
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}