/* DeepForecast Business Analytics - Brand-Specific Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #E0E0E0; /* Secondary Text */
    /* Updated gradient background specification */
    background: #7980d9;
    background: linear-gradient(90deg, rgba(121, 128, 217, 1) 0%, rgba(7, 9, 84, 1) 58%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF; /* Primary Text */
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 1rem; }
h2 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 1rem; }
h3 { font-size: clamp(20px, 3vw, 24px); margin-bottom: 0.75rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #E0E0E0; /* Secondary Text */
}

.lead {
    font-size: 18px;
    color: #E0E0E0; /* Secondary Text */
    line-height: 1.6;
}

/* Container and Grid */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 12px; /* Rounded corners */
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #5E40FF, #B040FF); /* Brand Gradient */
    color: #FFFFFF;
    box-shadow: 0 8px 32px rgba(94, 64, 255, 0.4);
    /* Enhanced text visibility */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), -1px -1px 1px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7C5FFF, #C858FF);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(94, 64, 255, 0.5);
    /* Enhanced text visibility on hover */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6), -1px -1px 2px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    /* Enhanced text visibility on hover */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn:focus {
    outline: 2px solid rgba(94, 64, 255, 0.6);
    outline-offset: 2px;
}

/* Logo Styling */
.logo-image, .footer-logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-logo-image {
    width: 24px;
    height: 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    /* Enhanced transparent glassmorphism navbar */
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    /* Keep same transparent appearance on scroll */
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF; /* Primary Text */
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-size: 20px;
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #E0E0E0; /* Secondary Text */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: #FFFFFF; /* Primary Text */
    /* Enhanced text visibility on hover */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(26, 21, 48, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    /* Enhanced text visibility on hover */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.7);
}

.language-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(94, 64, 255, 0.5);
}

.flag-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    /* Enhanced visibility for flag icons */
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.current-lang {
    font-weight: 600;
    letter-spacing: 0.5px;
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    /* Enhanced visibility for arrow */
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

.language-selector.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    /* Solid background for better readability */
    background: rgba(26, 21, 48, 0.96) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(26, 21, 48, 0.8);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    /* Enhanced appearance when visible */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 6px 20px rgba(26, 21, 48, 0.9);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
    /* Enhanced text visibility on hover */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), -1px -1px 2px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
}

.language-option.active {
    background: rgba(94, 64, 255, 0.25);
    border: 1px solid rgba(94, 64, 255, 0.4);
    border-radius: 12px;
}

.language-option.active:hover {
    background: rgba(94, 64, 255, 0.35);
}

