/* Base & Variables */
:root {
    --bg-dark: #f4f7f9;
    /* 浅色主背景色 */
    --bg-panel: rgba(255, 255, 255, 0.75);
    /* 明亮的玻璃模糊面板 */
    --bg-glass: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(0, 0, 0, 0.06);
    /* 更加柔和的黑色透明显界边框 */

    --primary: #4a68ff;
    --primary-hover: #3a55e0;
    --primary-glow: rgba(74, 104, 255, 0.25);

    --text-main: #111827;
    /* 极深的灰色用于主内容文本 */
    --text-muted: #6b7280;
    /* 正文次要内容 */

    --nav-height: 80px;

    /* Gradients */
    --gradient-text: linear-gradient(90deg, #6644ff 0%, #4466ff 50%, #00ccff 100%);
    --gradient-glow-1: #4a68ff;
    --gradient-glow-2: #bd00ff;
    --gradient-glow-3: #00e5ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(74, 104, 255, 0.06), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(189, 0, 255, 0.06), transparent 25%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Animated Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-glow-1);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-glow-2);
    top: 40%;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--gradient-glow-3);
    bottom: -100px;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -50px) scale(0.9);
    }
}

/* Components */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-glass {
    background: var(--bg-glass);
    border-color: var(--border-glass);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
}

.btn-text:hover {
    color: var(--primary);
}

.shadow-glow {
    box-shadow: 0 0 30px var(--primary-glow);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(74, 104, 255, 0.08);
    border: 1px solid rgba(74, 104, 255, 0.15);
    border-radius: 50px;
    color: #4a68ff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(244, 247, 249, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
    /* 由于深色背景，如果原图是纯黑的可能需要反色过滤。假设是原色渐变则直接显示即可 */
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    padding: 0 2rem;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 5rem;
}

/* Mockup Widget */
.hero-mockup {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-10px);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-body {
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.chart-bars {
    flex: 1;
    height: 100px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.bar {
    flex: 1;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar.highlight {
    background: var(--gradient-text);
    box-shadow: 0 0 15px rgba(74, 104, 255, 0.4);
}

.code-preview {
    flex: 1;
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: nowrap;
}

.code-preview span {
    color: #00aaff;
    font-weight: bold;
}

/* Section Common */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.4s ease, border-color 0.4s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 0, 0, 0.03), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.feature-card>* {
    position: relative;
    z-index: 1;
}

.icon-wrapper {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
}

.blue-glow {
    box-shadow: 0 0 20px rgba(74, 104, 255, 0.2);
}

.purple-glow {
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
}

.green-glow {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

.orange-glow {
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.2);
}

.cyan-glow {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.pink-glow {
    box-shadow: 0 0 20px rgba(255, 0, 150, 0.2);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4rem !important;
    text-align: center;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-size: 1.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    background: rgba(244, 247, 249, 0.9);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    color: #616781;
    font-size: 0.85rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.observe-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.observe-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .mockup-body {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 2rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}