:root {
    /* Colors - Warm Cream/Beige Premium Palette */
    --primary: #3a3632;
    /* Charcoal Brown */
    --primary-light: #524d47;
    /* Lighter Charcoal */

    --secondary: #faf8f5;
    /* Off-White / Cream */

    --accent: #b8956e;
    /* Warm Gold/Bronze */
    --accent-glow: rgba(184, 149, 110, 0.4);
    --accent-dark: #9a7a58;
    /* Darker Bronze */

    --text-primary: #2d2a26;
    /* Deep contrast text */
    --text-secondary: #6a6560;
    /* Softer reading text */
    --text-light: #9a8f88;
    /* Muted text */

    --border: rgba(229, 221, 208, 0.6);
    --border-light: rgba(217, 207, 194, 0.4);

    /* Backgrounds */
    --bg-body: #faf8f5;
    --bg-surface: rgba(255, 255, 255, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.7);

    /* Status */
    --success: #6e9f7b;

    /* Typography */
    --font-primary: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-max: 1240px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Borders */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* Effects */
    --shadow-sm: 0 4px 12px rgba(58, 54, 50, 0.04);
    --shadow-md: 0 12px 32px rgba(58, 54, 50, 0.08);
    --shadow-lg: 0 20px 60px rgba(58, 54, 50, 0.12);
    --shadow-glow: 0 0 20px var(--accent-glow);

    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #d6cfc5;
    border-radius: 5px;
    border: 3px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Selection */
::selection {
    background: var(--accent);
    color: white;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-body);
    /* Subtle Mesh Gradient Background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(184, 149, 110, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(184, 149, 110, 0.05) 0%, transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background: var(--primary);
    color: white;
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    background: var(--bg-lighter);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85);
    /* More translucent */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

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

.logo-domain {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.external-link {
    color: var(--text-secondary);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: var(--spacing-xl) 0;
    /* Remove linear gradient to let mesh show, or use a very subtle one */
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.hero-title {
    font-size: 4.5rem;
    /* Larger, more editorial */
    line-height: 1.05;
    font-weight: 600;
    /* Slightly lighter weight for elegance */
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(to right, var(--primary) 0%, #6e5e54 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    /* Glowing shadow */
}

.btn-secondary {
    background: var(--bg-lighter);
    color: var(--primary);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-lighter);
}

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

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

.trust-badges {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.trust-icon {
    color: var(--success);
    font-weight: bold;
}

/* Hero Image */
.hero-image {
    position: relative;
    min-height: 500px;
}

.hero-image-main {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: var(--shadow-lg);
}

.floating-badge {
    position: absolute;
    background: var(--bg-lighter);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

.compat-badge {
    top: 10%;
    left: -10%;
}

.price-badge {
    bottom: 10%;
    right: -5%;
    background: var(--accent);
    color: white;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* ==========================================
   BRANDS SECTION
   ========================================== */
.brands-section {
    padding: var(--spacing-lg) 0;
    background: var(--bg-lighter);
    border-bottom: 1px solid var(--border);
}

.brands-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    align-items: center;
}

.brand-item {
    text-align: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.brand-item:hover {
    opacity: 1;
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
.products-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Product Tabs */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-lighter);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.tab-btn:hover {
    border-color: var(--accent);
}

.tab-btn.active {
    background: var(--accent);
    color: var(--bg-lighter);
    border-color: var(--accent);
}

/* Product Categories */
.product-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.product-category.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
}

.category-subtitle {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.category-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.product-card {
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    /* For image zoom */
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-glow);
}

.product-image {
    width: 100%;
    height: 240px;
    /* Taller images */
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    background: #ebe6df;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}

.product-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.product-compat {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--bg-lighter);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.step-card {
    text-align: center;
    padding: var(--spacing-md);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(229, 221, 208, 0.5);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   PROFESSIONALS SECTION
   ========================================== */
.professionals-section {
    padding: var(--spacing-xl) 0;
    background: var(--primary);
    color: white;
}

.professionals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.professionals-section .badge {
    background: rgba(255, 255, 255, 0.2);
}

.professionals-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.professionals-text>p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.professionals-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.professionals-section .btn-primary {
    background: var(--bg-lighter);
    color: var(--primary);
}

.professionals-section .btn-primary:hover {
    background: var(--accent);
    color: var(--bg-lighter);
}

.professionals-section .btn-secondary {
    background: transparent;
    color: var(--bg-lighter);
    border-color: var(--accent);
}

.professionals-section .btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-lighter);
}

.professionals-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.pro-type {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pro-type:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.pro-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-body);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
}

.contact-form {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--primary);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-sm);
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu would be needed */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .professionals-content {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

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

/* Product Carousel */
.product-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    /* Ensure consistent background for transparent/contained images */
    cursor: zoom-in;
    /* Indicate clickable zoom */
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    opacity: 1;
    pointer-events: all;
}

#lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-radius: var(--radius-sm);
}

#lightbox.active img {
    transform: scale(1);
}

#lightbox .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    line-height: 1;
}

#lightbox .close-btn:hover {
    color: var(--accent);
}