@font-face {
    font-family: 'Chapman';
    src: url('../assets/ChapmanWeb-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #4F46E5;
    --text-color: #1d1e3a;
    --bg-color: #ffffff;
    --border-color: #e6e6ef;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    list-style: none;
}

.nav-item a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -5%;
    width: 40%;
    height: 80%;
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: 50%;
    transform: rotate(-10deg);
    z-index: -1;
}

.container::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -5%;
    width: 45%;
    height: 90%;
    background: linear-gradient(45deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 50%;
    transform: rotate(10deg);
    z-index: -1;
}

.logo-section {
    width: 100%;
    max-width: 600px;
    margin: 6rem auto 3rem;
    padding: 0;
}

.logo-animated {
    position: relative;
    width: 100%;
    overflow: visible;
}

.logo-animated-container {
    position: relative;
    width: 100%;
    padding-bottom: 30%;
}

#logoCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.slogan {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), #9333EA);
    text-align: center;
    margin-bottom: 1rem;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
    perspective: 1000px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    flex: 1;
    max-width: 300px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card:nth-child(1) { animation-delay: 0.3s; }
.feature-card:nth-child(2) { animation-delay: 0.5s; }
.feature-card:nth-child(3) { animation-delay: 0.7s; }

.footer-nav {
    background: var(--bg-color);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-nav .left-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-nav .logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.footer-nav .right-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-nav .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav .nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

.footer-nav .copyright {
    font-size: 0.8rem;
    color: var(--text-color);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav .copyright a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer-nav .copyright img {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

.footer-nav .copyright a:hover {
    color: var(--primary-color);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) { top: 20%; left: 20%; animation-duration: 15s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-duration: 25s; }
.particle:nth-child(3) { top: 40%; left: 40%; animation-duration: 20s; }
.particle:nth-child(4) { top: 80%; left: 60%; animation-duration: 18s; }
.particle:nth-child(5) { top: 30%; left: 70%; animation-duration: 22s; }

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(100px, 100px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-list {
        gap: 1rem;
    }

    .container {
        padding: 5rem 1rem 1rem;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
    }

    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem 1rem;
    }
    
    .footer-nav .nav-links {
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }

    .footer-nav .nav-link {
        font-size: 0.8rem;
    }

    .footer-nav .left-section,
    .footer-nav .right-section {
        width: 100%;
        text-align: center;
    }

    .footer-nav .copyright {
        text-align: center;
    }

    .container::before,
    .container::after {
        width: 70%;
        height: 50%;
        opacity: 0.7;
    }

    .slogan {
        font-size: 2.5rem;
    }
}
