/* === БАЗОВЫЕ НАСТРОЙКИ === */
html {
    scroll-behavior: smooth;
}

:root {
    /* RUST OFFICIAL PALETTE */
    --rust-red: #CD412B;
    --rust-orange: #C26D33;
    --rust-charcoal: #1E2020;
    --rust-green: #738D45;
    --rust-cream: #E4DAD1;
    --rust-grey: #A4A6A7;
    
    /* GLASS SETTINGS */
    --glass-bg: rgba(30, 32, 32, 0.65); /* Charcoal с прозрачностью */
    --glass-border: rgba(228, 218, 209, 0.08); /* Cream с прозрачностью */
    --card-hover: rgba(40, 42, 42, 0.8);
    --glow-color: rgba(205, 66, 43, 0.5); /* Красное свечение */
}

body {
    background-color: #050505;
    font-family: 'Inter', sans-serif; /* Современный шрифт */
    overflow-x: hidden;
    color: var(--rust-cream);
}

/* Фон */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('/img/background.jpg'); 
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Затемнение (Charcoal Tint) */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 15, 0.85);
    z-index: -1;
    backdrop-filter: blur(10px);
}

/* Шум */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 50;
    opacity: 0.5;
}

/* Типографика */
.font-bebas { font-family: 'Bebas Neue', sans-serif; letter-spacing: 1px; }
.text-rust { color: var(--rust-red); }

/* === iOS GLASS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Bento Cards */
.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30,32,32,0.5) 0%, rgba(20,20,20,0.6) 100%);
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    background: var(--card-hover);
    border-color: rgba(205, 66, 43, 0.3); /* Rust Red border */
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(3deg);
    background: var(--rust-red);
    color: white;
    box-shadow: 0 0 30px var(--glow-color);
}

.icon-box {
    width: 60px; height: 60px; border-radius: 18px; /* iOS Squircle */
    background: rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; justify-content: center;
    color: var(--rust-red); font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Server Card */
.server-card:hover {
    transform: translateY(-8px);
    border-color: var(--rust-red);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(205, 66, 43, 0.15);
}

/* === UI ELEMENTS === */
.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(115, 141, 69, 0.15); /* Green tint */
    border: 1px solid rgba(115, 141, 69, 0.3);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    color: #a8cf6b;
}

.nav-bar {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons (Rounded & Modern) */
.main-btn {
    position: relative;
    padding: 16px 40px;
    border-radius: 999px;
    font-weight: 700;
    background: var(--rust-cream);
    color: var(--rust-charcoal);
    transition: all 0.3s ease;
    overflow: hidden;
}
.main-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(228, 218, 209, 0.3);
    background: white;
}

.glass-btn {
    padding: 16px 40px;
    border-radius: 999px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--rust-cream);
    transition: all 0.3s ease;
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

/* Socials */
.social-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease; color: var(--rust-grey);
}
.social-btn:hover { color: white; transform: translateY(-3px); }
.social-btn.discord:hover { background: #5865F2; border-color: #5865F2; box-shadow: 0 0 15px #5865f280; }
.social-btn.vk:hover { background: #0077FF; border-color: #0077FF; box-shadow: 0 0 15px #0077ff80; }
.social-btn.telegram:hover { background: #24A1DE; border-color: #24A1DE; box-shadow: 0 0 15px #24a1de80; }

/* Lights */
.ambient-light {
    position: fixed; width: 800px; height: 800px;
    border-radius: 50%; filter: blur(140px); opacity: 0.12;
    z-index: -1; pointer-events: none;
    animation: floatLight 12s infinite alternate ease-in-out;
}
.light-1 { top: -200px; left: -100px; background: var(--rust-red); }
.light-2 { bottom: -200px; right: -100px; background: var(--rust-green); animation-delay: -5s; }

@keyframes floatLight { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 40px) scale(1.1); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.animate-slide-down { animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }