:root {
    --color-primary: #9b51e0; /* Vibrant purple from logo */
    --color-primary-hover: #8e2de2;
    --color-secondary: #c4b5fd;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fc; /* Slightly cooler background */
    --color-text: #1e1d41; /* Dark navy from Build text */
    --color-text-muted: #6b7280;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-img {
    height: 65px; /* Увеличена высота для лучшей читаемости */
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav a {
    text-decoration: none;
    color: var(--color-text);
    margin-left: 2rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav a:hover, .nav .lang-switch {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(124, 58, 237, 0.05);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1f2937, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(124, 58, 237, 0.2);
    bottom: -50px;
    right: -50px;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.pricing-card .desc {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--color-text);
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 32px 28px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(155, 81, 224, 0.1);
    border-color: rgba(155, 81, 224, 0.15);
    background: #fff;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

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

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Pricing Tabs */
.pricing-tabs {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.tab-btn {
    padding: 10px 20px;
    border: 2px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--color-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-img { height: 45px; } /* Чуть меньше на телефоне, чтобы поместились кнопки */
    .hero h1 { font-size: 2.5rem; }
    
    /* Keep only Login and Language switch on mobile */
    .nav a[href="#features"], .nav a[href="#pricing"] { display: none; }
    .nav a { margin-left: 1rem; font-size: 0.9rem; }
    
    .pricing-tabs.mobile-only {
        display: flex;
    }
    
    .pricing-grid { 
        display: block !important;
        padding-bottom: 0;
    }
    
    .pricing-card {
        display: none !important; /* Hide all by default */
        margin-bottom: 20px;
        transform: none !important;
    }
    
    .pricing-card.active-tab {
        display: flex !important;
        animation: fadeIn 0.4s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-10px); }
}

