/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary-color: #0f766e;
    --primary-light: #14b8a6;
    --primary-dark: #134e4a;
    --accent-color: #f59e0b;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --white: #ffffff;

    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header and Navigation */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    padding: 1.25rem 0;
}

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

.logo {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, var(--white) 0%, var(--neutral-100) 100%);
    padding: 6rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-light), transparent);
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--neutral-900);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--neutral-700);
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

/* Studies Section */
.studies {
    padding: 6rem 0;
    background-color: var(--white);
}

.studies h2 {
    text-align: center;
    color: var(--neutral-900);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--neutral-700);
    font-size: 1.25rem;
    margin-bottom: 4rem;
    font-weight: 500;
}

.studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.75rem;
}

.study-card {
    background-color: var(--neutral-50);
    border-radius: 16px;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    transition: height 0.3s ease;
}

.study-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.study-card.expanded::before {
    height: 100%;
}

.study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    user-select: none;
}

.study-header h3 {
    color: var(--neutral-900);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    padding-right: 1rem;
}

.toggle-icon {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 300;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(15, 118, 110, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.study-card.expanded .toggle-icon {
    transform: rotate(45deg);
}

.study-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
}

.study-card.expanded .study-content {
    max-height: 1000px;
    padding: 0 2rem 2rem;
}

.study-content p {
    color: var(--neutral-700);
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.study-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.study-links li {
    margin-bottom: 0;
}

.study-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.study-links a:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Products Section */
.products {
    padding: 6rem 0;
    background-color: var(--neutral-50);
}

.products h2 {
    text-align: center;
    color: var(--neutral-900);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}

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

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

.product-card h3 {
    padding: 1.5rem 1.75rem 0.75rem;
    color: var(--neutral-900);
    font-size: 1.25rem;
    font-weight: 700;
}

.product-info {
    padding: 0 1.75rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clean-score {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.375rem 0.875rem;
    background-color: rgba(15, 118, 110, 0.1);
    border-radius: 999px;
}

.price {
    color: var(--neutral-900);
    font-weight: 800;
    font-size: 1.25rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white);
    margin: 3% auto;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: modalSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
}

@keyframes modalSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--neutral-700);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-900);
}

#modalBody {
    padding: 2.5rem;
}

.modal-product-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.modal h3 {
    color: var(--neutral-900);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.modal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--neutral-200);
}

.modal-clean-score {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.5rem 1.25rem;
    background-color: rgba(15, 118, 110, 0.1);
    border-radius: 999px;
}

.modal-price {
    color: var(--neutral-900);
    font-weight: 800;
    font-size: 1.75rem;
}

.modal-description {
    color: var(--neutral-700);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.modal-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Consultation Section */
.consultation {
    padding: 6rem 0;
    background-color: var(--white);
}

.consultation h2 {
    text-align: center;
    color: var(--neutral-900);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.consultation-form {
    max-width: 640px;
    margin: 0 auto;
    background-color: var(--neutral-50);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--neutral-200);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    color: var(--neutral-900);
    font-weight: 600;
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--white);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1.125rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-md);
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-success {
    max-width: 640px;
    margin: 2rem auto;
    padding: 1.75rem;
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 16px;
    color: #065f46;
    text-align: center;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    background-color: var(--neutral-900);
    color: var(--neutral-300);
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--neutral-700);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.875rem;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h2 {
        font-size: 2.25rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 1.75rem;
    }

    .studies h2,
    .products h2,
    .consultation h2 {
        font-size: 2rem;
    }

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

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    #modalBody {
        padding: 2rem;
    }

    .consultation-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 1.875rem;
    }

    .modal h3 {
        font-size: 1.75rem;
    }
}
