/* 
   Thermosen Page-Specific Styles
   Refined "Darker Green" Theme
*/

:root {
    --primary-green: #4B2E2B;
    --primary-dark: #2D1B19;
    --primary-light: #FAF9F6;
    --dark-bg: #FDF5E6;
    --gray-light: #F8FAFC;
    --gray-mid: #EFF3F8;
    --text-dark: #0F172A;
    --text-muted: #4B5565;
    --shadow-sm: 0 10px 30px -15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Typography & Global Overrides (Scoped to Thermosen) */
.hero-title-modern,
.hero-subtext-modern,
.dash-card,
.module-selector,
.modern-badge {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
.fw-bold,
.theme-btn,
.module-selector h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* Primary Green Theme Helpers */
.text-primary-custom {
    color: var(--primary-green) !important;
}

.bg-primary-custom {
    background-color: var(--primary-green) !important;
}

.border-primary-custom {
    border-color: var(--primary-green) !important;
}

.btn-primary-custom {
    background: var(--primary-green);
    color: white;
    border: none;
    transition: var(--transition);
    box-shadow: 0 8px 18px rgba(75, 46, 43, 0.25);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(75, 46, 43, 0.35);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-green);
    background: transparent;
    color: var(--primary-green);
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

/* Modern Badge */
.modern-badge {
    background: rgba(75, 46, 43, 0.1);
    backdrop-filter: blur(4px);
    padding: 8px 20px;
    border-radius: 100px;
    width: fit-content;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
    border: 1px solid rgba(75, 46, 43, 0.15);
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0F172A;
    margin: 1.5rem 0 1rem;
}

.hero-title-modern1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0F172A;
    /* margin: 1.5rem 0 1rem; */
}


.hero-title-modern1 span {
    color: var(--primary-green);
    position: relative;
}


.hero-title-modern span {
    color: var(--primary-green);
    position: relative;
}

.hero-subtext-modern {
    font-size: 1.2rem;
    color: #000000;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.sub-title {
    font-size: 20px !important;
    color: #000000 !important;
    max-width: 1000px !important;
    margin: 0 auto 1rem !important;
    line-height: 1.6 !important;
}

/* Dashboard Metric Cards */
.visual-container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

.dash-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08),
        0 4px 12px -5px rgba(75, 46, 43, 0.15);
    border: 1px solid rgba(75, 46, 43, 0.12);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.dash-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(75, 46, 43, 0.4);
    box-shadow: 0 25px 50px -12px rgba(75, 46, 43, 0.25);
}

.dash-card-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    color: var(--primary-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.dash-card:hover .dash-card-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary-green);
    color: white;
}

