:root {
    /* Light Mode Tokens */
    --bg-base: #f9f9fb;
    --bg-surface: #ffffff;
    --text-primary: #111111;
    --text-muted: #666666;
    --accent: #212121;
    --accent-hover: #000000;
    --border: #eaebef;
    --hero-gradient: linear-gradient(135deg, rgba(249, 249, 251, 1) 0%, rgba(230, 230, 235, 1) 100%);
    --card-shadow: 0 4px 15px rgba(0,0,0,0.03);
    --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.06);
}

[data-theme="dark"] {
    /* Dark Mode Tokens */
    --bg-base: #0f0f11;
    --bg-surface: #18181c;
    --text-primary: #f0f0f0;
    --text-muted: #999999;
    --accent: #ffffff;
    --accent-hover: #e0e0e0;
    --border: #2a2a30;
    --hero-gradient: linear-gradient(135deg, rgba(15, 15, 17, 1) 0%, rgba(30, 30, 35, 1) 100%);
    --card-shadow: 0 4px 15px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
.container {
    max-width: 1000px; margin: 0 auto; padding: 0 20px;
}
/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--bg-surface) 80%, transparent);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center; height: 60px;
}
.brand {
    font-size: 18px; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.5px;
}
.nav-links {
    display: flex; align-items: center; gap: 20px;
}
.nav-links a {
    color: var(--text-primary); text-decoration: none; font-size: 13px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-muted); }
.theme-toggle {
    background: transparent; border: 1px solid var(--border); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; padding: 6px; border-radius: 50%; transition: 0.2s;
}
.theme-toggle:hover { background: var(--border); }
.theme-toggle svg { width: 16px; height: 16px; }

.btn-primary-sm, .btn-primary {
    background: var(--accent); color: var(--bg-base) !important; padding: 8px 16px; border-radius: 30px; text-decoration: none; font-weight: 600; display: inline-block; transition: transform 0.2s, background 0.2s;
}
.btn-primary:hover, .btn-primary-sm:hover {
    background: var(--accent-hover); transform: translateY(-2px);
}
.btn-primary { padding: 12px 28px; font-size: 14px; }
.btn-primary-sm { font-size: 13px; }

/* Hero */
.hero {
    padding: 120px 0 60px;
    background: var(--hero-gradient);
    text-align: center;
    position: relative;
}
.hero-title {
    font-size: clamp(32px, 6vw, 52px); font-weight: 700; line-height: 1.1; margin-bottom: 16px; letter-spacing: -1.5px;
}
.hero-subtitle {
    font-size: clamp(14px, 2vw, 16px); color: var(--text-muted); max-width: 500px; margin: 0 auto 30px;
}

/* Product Grid */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 26px; margin-bottom: 8px; font-weight: 600; letter-spacing: -0.5px; }
.section-title p { color: var(--text-muted); font-size: 14px; }

main { padding: 60px 0; min-height: 50vh;}
.product-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}

/* Card */
.card {
    background: transparent; border-radius: 8px; overflow: hidden; border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: none; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.card-img-wrapper {
    position: relative; width: 100%; height: 200px; overflow: hidden; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 8px; border: 1px solid var(--border);
}
.card-img {
    width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease;
}
.card:hover .card-img { transform: scale(1.02); }

.badge {
    position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.8); color: #fff; padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 600; backdrop-filter: blur(4px);
}
.badge-sale { background: #ff4757; }

.card-body { padding: 12px 0 0; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.card-price-row { margin-bottom: 12px; }
.old-price { font-size: 11px; color: var(--text-muted); text-decoration: line-through; margin-right: 4px; }
.current-price { font-size: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.5px;}

.card-actions { display: flex; gap: 8px; }
.btn-buy, .btn-demo {
    flex: 1; text-align: center; padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; transition: 0.2s;
}
.btn-buy { background: var(--text-primary); color: var(--bg-base); border: 1px solid var(--text-primary); }
.btn-buy:hover { background: transparent; color: var(--text-primary); }
.btn-demo { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-demo:hover { background: var(--border); }

/* Footer */
.footer { padding: 30px 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; margin-top: 40px;}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-img-wrapper { height: 140px; }
    .card-title { font-size: 13px; }
    .current-price { font-size: 14px; }
    .card-desc { display: none; }
    .nav-links a:not(.btn-primary-sm):not(.theme-toggle) { display: none; }
    .hero-title { font-size: 32px; }
    .hero { padding: 100px 0 50px; }
}
