* {
    font-family: 'Inter', sans-serif;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

.inline-code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    font-size: 0.9em;
    color: #c084fc;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

[class*="icon"], 
.feature-icon,
.capability-icon,
.telegram-icon,
.telegram-link-icon,
.logo-nav,
.logo-hero,
.logo-footer {
    cursor: pointer;
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Kingrat.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px) brightness(0.7) saturate(1.5);
    transform: scale(1.02);
    z-index: 0;
    opacity: 0.6;
}

.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(15, 23, 42, 0.3), rgba(30, 27, 75, 0.25), rgba(49, 46, 129, 0.25), rgba(30, 41, 59, 0.3));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    mix-blend-mode: soft-light;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.kingrat-hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 80%;
    max-height: 800px;
    background-image: url('Kingrat.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    filter: blur(20px) brightness(0.5);
    z-index: 1;
    pointer-events: none;
    animation: kingratPulse 8s ease-in-out infinite;
}

@keyframes kingratPulse {
    0%, 100% {
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.12;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #10b981 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.nav-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #a855f7;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-badge:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.feature-badge span {
    cursor: pointer;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.architecture-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.architecture-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
}

.tech-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.1);
}

.capability-item {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s ease;
}

.capability-item:hover {
    transform: translateX(10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.capability-icon {
    font-size: 3rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.capability-item:hover .capability-icon {
    transform: scale(1.15) rotate(-5deg);
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

.animate-slide-up {
    animation: slide-up 1s ease-out 0.3s both;
}

.animate-fade-in-delay {
    animation: fade-in 1s ease-out 0.6s both;
}

html {
    scroll-behavior: smooth;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-glow {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5),
                 0 0 40px rgba(139, 92, 246, 0.3),
                 0 0 60px rgba(139, 92, 246, 0.2);
}

@media (max-width: 768px) {
    .feature-card,
    .architecture-card,
    .tech-card,
    .capability-item {
        padding: 1.5rem;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
    }
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9333ea, #2563eb);
}

.contact-btn {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #a855f7, #3b82f6);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.4);
    background: linear-gradient(135deg, #9333ea, #2563eb);
}

.contact-btn:active {
    transform: translateY(0);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #a855f7;
    transform: rotate(90deg);
}

.modal-content {
    padding: 2rem;
}

.telegram-contact {
    text-align: center;
}

.telegram-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(34, 158, 217, 0);
    }
}

.telegram-link-container {
    margin: 2rem 0;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 158, 217, 0.3);
}

.telegram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 158, 217, 0.5);
    background: linear-gradient(135deg, #0077b5, #1a8cd8);
}

.telegram-link-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    cursor: pointer;
}

.telegram-link-text {
    font-family: 'JetBrains Mono', monospace;
}

.logo-wrapper-nav {
    display: inline-block;
    background: white;
    border-radius: 50%;
    padding: 2px;
}

.logo-nav {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
    mix-blend-mode: multiply;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.logo-nav:hover {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.8)) 
            drop-shadow(0 0 40px rgba(139, 92, 246, 0.6))
            drop-shadow(0 0 60px rgba(139, 92, 246, 0.4))
            brightness(1.3);
    transform: scale(1.05);
}

.logo-hero {
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 4px;
    mix-blend-mode: darken;
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.logo-hero:hover {
    filter: drop-shadow(0 0 50px rgba(139, 92, 246, 1)) 
            drop-shadow(0 0 100px rgba(139, 92, 246, 0.9))
            drop-shadow(0 0 150px rgba(139, 92, 246, 0.7))
            drop-shadow(0 0 200px rgba(59, 130, 246, 0.5))
            drop-shadow(0 0 250px rgba(59, 130, 246, 0.3))
            brightness(1.6)
            contrast(1.15)
            saturate(1.2);
    transform: scale(1.1);
    animation-play-state: paused;
}

.logo-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(59, 130, 246, 0.2) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.logo-hero:hover::before {
    opacity: 1;
    width: 300%;
    height: 300%;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-footer {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
    background: white;
    border-radius: 50%;
    padding: 2px;
    mix-blend-mode: darken;
    opacity: 0.9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo-footer:hover {
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.7)) 
            drop-shadow(0 0 30px rgba(139, 92, 246, 0.5))
            brightness(1.3);
    opacity: 1;
    transform: scale(1.05);
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.windows-version-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.windows-version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.windows-version-card:hover::before {
    left: 100%;
}

.windows-version-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.windows-icon {
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.windows-icon svg,
.windows-icon img {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.windows-xp .windows-icon img {
    filter: none;
}

.windows-vista .windows-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(5000%) hue-rotate(200deg) brightness(0.9) contrast(1.2);
}

.windows-7 .windows-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(5000%) hue-rotate(200deg) brightness(0.9) contrast(1.2);
}

.windows-version-card:hover .windows-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.windows-version-card:hover .windows-icon svg {
    filter: brightness(1.2);
}

.windows-version-info {
    flex: 1;
    margin-bottom: 1rem;
}

.windows-version-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.windows-version-year {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.windows-check {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.windows-version-card:hover .windows-check {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .telegram-link {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .logo-hero {
        height: 6rem !important;
    }
    
    .compatibility-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .windows-version-card {
        padding: 1.25rem;
    }
    
    .windows-icon {
        font-size: 2.5rem;
    }
    
    .windows-version-name {
        font-size: 1.25rem;
    }
}

/* Blur effects for scroll */
.blur-on-scroll {
    filter: blur(8px);
    transition: filter 0.3s ease-in-out;
    pointer-events: none;
}

.blur-on-scroll-nav {
    filter: blur(4px);
    transition: filter 0.3s ease-in-out;
}

