/* CSS Variables */
:root {
    --primary-color: #4338CA;
    --secondary-color: #E53E3E;
    --background-color: #FEFCFB;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow: 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);
    --border-radius: 8px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-xs);
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

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

.btn-primary:hover {
    background-color: #3730A3;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Header */
.header {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    filter: drop-shadow(0 2px 4px rgba(67, 56, 202, 0.1));
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.03) 0%, rgba(229, 62, 62, 0.03) 100%);
}

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

.hero-content h1 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

/* Centered sections */
.centered-section {
    text-align: center;
}

.centered-section .container {
    text-align: center;
}

.centered-section .section-header {
    text-align: center;
}

/* Image Placeholders */
.image-placeholder {
    background: linear-gradient(135deg, var(--border-color) 0%, #F3F4F6 100%);
    border: 2px dashed var(--text-secondary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 500;
    width: 100%;
    height: 300px;
}

.hero-image .image-placeholder {
    height: 400px;
}

/* About Section */
.about {
    padding: var(--spacing-2xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.about-card {
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    background-color: #FAFAFA;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.feature-image .image-placeholder {
    height: 200px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.feature-image svg {
    width: 100%;
    height: 200px;
    border-bottom: 1px solid var(--border-color);
}

.feature-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.feature-item h3,
.feature-item p {
    padding: 0 var(--spacing-md);
}

.feature-item h3 {
    padding-top: var(--spacing-md);
    color: var(--text-primary);
}

.feature-item p {
    padding-bottom: var(--spacing-md);
}

/* Products Section */
.products {
    padding: var(--spacing-2xl) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    position: relative;
    box-shadow: var(--shadow);
}

.product-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.product-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.product-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.product-features li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.product-features li:last-child {
    border-bottom: none;
}

.product-card .btn {
    width: 100%;
    justify-content: center;
}

/* Process Section */
.process {
    padding: var(--spacing-2xl) 0;
    background-color: #FAFAFA;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.step {
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.step h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-2xl) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-md);
}

.testimonial-avatar .image-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 0.75rem;
}

.testimonial-avatar svg {
    width: 60px;
    height: 60px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Blog Preview Section */
.blog-preview {
    padding: var(--spacing-2xl) 0;
    background-color: #FAFAFA;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.blog-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.blog-image .image-placeholder {
    height: 200px;
    border-radius: 0;
    border: none;
}

.blog-image svg {
    width: 100%;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.blog-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

/* Newsletter Section */
.newsletter {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #312E81 100%);
    color: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

/* Contacts Section */
.contacts {
    padding: var(--spacing-2xl) 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.contact-item {
    text-align: center;
    padding: var(--spacing-lg);
}

.contact-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo .brand-name {
    color: white;
    text-decoration: none;
}

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

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    padding: var(--spacing-xs);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: var(--text-primary);
}

.order-form {
    padding: var(--spacing-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.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(67, 56, 202, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .footer-nav {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        margin-bottom: var(--spacing-sm);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured {
        transform: none;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}