.lang-name {
    flex: 1;
    font-weight: 500;
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.lang-code {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    /* Enhanced text visibility */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 2px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Hide mobile menu close button on desktop */
.mobile-menu-close {
    display: none;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #FFFFFF; /* Enhanced visibility */
    transition: all 0.3s ease;
    /* Enhanced visibility for hamburger lines */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8), -1px -1px 1px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    /* Updated gradient background specification */
    background: #7980d9;
    background: linear-gradient(90deg, rgba(121, 128, 217, 1) 0%, rgba(7, 9, 84, 1) 58%);
    background-attachment: fixed;
    color: #FFFFFF; /* Primary Text */
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="30" cy="30" r="1.5"/></g></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #FFFFFF; /* Primary Text */
    font-size: clamp(36px, 5vw, 48px);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 32px;
    color: #E0E0E0; /* Secondary Text */
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.chart-container {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.chart-3d {
    position: relative;
    width: 100%;
    height: 300px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-around;
    height: 100%;
    gap: 8px;
    padding: 0 20px;
}

.bar {
    background: linear-gradient(180deg, #5E40FF 0%, #B040FF 100%); /* Brand Gradient */
    width: 40px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 20px rgba(94, 64, 255, 0.4);
    animation: barGrow 1s ease-out forwards;
    transform: scaleY(0);
    transform-origin: bottom;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    background-size: 50px 1px;
}

.floating-metrics {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-card {
    background: rgba(107, 96, 222, 0.15); /* Enhanced card background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 20px;
    border-radius: 16px;
    min-width: 140px;
    text-align: center;
    animation: slideInRight 0.8s ease-out forwards;
    transform: translateX(50px);
    opacity: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF; /* Primary Text */
}

.metric-label {
    font-size: 14px;
    color: #E0E0E0; /* Secondary Text */
    margin-top: 4px;
}

/* Social Proof */
.social-proof {
    padding: 60px 0;
    background: rgba(107, 96, 222, 0.1); /* Card background subtle */
    text-align: center;
}

.social-proof-text {
    color: #E0E0E0; /* Secondary Text */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 18px;
    font-weight: 600;
    color: rgba(224, 224, 224, 0.7); /* Secondary Text with opacity */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 1;
    color: #FFFFFF; /* Primary Text */
}

/* Feature Sections */
.feature-section {
    padding: 100px 0;
    background: transparent;
}

.feature-section:nth-child(even) {
    background: rgba(107, 96, 222, 0.05); /* Subtle card background */
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-section-reverse .feature-content {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.feature-section-reverse .feature-content > * {
    direction: ltr;
}

.feature-title {
    margin-bottom: 24px;
    color: #FFFFFF; /* Primary Text */
}

.feature-description {
    font-size: 18px;
    margin-bottom: 32px;
    color: #E0E0E0; /* Secondary Text */
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #6CCF5C; /* Success/Positive */
    flex-shrink: 0;
    margin-top: 2px;
}

/* Feature Visuals */
.forecast-chart {
    background: rgba(107, 96, 222, 0.12); /* Enhanced card background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.forecast-chart:hover {
    background: rgba(107, 96, 222, 0.18);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF; /* Primary Text */
}

.chart-period {
    font-size: 14px;
    color: #E0E0E0; /* Secondary Text */
}

.line-chart {
    height: 200px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    stroke: #5E40FF; /* Brand Gradient start */
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 2s ease-in-out forwards;
}

.chart-area {
    fill: url(#deepforecastGradient);
    opacity: 0;
    animation: fadeInArea 1s ease-in-out 1s forwards;
}

.chart-point {
    fill: #B040FF; /* Brand Gradient end */
    animation: pulse 2s ease-in-out infinite 2s;
}

/* Add DeepForecast gradient definition */
.chart-svg defs {
    background: none;
}

/* Update gradients in SVG */
svg defs linearGradient {
    --gradient-start: #5E40FF;
    --gradient-end: #B040FF;
}

/* Visualization Showcase */
.visualization-showcase {
    background: rgba(107, 96, 222, 0.12); /* Enhanced card background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.visualization-showcase:hover {
    background: rgba(107, 96, 222, 0.18);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}

.viz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
}

.viz-item {
    text-align: center;
}

.pie-chart, .bar-chart, .heat-map {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.pie-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.pie-segment {
    transition: stroke-dashoffset 1s ease-in-out;
}

.pie-segment:first-child {
    stroke: #5E40FF; /* Brand Gradient */
}

.pie-segment:nth-child(2) {
    stroke: #6CCF5C; /* Success */
}

.bar-chart {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 4px;
    height: 60px;
    justify-content: center;
}

.bar-mini {
    width: 12px;
    background: linear-gradient(180deg, #5E40FF, #B040FF); /* Brand Gradient */
    border-radius: 2px;
    animation: barGrowMini 1s ease-out forwards;
    transform: scaleY(0);
    transform-origin: bottom;
}

.heat-map {
    height: 60px;
}

.heat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
}

.heat-cell {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    animation: heatFade 1s ease-in-out forwards;
    opacity: 0;
}

.heat-cell:nth-child(odd) {
    background-color: #5E40FF; /* Brand Gradient start */
}

.heat-cell:nth-child(even) {
    background-color: #B040FF; /* Brand Gradient end */
}

.chart-label {
    font-size: 12px;
    color: #E0E0E0; /* Secondary Text */
    font-weight: 500;
}

/* Customer Segmentation */
.segmentation-chart {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.segment-bubbles {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bubble {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* Primary Text */
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: bubbleFloat 3s ease-in-out infinite;
}

.bubble-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #5E40FF, #B040FF); /* Brand Gradient */
    animation-delay: 0s;
}

.bubble-medium {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6CCF5C, #8FE076); /* Success gradient */
    animation-delay: 0.5s;
}

.bubble-small {
    width: 80px;
    height: 80px;
    animation-delay: 1s;
}

.bubble-small:first-of-type {
    background: linear-gradient(135deg, #D96B6B, #E58A8A); /* Warning gradient */
}

.bubble-small:last-of-type {
    background: linear-gradient(135deg, #6B60DE, #9189E8); /* Card background gradient */
}

.bubble-label {
    font-size: 12px;
    opacity: 0.9;
}

.bubble-value {
    font-size: 18px;
    font-weight: 700;
}

/* DeepForecast Showcase Section */
.deepforecast-showcase {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.4) 0%, rgba(48, 43, 99, 0.2) 100%);
    position: relative;
}

.deepforecast-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.015"><circle cx="40" cy="40" r="1"/></g></svg>');
    pointer-events: none;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.showcase-item {
    background: rgba(107, 96, 222, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(94, 64, 255, 0.3);
}

.showcase-featured {
    grid-column: 1 / -1;
    background: rgba(107, 96, 222, 0.12);
    border: 1px solid rgba(94, 64, 255, 0.2);
}

.showcase-item:nth-child(even) {
    flex-direction: row-reverse;
}

.showcase-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 16px;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.02);
}

.showcase-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

.showcase-badge {
    background: linear-gradient(135deg, #5E40FF, #B040FF);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(94, 64, 255, 0.4);
}

.showcase-content {
    padding: 32px;
}

.showcase-title {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.showcase-description {
    color: #E0E0E0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Featured showcase layout */
.showcase-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.showcase-featured .showcase-content {
    padding: 48px;
}

.showcase-featured .showcase-title {
    font-size: 32px;
    margin-bottom: 24px;
}

.showcase-featured .showcase-description {
    font-size: 18px;
    line-height: 1.7;
}

.showcase-featured .showcase-image {
    margin: 32px;
}

/* Regular showcase items layout for desktop */
@media (min-width: 1025px) {
    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .showcase-featured {
        grid-column: 1 / -1;
        margin-bottom: 32px;
    }
    
    .showcase-item:not(.showcase-featured) {
        display: flex;
        flex-direction: column;
    }
    
    .showcase-item:not(.showcase-featured) .showcase-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .showcase-item:not(.showcase-featured) .showcase-image {
        height: 240px;
        margin: 24px 24px 0 24px;
    }
    
    .showcase-item:not(.showcase-featured) .showcase-image img {
        height: 100%;
        object-fit: cover;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .showcase-featured {
        grid-template-columns: 1fr;
    }
    
    .showcase-featured .showcase-content {
        padding: 32px;
    }
    
    .showcase-featured .showcase-title {
        font-size: 28px;
    }
    
    .showcase-featured .showcase-description {
        font-size: 16px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .deepforecast-showcase {
        padding: 80px 0;
    }
    
    .showcase-grid {
        gap: 32px;
    }
    
    .showcase-featured {
        grid-template-columns: 1fr;
    }
    
    .showcase-featured .showcase-content {
        padding: 24px;
    }
    
    .showcase-featured .showcase-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .showcase-featured .showcase-description {
        font-size: 16px;
    }
    
    .showcase-item .showcase-content {
        padding: 24px;
    }
    
    .showcase-title {
        font-size: 20px;
    }
    
    .showcase-description {
        font-size: 15px;
    }
    
    .showcase-image {
        margin: 16px;
    }
    
    .showcase-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: rgba(107, 96, 222, 0.05); /* Subtle card background */
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    color: #FFFFFF; /* Primary Text */
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: #E0E0E0; /* Secondary Text */
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.step {
    text-align: center;
    position: relative;
    background: rgba(107, 96, 222, 0.12); /* Enhanced card background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.step:hover {
    transform: translateY(-8px);
    background: rgba(107, 96, 222, 0.18);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5E40FF, #B040FF); /* Brand Gradient */
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 32px rgba(94, 64, 255, 0.4);
}

.step-title {
    color: #FFFFFF; /* Primary Text */
    margin-bottom: 16px;
}

.step-description {
    color: #E0E0E0; /* Secondary Text */
    line-height: 1.6;
}

/* Final CTA */
.final-cta {
    padding: 100px 0;
    /* Updated gradient background specification */
    background: #7980d9;
    background: linear-gradient(90deg, rgba(121, 128, 217, 1) 0%, rgba(7, 9, 84, 1) 58%);
    background-attachment: fixed;
    color: #FFFFFF; /* Primary Text */
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="30" cy="30" r="1.5"/></g></svg>');
    pointer-events: none;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-title {
    color: #FFFFFF; /* Primary Text */
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: #E0E0E0; /* Secondary Text */
}

.demo-form {
    background: rgba(107, 96, 222, 0.15); /* Enhanced card background */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-group input {
    flex: 1;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF; /* Primary Text */
    font-size: 16px;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(224, 224, 224, 0.7); /* Secondary Text with opacity */
}

.form-group input:focus {
    outline: none;
    border-color: #5E40FF; /* Brand Gradient start */
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(94, 64, 255, 0.3);
}

.form-note {
    font-size: 14px;
    color: rgba(224, 224, 224, 0.8); /* Secondary Text with opacity */
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 32px;
    background: rgba(108, 207, 92, 0.1); /* Success background */
    border-radius: 12px;
    border: 1px solid rgba(108, 207, 92, 0.3);
}

.success-icon {
    width: 48px;
    height: 48px;
    color: #6CCF5C; /* Success */
    margin: 0 auto 16px;
}

.form-success h3 {
    color: #FFFFFF; /* Primary Text */
    margin-bottom: 8px;
}

.form-success p {
    color: #E0E0E0; /* Secondary Text */
}

.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Footer */
.footer {
    background: #1A1530; /* Very dark indigo */
    color: #FFFFFF; /* Primary Text */
    padding: 80px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-title {
    color: #FFFFFF; /* Primary Text */
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #E0E0E0; /* Secondary Text */
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FFFFFF; /* Primary Text */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #FFFFFF; /* Primary Text */
}

.footer-copyright {
    color: rgba(224, 224, 224, 0.7); /* Secondary Text with opacity */
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 24px;
}

.social-link {
    color: #E0E0E0; /* Secondary Text */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #FFFFFF; /* Primary Text */
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

@keyframes barGrow {
    to { transform: scaleY(1); }
}

@keyframes barGrowMini {
    to { transform: scaleY(1); }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInArea {
    to { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes heatFade {
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .feature-content,
    .cta-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .feature-section-reverse .feature-content {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .chart-container {
        height: 300px;
    }

    .floating-metrics {
        position: relative;
        flex-direction: row;
        justify-content: center;
        margin-top: 32px;
    }

    .metric-card {
        animation: slideInUp 0.8s ease-out forwards;
        transform: translateY(50px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .nav-actions .btn {
        display: none;
    }

    .language-selector {
        order: -1;
    }

    .language-toggle {
        padding: 8px 12px;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.05);
    }

    .flag-icon {
        font-size: 14px;
        width: 18px;
    }

    .language-dropdown {
        right: 0;
        min-width: 160px;
    }

    /* Ensure header background consistency on mobile */
    .header {
        background: rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
    }
    
    .header.scrolled {
        background: rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Show mobile menu close button on mobile */
    .mobile-menu-close {
        display: flex;
    }

    .hero-actions {
        justify-content: center;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }

    .feature-section {
        padding: 60px 0;
    }

    .how-it-works {
        padding: 60px 0;
    }

    .final-cta {
        padding: 60px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .company-logos {
        gap: 32px;
    }

    .logo-item {
        font-size: 16px;
    }

    .form-group {
        flex-direction: column;
        gap: 16px;
    }

    .footer {
        padding: 60px 0 24px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    /* Mobile Menu Styles */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4); /* Enhanced mobile transparency */
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding: 2rem;
    }
    
    .nav-menu.mobile-menu-open {
        transform: translateX(0);
        display: flex;
    }
    
    .nav-link {
        color: #FFFFFF; /* Primary Text */
        font-size: 1.5rem;
        font-weight: 600;
        /* Enhanced text visibility for mobile */
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), -2px -2px 4px rgba(0, 0, 0, 0.7);
        -webkit-text-stroke: 0.7px rgba(0, 0, 0, 0.4);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        transform: translateY(-2px);
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9), -3px -3px 6px rgba(0, 0, 0, 0.8);
    }

    /* Mobile Menu Close Button */
    .mobile-menu-close {
        position: absolute;
        top: 2rem;
        right: 2rem;
        width: 48px;
        height: 48px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        color: #FFFFFF;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        opacity: 0;
        transform: scale(0.8);
        /* Enhanced text visibility */
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    }
    
    .nav-menu.mobile-menu-open .mobile-menu-close {
        opacity: 1;
        transform: scale(1);
        animation: fadeInScale 0.4s ease 0.2s forwards;
    }
    
    .mobile-menu-close:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
        filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.9));
    }
    
    .mobile-menu-close:focus {
        outline: none;
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 0 0 0 3px rgba(94, 64, 255, 0.5);
    }
    
    .mobile-menu-close svg {
        width: 24px;
        height: 24px;
        filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.8));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .feature-title {
        font-size: 24px;
    }

    .chart-container {
        height: 250px;
    }

    .floating-metrics {
        flex-direction: column;
        align-items: center;
    }

    .bubble-large {
        width: 100px;
        height: 100px;
    }

    .bubble-medium {
        width: 80px;
        height: 80px;
    }

    .bubble-small {
        width: 60px;
        height: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-section,
    .how-it-works .step,
    .social-proof {
        opacity: 0;
        transform: translateY(30px);
        animation: slideInUp 0.6s ease-out forwards;
    }

    .feature-section:nth-child(odd) {
        animation-delay: 0.2s;
    }

    .feature-section:nth-child(even) {
        animation-delay: 0.4s;
    }

    .step:nth-child(1) { animation-delay: 0.1s; }
    .step:nth-child(2) { animation-delay: 0.3s; }
    .step:nth-child(3) { animation-delay: 0.5s; }
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Heat cell staggered animation */
.heat-cell:nth-child(1) { animation-delay: 0.1s; }
.heat-cell:nth-child(2) { animation-delay: 0.2s; }
.heat-cell:nth-child(3) { animation-delay: 0.3s; }
.heat-cell:nth-child(4) { animation-delay: 0.4s; }
.heat-cell:nth-child(5) { animation-delay: 0.5s; }
.heat-cell:nth-child(6) { animation-delay: 0.6s; }

/* Bar growth staggered animation */
.bar:nth-child(1) { animation-delay: 0.1s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.3s; }
.bar:nth-child(4) { animation-delay: 0.4s; }
.bar:nth-child(5) { animation-delay: 0.5s; }
.bar:nth-child(6) { animation-delay: 0.6s; }

.bar-mini:nth-child(1) { animation-delay: 0.1s; }
.bar-mini:nth-child(2) { animation-delay: 0.2s; }
.bar-mini:nth-child(3) { animation-delay: 0.3s; }
.bar-mini:nth-child(4) { animation-delay: 0.4s; }

/* Header scroll effects - maintaining transparency */
.header.scrolled {
    /* Keep same transparent appearance */
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.header.hidden {
    transform: translateY(-100%);
}

/* Animation classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error states */
#form-error {
    color: #D96B6B; /* Warning/Error */
    background: rgba(217, 107, 107, 0.1);
    border: 1px solid rgba(217, 107, 107, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    transition: opacity 0.3s ease;
}