/* Base Variables & Reset */
:root {
    --bg-color: #101018; /* 深邃暗黑模式背景 */
    --text-color: #E8E9F2;
    --text-muted: #999A9C;
    --primary: #686DCE;
    --primary-glow: rgba(104, 109, 206, 0.4);
    --accent: #AEC8FF;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

/* Typography & Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #E8A8FF 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Background Blobs for Atmosphere */
.blob-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.6;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 { top: -10%; left: -10%; background: rgba(104, 109, 206, 0.5); animation-delay: 0s; }
.blob-2 { top: 40%; right: -20%; background: rgba(174, 200, 255, 0.4); animation-delay: -5s; }
.blob-3 { bottom: -20%; left: 30%; background: rgba(232, 168, 255, 0.3); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(16, 16, 24, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-text { color: #fff; }
.logo-dot { color: var(--primary); font-size: 2rem; line-height: 0; margin-left: 2px;}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #8488D5);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 16px var(--primary-glow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px var(--primary-glow);
}

.btn-secondary {
    background: var(--card-bg);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.3);
}

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

/* Glassmorphism Card System */
.card-glass {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(104, 109, 206, 0.15);
    border: 1px solid var(--primary);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: slideUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
    animation: slideUp 1.2s ease-out;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    animation: slideUp 1.4s ease-out;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeIn 1.5s ease-out;
}

.ip-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;
    height: 500px;
}

.dyson-sphere {
    position: absolute;
    width: 110%;
    z-index: 5;
    opacity: 0.8;
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 15px var(--accent));
    animation: spinDyson 20s linear infinite;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    margin-top: -55%;
    margin-left: -55%;
}

@keyframes spinDyson {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    to { transform: rotate(360deg) scale(1); }
}

.ip-mascot {
    width: 80%;
    z-index: 10;
    animation: levitate 6s ease-in-out infinite alternate;
    filter: drop-shadow(0 20px 30px rgba(174, 200, 255, 0.4));
}

.glow-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulseGlow 4s infinite alternate;
    z-index: 1;
}

.glow-ring.delay {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-delay: -2s;
    opacity: 0.15;
}

@keyframes pulseGlow {
    0% { transform: scale(0.8); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.5; }
}

.floating-pet-card {
    position: absolute;
    bottom: 5%;
    left: -15%;
    width: 300px;
    padding: 1.2rem;
    z-index: 20;
    animation: levitate 5s ease-in-out infinite alternate-reverse;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #000;
}

