:root {
    --bg-dark: #050710;
    --bg-lighter: #0f1525;
    --accent-cyan: #38bdf8;
    --accent-purple: #818cf8;
    --accent-green: #34d399;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 21, 37, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ═══════ AURORA GLOW BACKGROUNDS ═══════ */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3; pointer-events: none; overflow: hidden;
}
.aurora-blob {
    position: absolute;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.aurora-blob:nth-child(1) {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(56,189,248,0.4) 0%, transparent 70%);
}
.aurora-blob:nth-child(2) {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(129,140,248,0.3) 0%, transparent 70%);
    animation-delay: -10s;
}
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 15vh) scale(1.2); }
}

/* ═══════ NAVBAR ═══════ */
#navbar {
    position: fixed; top: 0; width: 100%; height: 72px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; background: rgba(5, 7, 16, 0.5);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    z-index: 1000; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: #fff;
    font-weight: 800; font-size: 1.25rem; letter-spacing: 1px;
}
.logo-icon {
    width: 32px; height: 32px; background: var(--accent-cyan);
    color: var(--bg-dark); display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-weight: 900; font-family: monospace;
    box-shadow: 0 0 20px rgba(56,189,248,0.5);
}
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.95rem; font-weight: 600;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--accent-cyan); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }

.nav-cta {
    padding: 10px 28px; background: rgba(56, 189, 248, 0.05);
    color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 50px; text-decoration: none;
    font-weight: 600; transition: all 0.4s;
    position: relative; overflow: hidden;
}
.nav-cta::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.nav-cta:hover::before { left: 100%; }
.nav-cta:hover {
    background: var(--accent-cyan); color: #fff;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6); border-color: var(--accent-cyan);
}
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }
.mobile-menu { display: none; }

/* ═══════ HERO ═══════ */
#hero {
    position: relative; height: 100vh; min-height: 800px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding-top: 72px;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%); z-index: 2; pointer-events: none;
}
.hero-content {
    position: relative; z-index: 3; text-align: center; max-width: 900px; padding: 0 20px; pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 30px;
    font-size: 0.75rem; letter-spacing: 3px; color: #fff;
    margin-bottom: 30px; backdrop-filter: blur(10px);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-cyan); box-shadow: 0 0 15px var(--accent-cyan);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}
.hero-title {
    font-size: 4.5rem; font-weight: 900; line-height: 1.15; margin-bottom: 24px;
    text-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 80%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem; color: var(--text-muted); margin-bottom: 50px;
    max-width: 700px; margin-inline: auto; font-weight: 300;
}
.hero-actions { display: flex; gap: 20px; justify-content: center; margin-bottom: 60px; }
.btn-primary {
    padding: 16px 40px; background: #fff; color: var(--bg-dark);
    border-radius: 50px; text-decoration: none; font-weight: 800;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255,255,255,0.3);
}
.btn-outline {
    padding: 16px 40px; background: rgba(255,255,255,0.02); color: #fff;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
    text-decoration: none; font-weight: 600; transition: all 0.4s;
    backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.hero-stats {
    display: flex; justify-content: center; gap: 50px;
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px;
}
.stat-item { text-align: left; }
.stat-num {
    font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px;
    text-shadow: 0 0 30px rgba(56,189,248,0.3);
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }

/* ═══════ SECTIONS ═══════ */
.section-padding { padding: 150px 0; position: relative; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 5%; }
.grid-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px; z-index: 0; pointer-events: none;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.section-header { margin-bottom: 80px; text-align: center; }
.section-badge {
    display: inline-block; color: var(--accent-cyan); font-size: 0.8rem;
    font-weight: 800; letter-spacing: 4px; margin-bottom: 16px;
    text-transform: uppercase; padding: 4px 12px; border: 1px solid rgba(56,189,248,0.2);
    border-radius: 20px; background: rgba(56,189,248,0.05);
}
.section-title { font-size: 3rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
.section-desc { color: var(--text-muted); font-size: 1.2rem; max-width: 700px; margin: 0 auto; font-weight: 300; }

/* Ultimate Glow Cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.glow-card {
    background: var(--glass-bg); border-radius: 16px; padding: 45px 35px;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); position: relative;
    border: 1px solid rgba(255,255,255,0.05); overflow: hidden;
}
/* Border 流光特效 */
.glow-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 60%, var(--accent-cyan) 80%, transparent 100%);
    animation: rotateBorder 4s linear infinite; opacity: 0; transition: opacity 0.4s;
    z-index: -1;
}
.glow-card::after {
    content: ''; position: absolute; inset: 1px; background: var(--bg-dark);
    border-radius: 15px; z-index: -1;
}
@keyframes rotateBorder { 100% { transform: rotate(360deg); } }
.glow-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.glow-card:hover::before { opacity: 1; }
.card-icon { font-size: 3rem; margin-bottom: 24px; display: inline-block; filter: drop-shadow(0 0 15px rgba(255,255,255,0.2)); }
.card-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 16px; color: #fff; }
.card-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }

