:root {
    --bg-dark: #050510;
    --primary: #4facfe;
    --secondary: #00f2fe;
    --text-main: #ffffff;
    --text-muted: #a0a5b5;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

canvas#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 100;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.btn-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.5);
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out forwards;
}

.glow-text {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a0a5b5);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-stats {
    display: inline-block;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    margin-bottom: 2.5rem;
}

.hero-stats .highlight {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.4rem;
    margin-right: 0.5rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Sections Common */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20%;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

/* Features */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: var(--glass-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5));
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
}

/* Models */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.model-group {
    padding: 2.5rem;
}

.model-group h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.model-group ul {
    list-style: none;
    text-align: left;
}

.model-group li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
}

.model-group li::before {
    content: '✧';
    color: var(--secondary);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: var(--glass-hover);
}

.price-card.popular {
    transform: scale(1.05);
    border-color: rgba(79, 172, 254, 0.4);
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.15);
    z-index: 10;
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 126, 95, 0.4);
    white-space: nowrap;
}

.tier {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.value-badge {
    display: inline-block;
    background: rgba(0, 242, 254, 0.1);
    color: var(--secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.comparison {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-card .btn-primary {
    width: 100%;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 5% 1rem;
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-contact {
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--primary);
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 2rem;
}

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

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .price-card {
        width: 100%;
        max-width: 400px;
    }
    .price-card.popular {
        transform: scale(1);
    }
    .price-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .glow-text {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