.pet-name { font-weight: 600; color: #fff; }
.pet-status { font-size: 0.8rem; color: var(--primary); }
.card-chat { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5;}


/* Features Grid */
.features {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: default;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-purple { background: rgba(104, 109, 206, 0.2); color: #B3B7FF; }
.icon-blue { background: rgba(88, 133, 219, 0.2); color: #8DB8FF; }
.icon-green { background: rgba(50, 215, 75, 0.2); color: #85FF98; }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Preview Section */
.preview {
    max-width: 1200px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.preview-container {
    display: flex;
    padding: 4rem;
    gap: 4rem;
    align-items: center;
}

.preview-text {
    flex: 1;
}

.preview-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
}

.preview-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mock-ui {
    background: #ffffff; /* Mocking light UI from original App to contrast */
    border-radius: 2rem;
    width: 320px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: rotate(2deg);
    transition: transform 0.5s;
}
.mock-ui:hover {
    transform: rotate(0deg) scale(1.05);
}

.mock-score-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(125deg, rgba(50, 215, 75, 0.1) 0%, rgba(255, 159, 10, 0.1) 100%);
    padding: 1rem;
    border-radius: 1rem 1rem 1rem 1rem;
    margin-bottom: 1rem;
}

.score-title { color: #666; font-weight: bold; font-size: 0.9rem;}
.score-title::before { content: "NMS "; color: var(--primary); font-size: 1.1rem; }
.score-num { font-size: 2rem; font-weight: 800; background: linear-gradient(to right, #32D74B, #FF9F0A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score-num small {font-size: 1rem;}

.mock-product {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.mock-recommend {
    background: #F0F0FA;
    color: #666;
    font-size: 0.85rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #C3C4EB;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 6rem;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.copyright {
    color: #555;
    font-size: 0.85rem;
}

/* --- High-Tech & IP Enhancements --- */
.grid-floor {
    position: absolute;
    bottom: -10%;
    width: 200%;
    height: 100px;
    background-image: 
        linear-gradient(rgba(104, 109, 206, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 109, 206, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: perspective(500px) rotateX(70deg);
    z-index: 0;
    opacity: 0.6;
    animation: gridMove 10s linear infinite;
}
@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 0 30px; }
}

.floating-emoji {
    position: absolute;
    top: 5%;
    right: 0%;
    width: 80px;
    z-index: 30;
    animation: floatEmoji 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}
@keyframes floatEmoji {
    0% { transform: translateY(0) rotate(5deg); }
    100% { transform: translateY(-20px) rotate(-5deg); }
}

.tech-glow {
    box-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--accent);
    animation: glowPulse 2s infinite alternate;
}
@keyframes glowPulse {
    0% { box-shadow: 0 0 15px var(--primary-glow), 0 0 30px rgba(174, 200, 255, 0.4); }
    100% { box-shadow: 0 0 25px var(--primary), 0 0 50px rgba(174, 200, 255, 0.8); }
}

.tech-border {
    position: relative;
    overflow: hidden;
}
.tech-border::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(174,200,255,0.2), transparent);
    transform: skewX(-20deg);
    animation: scanlight 3s infinite;
}
@keyframes scanlight {
    0% { left: -100%; }
    100% { left: 200%; }
}

.preview-chart-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.radar-container {
    width: 100%;
    max-width: 400px;
    background: rgba(16, 16, 24, 0.6);
    border: 1px solid var(--primary);
    border-radius: 50%;
    padding: 2.5rem;
    box-shadow: 0 0 30px rgba(104, 109, 206, 0.2) inset, 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}
/* 优化雷达动效：移除与前端图表插件标签层叠冲突的 CSS 局部扫光，保留科技感纯净质感 */

.typing-effect {
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(20, end) infinite alternate, blink .75s step-end infinite;
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { 50% { border-color: transparent } }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 30, 0.9);
    padding: 2.5rem;
    border-radius: 2rem;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    background: transparent;
    border: none;
    color: #999;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.modal-close:hover { color: #fff; }

.qr-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Animations */
@keyframes levitate {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container { padding: 0 1rem; }
    .hero { flex-direction: column; text-align: center; padding-top: 6rem; gap: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { margin: 0 auto 2rem; font-size: 1rem; padding: 0 1rem; }
    .hero-actions { 
        position: fixed; 
        bottom: 30px; 
        left: 5%; 
        width: 90%; 
        max-width: 400px;
        z-index: 999; 
        padding: 0; 
        margin: 0;
        gap: 0;
        transform: none;
        animation: none;
    }
    .hero-actions a { 
        width: 100%; 
        text-align: center;
        box-sizing: border-box; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px var(--primary-glow);
    }
    .hero-content { margin-bottom: 0; }
    .hero { padding-bottom: 50px; } /* 防止最底部内容被按钮遮挡 */
    
    .hero-visual { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .ip-showcase { height: 350px; transform: scale(0.8); margin-bottom: 2rem; }
    .floating-pet-card { position: relative; left: 0; bottom: auto; top: 0; width: 90%; max-width: 320px; margin: 0 auto; transform: none; animation: none;}
    
    .features-grid { grid-template-columns: 1fr; padding: 0 1rem; }
    .preview-container { flex-direction: column; padding: 2rem 1rem; }
    .radar-container { padding: 1rem; }
    
    .nav-links { display: none; }
    .floating-emoji { right: 5%; width: 60px; top: -5%; }
}
