:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --text-main: #0a1128;
    --text-secondary: #4b5563;
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --success: #10b981;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-padding {
    padding: 6rem 0;
}

/* Navbar */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-img {
    transform: translateY(-1px) rotate(-5deg);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.chevron {
    font-size: 0.8rem;
    margin-left: 0.25rem;
    transition: transform 0.3s;
    display: inline-block;
}

.nav-item {
    position: relative;
    padding: 1rem 0;
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    min-width: 450px;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.nav-item:hover .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.megamenu-content {
    display: grid;
    gap: 1rem;
}

.mega-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    align-items: flex-start;
}

.mega-item:hover {
    background: var(--bg-alt);
    transform: translateX(5px);
}

.mega-icon {
    font-size: 1.5rem;
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.mega-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.mega-desc {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9rem;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.2);
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--text-main);
    color: rgba(255, 255, 255, 0.7);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-heading {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0; left: auto;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1050;
    padding: 0;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.mobile-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

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

.mobile-close-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: bold;
    cursor: pointer; transition: all 0.2s;
}

.mobile-close-btn:hover {
    background: #ef4444; color: white;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding-left: 1.75rem;
        padding-right: 1.75rem;
    }

    h1 {
        font-size: 2.8rem !important;
    }

    .hero h1 {
        font-size: 3rem !important;
    }
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .logo-img {
        height: 28px !important;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        max-width: 100%;
    }

    .section-padding {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    .hero h1 {
        font-size: 1.85rem !important;
        line-height: 1.2;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .megamenu {
        display: none;
    }
    
    .start-grid, .poe-feature-grid, .partner-grid, .value-grid {
        grid-template-columns: 1fr !important;
    }
    
    .legal-container {
        padding: 1.5rem 1rem !important;
    }

    .mobile-toggle {
        display: flex;
        z-index: 2000;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 24px !important;
    }

    .hero h1 {
        font-size: 1.6rem !important;
    }
    
    .hero p {
        font-size: 0.9rem !important;
    }
}

/* Base Application Modules Layout Architecture */
.layout-sidebar-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.layout-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

@media (max-width: 992px) {
    .layout-sidebar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .layout-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }
}
