/* Global Styles for Product Pages */
:root {
    --bg-dark: #020405;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-green: #00ff88;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Page Spacing for Header */
.page-content {
    margin-top: 80px;
    /* Adjust based on header height */
    flex: 1;
}

/* Common CTA Section */
.product-cta-section {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.product-cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-filled {
    background-color: var(--accent-green);
    color: #000;
    border: 1px solid var(--accent-green);
}

.btn-filled:hover {
    background-color: #00cc6a;
    border-color: #00cc6a;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.btn-outline:hover {
    background-color: rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Hero Section Styles */
.hero-section {
    padding: 4rem 0;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    /* Context for absolute positioning */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-green);
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease;

    /* Absolute positioning to move to top */
    position: absolute;
    top: 0;
    left: 2rem;
    /* Aligns with container padding */
}

.back-link:hover {
    transform: translateX(-5px);
}

.hero-content h1 {
    font-size: 4rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 1440px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}


.hero-content .sub-heading {
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .back-link {
        position: relative;
        left: 0;
        margin-bottom: 2rem;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content .sub-heading {
        font-size: 1.25rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
}


/* Problem Section Styles */
.problem-section {
    padding: 6rem 0;
    text-align: center;
    background-color: #06110E;
}

/* Smart Shelves Specifics */
.smart-shelves-problem {
    background-color: #0D1513;
}

/* ESL Specifics */
.problem-section.esl-problem {
    background-color: #06110E;
}

/* AI Cameras Specifics */
.problem-section.ai-cameras-problem {
    background-color: #06110E;
}

/* Indoor Positioning Specifics */
.problem-section.indoor-pos-problem {
    background-color: #06110E;
}

/* Sensors & Actuators Specifics */
.problem-section.sensors-problem {
    background-color: #06110E;
}

/* Asset Tracking Specifics */
.problem-section.asset-tracking-problem {
    background-color: #06110E;
}

/* ThingsX Console Specifics */
.problem-section.thingsx-console-problem {
    background-color: #06110E;
}


.smart-shelves-dark-section,
.esl-dark-section,
.ai-cameras-dark-section,
.indoor-pos-dark-section,
.sensors-dark-section,
.asset-tracking-dark-section,
.thingsx-console-dark-section {
    background-color: #121212;
}

.problem-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.problem-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: var(--font-body);
}

.problem-header .highlight {
    color: var(--accent-green);
    font-weight: 600;
}

.problem-header p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.problem-image {
    display: flex;
    justify-content: center;
}

.problem-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Optional, keep subtle or remove if image has transparency background */
}

@media (max-width: 768px) {
    .problem-header h2 {
        font-size: 2rem;
    }

    .problem-header h3 {
        font-size: 1.5rem;
    }
}

/* How It Works Section */
.how-it-works-section {
    padding: 6rem 0;
    text-align: center;
    background-color: var(--bg-dark);
    /* or ensure this matches main background */
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 4rem;
    color: #fff;
    font-weight: 500;
}

.section-title .highlight {
    color: var(--accent-green);
    font-weight: 600;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.step-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

.step-badge {
    box-sizing: content-box;
    /* ensure width/height are content-box or use flex centered */
    width: 24px;
    height: 24px;
    background-color: var(--accent-green);
    color: #000;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Position badge at top-left overlapping border or inside? Image shows inside top left */
    position: absolute;
    top: -12px;
    /* Pull it slightly out */
    left: 20px;
    border: 4px solid var(--bg-dark);
    /* Creates cut-out effect */
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Asset Tracking, ThingsX Console & AI Cameras Specific Override */
.asset-tracking-dark-section .step-icon,
.thingsx-console-dark-section .step-icon,
.ai-cameras-dark-section .step-icon {
    background-color: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.asset-tracking-dark-section .step-icon img,
.thingsx-console-dark-section .step-icon img,
.ai-cameras-dark-section .step-icon img {
    width: 48px;
    /* Slightly larger for standalone icons */
    height: 48px;
}



.step-icon img,
.step-icon svg {
    width: 32px;
    height: 32px;
    object-fit: contain;
    color: var(--accent-green);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Connecting Lines (simplified version to avoid complex SVG/Absolute pos for now)
   Or use a pseudo element on step-card to draw line to next card
*/
.steps-grid {
    /* To facilitate lines, we might need a container approach. For simplicity + responsiveness,
       grid gap is fine. To mimic the line in design:
    */
    position: relative;
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    /* Extends into gap */
    width: 1.5rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    display: none;
    /* Hidden on simpler responsive flow, can enable if precise */
}


@media (min-width: 992px) {
    .step-card:not(:last-child)::after {
        display: block;
        right: -24px;
        /* Adjust based on gap */
        width: 24px;
    }
}


/* Key Capabilities Section */
.key-capabilities-section {
    padding: 4rem 0 8rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.capability-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    /* Changed from pill to rounded rect to match grid list look better */
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    text-align: left;
}

.capability-card:hover {
    border-color: var(--accent-green);
    background-color: rgba(0, 255, 136, 0.05);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.check-icon svg,
.check-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.capability-card span {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}


/* Responsive */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .step-card::after {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        width: 100%;
        max-width: none;
        justify-content: flex-start;
    }
}

/* Use Cases Section */
.use-cases-section {
    padding: 6rem 0 2rem 0;
    text-align: center;
    background-color: #121212;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.use-case-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    border-color: var(--accent-green);
    background-color: rgba(0, 255, 136, 0.05);
}

.dot-icon {
    width: 12px;
    height: 12px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    flex-shrink: 0;
}

.use-case-card span {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
}

/* Industries Section */
.industries-section {
    padding: 0 0 8rem 0;
    text-align: center;
    background-color: #121212;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.industry-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.industry-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    background-color: rgba(0, 255, 136, 0.05);
}

.industry-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.industry-card h3 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    font-family: var(--font-body);
    text-align: center;
}

@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Business Impact Section */
.business-impact-section {
    padding: 0 0 4rem 0;
    text-align: center;
    background-color: var(--bg-dark);
    /* Reset to dark, or keep #121212 if consistent */
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.impact-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    background-color: rgba(0, 255, 136, 0.05);
}

.impact-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
}

.impact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.impact-card h3 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .use-cases-grid,
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        padding: 1.5rem 1rem;
    }
}


/* Why ThingsX Section */
.why-thingsx-section {
    padding: 2rem 0 6rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.why-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-list-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    max-width: 400px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.why-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.why-item span {
    color: #fff;
    font-weight: 500;
}

/* Reusing .dot-icon from earlier section */

.why-image-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.why-image-col img {
    max-width: 100%;
    height: auto;
    /* Optional: drop shadow or glow if needed to match others */
}


@media (max-width: 992px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-content {
        flex-direction: column;
        gap: 3rem;
    }

    .why-list-col {
        width: 100%;
        max-width: 500px;
    }

    .why-image-col {
        order: -1;
        /* Image first on mobile? Or list? Usually image first is good for visuals. */
        /* But list is context. Let's keep Default order (list top) or Image top. Design usually image top. */
    }
}

@media (max-width: 576px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
}

/* Deployment Section */
.deployment-section {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.deployment-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    /* Spacious padding */
    max-width: 800px;
    margin: 0 auto;
}

.deployment-card p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 2rem 0 4rem 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent-green);
    background-color: rgba(0, 255, 136, 0.03);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-body);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-question .chevron {
    color: var(--accent-green);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

/* .faq-item.active .faq-answer logic handled by JS (max-height) and inner padding */

.faq-answer p {
    color: var(--text-secondary);
    padding-bottom: 1.5rem;
    line-height: 1.6;
    margin: 0;
}

/* Comprehensive Product Responsive Adjustments */
@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-content {
        flex-direction: column;
        gap: 3rem;
    }

    .why-list-col {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-cta-title {
        font-size: 2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }

    .industry-card {
        padding: 1rem;
    }

    .product-cta-title {
        font-size: 1.75rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
    }
}