:root {
    --bg-color: #fbfbfd;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --card-bg: #ffffff;
    --accent-blue: #0071e3;
    --accent-glow: rgba(0, 113, 227, 0.4);
    --line-light: #d2d2d7;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar-content {
    width: 100%;
    max-width: 1000px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--line-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.lang-selector {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--line-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-light);
    border-radius: 16px;
    padding: 8px;
    min-width: 140px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-selector:hover .lang-menu,
.lang-selector.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}

.lang-menu a:hover, .lang-menu a.active {
    background: rgba(0, 113, 227, 0.08);
    color: var(--accent-blue);
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    max-height: 800px;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    z-index: -2;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3 {
    letter-spacing: -0.015em;
    font-weight: 600;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 40vh;
    position: relative;
}

.classic-link-wrapper {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out;
    padding: 0 10px;
}

.classic-link {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.6;
    
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    background: rgba(0,0,0,0.03);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.classic-link a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}

.classic-link:hover {
    background: rgba(0,0,0,0.06);
}

.hero-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-xl);
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    margin-bottom: 80px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s var(--transition-smooth) forwards;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #0071e3, #45a1ff);
}

.hero-card h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-card p {
    font-size: 1.25rem;
    color: #515154;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-wrapper {
    position: relative;
    padding: 40px 0 0 0;
}

.timeline-lines-wrapper {
    position: absolute;
    top: 0;
    bottom: 140px;
    left: 32px;
    width: 4px;
    z-index: 1;
}

.timeline-line-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--line-light);
    border-radius: 10px 10px 0 0;
}

.timeline-line-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #0071e3 0%, #00c6ff 100%);
    border-radius: 10px 10px 0 0; /* Flat bottom */
    box-shadow: 0 0 12px var(--accent-glow);
    transition: height 0.1s linear;
    z-index: 2;
}

.timeline-item {
    position: relative;
    padding-left: 90px;
    margin-bottom: 60px;
    opacity: 0.4;
    transform: translateX(20px);
    transition: all var(--transition-smooth);
    z-index: 5;
}

.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}

.icon-node {
    position: absolute;
    left: 12px;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 2px solid var(--line-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.timeline-item.active .icon-node {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15), 0 8px 16px rgba(0, 113, 227, 0.2);
    transform: scale(1.15);
}

.timeline-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.timeline-item.active .timeline-content {
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-break {
    margin: 100px 0 60px 0;
    text-align: center;
    position: relative;
}

.section-break h2 {
    font-size: 2rem;
    background: var(--bg-color);
    display: inline-block;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-break::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-light);
    z-index: 1;
}

.flow-item .timeline-content {
    padding: 24px;
    border-radius: 16px;
}
.flow-item .icon-node {
    width: 36px;
    height: 36px;
    left: 16px;
    font-size: 1rem;
}

.final-cap {
    position: relative;
    height: 160px;
    margin-left: 30px; 
}

.cap-curve {
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
}

.big-checkmark {
    position: absolute;
    top: 90px;
    left: 160px;
    transform: translate(-50%, -50%) scale(1);
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 4px solid var(--line-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--line-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.big-checkmark.enlightened {
    border-color: #0071e3;
    color: #ffffff;
    background: #0071e3;
    box-shadow: 0 0 0 8px rgba(0, 113, 227, 0.15), 0 20px 40px rgba(0, 113, 227, 0.3);
    transform: translate(-50%, -50%) scale(1.15);
}

.big-checkmark svg {
    width: 40px;
    height: 40px;
}

.cta-wrapper {
    position: absolute;
    top: 90px;
    left: 220px;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.1s;
}

.cta-wrapper.enlightened {
    opacity: 1;
    visibility: visible;
    left: 240px;
}

.modern-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
}

.modern-cta-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.modern-cta-btn:hover {
    background: #006add;
    box-shadow: 0 8px 25px rgba(0, 113, 227, 0.45);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 600px) {
    .grid-background {
        background-size: 30px 30px;
    }
    .hero-card {
        padding: 32px 20px;
    }
    .hero-card h1 {
        font-size: 1.75rem;
    }
    .timeline-lines-wrapper {
        left: 20px;
        bottom: 230px; 
    }
    .final-cap {
        margin-left: 18px;
        height: 250px;
    }
    .big-checkmark {
        left: calc(50% - 9px); 
    }
    .cta-wrapper {
        top: 180px;
        left: calc(50% - 9px);
        transform: translate(-50%, 20px);
    }
    .cta-wrapper.enlightened {
        left: calc(50% - 9px);
        transform: translate(-50%, 0);
    }
    .icon-node {
        left: 0;
    }
    .flow-item .icon-node {
        left: 4px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-content {
        padding: 24px 20px;
    }
    .hero-glow {
        width: 100%;
    }
}

.modern-feature-cards {
    display: grid;
    grid-template-columns: 1fr; 
    max-width: 650px;
    margin: 0 auto 80px auto; 
    gap: 24px;
    animation: slideUp 0.8s var(--transition-smooth) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 113, 227, 0.08);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-blue);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modern-feature-cards {
        grid-template-columns: 1fr;
    }
}