:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(20, 20, 50, 0.6);
    --accent-cyan: #00d4ff;
    --accent-teal: #00ffc8;
    --accent-blue: #4a90e2;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --gradient-accent: linear-gradient(135deg, #00d4ff, #00ffc8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Language Toggle */
.lang-en .pl,
.lang-pl .en {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 26, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--accent-cyan) !important;
}

.navbar-toggler {
    border-color: var(--glass-border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(160,160,192,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.lang-btn.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.3);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-code {
    letter-spacing: 0.5px;
}

@media (max-width: 991.98px) {
    .lang-switcher {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%),
                var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: brightness(0.6) contrast(1.1);
    opacity: 0.4;
    z-index: 0;
}

/* Custom Badges */
.status-badge {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge-success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
}

.status-badge-progress {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--accent-cyan);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s ease-in-out infinite;
}

.status-badge-success .badge-dot { background: #00ff88; }
.status-badge-progress .badge-dot { background: var(--accent-cyan); }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
}

/* Innovation Cards */
.innovation-card {
    text-align: center;
    padding: 3rem 2rem;
}

.innovation-card svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.innovation-card h3 {
    font-size: 1.25rem;
    color: var(--accent-cyan);
}

/* Key Numbers Bar */
.key-numbers {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 255, 200, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
}

.key-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.key-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.key-numbers-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Cost Savings Callout */
.savings-callout {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.1));
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 20px;
    padding: 2rem;
}

.savings-callout h3 {
    color: #00ff88;
    font-size: 1.25rem;
}

.savings-callout h3 svg {
    width: 28px;
    height: 28px;
}

.savings-highlight {
    font-size: 3rem;
    font-weight: 800;
    color: #00ff88;
    display: block;
    margin: 1rem 0;
}

.savings-callout p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.savings-detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-teal);
}

.savings-detail-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Application Cards */
.app-card {
    text-align: center;
}

.app-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.app-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-cyan);
}

.app-icon .bi {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.app-card h4 {
    font-size: 1.05rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.app-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background: rgba(0, 212, 255, 0.1);
    font-weight: 600;
    color: var(--accent-cyan);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

.highlight {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Tech Images */
.tech-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.tech-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: filter 0.5s ease;
}

.tech-image-container:hover .tech-image {
    filter: brightness(1) contrast(1.15);
}

.tech-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 200, 0.05));
    pointer-events: none;
}

.tech-image-label {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

/* Contact */
.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    margin: 0.5rem 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-cyan);
}

.contact-title {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Benefit Lists */
.benefit-category h3 {
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

.benefit-category svg {
    width: 24px;
    height: 24px;
}

.benefit-list {
    list-style: none;
    padding-left: 0;
}

.benefit-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.benefit-list li:last-child {
    border-bottom: none;
}

.benefit-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-teal);
    flex-shrink: 0;
}

/* Roadmap */
.roadmap {
    position: relative;
}

.roadmap::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--glass-border);
    z-index: 0;
}

.roadmap-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.roadmap-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.roadmap-dot.completed {
    background: var(--accent-teal);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
}

.roadmap-dot.current {
    background: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

.roadmap-dot.future {
    background: var(--glass-border);
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.8); }
}

.roadmap-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Railway Section */
.railway-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.railway-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 212, 255, 0.5);
    border-left-color: var(--accent-teal);
}

.railway-card .bi {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.railway-card h4 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.railway-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.railway-card ul li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.railway-card ul li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-teal);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.railway-benefits-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 200, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.railway-benefits-card .bi {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.railway-benefits-card .benefit-value {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.railway-benefits-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Section backgrounds */
.bg-section-alt {
    background: var(--bg-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .key-value {
        font-size: 2rem;
    }

    .savings-highlight {
        font-size: 2.25rem;
    }
}

@media (max-width: 767.98px) {
    .roadmap::before {
        top: 0;
        bottom: 0;
        left: 10px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .roadmap-item {
        text-align: left;
        padding-left: 2.5rem;
    }

    .roadmap-dot {
        position: absolute;
        left: 0;
        top: 0.25rem;
        margin: 0;
    }
}
