:root {
    /* Цвета (как были) */
    --bg-dark: #101113;
    --surface: #1A1D23;
    --text-main: #FFFFFF;
    --text-muted: #909296;
    
    /* Акценты */
    --cyan-light: rgba(34, 211, 238, 0.15);
    --cyan-border: rgba(34, 211, 238, 0.3);
    --cyan-text: #22D3EE;

    --green-light: rgba(64, 192, 87, 0.15);
    --green-border: rgba(64, 192, 87, 0.3);
    --green-text: #40C057;

    --orange-light: rgba(255, 146, 43, 0.15);
    --orange-border: rgba(255, 146, 43, 0.3);
    --orange-text: #FF922B;

    --purple-light: rgba(204, 93, 232, 0.15);
    --purple-border: rgba(204, 93, 232, 0.3);
    --purple-text: #CC5DE8;

    --glass-header: rgba(26, 29, 35, 0.6);
    --blur: blur(20px);
    
    --font-heading: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Анимации */
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1); /* Эффект пружины */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background-color: #0d1117;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* === ЖИВОЙ ФОН === */
.ambient-bg {
    position: fixed; width: 100%; height: 100%; z-index: -1; top: 0; left: 0;
    pointer-events: none;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}
.blob-1 {
    top: -20%; left: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(12, 74, 110, 0.8) 0%, transparent 70%);
}
.blob-2 {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(46, 16, 101, 0.8) 0%, transparent 70%);
    animation-delay: -5s;
}
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(20px, 40px); } }

/* === LAYOUT === */
.layout {
    max-width: 1200px; margin: 0 auto; padding: 20px;
    display: flex; flex-direction: column; min-height: 100vh;
    perspective: 1000px; /* Для 3D эффекта карточек */
}

/* === HEADER === */
.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 32px; margin-top: 20px;
    border-radius: 24px;
    background: var(--glass-header);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 20px; z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    
    /* Анимация появления */
    animation: slideDown 0.8s var(--ease-out-back) forwards;
    transform: translateY(-150%);
}

.brand { display: flex; align-items: center; gap: 14px; }
.logo-mark {
    width: 40px; height: 40px; background: var(--cyan-text); color: #000;
    border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5); color: white;
}
.logo-text {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    color: white; letter-spacing: -0.03em;
}
.logo-text span { color: var(--cyan-text); }

.status-indicator {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    background: rgba(0,0,0,0.2); padding: 8px 16px; border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}
.pulse-dot {
    width: 8px; height: 8px; background: #32D74B; border-radius: 50%;
    box-shadow: 0 0 10px #32D74B; animation: pulse 2s infinite;
}
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.2); } 100% { opacity: 1; transform: scale(1); } }

/* === HERO SECTION === */
.hero-section {
    text-align: center;
    padding: 100px 20px 80px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    
    /* Анимация появления */
    animation: fadeInUp 0.8s var(--ease-out-back) 0.2s forwards;
    opacity: 0; transform: translateY(30px);
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px;
    background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--cyan-text); font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 30px;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px; line-height: 1.1; font-weight: 700;
    margin-bottom: 24px;
}

/* Живой текст */
.text-gradient {
    background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 50%, #8B5CF6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shimmer 5s ease infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.hero-desc {
    font-size: 20px; color: var(--text-muted); max-width: 600px; line-height: 1.6;
}

/* === BENTO GRID === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; margin-bottom: 60px;
    padding: 0 20px;
}

/* CARD 3D STYLES */
.glass-card {
    position: relative;
    border-radius: 24px;
    padding: 30px;
    background: rgba(26, 29, 35, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; flex-direction: column;
    height: 260px;
    text-decoration: none;
    
    /* Для 3D эффекта */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s; /* Очень быстрая реакция на мышь */
    
    /* Анимация появления (Лесенка) */
    opacity: 0; 
    animation: cardPop 0.6s var(--ease-out-back) forwards;
}

/* Задержки для карт (Лесенка) */
.glass-card:nth-child(1) { animation-delay: 0.4s; }
.glass-card:nth-child(2) { animation-delay: 0.5s; }
.glass-card:nth-child(3) { animation-delay: 0.6s; }
.glass-card:nth-child(4) { animation-delay: 0.7s; }

.card-bg-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; opacity: 0; transition: opacity 0.4s;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
}
.glass-card:hover .card-bg-gradient { opacity: 1; }

.card-content {
    position: relative; z-index: 1; height: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    pointer-events: none; /* Чтобы мышь не цеплялась за контент */
}

/* Акценты */
.accent-cyan:hover { border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 30px rgba(34, 211, 238, 0.1); }
.accent-cyan .card-icon { color: var(--cyan-text); background: var(--cyan-light); border: 1px solid var(--cyan-border); }

.accent-green:hover { border-color: rgba(64, 192, 87, 0.5); box-shadow: 0 0 30px rgba(64, 192, 87, 0.1); }
.accent-green .card-icon { color: var(--green-text); background: var(--green-light); border: 1px solid var(--green-border); }

.accent-orange:hover { border-color: rgba(255, 146, 43, 0.5); box-shadow: 0 0 30px rgba(255, 146, 43, 0.1); }
.accent-orange .card-icon { color: var(--orange-text); background: var(--orange-light); border: 1px solid var(--orange-border); }

.accent-purple:hover { border-color: rgba(204, 93, 232, 0.5); box-shadow: 0 0 30px rgba(204, 93, 232, 0.1); }
.accent-purple .card-icon { color: var(--purple-text); background: var(--purple-light); border: 1px solid var(--purple-border); }


.card-header { display: flex; justify-content: space-between; align-items: start; }
.card-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    transition: 0.3s;
}
.glass-card:hover .card-icon { transform: scale(1.1) rotate(5deg); }

.card-arrow {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1); color: white;
    font-size: 16px; transition: 0.3s;
}
.glass-card:hover .card-arrow {
    background: white; color: black; transform: rotate(-45deg);
}

.card-body h3 {
    font-family: var(--font-heading); font-size: 24px; font-weight: 600;
    margin-bottom: 10px; color: var(--text-main);
}
.card-body p {
    font-size: 15px; color: var(--text-muted); line-height: 1.6;
}

/* FOOTER */
footer {
    margin-top: auto; text-align: center; color: var(--text-muted); font-size: 14px; opacity: 0;
    padding-bottom: 30px;
    animation: fadeInUp 0.8s ease 1s forwards;
}

/* Animations */
@keyframes slideDown { to { transform: translateY(0); } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes cardPop {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .bento-grid { grid-template-columns: 1fr; }
    .glass-card { height: 200px; }
}