/* ===== CSS Variables & Design System ===== */
:root {
    /* Color Palette - Updated to User Specs */
    --bg-primary: #EDF2FB;
    /* Soft Light Blue Background */
    --bg-card: #FFFFFF;
    /* Pure White for Cards */

    --text-heading: #080A30;
    /* Deep Navy Blue (Primary) */
    --text-body: #333333;
    /* Soft Black/Dark Gray (Secondary) */
    --text-on-dark: #FFFFFF;
    /* White on dark backgrounds */

    --text-accent: #2563eb;
    /* Primary Brand Blue */

    --border-subtle: rgba(8, 10, 48, 0.15);
    /* Derived from primary text */

    /* Spacing & Layout */
    --nav-height: 65px;
    --container-width: 1200px;
    --gap-sm: 10px;
    --gap-md: 24px;
    --gap-lg: 48px;

    /* Typography - Poppins Only */
    --font-main: 'Poppins', sans-serif;
    --line-height-body: 1.5;
    /* ~24px for normal text */

    /* Effects - Soft & Minimal */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius-default: 8px;

    --transition-base: 0.2s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    /* Critical for preventing horizontal scroll */
    max-width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-body);
    line-height: var(--line-height-body);
    font-weight: 400;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 600;
    /* Headings 500-600 */
    color: var(--text-heading);
    /* Deep Navy Blue */
    margin-bottom: var(--gap-sm);
    line-height: 1.25;
}

p {
    font-weight: 400;
    color: var(--text-body);
    margin-bottom: var(--gap-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
    /* Responsive padding */
}

/* ===== Navigation Bar (Fixed, 65px) ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
    /* Vertically center content */
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    height: 100%;
    position: relative;
    /* Essential for absolute centering */
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    z-index: 10;
    /* Ensure above center logo if overlap (unlikely) */
}

/* Center Product Logo */
/* Product Logo Strip - Scrolls with Page */
.product-logo-strip {
    margin-top: var(--nav-height);
    width: 100%;
    height: 56px;
    /* Match logo height */
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    /* No bottom margin */
    padding: 0;
    /* No padding */
}

.nav-center-logo {
    height: 56px;
    /* Increased from 48px */
    width: auto;
    object-fit: contain;
}

.company-logo-img {
    height: 48px;
    /* Company logo size matching product */
    width: auto;
    object-fit: contain;
}

/* Clean up old styles */
.logo-img,
.nav-logo-divider {
    display: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    height: 100%;
    list-style: none;
    /* Ensure no bullets */
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    /* Nav items 500-600 */
    font-size: 0.95rem;
    color: var(--text-heading);
    /* Using primary navy */
    position: relative;
    padding-bottom: 2px;
    display: flex;
    align-items: center;
}

/* Hover Effect: Sliding underline */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-accent);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    /* Hidden on desktop */
    -webkit-appearance: none;
    /* Remove iOS/Android default styles */
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 0;
    /* Prevent default rounding */
    box-shadow: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
    /* Remove blue tap box on Android/iOS */
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-heading);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background-color: var(--text-accent);
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 0px !important;
    padding-bottom: 10px;
    /* Reduced from 20px */
    display: block;
    margin-top: -150px !important;
    /* Force overlap extreme */
    position: relative;
    z-index: 1;
}

/* ... existing styles ... */

/* ===== Features Section ===== */
.features {
    padding: 0px 0 80px 0;
    margin-top: -80px;
    /* Pull features up more */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    /* Reduced from 60px */
    margin-top: -10px;
    /* Moderate adjustment */
}

.hero-text {
    flex: 0.8;
    /* Reduced from 1 to give image more space */
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--text-accent);
    border-radius: 4px;
    /* Clean radius */
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
    background-color: rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 36px;
    /* Increased from 32px for slightly more space */
}

.hero-title span.gradient-text {
    font-size: 1.3em;
    display: block;
    /* Forces new line cleanly */
    line-height: 1.1;
    margin-bottom: 0px;
    /* Removing extra bottom margin to close the gap */
}

.hero-subheading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-body);
    margin: 0 0 6px 0;
    /* Reduced from 8px to 6px for tighter spacing */
    line-height: 1.4;
    white-space: nowrap;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 580px;
    /* Increased from 500px for better text wrapping */
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 500;
    /* Buttons 500-600 */
    font-size: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--text-accent);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: white;
    border-color: var(--border-subtle);
    color: var(--text-heading);
}

