/* INDUSTRY TEMPLATE CSS (Redesigned to Match Customers Page) */

:root {
    --ind-bg: #000000;
    --ind-card-bg: #0A0A0A;
    --ind-card-border: rgba(255, 255, 255, 0.1);
    --ind-accent: #00FFCC; /* Default accent (Teal) - override per page if needed */
    --ind-text-main: #FFFFFF;
    --ind-text-muted: #A0A0A0;
}

body {
    background-color: var(--ind-bg);
    color: var(--ind-text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   SECTION 1: HERO (Centered & Big)
   ========================================= */
.industry-hero {
    position: relative;
    padding: 12rem 0 6rem; /* Match customers.css padding */
    min-height: auto; /* Remove fixed height constraint */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    /* Vibrant, centered gradient */
    background: radial-gradient(circle at 50% 30%, 
        color-mix(in srgb, var(--ind-accent) 20%, transparent), 
        #000 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-label {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--ind-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0.9;
    /* Removed pill style to match mission-sub */
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 auto 2rem;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(0,0,0,0.5);
    background: none;
    -webkit-text-fill-color: initial;
    
    /* Strict Wrapping Rules for Mobile */
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 90vw;
}

@media (min-width: 768px) {
    .hero-title {
        max-width: 1000px;
    }
}

.hero-desc {
    font-size: 1.25rem; /* Match hero-subtext */
    color: #ccc;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-hero {
    padding: 1rem 2rem;
    border-radius: 4px; /* Sharper corners like customers page */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--ind-accent);
    color: #000;
    border: 1px solid var(--ind-accent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--ind-accent) 30%, transparent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--ind-accent);
    box-shadow: 0 0 30px color-mix(in srgb, var(--ind-accent) 50%, transparent);
}

.btn-secondary {
    background: transparent;
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: #FFF;
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   COMMON SECTION STYLES
   ========================================= */
.section-header {
    text-align: center; /* Centered Headers */
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--ind-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    display: inline-block;
}

/* Optional: Add decorative lines like partners-label */
.section-eyebrow::before, .section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}
.section-eyebrow::before { right: 100%; margin-right: 15px; }
.section-eyebrow::after { left: 100%; margin-left: 15px; }


.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FFF;
    line-height: 1.2;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* =========================================
   SECTION 2: THE CHALLENGE (Terminal Cards)
   ========================================= */
.challenge-section {
    padding: 8rem 0;
    position: relative;
    background: #050505;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.challenge-card {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 0; /* Let inner elements handle padding */
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.challenge-card:hover {
    transform: translateY(-5px);
    border-color: var(--ind-accent);
    box-shadow: 0 10px 40px color-mix(in srgb, var(--ind-accent) 10%, transparent);
}

.challenge-header {
    background: #151515;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.challenge-num {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--ind-accent);
    font-weight: 700;
}

.challenge-status {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.challenge-body {
    padding: 2rem;
    flex-grow: 1;
}

.challenge-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFF;
    line-height: 1.3;
}

.challenge-card p {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
    font-family: var(--font-primary); /* Ensure consistent font */
}

    /* ANIMATED ICONS CSS */
    .loop-icon-anim { width: 100%; height: 100%; position: relative; }

    /* Annotate */
    .icon-anno-box { position: absolute; inset: 10px; border: 1px solid rgba(0,255,204,0.3); }
    .icon-anno-corner { position: absolute; width: 6px; height: 6px; border-color: #00FFCC; border-style: solid; transition: all 0.3s; }
    .tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
    .tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
    .bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
    .br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
    .icon-anno-scan { position: absolute; top: 12px; left: 12px; right: 12px; height: 2px; background: #00FFCC; box-shadow: 0 0 5px #00FFCC; animation: scanIcon 2s ease-in-out infinite; }
    @keyframes scanIcon { 0%, 100% { top: 12px; opacity: 0; } 50% { top: 80%; opacity: 1; } }

    /* Intel */
    .icon-intel-core { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; background: #8A2BE2; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 10px #8A2BE2; animation: pulseIcon 2s infinite; }
    .icon-intel-ring { position: absolute; inset: 8px; border: 1px dashed rgba(138,43,226,0.4); border-radius: 50%; animation: spinIcon 4s linear infinite; }
    .icon-intel-sat { position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; background: #fff; border-radius: 50%; transform: translateX(-50%); }
    @keyframes spinIcon { 100% { transform: rotate(360deg); } }
    @keyframes pulseIcon { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; } 50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; } }

    /* Operate */
    .icon-ops-radar { position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(255,69,0,0.2); overflow: hidden; }
    .icon-ops-sweep { position: absolute; inset: 0; background: conic-gradient(from 0deg, transparent 0%, rgba(255,69,0,0.5) 100%); animation: spinIcon 2s linear infinite; border-radius: 50%; }
    .icon-ops-blip { position: absolute; top: 20%; right: 20%; width: 4px; height: 4px; background: #FF4500; border-radius: 50%; animation: blipIcon 2s infinite; }
    @keyframes blipIcon { 0%, 100% { opacity: 0; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }

/* =========================================
   SECTION 3: HOW LEXDATA SOLVES IT (Redesigned)
   ========================================= */
.solution-section {
    padding: 8rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px; /* Use full container width */
    margin: 0 auto;
}

/* Loop Card Styles (Copied & Adapted from solution-loop.css) */
.loop-card {
    background: rgba(10, 10, 12, 0.6); /* Obsidian Glass */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.loop-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 15, 20, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.loop-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 32px;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.03);
}

.loop-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 8px;
}

.loop-tagline {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    display: block;
    opacity: 0.8;
}

.loop-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #CCC;
}

/* THEME: TEAL (Annotate) */
.theme-teal { border-color: rgba(0, 255, 204, 0.2); }
.theme-teal:hover { border-color: #00FFCC; }
.theme-teal .loop-icon-box { color: #00FFCC; border-color: rgba(0, 255, 204, 0.3); box-shadow: 0 0 15px rgba(0, 255, 204, 0.1); }
.theme-teal .loop-tagline { color: #00FFCC; }

/* THEME: PURPLE (Intel) */
.theme-purple { border-color: rgba(138, 43, 226, 0.2); }
.theme-purple:hover { border-color: #8A2BE2; }
.theme-purple .loop-icon-box { color: #8A2BE2; border-color: rgba(138, 43, 226, 0.3); box-shadow: 0 0 15px rgba(138, 43, 226, 0.1); }
.theme-purple .loop-tagline { color: #8A2BE2; }

/* THEME: ORANGE (Operate) */
.theme-orange { border-color: rgba(255, 69, 0, 0.2); }
.theme-orange:hover { border-color: #FF4500; }
.theme-orange .loop-icon-box { color: #FF4500; border-color: rgba(255, 69, 0, 0.3); box-shadow: 0 0 15px rgba(255, 69, 0, 0.1); }
.theme-orange .loop-tagline { color: #FF4500; }

/* 1. ANNOTATE (Hero Visual) */
.annotate-feature {
    text-align: center;
    margin-bottom: 80px;
}

.annotate-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.annotate-header h3 {
    font-size: 2.5rem;
    color: #00FFCC; /* Teal for Annotate */
    margin-bottom: 1rem;
}

.annotate-header p {
    font-size: 1.1rem;
    color: #CCC;
    line-height: 1.6;
}

.annotate-visual-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border: 1px solid rgba(0, 255, 204, 0.3); /* Teal Border */
    position: relative;
    z-index: 2;
    box-shadow: none; /* Removed shadow */
    opacity: 1; /* Clear image */
    border-radius: 8px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SECTION 4: USE CASES (Mission Style)
   ========================================= */
.use-case-section {
    padding: 8rem 0;
    background: #080808;
    position: relative;
    border-top: 1px solid #222;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Mimic .mission-card from customers.css */
.use-case-item {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 0; /* Reset */
    border-radius: 0; /* Sharper corners */
}

.use-case-item:hover {
    transform: translateY(-5px);
    border-color: var(--ind-accent);
}

.use-case-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--ind-accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.use-case-item:hover::before { opacity: 1; }

.uc-header {
    background: #0f0f0f;
    padding: 1.5rem;
    border-bottom: 1px solid #222;
}

.uc-id {
    font-family: 'Space Mono', monospace;
    color: var(--ind-accent);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.uc-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.uc-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.uc-desc {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
}

/* =========================================
   SECTION 5: CASE STUDY (Featured)
   ========================================= */
.case-study-section {
    padding: 8rem 0;
    border-top: 1px solid #222;
}

.case-study-card {
    background: linear-gradient(135deg, #111 0%, #050505 100%);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

.case-study-card:hover {
    border-color: var(--ind-accent);
}

.cs-content h3 {
    font-size: 2.5rem;
    color: #FFF;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cs-metric {
    font-size: 4rem;
    font-weight: 700;
    color: var(--ind-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    font-family: 'Space Mono', monospace;
}

.cs-metric-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #AAA;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.cs-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.cs-row {
    border-left: 2px solid #333;
    padding-left: 1.5rem;
}

.cs-row strong {
    color: var(--ind-accent);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Mono', monospace;
}

.cs-row p {
    color: #CCC;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* =========================================
   SECTION 6: WHY LEXDATA (Differentiators)
   ========================================= */
.why-section {
    padding: 8rem 0;
    text-align: center;
    background: #080808;
    border-top: 1px solid #222;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid */
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
}

.why-item {
    padding: 2.5rem;
    border: 1px solid #222;
    border-radius: 4px;
    background: #0A0A0A;
    transition: all 0.3s ease;
}

.why-item:hover {
    border-color: var(--ind-accent);
    background: #0f0f0f;
}

.why-icon {
    color: var(--ind-accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.why-item p {
    font-size: 1.2rem;
    color: #EEE;
    line-height: 1.5;
    font-weight: 400;
}

/* =========================================
   SECTION 7: CTA (Footer)
   ========================================= */
.cta-section {
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #222;
    background: #000;
}

.cta-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ind-accent) 15%, transparent) 0%, #000 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3.5rem;
    color: #FFF;
    margin-bottom: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .challenge-grid, .why-grid, .text-feature-grid, .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .annotate-visual-full {
        height: 40vh;
        min-height: 300px;
    }
    
    .case-study-card {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
