@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700;900&display=swap');

:root {
    --bg-color: #0c0318;
    --primary-color: #a361ff;
    --secondary-color: #f052a8;
    --text-color: #f0f0f0;
    --card-bg: rgba(20, 9, 36, 0.4);
    --border-color: rgba(163, 97, 255, 0.2);
    --glow-color: rgba(163, 97, 255, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#aurora-background, .vignette { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.vignette { background: radial-gradient(circle, transparent 60%, var(--bg-color) 100%); z-index: -1; }

#portal-loader {
    position: fixed; width: 100vw; height: 100vh; z-index: 100;
    background: var(--bg-color); display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s 3s ease;
}
#portal-loader svg { width: 200px; height: 200px; animation: portal-shrink 1s 2.5s forwards ease-in; }
.portal-path, .portal-path-2 {
    fill: none; stroke-width: 4px; stroke-linecap: round;
    stroke-dasharray: 502; stroke-dashoffset: 502;
    animation: portal-draw 2s forwards ease-in-out, portal-spin 1.5s 1s infinite linear;
}
.portal-path-2 {
    stroke-dasharray: 377; stroke-dashoffset: 377;
    animation-delay: 0.2s, 1.2s; animation-direction: forwards, reverse;
}
@keyframes portal-draw { to { stroke-dashoffset: 0; } }
@keyframes portal-spin { from { transform-origin: center; transform: rotate(0deg); } to { transform-origin: center; transform: rotate(360deg); } }
@keyframes portal-shrink { to { transform: scale(0); opacity: 0; } }

#main-content {
    opacity: 0; clip-path: circle(0% at 50% 50%);
    animation: content-appear 0.01s 3.2s forwards, content-reveal 1s 3.2s forwards cubic-bezier(0.7, 0, 0.3, 1);
}
@keyframes content-appear { to { opacity: 1; } }
@keyframes content-reveal { to { clip-path: circle(150% at 50% 50%); } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 60px; }

.top-nav { position: absolute; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 10; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-small { font-weight: 900; font-size: 1.5rem; }
.lang-switcher button {
    background: none; border: none; color: var(--text-color); font-size: 1rem; font-weight: 700; cursor: pointer;
    opacity: 0.5; transition: opacity 0.3s, color 0.3s;
}
.lang-switcher button.active { opacity: 1; color: var(--primary-color); }
.lang-switcher button:hover:not(.active) { opacity: 0.8; }
.lang-switcher span { margin: 0 5px; opacity: 0.5; }

.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-container { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.hero-image-container { flex: 1.2; perspective: 1500px; }
.hero h1 {
    font-size: clamp(4rem, 10vw, 8rem); font-weight: 900; line-height: 1;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.5rem; margin: 20px 0 40px; opacity: 0.8; }

.cta-button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white; padding: 18px 36px; border-radius: 50px; text-decoration: none; font-weight: 700;
    display: inline-block; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cta-button:hover { transform: scale(1.05) translateY(-3px); box-shadow: 0 15px 40px rgba(163, 97, 255, 0.5); }

.hero-image {
    width: 100%; transform: rotateY(-15deg) rotateX(5deg);
    filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.5)); transition: transform 0.5s;
}
.hero-image:hover { transform: rotateY(0) rotateX(0) scale(1.05); }

.reveal-text { opacity: 0; transform: translateY(30px); animation: reveal-up 1s forwards; animation-delay: 3.8s; }
.reveal-text.delay-1 { animation-delay: 4s; }
.reveal-text.delay-2 { animation-delay: 4.2s; }
@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }

.reveal-fade { opacity: 0; animation: fadeIn 1s forwards; animation-delay: 3.6s; }
@keyframes fadeIn { to { opacity: 1; } }

#features { padding: 100px 0; }
.feature-item { display: flex; gap: 60px; align-items: center; margin-bottom: 120px; }
.feature-item.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-image { flex: 1; }
.feature-image img { width: 100%; border-radius: 15px; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));}
.feature-text h2 {
    font-size: 2.5rem; margin-bottom: 20px;
    background: linear-gradient(90deg, var(--text-color), var(--border-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.feature-text p { font-size: 1.1rem; line-height: 1.7; opacity: 0.8; }

.scroll-reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }
.scroll-reveal.is-visible h2, .scroll-reveal.is-visible p { animation: reveal-up 0.8s 0.2s forwards; opacity: 0; }
.scroll-reveal.is-visible p { animation-delay: 0.4s; }

/* Секция с ценами */
#pricing { padding: 50px 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}
.price-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    border-radius: 20px; padding: 40px; text-align: center;
    backdrop-filter: blur(10px); transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.price-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }

.price-card h3 { font-size: 1.5rem; margin-bottom: 20px; }
.price-card .price { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.price-card .price .currency { font-size: 1.5rem; font-weight: 500; opacity: 0.6; }
.price-card .plan-desc { opacity: 0.7; margin-bottom: 40px; }
.price-button {
    background: rgba(255,255,255,0.1); color: var(--text-color);
    padding: 15px 30px; border-radius: 50px; text-decoration: none;
    font-weight: 700; display: block; border: 1px solid var(--border-color);
    transition: background-color 0.3s, color 0.3s;
}
.price-button:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

.price-card.best-value {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 80px var(--glow-color);
}
.best-value-tag {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white; padding: 5px 15px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 700;
}
.price-card.best-value .price-button {
    background: var(--primary-color); color: white;
}

.crypto-note { text-align: center; margin-top: 40px; opacity: 0.7; }

#cta { padding: 80px 0; }
.cta-container {
    text-align: center; padding: 60px; border-radius: 20px;
    background: var(--card-bg); border: 1px solid var(--border-color);
    backdrop-filter: blur(10px); box-shadow: 0 0 80px rgba(163, 97, 255, 0.2);
}
#cta h2 { font-size: 2.5rem; margin-bottom: 20px; }
#cta p { max-width: 600px; margin: 0 auto 40px; opacity: 0.8; }

footer { text-align: center; padding: 50px 0; opacity: 0.6; border-top: 1px solid var(--border-color); }