.btn-secondary:hover {
    border-color: var(--text-accent);
    color: var(--text-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-body);
}

.hero-image {
    flex: 1.6;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 100%;
    padding: 30px 0 0 0;
    /* Remove bottom padding */
    position: relative;
    pointer-events: none;
    /* Disable hover on container */
}

.hero-image .product-image {
    max-width: 100%;
    transform: scale(0.6);
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    margin-left: 60px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    /* Enable hover only on product image */
    cursor: pointer;
    /* Show it's interactive */
}

/* Hidden Strip Image */
/* Hidden Strip Image */
.test-strip-img {
    position: absolute;
    width: 60px;
    /* Reduced size */
    right: 25%;
    /* Adjusted for center */
    bottom: 25%;
    z-index: 1;
    opacity: 0;
    transform: translateY(0);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hover Effect: Strip slides out straight down */
.hero-image:hover .test-strip-img {
    opacity: 1;
    transform: translateY(230px);
    /* Increased slide distance */
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: scale(0.6) translateY(0px);
    }

    50% {
        transform: scale(0.6) translateY(-10px);
    }

    100% {
        transform: scale(0.6) translateY(0px);
    }
}

/* ===== Section Titles Common ===== */
.section-title {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    /* Reduced from 60px */
    font-size: 1.1rem;
}

/* ... */

/* ===== Features Section ===== */
.features {
    padding: 20px 0 60px 0;
    /* Reduced top padding significantly */
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.feature-card {
    flex: 1 1 300px;
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-default);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    /* Smoother transition for multiple props */
    cursor: default;
    /* Optional: indicates interactivity without being a link */
}

