:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --rgb-primary: 106, 17, 203;
    --text-color: #f0f0f0;
    --background-color: #1a1a2e;
    --surface-color: #2a2a3a;
    --header-height: 70px;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a3a;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.logo {
    height: 40px;
    margin-right: 10px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

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

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

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: var(--header-height);
    background: linear-gradient(-45deg, #ff9a9e, #fecfef, #a1c4fd, #8fd3f4);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(60deg, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(120deg, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 50px 86.6px; /* width : width * sqrt(3) */
    animation: moveGrid 20s linear infinite;
    z-index: 0;
}

@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: -50px -86.6px; }
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    filter: brightness(1.15);
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.feature-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    text-align: center;
}

.feature-image img {
    max-width: 300px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(var(--rgb-primary), 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 30px rgba(var(--rgb-primary), 0.3);
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: #11121E;
    color: #eee;
    text-align: center;
    padding: 60px 20px;
}

.main-footer h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.main-footer p {
    margin-bottom: 15px;
    color: #aaa;
}

.main-footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: #a1c4fd;
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.copyright p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .main-header {
        height: auto;
    }
    .main-nav ul {
        padding-top: 5px;
    }
    .main-nav ul li {
        margin: 0 15px;
    }
    
    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 120px 20px 60px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .feature-item, .feature-item:nth-child(odd) {
        flex-direction: column;
    }

    .feature-text {
        text-align: center;
        margin-top: 20px;
    }
}