:root {
    --light-sand: #FAF7F0;
    --warm-sand: #F5F1E8;
    --deep-charcoal: #2D3748;
    --soft-charcoal: #4A5568;
    --terracotta-red: #B9593C;
    --terracotta-red-hover: #A04D35;
    --deep-atlas-blue: #2B3A67;
    --deep-atlas-blue-hover: #243050;
    --border-light: #E5E7EB;
    --white: #FFFFFF;
    --text-muted: #6B7280;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

/* Performance containment and paint hints */
.product-card, .feature-card, .hero-image, .floating-element {
    will-change: transform;
}

/* Avoid work for offscreen sections */
.products-section, .features-section, .cta-section, .footer {
    content-visibility: auto;
    contain-intrinsic-size: 600px 800px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--deep-charcoal);
    background-color: var(--light-sand);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--deep-charcoal);
    text-decoration: none;
    transition: transform 0.3s ease;
    letter-spacing: 0.05em;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    width: 50px;
}

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

.nav-link {
    font-weight: 500;
    color: var(--soft-charcoal);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--deep-atlas-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--deep-atlas-blue);
}

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

.cta-button {
    background: var(--deep-atlas-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    background: var(--deep-atlas-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-button:hover::before {
    left: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-sand) 0%, var(--warm-sand) 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: center;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--deep-charcoal);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--deep-atlas-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--soft-charcoal);
    margin-bottom: 3rem;
    font-weight: 400;
    line-height: 1.65;
    max-width: 85%;
    opacity: 0.85;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
    position: relative;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(79, 70, 229, 0.15));
    animation: float 6s ease-in-out infinite;
    transform: scale(1.1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .floating-element,
    .cta-button-large,
    .product-card,
    .feature-card {
        animation: none !important;
        transition: none !important;
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
    font-size: 2.5rem;
    color: var(--accent-blue);
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 65%;
    right: 12%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

/* Products Section */
.products-section {
    padding: 2.5rem 0 3rem;
    background: var(--white);
    scroll-margin-top: 80px; /* Account for fixed header */
}

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

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--deep-charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* New Products Showcase Layout */
.products-showcase {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Featured Product Styles */
.featured-product {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-sand) 100%);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.featured-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 58, 103, 0.03), transparent);
    transition: left 0.6s ease;
}

.featured-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-large);
    border-color: var(--deep-atlas-blue);
}

.featured-product:hover::before {
    left: 100%;
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--deep-atlas-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 24px 0 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.product-logo-large {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 20px;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.featured-product:hover .product-logo-large {
    border-color: var(--deep-atlas-blue);
    background: rgba(43, 58, 103, 0.05);
    transform: scale(1.05);
}

.product-info {
    flex: 1;
}

.product-title-large {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--deep-charcoal);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-tagline {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-description-large {
    font-size: 1.125rem;
    color: var(--soft-charcoal);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    border-color: var(--deep-atlas-blue);
    background: rgba(43, 58, 103, 0.02);
    transform: translateY(-2px);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-sand);
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-charcoal);
    margin-bottom: 0.25rem;
}

.highlight-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--deep-atlas-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    justify-content: center;
    width: fit-content;
    min-width: 240px;
}

.cta-button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button-primary:hover {
    background: var(--deep-atlas-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-button-primary:hover::before {
    left: 100%;
}

.cta-button-primary svg {
    transition: transform 0.3s ease;
}

.cta-button-primary:hover svg {
    transform: translateX(4px);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--deep-atlas-blue);
    padding: 1rem 2rem;
    border: 2px solid var(--deep-atlas-blue);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
}

.cta-button-secondary:hover {
    background: var(--deep-atlas-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Upcoming Product Styles */
.upcoming-product {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
}

.upcoming-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.upcoming-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--terracotta-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 20px 0 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.upcoming-content {
    text-align: center;
}

.upcoming-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.upcoming-icon img {
    border-radius: 12px;
    padding: 0.5rem;
    background: var(--light-sand);
    border: 1px solid var(--border-light);
}

.upcoming-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.upcoming-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.upcoming-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.upcoming-tag {
    background: var(--light-sand);
    color: var(--soft-charcoal);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    text-align: center;
}

.cta-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--deep-atlas-blue);
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--deep-atlas-blue);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.cta-button-outline:hover {
    background: var(--deep-atlas-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-highlights {
        grid-template-columns: 1fr;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .cta-button-primary,
    .cta-button-secondary {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 2rem 0 2.5rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .featured-product {
        padding: 1.25rem;
    }
    
    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .product-title-large {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .product-highlights {
        margin-bottom: 1.25rem;
    }
    
    .cta-button-primary {
        min-width: auto;
        width: 100%;
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0 5rem;
    background: var(--light-sand);
}

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

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: var(--deep-atlas-blue);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-charcoal);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--deep-atlas-blue) 100%);
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-large {
    background: var(--terracotta-red);
    color: white;
    padding: 1rem 2.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(185, 89, 60, 0.25);
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.cta-button-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(185, 89, 60, 0.35);
    background: var(--terracotta-red-hover);
}

.cta-button-large:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background: var(--deep-charcoal);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    height: 32px;
    width: auto;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-tagline {
    color: var(--success-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--success-green);
}

.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Mobile Menu */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-button span {
    width: 100%;
    height: 2px;
    background: var(--deep-charcoal);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

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

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-links li {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links a {
    color: var(--deep-charcoal);
    text-decoration: none;
    font-weight: 500;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

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

    .hero-subtitle {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .nav-container {
        height: 70px;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 28px;
        width: 28px;
    }

    .hero {
        padding-top: 100px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        margin: 0 1rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    .features-section {
        padding: 3rem 0 3.5rem;
    }

    .features-grid {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 110px;
    }

    .hero-title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-cta a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

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

    .product-card {
        margin: 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .logo img {
        height: 26px;
        width: 26px;
    }

    .hero-container {
        padding: 0 1.5rem;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}