:root,
[data-theme="light"] {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #16a34a;
    --background: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --hero-bg: linear-gradient(135deg, #f0f5ff 0%, #f8fafc 50%, #ecfdf5 100%);
    --section-alt: #ffffff;
    --footer-bg: #0f172a;
}

[data-theme="dark"] {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #22c55e;
    --background: #0f172a;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #1e293b;
    --glass: rgba(30, 41, 59, 0.85);
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: #1e293b;
    --hero-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    --section-alt: #1e293b;
    --footer-bg: #020617;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.btn-primary {
    color: #ffffff !important;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.08);
}

.theme-toggle:hover {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(15deg);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: var(--hero-bg);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-trust {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-image {
    position: relative;
}

.hero-image .mockup {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.hero-image .blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.1;
    z-index: 1;
    border-radius: 50%;
}

/* Supermarkets Bar */
.supermarkets-bar {
    padding: 40px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.supermarkets-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.supermarkets-bar p {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.supermarkets-bar .logos {
    display: flex;
    gap: 50px;
    opacity: 0.5;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.supermarkets-bar .logos span {
    animation: scroll-logos 25s linear infinite;
    flex-shrink: 0;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.icon.green { background: rgba(22, 163, 74, 0.1); color: var(--secondary); }
.icon.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.icon.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }

/* Steps */
.steps {
    padding: 100px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* Blog */
.blog {
    padding: 100px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.blog-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-more {
    text-align: center;
    margin-top: 50px;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    flex: 1;
    background: var(--background);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
}

.price-card.popular {
    background: var(--white);
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-card ul {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.price-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--footer-bg);
    color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: #94a3b8;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #475569;
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Mobile Nav Overlay */
.nav-links.active {
    display: flex !important;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 999;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-links.active a {
    font-size: 1.1rem;
    padding: 10px 0;
}

.nav-links.active .btn {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-ctas { justify-content: center; }
    .hero-trust { justify-content: center; }
    .pricing-grid { flex-direction: column; align-items: center; }
    .price-card.popular { transform: none; margin: 40px 0; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-content h1 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .supermarkets-bar .logos { gap: 15px; font-size: 0.85rem; flex-wrap: wrap; white-space: normal; justify-content: center; }
    .section-header h2 { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .pricing-grid { max-width: 100%; flex-direction: column; align-items: stretch; }
    .price-card { padding: 30px; width: 100%; }
    .price-card.popular { transform: none; }
}

/* Dark Mode Overrides */
[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

[data-theme="dark"] .blog-card {
    background: var(--card-bg);
}

[data-theme="dark"] .blog-card img {
    opacity: 0.85;
}

[data-theme="dark"] .nav-links.active {
    background: #1e293b;
    border-bottom-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .price-card.popular {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    background: #1e293b;
}

[data-theme="dark"] .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

/* Smooth theme transition */
body, .navbar, .hero, .features, .steps, .pricing, .blog,
.footer, .feature-card, .price-card, .supermarkets-bar {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

