/* Meta Light Theme Design Tokens */
:root {
    --bg-white: #FFFFFF;
    --bg-light-gray: #F5F6F8;
    --bg-card: #FFFFFF;
    --text-main: #1C1E21;
    --text-muted: #65676B;
    --upendo-blue: #F8991C;
    --upendo-blue-hover: #F8991A;
    --border-color: rgba(0, 0, 0, 0.08);
    --radius-pill: 9999px;
    --radius-card: 20px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Full Width Navbar Fixed Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-color);
}

/* Inner Navbar Container Aligned to Page Content */
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}



.logo {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo img {
    height: 45px;
    width: auto;
}

/* Nav Link Color */
.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
    align-items: center;
}

.nav-links>li {
    padding: 10px 0;
}

.nav-links>li>a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.3s ease, opacity 0.2s ease;
    padding-bottom: 5px;
}

.nav-links>li>a:hover {
    opacity: 0.8;
}



/* FULL WIDTH MEGA MENU STYLES */
.has-mega-menu .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background-color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    transform: translateY(10px);
    pointer-events: none;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Mega Menu Content Aligned to Hero Container Width */
.mega-menu-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 36px 40px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mega-menu-products-grid {
    grid-template-columns: repeat(2, 1fr);
}

.mega-menu-products-grid img {
    height: 50px;
}

.mega-menu-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.mega-menu-col a {
    display: block;
    color: var(--text-main) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
    text-shadow: none !important;
}

.mega-menu-col a:hover {
    color: var(--upendo-blue) !important;
}

.mega-menu-card {
    display: block;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    background-color: var(--bg-light-gray);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.mega-menu-card:hover {
    background-color: #FFF6EB;
    transform: translateY(-2px);
}

.mega-menu-card h4 {
    color: var(--upendo-blue);
    font-size: 1.1rem;
    margin-bottom: 6px;
    text-shadow: none !important;
}

.mega-menu-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    text-shadow: none !important;
}

/* Buttons */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav {
    background: var(--upendo-blue);
    color: #fff;
    padding: 10px 32px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-nav:hover {
    background-color: var(--upendo-blue-hover);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #111;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.60) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding: 100px 40px 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #FFFFFF;
}

.hero-badge {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--upendo-blue);
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    max-width: 900px;
    color: #FFFFFF;

    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 750px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-pill-primary {
    background-color: var(--upendo-blue);
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(248, 153, 28, 0.3);
}

.btn-pill-primary:hover {
    background-color: var(--upendo-blue-hover);
    transform: scale(1.02);
}

.btn-pill-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-pill-secondary:hover {
    background-color: #FFFFFF;
    transform: scale(1.02);
}

/* Section Containers */
.section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 650px;
}

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

.card {
    background-color: var(--bg-light-gray);
    border-radius: var(--radius-card);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--bg-light-gray);
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Product Page Styles */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Feature List Styles */
.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 24px;
    padding: 10px 0;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--upendo-blue);
    margin-top: 2px;
}

.feature-content h4 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Pricing Table Styles */
.pricing-section {
    margin-bottom: 60px;
    background-color: var(--bg-light-gray);
    border-radius: var(--radius-card);
    padding: 60px 40px;
    border: 1px solid var(--border-color);
}

.pricing-table-container {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.pricing-table th, .pricing-table td {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th:first-child, .pricing-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.pricing-table th {
    background-color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
}

.pricing-table th span {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 6px;
}

.pricing-table td .check {
    color: #2e7d32;
    font-weight: bold;
    font-size: 1.3rem;
}

.pricing-table td .cross {
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Pricing Cards Styles */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

.pricing-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-top: 15px; /* Space for popular badge */
}

.pricing-card-header {
    padding: 40px 30px 30px;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.pricing-card-header .price {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    letter-spacing: -1.5px;
}

.pricing-card-header .price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}

.btn-pricing-outline {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px 0;
    background-color: #F5F6F8;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.btn-pricing-outline:hover {
    background-color: #EAECEF;
}

.btn-pricing-solid {
    display: block;
    text-align: center;
    width: 100%;
    padding: 14px 0;
    background-color: var(--upendo-blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.btn-pricing-solid:hover {
    background-color: var(--upendo-blue-hover);
}

.pricing-card-features {
    padding: 30px;
}

.features-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.features-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-main);
}

.features-list li.unavailable {
    color: var(--text-muted);
}

.icon-check, .icon-minus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
}

.icon-check {
    background-color: var(--upendo-blue);
}

.icon-minus {
    background-color: #D1D5DB;
}

/* Popular badge */
.pricing-card.popular {
    border-color: #E5E7EB;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background-color: var(--upendo-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 10;
}

/* Billing Toggle Styles */
.billing-toggle {
    display: inline-flex;
    background: #F5F6F8;
    padding: 4px;
    border-radius: var(--radius-pill);
    margin-top: 10px;
}

.billing-toggle button {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.billing-toggle button.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mega-menu-card.dark-card {
    background-color: #1a1c21;
    border-color: #2D3748;
}

.mega-menu-card.dark-card p {
    color: #A0AEC0;
}

.mega-menu-card.dark-card:hover {
    background-color: #111317;
    border-color: var(--upendo-blue);
}

/* Dark Theme for Hesabu POS */
body.dark-theme {
    background-color: #1a1c21;
    color: #fff;
    --text-main: #ffffff;
    --text-muted: #A0AEC0;
    --bg-white: #2D3748;
    --border-color: #4A5568;
}

body.dark-theme .navbar {
    background-color: rgba(26, 28, 33, 0.98);
}

body.dark-theme .nav-links > li > a {
    color: #ffffff;
}

body.dark-theme .mega-menu {
    background: var(--bg-white);
    border-color: var(--border-color);
}

body.dark-theme .mega-menu-col h4,
body.dark-theme .feature-content h4,
body.dark-theme .pricing-card-header h3,
body.dark-theme .section-title {
    color: #ffffff;
}

body.dark-theme .mega-menu-card {
    background: #1a1c21;
    border-color: var(--border-color);
}

body.dark-theme .mega-menu-card:hover {
    background: #23262d;
    border-color: var(--upendo-blue);
}

body.dark-theme .btn-nav {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-theme .btn-nav:hover {
    background-color: #ffffff;
    color: #1a1c21;
}

body.dark-theme .feature-icon {
    color: #ffffff;
}

body.dark-theme .pricing-card {
    background-color: var(--bg-white);
    border-color: var(--border-color);
}

body.dark-theme .features-list li {
    color: #ffffff;
}

body.dark-theme .features-list li.unavailable {
    color: var(--text-muted);
}

body.dark-theme .billing-toggle {
    background: var(--bg-white);
}

body.dark-theme .billing-toggle button.active {
    background: #1a1c21;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

body.dark-theme .footer-bottom {
    border-top: 1px solid var(--border-color);
}