/* Engine Visualization */
.engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.engine-visual { position: relative; width: 100%; aspect-ratio: 1; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.engine-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(56, 189, 248, 0.1); transform-style: preserve-3d; }
.engine-ring:nth-child(1) { width: 100%; height: 100%; animation: spin3D 20s linear infinite; border-color: rgba(56,189,248,0.4); }
.engine-ring:nth-child(2) { width: 75%; height: 75%; animation: spin3D 15s linear infinite reverse; border-color: rgba(129,140,248,0.5); }
.engine-ring:nth-child(3) { width: 50%; height: 50%; animation: spin3D 10s linear infinite; border-color: rgba(52,211,153,0.6); }
@keyframes spin3D { 0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); } 100% { transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg); } }
.engine-core {
    width: 20%; height: 20%; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; font-weight: 900; color: #fff; box-shadow: 0 0 50px rgba(56,189,248,0.8);
    animation: corePulse 2s infinite alternate; z-index: 10;
}
@keyframes corePulse { 0% { transform: scale(0.9); box-shadow: 0 0 30px rgba(56,189,248,0.5); } 100% { transform: scale(1.1); box-shadow: 0 0 80px rgba(56,189,248,1); } }
.feature-list { list-style: none; margin-top: 40px; }
.feature-list li { display: flex; gap: 16px; margin-bottom: 20px; color: var(--text-muted); font-size: 1rem; line-height: 1.6; }
.feat-icon { color: var(--accent-cyan); font-weight: 900; font-size: 1.2rem; }
.feature-list strong { color: #fff; }

/* Architecture Timeline */
.arch-timeline { position: relative; max-width: 900px; margin: 0 auto; padding-left: 20px; }
.arch-line {
    position: absolute; left: 40px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-cyan) 10%, var(--accent-purple) 90%, transparent);
}
.arch-item { position: relative; padding-left: 80px; margin-bottom: 60px; }
.arch-item::before {
    content: ''; position: absolute; left: 32px; top: 8px; width: 16px; height: 16px;
    background: var(--bg-dark); border: 3px solid var(--accent-cyan); border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-cyan); z-index: 2; transition: all 0.3s;
}
.arch-item:hover::before { transform: scale(1.5); background: var(--accent-cyan); }
.arch-num { font-size: 0.8rem; color: var(--accent-cyan); font-weight: 800; letter-spacing: 2px; margin-bottom: 8px; }
.arch-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.arch-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* About & Contact */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.metric-card {
    background: rgba(255,255,255,0.015); padding: 30px; border-radius: 12px;
    border-left: 3px solid var(--accent-cyan); box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.metric-card:hover { transform: translateX(10px); border-color: var(--accent-purple); }
.metric-val { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.metric-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; }
.contact-info-card, .contact-form {
    background: var(--glass-bg); padding: 50px; border-radius: 20px;
    border: 1px solid var(--glass-border); backdrop-filter: blur(20px);
}
.contact-item { display: flex; gap: 20px; margin-bottom: 30px; }
.contact-icon { font-size: 1.8rem; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: rgba(255,255,255,0.03); border-radius: 12px; }
.contact-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 1.1rem; font-weight: 700; color: #fff; }
.contact-value a { color: #fff; text-decoration: none; transition: color 0.3s; }
.contact-value a:hover { color: var(--accent-cyan); }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.9rem; color: #fff; margin-bottom: 10px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1);
    padding: 16px 20px; border-radius: 8px; color: #fff; font-family: inherit; font-size: 1rem;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(56,189,248,0.2); }
.form-submit {
    width: 100%; padding: 18px; background: linear-gradient(135deg, var(--accent-cyan), #3b82f6);
    color: #fff; border: none; border-radius: 8px; font-weight: 800; font-size: 1.1rem;
    cursor: pointer; transition: all 0.4s; box-shadow: 0 10px 20px rgba(56,189,248,0.3);
}
.form-submit:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(56,189,248,0.5); }

/* Footer */
#footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 50px 20px; text-align: center; background: rgba(0,0,0,0.3); }
.footer-line { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.footer-line a { color: var(--text-muted); text-decoration: none; transition: all 0.3s; }
.footer-line a:hover { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(56,189,248,0.5); }

/* Utilities */
.magnetic { display: inline-block; }