/* Real Digitalization - Premium Magazine Style */
/* Enhanced with nature photography aesthetics and modern typography */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&family=Spectral:wght@300;400;600;700&display=swap');

:root {
    /* Finnish Nature Palette - Deeper, richer tones */
    --forest-dark: #1a3d0f;
    --forest-mid: #2d5016;
    --forest-accent: #4a7c2c;
    --sage: #7a8970;
    --sage-light: #a8b499;
    --moss: #556b2f;
    
    /* Sophisticated Grays */
    --slate-darkest: #2c3e50;
    --slate-dark: #34495e;
    --slate-mid: #5d6d7e;
    --slate-light: #95a5a6;
    
    /* Natural Earth Tones */
    --stone: #e8e5e0;
    --sand: #f5f3ef;
    --fog: #ecf0f1;
    
    /* Premium Accents */
    --gold: #b8975a;
    --copper: #9d7c5a;
    
    /* Typography */
    --font-display: 'Spectral', 'Crimson Pro', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows - more dramatic */
    --shadow-soft: 0 4px 20px rgba(26, 61, 15, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 61, 15, 0.12);
    --shadow-strong: 0 16px 60px rgba(26, 61, 15, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--slate-darkest);
    background: var(--sand);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section - Forest Photography Aesthetic */
.hero {
    position: relative;
    height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        linear-gradient(135deg, 
            rgba(26, 61, 15, 0.85) 0%, 
            rgba(45, 80, 22, 0.75) 40%,
            rgba(74, 124, 44, 0.65) 100%
        ),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="forest" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M50 10 L55 30 L60 15 L65 35 L70 20 L75 40 L80 25 L85 45 L90 30 L95 50" stroke="%23ffffff" stroke-width="0.5" fill="none" opacity="0.03"/></pattern></defs><rect width="1200" height="800" fill="url(%23forest)"/></svg>');
    background-size: cover, 100px 100px;
    background-position: center, center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(184,151,90,0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(74,124,44,0.05) 0%, transparent 50%);
    animation: subtleShift 20s ease-in-out infinite;
}

@keyframes subtleShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.02); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--sand));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 950px;
    padding: 0 30px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 6em;
    font-weight: 300;
    margin-bottom: 0.25em;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 2.2em;
    font-weight: 300;
    margin-bottom: 0.6em;
    opacity: 0.95;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.25em;
    opacity: 0.85;
    margin-bottom: 2.5em;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9em;
}

.btn-primary {
    background: white;
    color: var(--forest-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    background: var(--stone);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5em;
    color: var(--forest-dark);
    text-align: center;
    margin-bottom: 0.4em;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-intro {
    text-align: center;
    font-size: 1.3em;
    color: var(--slate-mid);
    max-width: 850px;
    margin: 0 auto 60px;
    line-height: 1.8;
    font-weight: 300;
}

/* Vision Section - Lake Reflection Aesthetic */
.vision {
    background: 
        linear-gradient(to bottom, var(--sand) 0%, var(--fog) 50%, var(--sand) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(122, 137, 112, 0.02) 2px,
            rgba(122, 137, 112, 0.02) 4px
        );
    position: relative;
}

.vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--sage-light), transparent);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.vision-card {
    background: white;
    padding: 50px;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.vision-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--forest-dark), var(--forest-accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vision-card:hover::after {
    opacity: 1;
}

.vision-card.highlight {
    background: linear-gradient(135deg, 
        rgba(168, 180, 153, 0.08) 0%, 
        rgba(122, 137, 112, 0.05) 100%
    );
    border: 2px solid var(--sage-light);
}

.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.vision-icon {
    font-size: 4em;
    margin-bottom: 25px;
    opacity: 0.9;
}

.vision-card h3 {
    font-family: var(--font-display);
    font-size: 2em;
    color: var(--forest-dark);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.vision-card p {
    color: var(--slate-mid);
    line-height: 1.9;
    font-size: 1.1em;
    font-weight: 300;
}

.vision-arrow {
    font-size: 3em;
    color: var(--forest-accent);
    font-weight: 300;
}

/* Capabilities Section - Birch Forest Inspired */
.capabilities {
    background: white;
    position: relative;
}

.capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(245, 243, 239, 0.5) 80px,
            rgba(245, 243, 239, 0.5) 82px
        );
    pointer-events: none;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    position: relative;
    z-index: 1;
}

.capability-card {
    background: var(--sand);
    border-radius: 4px;
    padding: 40px;
    border: 1px solid rgba(122, 137, 112, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--forest-accent), var(--moss));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--sage);
    background: white;
}

.capability-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.capability-icon {
    font-size: 3em;
    line-height: 1;
}

