@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #050508;
    --text-color: #ffffff;
    --text-muted: #9aa0b8;
    --primary: #1245b0;
    --primary-light: #2465e6;
    --primary-dark: #092666;
    --card-bg: rgba(18, 30, 60, 0.2);
    --border-color: rgba(36, 101, 230, 0.15);
    --glow: 0 0 30px rgba(36, 101, 230, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}


.bg-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 60%);
    z-index: -1;
    filter: blur(50px);
    opacity: 0.7;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.logo-container img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a.nav-link:hover {
    color: var(--primary-light);
}

.invite-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--glow);
}

.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 40px rgba(36, 101, 230, 0.5);
}

.support-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.support-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}


main {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 5%;
    text-align: center;
}

.hero {
    max-width: 800px;
    margin-top: 4rem;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, var(--primary-light), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite, fadeIn 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}


.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

.feature-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-out backwards;
}

.feature-box:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-box:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-box:nth-child(3) {
    animation-delay: 0.5s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(36, 101, 230, 0.1);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-light);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.feature-box:hover h3 {
    color: #fff;
    text-shadow: 0 0 10px rgba(36, 101, 230, 0.5);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}


.docs-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.docs-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cmd-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.cmd-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.8s ease-out backwards;
}

.cmd-box:nth-child(1) {
    animation-delay: 0.2s;
}

.cmd-box:nth-child(2) {
    animation-delay: 0.4s;
}

.cmd-box:nth-child(3) {
    animation-delay: 0.6s;
}

.cmd-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(36, 101, 230, 0.1);
}

.cmd-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-light);
    transition: width 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cmd-box:hover::before {
    width: 6px;
    background: #fff;
    box-shadow: 0 0 15px var(--primary-light);
}

.cmd-title {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease, background 0.3s ease;
}

.cmd-box:hover .cmd-title {
    color: var(--primary-light);
    background: rgba(36, 101, 230, 0.15);
    text-shadow: 0 0 10px rgba(36, 101, 230, 0.4);
}

.cmd-desc {
    color: var(--text-muted);
    font-size: 1rem;
}


.demos-section {
    margin-top: 6rem;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.demos-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demos-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.demos-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.demo-box {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(18, 30, 60, 0.4), rgba(18, 30, 60, 0.1));
    border: 1px solid rgba(36, 101, 230, 0.2);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.demo-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-light), transparent, var(--primary-dark));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.demo-box:hover::before, .demo-box.active::before {
    opacity: 1;
}

.demo-box:hover, .demo-box.active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(36, 101, 230, 0.15);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.command-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(36, 101, 230, 0.15);
    color: var(--primary-light);
    box-shadow: inset 0 0 10px rgba(36, 101, 230, 0.1);
    transition: all 0.3s ease;
}

.demo-box:hover .icon-wrapper, .demo-box.active .icon-wrapper {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 0 15px rgba(36, 101, 230, 0.4);
    transform: scale(1.05);
}

.demo-header h3 {
    font-size: 1.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.slash {
    color: var(--primary-light);
    margin-right: 2px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 0.5rem;
}

.admin-badge {
    background: rgba(235, 87, 87, 0.15);
    color: #eb5757;
    border: 1px solid rgba(235, 87, 87, 0.3);
}

.user-badge {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.system-badge {
    background: rgba(242, 153, 74, 0.15);
    color: #f2994a;
    border: 1px solid rgba(242, 153, 74, 0.3);
}

.more-info-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.demo-box:hover .more-info-btn {
    background: rgba(36, 101, 230, 0.15);
    border-color: var(--primary-light);
    color: #fff;
}

.demo-box.active .more-info-btn {
    background: var(--primary-light);
    color: #fff;
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(36, 101, 230, 0.4);
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.4s ease;
}

.demo-box.active .arrow {
    transform: rotate(180deg);
}

.demo-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.6s ease;
    position: relative;
    z-index: 1;
}

.demo-box.active .demo-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: 2rem;
}

.demo-content.reverse {
    flex-direction: row-reverse;
}

.demo-info {
    flex: 1;
    text-align: left;
}

.demo-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-light);
}

.demo-img {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.demo-img img {
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: rotateX(5deg) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.8;
}

.demo-box.active .demo-img img {
    transform: rotateX(0deg) scale(1);
    opacity: 1;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 5%;
    }

    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .invite-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        margin-top: 2rem;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .demo-box {
        padding: 1.5rem;
    }

    .demo-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .command-title-wrapper {
        flex-direction: column;
        gap: 0.8rem;
    }

    .badge {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .demo-content,
    .demo-content.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .demo-info {
        text-align: center;
    }

    .demo-header h3 {
        font-size: 1.5rem;
    }

    .features-container,
    .cmd-container {
        grid-template-columns: 1fr;
    }

    .feature-box,
    .cmd-box {
        padding: 1.5rem;
    }

    .docs-header h2,
    .demos-header h2 {
        font-size: 2rem;
    }

    .bg-glow {
        width: 100vw;
        height: 100vw;
        top: -10%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
