:root {
    --primary-color: #6B46C1;
    --secondary-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border: #E5E7EB;
}

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

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
}

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

/* Header */
header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

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

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8B5CF6 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

/* Products Section */
.products {
    padding: 4rem 0;
    background: var(--bg-light);
}

.products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card.featured {
    border: 2px solid var(--primary-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.product-card h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.product-icon {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-tagline {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding-left: 0; /* Ensure no default padding */
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 2rem; /* Increased left padding for better spacing */
    position: relative;
    line-height: 1.4; /* Improved line height for better readability */
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.5rem; /* Align checkmark with text baseline */
    color: var(--secondary-color);
    font-weight: bold;
    flex-shrink: 0; /* Prevent checkmark from shrinking */
}

.product-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
}

.product-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about > .container > p {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    text-align: center;
    padding: 1.5rem;
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.value-item p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--bg-light);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    /* General adjustments */
    .container {
        padding: 0 15px;
    }

    /* Header and Navigation */
    header {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    nav {
        padding: 0.75rem 0;
    }

    nav .container {
        position: relative;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        transition: background 0.3s;
        min-height: 48px; /* Ensures good touch target size */
        display: flex;
        align-items: center;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: var(--bg-light);
        outline: none;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }

    .hero h2 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
        min-width: 200px;
        touch-action: manipulation; /* Prevents double-tap zoom */
    }

    /* Products Section */
    .products {
        padding: 3rem 0;
    }

    .products h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.5rem;
    }

    .product-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .product-tagline {
        font-size: 0.95rem;
    }

    .feature-list li {
        font-size: 0.95rem;
        padding: 0.4rem 0 0.4rem 1.75rem; /* Adjusted padding for mobile */
        line-height: 1.5; /* Better line height for mobile readability */
    }

    .feature-list li:before {
        top: 0.4rem; /* Align with adjusted padding */
    }

    .product-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
        display: block;
        text-align: center;
    }

    /* About Section */
    .about {
        padding: 3rem 0;
    }

    .about h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .about > .container > p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .value-item {
        padding: 1rem;
    }

    .value-item h3 {
        font-size: 1.125rem;
    }

    .value-item p {
        font-size: 0.95rem;
    }

    /* Contact Section */
    .contact {
        padding: 3rem 0;
    }

    .contact h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .contact p {
        font-size: 1rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 0;
    }

    footer p {
        font-size: 0.875rem;
        margin: 0.25rem 0;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .products h2,
    .about h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .product-card {
        padding: 1.25rem;
    }

    .product-card h3 {
        font-size: 1.25rem;
    }

    .product-icon {
        width: 50px;
        height: 50px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

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

    .container {
        padding: 0 12px;
    }
}