.dash-card h6 {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.dash-card .value {
    color: #000000;
    font-family: 'Space Grotesk', sans-serif;
}

.trend.up {
    color: #10B981;
    font-size: 0.85rem;
    font-weight: 600;
}

.trend.orange {
    color: #F59E0B;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===================== Modern Feature Cards (Dark Theme) ===================== */
.feature-section-wrapper {
    padding: 2rem 0;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(75, 46, 43, 0.15);
    color: #000000;
    padding: 0.35rem 1.2rem;
    border-radius: 60px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 1rem;
    border: 1px solid rgba(75, 46, 43, 0.25);
}

.feature-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.feature-subtitle {
    font-size: 1.05rem;
    color: #000000;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.modern-feature-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(75, 46, 43, 0.35);
    border-radius: 1.5rem;
    padding: 2rem 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(75, 46, 43, 0.1);
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2D1B19, #4B2E2B, #6D433F);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.modern-feature-card:hover::before {
    transform: scaleX(1);
}

.modern-feature-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(75, 46, 43, 0.65);
    box-shadow: 0 24px 40px -12px rgba(75, 46, 43, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-7px);
}

.card-icon-wrap {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(46, 125, 50, 0.18);
    color: #4caf50;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.4rem;
    transition: all 0.25s ease;
    border: 1px solid rgba(46, 125, 50, 0.2);
    flex-shrink: 0;
}

.modern-feature-card:hover .card-icon-wrap {
    background: linear-gradient(135deg, #2D1B19, #4B2E2B);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.08);
}

.card-number {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: monospace;
    background: rgba(75, 46, 43, 0.2);
    color: #4B2E2B;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    border: 1px solid rgba(75, 46, 43, 0.3);
    letter-spacing: 0.5px;
}

.feature-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.7rem;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.feature-card-desc {
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1.2rem;
}

.feature-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid rgba(75, 46, 43, 0.25);
    padding-top: 0.9rem;
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: #000000;
}

.feature-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Feature Footer Stats */
.feature-footer-stats {
    margin-top: 2.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(75, 46, 43, 0.3);
    border-radius: 1.25rem;
    padding: 1.2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.stats-group {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.stats-group div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000000;
    font-weight: 500;
}

.stats-group i {
    color: #4B2E2B;
    font-size: 0.9rem;
}

.stats-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(75, 46, 43, 0.15);
    color: #000000;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    border: 1px solid rgba(75, 46, 43, 0.25);
}

@media (max-width: 768px) {
    .feature-main-title {
        font-size: 2rem;
    }

    .feature-footer-stats {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Module Showcase */
.module-selector {
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid #E2E8F0;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.module-selector.active-module {
    border-left: 4px solid var(--primary-green) !important;
    background: var(--primary-light) !important;
    box-shadow: 0 6px 14px rgba(58, 135, 144, 0.12);
}

#featureDisplayImage {
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.2);
    border-radius: 24px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 2.4rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0 !important;
    }
}

/* --- Amoeba AI Color Overrides (Matching Power Green / Orange Theme) --- */
.amoeba-ai-card {
    background: #FFFFFF !important;
    box-shadow: 0 30px 60px -15px rgba(108, 87, 210, 0.12), 0 10px 20px -5px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #edf2f7 !important;
}

.amoeba-ai-card::before {
    background: radial-gradient(circle, rgba(239, 91, 45, 0.05) 0%, transparent 70%) !important;
}

.amoeba-ai-card::after {
    background: radial-gradient(circle, rgba(0, 111, 187, 0.05) 0%, transparent 70%) !important;
}

.future-badge {
    background: #FFFAF0 !important;
    color: #D97706 !important;
    border: 1px solid rgba(217, 119, 6, 0.2) !important;
}

.future-badge i {
    color: #D97706 !important;
    background: transparent !important;
}

.ai-icon-small {
    background: linear-gradient(135deg, #EF5B2D, #FF8A5C) !important;
    box-shadow: 0 8px 16px rgba(239, 91, 45, 0.25) !important;
    color: white !important;
}

.amoeba-title {
    background: linear-gradient(90deg, #0B2A4A 0%, #6C57D2 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.ai-description {
    color: #000000 !important;
}

.moving-particle {
    background: rgba(75, 46, 43, 0.2) !important;
}

.bg-sweep {
    background: linear-gradient(45deg, transparent 45%, rgba(75, 46, 43, 0.04) 50%, transparent 55%) !important;
}

.ai-floating-node {
    color: rgba(239, 91, 45, 0.15) !important;
}

.cs-container {
    background: rgba(108, 87, 210, 0.04) !important;
    border: 1px dashed rgba(108, 87, 210, 0.2) !important;
}

.cs-container1 {
    background: rgba(75, 46, 43, 0.04) !important;
    border: 1px dashed #4B2E2B !important;
}

.cs-label {
    color: #000000 !important;
}

.cs-label1 {
    color: #000000 !important;
}

.cs-time {
    color: #0B2A4A !important;
}

@media (max-width: 768px) {
    .hero-subtext-modern {
        font-size: 1rem !important;
    }
}


/* ===================== Section: Premium Orbital System (Light Theme - ROBUST) ===================== */