:root {
    --primary: #a855f7;
    --secondary: #3b82f6;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --bg-deep: #0a0118;
    --bg-gradient: linear-gradient(135deg, #0a0118 0%, #050a1e 100%);
    --card-glass: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-dim: #adb5c2;
    --card-width: 380px;
    --card-gap: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- BACKGROUND PARTICLES --- */
#star-field {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: var(--bg-gradient);
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.4;
    animation: moveUp linear infinite;
}

@keyframes moveUp {
    from { transform: translateY(110vh); }
    to { transform: translateY(-10vh); }
}

/* --- DYNAMIC ISLAND HEADER --- */
header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    height: 58px;
    min-width: 460px;
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 2000;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.35), 0 15px 35px rgba(0,0,0,0.5);
}

.logo { 
    font-size: 20px; font-weight: 900; letter-spacing: 2px; 
    text-transform: uppercase; 
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; line-height: 1;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

nav { display: flex; gap: 30px; align-items: center; }
nav a { 
    text-decoration: none; color: #fff; font-weight: 600; 
    font-size: 0.8rem; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; line-height: 1;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
nav a:hover { color: #fff; text-shadow: 0 0 15px var(--primary); }

/* --- INTERACTIVE GLOW --- */
#cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
}

/* --- HERO --- */
.hero {
    padding-top: 220px; padding-bottom: 30px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    position: relative; z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    margin-bottom: 25px;
}

.crown-icon {
    width: 65px; height: 65px;
    fill: #fbbf24;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.5));
    flex-shrink: 0;
}

#typewriter {
    background: linear-gradient(to bottom, #fff 40%, var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    border-right: 4px solid var(--primary);
    padding-right: 10px;
    animation: blink 0.7s infinite;
}

@keyframes blink { 50% { border-color: transparent; } }

.hero p { max-width: 1360px; color: var(--text-dim); font-size: 1.15rem; }

/* --- SEAMLESS SLIDER --- */
.slider-wrapper { position: relative; width: 100%; padding: 0 0 100px; z-index: 10; }
.slider-section { overflow: hidden; width: 100%; position: relative; padding: 60px 0; }
.slider-track { display: flex; width: max-content; will-change: transform; }

/* --- FULL CARD DESIGN --- */
.card {
    width: var(--card-width); background: var(--card-glass); backdrop-filter: blur(12px);
    border: 1px solid var(--card-border); border-radius: 40px; padding: 50px;
    margin: 0 calc(var(--card-gap) / 2); flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: visible;
}

.card:hover { 
    transform: translateY(-30px) scale(1.03); border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 30px rgba(168, 85, 247, 0.15);
    z-index: 10;
}

.card-badge { 
    position: absolute; top: 35px; right: 35px; padding: 7px 15px; 
    border-radius: 12px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; 
}
.badge-popular { background: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
.badge-new { background: var(--secondary); box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }

.card-icon-box {
    width: 75px; height: 75px; background: rgba(255, 255, 255, 0.05);
    border-radius: 22px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 35px; border: 1px solid var(--card-border);
}
.card-icon-box svg { width: 35px; height: 35px; fill: var(--primary); filter: drop-shadow(0 0 10px var(--primary)); }

.feature-list { list-style: none; margin-bottom: 40px; }
.feature-list li {
    display: flex; align-items: center; gap: 14px; color: var(--text-dim);
    padding: 12px 0; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.feature-list li::before { content: ""; width: 8px; height: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.btn-card {
    display: block; width: 100%; padding: 18px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border); border-radius: 18px; color: #fff;
    text-align: center; text-decoration: none; font-weight: 700; transition: 0.3s;
}
.card:hover .btn-card { background: var(--primary); border-color: var(--primary); transform: scale(1.02); }

/* --- CONTROLS --- */
.slider-nav { display: flex; justify-content: center; gap: 30px; margin-top: -20px; }
.nav-btn {
    background: var(--card-glass); border: 1px solid var(--card-border);
    color: white; width: 65px; height: 65px; border-radius: 50%;
    cursor: pointer; transition: 0.3s; font-size: 1.4rem;
}
.nav-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.1); box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }

/* --- FEATURES SECTION --- */
#features-section {
    position: relative;
    padding: 80px 0 100px;
    margin-top: 50px;
}

/* Мягкое фоновое свечение для отделения секции */
#features-section::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100vw; height: 100%;
    background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
    z-index: -1; pointer-events: none;
}

.section-title {
    text-align: center; margin-bottom: 70px; position: relative; z-index: 2;
}
.section-title h2 {
    font-size: 2.5rem; font-weight: 900; color: #fff;
    text-transform: uppercase; letter-spacing: 2px;
    display: inline-block; position: relative;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 4px; background: var(--primary);
    border-radius: 2px; box-shadow: 0 0 15px var(--primary);
}
.section-title span { color: var(--primary); text-shadow: 0 0 20px rgba(168, 85, 247, 0.6); }

.features-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px; padding: 0 5%; position: relative; z-index: 2;
}

.feat-item {
    background: var(--card-glass); border: 1px solid var(--card-border);
    border-radius: 25px; padding: 40px; transition: 0.4s;
}
.feat-item:hover { background: rgba(255,255,255,0.06); border-color: var(--primary); transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(168, 85, 247, 0.1); }
.feat-item h4 { color: var(--primary); font-size: 0.8rem; font-weight: 900; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 2px; }
.feat-item h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
.feat-item p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }

footer {
    padding: 60px 20px; 
    border-top: 1px solid var(--card-border); 
    text-align: center; 
    color: var(--text-dim); 
}
.footer-links {
display: flex;
justify-content: center;
gap: 25px;
flex-wrap: wrap;
}

.footer-links a {
color: var(--text-dim);
text-decoration: none;
font-size: 0.85rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease;
position: relative;
}

/* Эффект при наведении */
.footer-links a:hover {
color: var(--primary);
text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Небольшой разделитель между ссылками */
.footer-links a:not(:last-child)::after {
content: '•';
position: absolute;
right: -15px;
color: rgba(255, 255, 255, 0.1);
pointer-events: none;
}