.capability-header h3 {
    font-family: var(--font-display);
    flex: 1;
    font-size: 1.5em;
    color: var(--forest-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.capability-status {
    padding: 6px 14px;
    background: var(--forest-accent);
    color: white;
    border-radius: 2px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.capability-desc {
    color: var(--slate-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.capability-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--sage-light);
    border-radius: 2px;
    font-size: 0.85em;
    color: var(--slate-mid);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Matrix Section - Northern Lights Gradient */
.matrix {
    background: 
        linear-gradient(135deg, 
            var(--fog) 0%, 
            var(--sand) 50%, 
            var(--fog) 100%
        );
    position: relative;
}

.matrix::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(184,151,90,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74,124,44,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.matrix-nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
}

.matrix-tab {
    padding: 14px 40px;
    background: white;
    border: 2px solid var(--stone);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1.05em;
    font-weight: 600;
    color: var(--slate-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.9em;
}

.matrix-tab:hover {
    border-color: var(--forest-accent);
    background: var(--sand);
}

.matrix-tab.active {
    background: var(--forest-dark);
    color: white;
    border-color: var(--forest-dark);
}

.matrix-content {
    display: none;
}

.matrix-content.active {
    display: block;
}

/* Event Cards - Premium Magazine Layout */
.event-card {
    background: white;
    border-radius: 4px;
    padding: 50px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(122, 137, 112, 0.15);
    transition: all 0.4s ease;
}

.event-card:hover {
    box-shadow: var(--shadow-medium);
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--stone);
}

.event-header h3 {
    font-family: var(--font-display);
    font-size: 2.5em;
    color: var(--forest-dark);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.event-timeline {
    padding: 10px 18px;
    background: var(--sage-light);
    border-radius: 2px;
    color: var(--forest-dark);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85em;
}

.event-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.event-current,
.event-future {
    padding: 40px;
    border-radius: 4px;
    position: relative;
}

.event-current {
    background: var(--fog);
    border-left: 3px solid var(--slate-light);
}

.event-future {
    background: linear-gradient(135deg, 
        rgba(168, 180, 153, 0.1) 0%, 
        rgba(245, 243, 239, 0.8) 100%
    );
    border-left: 3px solid var(--forest-accent);
}

.event-current h4,
.event-future h4 {
    font-family: var(--font-display);
    font-size: 1.6em;
    margin-bottom: 25px;
    color: var(--forest-dark);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pain-points,
.benefits {
    list-style: none;
    padding: 0;
}

.pain-points li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--slate-mid);
    line-height: 1.8;
    font-size: 1.05em;
}

.pain-points li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: var(--slate-light);
    font-size: 1.5em;
    font-weight: 300;
}

.benefits li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--slate-darkest);
    line-height: 1.8;
    font-size: 1.05em;
}

.benefits li strong {
    color: var(--forest-dark);
    font-weight: 600;
}

.capabilities-used {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--sage-light);
}

.capabilities-used strong {
    color: var(--forest-dark);
    margin-right: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cap-badge {
    display: inline-block;
    padding: 7px 14px;
    background: var(--forest-accent);
    color: white;
    border-radius: 2px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 6px 4px 6px 0;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* CTA Section - Sunset Gradient */
.cta {
    background: 
        linear-gradient(135deg, 
            var(--forest-dark) 0%, 
            var(--forest-mid) 50%, 
            var(--forest-accent) 100%
        ),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><path d="M0 200 Q300 150 600 200 T1200 200 L1200 400 L0 400 Z" fill="%23ffffff" opacity="0.03"/></svg>');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 30px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 100%, rgba(184,151,90,0.1) 0%, transparent 70%);
}

.cta h2 {
    font-family: var(--font-display);
    font-size: 3em;
    margin-bottom: 0.5em;
    font-weight: 400;
    letter-spacing: -0.02em;
    position: relative;
}

.cta p {
    font-size: 1.3em;
    max-width: 750px;
    margin: 0 auto 2.5em;
    opacity: 0.95;
    line-height: 1.9;
    font-weight: 300;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* Footer */
.footer {
    background: var(--forest-dark);
    color: var(--sage-light);
    padding: 50px 30px;
    text-align: center;
    font-size: 0.95em;
}

.footer-links {
    margin-top: 25px;
}

.footer-links a {
    color: var(--sage-light);
    text-decoration: none;
    margin: 0 20px;
    transition: color 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 4.5em;
    }
    
    .capabilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3em;
    }
    
    .hero-subtitle {
        font-size: 1.5em;
    }
    
    .section-title {
        font-size: 2.5em;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-arrow {
        transform: rotate(90deg);
    }
    
    .event-comparison {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        padding: 30px;
    }
}

/* Ensure first event is always visible (override JS animation) */
#life-events .event-card:first-of-type,
#business-events .event-card:first-of-type {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Print Styles */
@media print {
    .hero {
        height: auto;
        padding: 60px 0;
    }
    
    .btn {
        display: none;
    }
}
