/* Index Page Specific Styles */
@import url('variables.css');

/* Neutralise header.html spacing overrides on index page */
body main,
body h1:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hero section styles */
.hero {
    text-align: center;
    margin-bottom: 6rem;
    padding-bottom: 2rem;
    color: var(--color-text);
}

/* Hero Category Label */
.hero-category-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted, #a0c0e0);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.hero h1[data-content-role="primary-headline"],
.hero h1[data-content-role="secondary-headline"] {
    font-size: var(--font-size-5xl);
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    text-align: center;
}

.hero .description {
    font-size: var(--font-size-lg);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.value-props-container {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0 2rem;
    gap: 1.5rem;
}

.value-prop-box {
    flex: 1;
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.8), rgba(13, 27, 42, 0.9));
    border: 1px solid rgba(64, 192, 240, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.value-prop-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(64, 192, 240, 0.6);
}

.value-prop-box h3 {
    font-size: var(--font-size-md);
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.value-prop-box p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Numbered Value Props */
.value-props-numbered .value-prop-box {
    position: relative;
    padding-top: 2.5rem;
    text-align: left;
}

.value-props-numbered .value-prop-box::before {
    content: attr(data-number);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-primary, #40c0f0);
    opacity: 0.6;
}

/* Merged Quote Bar */
.hero-quote-bar {
    margin: 3rem 0 2rem;
    padding: 2rem 2.5rem;
    background: rgba(26, 40, 68, 0.4);
    border-left: 3px solid var(--accent-primary, #40c0f0);
    border-radius: 0 12px 12px 0;
    text-align: left;
}

.hero-quote-bar blockquote {
    font-style: italic;
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.hero-quote-bar .quote-subtext {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted, #a0c0e0);
    margin: 0;
    opacity: 0.85;
}

/* Legacy styles for backward compatibility */
.quote-container {
    margin: 3rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.6), rgba(13, 27, 42, 0.7));
    border-left: 4px solid var(--color-primary);
    border-radius: 0 8px 8px 0;
}

.quote-container blockquote {
    font-style: italic;
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.bottom-highlight {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(64, 192, 240, 0.2), rgba(30, 144, 255, 0.1));
    border-radius: 8px;
    text-align: center;
}

.bottom-highlight p {
    font-size: var(--font-size-md);
    color: var(--color-text);
    margin: 0;
}

/* ============================================================================
   KI ADOPTION STATS SECTION - CSS Classes
   ============================================================================ */

.ki-adoption-stats {
    background: var(--gradient-card, linear-gradient(135deg, rgba(26, 40, 68, 0.8) 0%, rgba(13, 27, 42, 0.9) 100%));
    border-radius: var(--radius-lg, 20px);
    padding: 50px 40px;
    margin: 40px 0;
    box-shadow: var(--shadow-large, 0 15px 50px rgba(0, 0, 0, 0.4));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(64, 192, 240, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-title {
    font-size: var(--font-size-4xl, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--accent-primary-glow, rgba(64, 192, 240, 0.5));
}

.stats-subtitle {
    font-size: var(--font-size-xl, 1.2rem);
    color: var(--color-text-highlight, #89cff0);
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px 14px;
    }
    
    .stat-value {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(26, 40, 68, 0.4));
    border-radius: var(--radius-md, 15px);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(64, 192, 240, 0.2);
    position: relative;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    min-width: 0;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.stat-card:nth-child(2) {
    border-color: rgba(0, 178, 169, 0.3);
}

.stat-card:nth-child(3) {
    border-color: rgba(255, 193, 7, 0.3);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary, #40c0f0);
    margin-bottom: 15px;
    text-shadow: 0 0 20px var(--accent-primary-glow, rgba(64, 192, 240, 0.5));
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: var(--font-size-md, 1.1rem);
    color: var(--color-text-light, #cccccc);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.stat-trend {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stat-trend.trend-positive {
    color: #4CAF50;
}

.stat-trend.trend-neutral {
    color: var(--color-text-highlight, #89cff0);
}

.stat-trend .trend-arrow {
    font-size: 1.2rem;
}

.stats-sources {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(64, 192, 240, 0.15);
    text-align: center;
}

.stats-sources p {
    font-size: 0.78rem;
    color: rgba(137, 207, 240, 0.6);
    letter-spacing: 0.03em;
    line-height: 1.7;
    margin: 0;
}

.stats-sources a {
    color: rgba(64, 192, 240, 0.6);
    text-decoration: none;
    border-bottom: 1px solid rgba(64, 192, 240, 0.25);
    transition: color 0.2s ease;
}

.stats-sources a:hover {
    color: var(--accent-primary, #40c0f0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding-top: 65px;
        margin-bottom: 4rem;
        padding-bottom: 1.5rem;
    }
    
    .value-props-container {
        flex-direction: column;
    }
    
    .hero h1[data-content-role="primary-headline"],
    .hero h1[data-content-role="secondary-headline"] {
        font-size: 2.5rem;
    }
    
    .quote-container blockquote {
        font-size: var(--font-size-base);
    }
    
    .bottom-highlight p {
        font-size: var(--font-size-sm);
    }
    
    .hero-quote-bar {
        padding: 1.5rem;
    }
    
    .hero-quote-bar blockquote {
        font-size: var(--font-size-base);
    }
    
    .value-props-numbered .value-prop-box {
        text-align: center;
    }
    
    .value-props-numbered .value-prop-box::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ki-adoption-stats {
        padding: 35px 25px;
    }
    
    .stats-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

/* ============================================================================
   SECTION HEADING SYSTEM
   Replaces 3× repeated inline-style h2 blocks across the page.
   ============================================================================ */

.section-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(64, 192, 240, 0.7);
    font-weight: 600;
    text-align: center;
    display: block;
    margin-bottom: 10px;
}

.section-heading {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.25;
    text-shadow: 0 0 10px rgba(64, 192, 240, 0.5);
    background: linear-gradient(90deg, #ffffff, #40c0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading-sm {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #d0e4f5;
    text-align: center;
    margin-bottom: 8px;
}

.insights-intro-text {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    color: #a0c0e0;
    line-height: 1.6;
}

/* ============================================================================
   TRANSFORMATION PROJECTS / LOGO MARQUEE
   Extracted from inline styles on the marquee section.
   ============================================================================ */

.transformation-projects-section {
    background: linear-gradient(135deg, rgba(26, 40, 68, 0.6) 0%, rgba(13, 27, 42, 0.7) 100%);
    border-radius: 20px;
    padding: clamp(30px, 4vw, 50px) 0;
    margin: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 192, 240, 0.15);
    position: relative;
    overflow: hidden;
}

.projects-subtitle {
    margin: 0 auto 2rem auto;
    text-align: center;
    color: #a0c0e0;
    opacity: 0.8;
    font-size: 1rem;
    max-width: 600px;
    padding: 0 20px;
}

.logo-marquee-wrapper {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.logo-fade-left {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to right, rgba(13, 27, 42, 1) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.logo-fade-right {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to left, rgba(13, 27, 42, 1) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 35s linear infinite;
}

.logo-marquee-wrapper:hover .logo-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    flex-shrink: 0;
    padding: 0 clamp(25px, 4vw, 50px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    height: clamp(28px, 4vw, 40px);
    max-height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
}

@media (max-width: 768px) {
    .logo-marquee-track {
        animation-duration: 25s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee-track {
        animation: none;
    }
}

/* ============================================================================
   RESOURCES SECTION (INTERNAL LINKS)
   New editorial design replacing emoji-headed inline-styled link groups.
   ============================================================================ */

.resources-section {
    background: rgba(14, 24, 44, 0.4);
    border: 1px solid rgba(64, 192, 240, 0.08);
    border-radius: 16px;
    padding: 44px 48px;
    margin: 60px 0;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}

.resource-group {
    border-top: 2px solid rgba(64, 192, 240, 0.25);
    padding-top: 20px;
}

.resource-group-title {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #40c0f0;
    font-weight: 600;
    margin-bottom: 16px;
}

.resource-link {
    display: block;
    color: rgba(180, 200, 220, 0.7);
    font-size: 0.9rem;
    padding: 6px 0 6px 12px;
    text-decoration: none;
    border-left: 2px solid transparent;
    line-height: 1.4;
    transition: color 0.2s ease, border-left-color 0.2s ease, padding-left 0.2s ease;
}

.resource-link:hover {
    color: #ffffff;
    border-left-color: #40c0f0;
    padding-left: 18px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .resources-section {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .resource-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================================================
   CTA SECTION ENHANCEMENT
   Adds subtle radial glow overlay and fixes heading style.
   ============================================================================ */

.cta-section {
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-width: 100%;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(64, 192, 240, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

/* ============================================================================
   SCROLL ENTRANCE ANIMATIONS
   Progressive enhancement: JS sets reveal-pending, CSS transitions to revealed.
   ============================================================================ */

.reveal-pending {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-pending.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-pending.revealed-delay {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}
