:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Light Theme (Default) */
    --bg-main: #ffffff;
    --bg-surface: #f9fafb;
    --bg-card: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --aurora-1: rgba(79, 70, 229, 0.05);
    --aurora-2: rgba(124, 58, 237, 0.05);

    /* Grid System */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-12: 3rem;
    /* 48px */
}

[data-theme="dark"] {
    --bg-main: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);

    --aurora-1: rgba(99, 102, 241, 0.15);
    --aurora-2: rgba(168, 85, 247, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
.logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

/* Header & Nav */
header {
    padding: var(--space-4) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--glass);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: var(--space-1);
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

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

.lang-btn,
.theme-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.lang-btn:hover,
.theme-btn:hover {
    border-color: var(--primary);
    background: var(--bg-main);
}

.theme-btn {
    padding: 0.4rem;
    width: 36px;
    height: 36px;
}

/* Buttons */
.btn {
    padding: var(--space-3) var(--space-6);
    border-radius: 12px;
    font-weight: 600;
    display: inline-block;
}

.btn-lg {
    padding: var(--space-4) var(--space-12);
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-surface);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Hero Section Redesign */
.hero-new {
    padding: var(--space-12) 0 var(--space-8);
    padding-top: calc(var(--space-12) + 80px);
    /* Adjust for header height */
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--bg-main);
}

.aurora-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background:
        radial-gradient(circle at 30% 30%, var(--aurora-1) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, var(--aurora-2) 0%, transparent 40%);
    filter: blur(100px);
    z-index: 0;
    animation: aurora-flow 20s infinite alternate linear;
}

@keyframes aurora-flow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-45%, -55%) rotate(5deg);
    }
}

.hero-centered {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px !important;
}

.hero-header h1 {
    font-size: 3rem;
    margin-bottom: var(--space-12);
    line-height: 1.2;
}

.hero-input-wrapper {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: var(--space-2);
    display: flex;
    box-shadow: var(--shadow-lg);
}

.hero-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.hero-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: var(--space-4) var(--space-6);
    font-size: 1.2rem;
    outline: none;
}

.hero-search-btn {
    background: var(--primary);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.hero-search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.entry-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: var(--space-8);
    text-align: left;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.entry-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tile-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.entry-tile h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

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

/* Features */
.features {
    padding: var(--space-12) 0;
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--space-12) var(--space-8);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: 0.4s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

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

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

.feature-showcase {
    margin-top: 4rem;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-showcase img {
    width: 100%;
    vertical-align: middle;
}

/* Pricing */
.pricing {
    padding: 8rem 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
}

.pricing-promo {
    margin-top: 2rem;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.promo-tag {
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--text-main);
}

.discount-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: var(--space-12) var(--space-8);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    position: relative;
    background: rgba(99, 102, 241, 0.05);
}

.pricing-card .badge {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: var(--space-6) 0;
}

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

.pricing-features {
    margin-bottom: 3rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: "✓";
    color: var(--primary);
    margin-right: var(--space-2);
    font-weight: 800;
}

/* Footer */
footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

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

.footer-bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #475569;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

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

    .hero-content h1 {
        font-size: 3.5rem;
    }
}