:root {
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --primary: #2563eb;
    --secondary: #06b6d4;
    --accent: #f43f5e;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
}

body.bg-light {
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrapper {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.back-link {
    position: absolute;
    left: 24px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    background: #1d4ed8;
}

.hero-visual {
    position: relative;
    height: 400px;
}

.blob {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    opacity: 0.8;
    filter: blur(20px);
}

.blob-2 {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 10s ease-in-out infinite reverse;
    opacity: 0.6;
    filter: blur(20px);
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: scale(1); }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: scale(1.05); }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; transform: scale(0.95); }
}

/* Products Section */
.products-section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-heading p {
    font-size: 18px;
    color: var(--text-muted);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Horizontal Product Card */
.product-card {
    display: flex;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
}

.product-img-wrap {
    width: 40%;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.08);
}

.product-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
}

.btn-outline {
    align-self: flex-start;
    padding: 12px 28px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s;
}

.product-card:hover .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

/* Detail Page */
.detail-page-wrapper {
    padding: 60px 24px 100px;
}

.detail-card {
    background: var(--bg-white);
    border-radius: 32px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.detail-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-content h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.detail-content .price-tag {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 32px;
}

.detail-content .desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 48px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    display: inline-block;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -5px rgba(37, 99, 235, 0.5);
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .product-card { flex-direction: column; }
    .product-img-wrap { width: 100%; height: 250px; }
    .detail-card { grid-template-columns: 1fr; padding: 40px 24px; }
    .nav-wrapper { justify-content: space-between; }
    .logo { margin: 0 auto; }
    .back-link { position: static; }
}