.feature-card:hover {
    transform: translateY(-8px);
    /* Higher lift */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    /* Stronger shadow */
    border-color: var(--text-accent);
    /* Highlight border */
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #f8fafc;
    /* Very light subtle gray */
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* ===== Overview Section ===== */
.overview {
    padding: 80px 0;
    background-color: white;
    /* Alternate background for section rhythm */
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.overview-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.overview-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.overview-highlights {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.highlight-icon {
    color: var(--text-accent);
}

.disclaimer {
    margin-top: 40px;
    padding: 16px;
    background-color: #f8fafc;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== Parameters Section (Vertical Stack) ===== */
.parameters {
    padding: 80px 0;
}

.parameters-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Stacked spacing */
    max-width: 800px;
    margin: 0 auto;
}

.param-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.param-card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.param-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.param-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: white;
    border: 1px solid var(--border-subtle);
}

.param-badge.premium {
    background-color: var(--text-accent);
    color: white;
    border: none;
}

/* Image Container - Fixed Sizing & Hover Effect */
.param-image-container {
    padding: 16px;
    /* Reduced from 32px */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    /* Reduced from 350px to remove excessive whitespace */
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    /* Ensure zoom stays inside */
}

/* Removed specific adjustment for 10-parameter image as per user feedback */

.param-image-container img {
    max-height: 100%;
    max-width: 100%;
    /* Ensure it fits width-wise */
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Enlarge 10-parameter image specifically to fill space */
.narrow-parameter img {
    transform: scale(1.35);
    /* 35% bigger */
}

/* Hover Effect: Zoom image slightly */
.param-card:hover .param-image-container img {
    transform: scale(1.05);
}

/* Specific hover for the already enlarged 10-parameter image */
.param-card:hover .param-image-container.narrow-parameter img {
    transform: scale(1.38);
    /* Subtle zoom from 1.35 to 1.38 to avoid cropping edges */
}

.param-details {
    padding: 32px;
}

/* Hover Effect: List items highlight */
.param-list-compact li {
    background-color: #f8fafc;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.param-list-compact li:hover {
    background-color: white;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.param-list-compact strong {
    font-weight: 600;
    color: var(--text-heading);
}

.acr-highlight {
    margin-top: 24px;
    padding: 16px;
    background-color: rgba(37, 99, 235, 0.05);
    /* Very light blue */
    border: 1px dashed var(--text-accent);
    border-radius: 6px;
    color: var(--text-accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Remove old references */
.parameters-toggle,
.toggle-btn,
.param-panel {
    display: none;
}

/* ===== Specifications Section ===== */
.specifications {
    padding: 80px 0;
    background-color: white;
    /* Alternate */
    border-top: 1px solid var(--border-subtle);
}

.spec-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-label {
    padding: 16px 24px;
    font-weight: 600;
    background-color: #f8fafc;
    width: 35%;
}

.spec-value {
    padding: 16px 24px;
    color: var(--text-body);
}

/* ===== Contact Section (Info Only) ===== */
.contact {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
}

.contact-content {
    text-align: center;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background-color: white;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-accent);
    font-size: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.contact-text h4 {
    margin-bottom: 4px;
    font-weight: 600;
}

/* ===== Footer ===== */
/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    background-color: white;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-product-logo {
    height: 48px;
    width: auto;
}

.footer-company-logo {
    height: 40px;
    /* Slightly smaller visual weight usually works best */
    width: auto;
}

.logo-divider {
    height: 32px;
    width: 1px;
    background-color: var(--border-subtle);
}

.footer-text p {
    margin-bottom: 24px;
    color: var(--text-body);
}

@media (max-width: 1024px) {
    .nav-content {
        padding: 0 20px;
        /* Reduced from 40px to prevent overflow */
    }

    /* Position logos on extreme left and right on mobile */
    .logo {
        flex-shrink: 0;
    }

    .company-logo-img {
        height: 36px;
        /* Smaller on mobile */
        max-height: 36px;
        max-width: 150px;
        /* Tighter constraint on mobile */
    }

    .navbar-center {
        height: 50px;
        /* Smaller height for mobile row */
        padding: 5px 0;
    }

    .nav-center-logo {
        height: 36px;
        /* Smaller logo on mobile */
        max-width: 150px;
    }

    .product-logo-strip {
        height: 50px;
        /* Smaller height for mobile row */
        padding: 5px 0;
    }

    /* Hero padding resets to default behavior */
    .hero {
        padding-top: 20px;
        padding-bottom: 0px;
        /* Zero bottom padding */
        margin-top: 0 !important;
        /* Reset massive desktop negative margin */
    }

    .features {
        padding-top: 20px;
        /* Restore some padding */
        margin-top: 0 !important;
        /* Reset desktop negative margin */
    }

    .container {
        padding: 0 24px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        margin-top: 0 !important;
        /* Reset content margin */
    }

    /* Allow subheading to wrap on mobile */
    .hero-subheading {
        white-space: normal;
        font-size: 1.1rem;
    }

    /* Remove image margin and padding on mobile */
    .hero-image {
        padding: 0;
        margin-bottom: 0;
        /* Removed margin to cut space after image */
    }

    .hero-image .product-image {
        margin-left: 0;
        transform: scale(0.75);
        /* Reduced scale on mobile */
        animation: none;
        /* Disable floating */
    }

    .test-strip-img {
        display: none;
        /* Hide strip on mobile */
    }

    /* Adjust description width for mobile */
    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        /* Flex to stack lines vertically */
    }

    /* Center feature cards on mobile */
    .feature-card {
        text-align: center;
        padding: 24px;
    }

    .feature-icon {
        margin: 0 auto 20px auto;
        /* Center the icon */
    }

    /* Prevent cropping on tablet/mobile by resetting the zoom */
    .narrow-parameter img,
    .param-card:hover .param-image-container.narrow-parameter img {
        transform: none;
    }

    /* Center Section Headers explicitly */
    .section-header {
        text-align: center;
        padding: 0 16px;
    }

    /* Ensure animation persists and image is centered on mobile */
    .hero-image img {
        animation: float 4s ease-in-out infinite;
        transform: scale(1.0);
        /* No scaling on mobile to prevent overflow */
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
        /* Reduced from 2.25rem for better mobile fit */
    }

    /* Reduce whitespace for parameter images on mobile */
    .param-image-container {
        height: 200px;
        padding: 10px;
    }

    /* Standard height for all parameter images */

    /* Reset scale on mobile so strict contain works without cropping */
    .narrow-parameter img {
        transform: scale(1.0);
    }

    .param-list-compact {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 32px;
    }

    /* Stack Parameter Card Header for very small screens */
    .param-card-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Stack parameter list items on mobile for cleaner appearance */
    .param-list-compact li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}