/* 
 * WPS AI Official Theme (Blue/White Mode) - Creative Enhanced
 * Style: Clean, Professional, Creative Animations
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-page: #FFF5F5; /* Light Red Background */
    --bg-secondary: #FFEBEB;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    
    /* Red Theme Colors */
    --accent-primary: #FF0000;  /* Pure Red */
    --accent-light: #FFE5E5;    /* Light Red Background */
    --accent-hover: #CC0000;    /* Darker Red for hover */
    
    --accent-green: #34A853;
    --accent-orange: #F9AB00;
    --border-color: #FFD6D6;
    --shadow-sm: 0 4px 6px rgba(255, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(255, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(255, 0, 0, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Smooth Scrolling */
html { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
.section { padding: 100px 0; position: relative; }

/* Animated Text Gradient */
.text-gradient-ai {
    background: linear-gradient(135deg, #FF0000 0%, #FF4D4D 25%, #FF8080 50%, #FF4D4D 75%, #FF0000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s linear infinite;
}
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 245, 245, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 32px; font-weight: 600; border-radius: 50px; /* Rounded pill shape */
    font-size: 16px; cursor: pointer; transition: 0.3s;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--accent-primary); color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}
.btn-primary::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-primary:hover::after { left: 100%; }

.btn-glow {
    background: white; border: 1px solid var(--accent-primary); color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}
.btn-glow:hover {
    background: var(--accent-light);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(255, 245, 245, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,0,0,0.05);
    padding: 15px 0; z-index: 1000;
    transition: 0.3s;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 40px; }
.nav-link { color: var(--text-main); font-size: 15px; font-weight: 500; position: relative; }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent-primary); transition: 0.3s;
}
.nav-link:hover { color: var(--accent-primary); }
.nav-link:hover::after { width: 100%; }

/* Hero */
.hero {
    min-height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding-top: 100px;
    background: radial-gradient(circle at 50% 50%, #FFF5F5 0%, #FFEBEB 70%);
    position: relative; overflow: hidden;
}
/* Hero Background Animation */
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9IiNGRjAwMDAiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    opacity: 0.5; animation: bgRotate 60s linear infinite;
}
@keyframes bgRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-tag {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(255, 0, 0, 0.1); color: var(--accent-primary);
    font-size: 13px; font-weight: 600; margin-bottom: 30px; letter-spacing: 1px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}
.hero h1 {
    font-size: 72px; letter-spacing: -2px; line-height: 1.1; margin-bottom: 30px; font-weight: 800; color: #1A1A1A;
    position: relative; z-index: 2;
}
.hero p {
    font-size: 20px; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px;
    position: relative; z-index: 2;
}

/* Floating Elements Animation */
.float-icon {
    position: absolute; pointer-events: none; opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    perspective: 1000px;
}

.bento-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.bento-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255,0,0,0.1);
    border-color: rgba(255,0,0,0.3);
    z-index: 2;
}

/* Item Sizes */
.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }

/* Item Styles */
.bento-item.dark {
    background: #660000; color: white; border: none;
    background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.bento-item.dark .b-desc { color: rgba(255,255,255,0.7); }

.bento-item.blue-bg {
    background: linear-gradient(135deg, #FFEBEB 0%, #FFFFFF 100%);
    border-color: #FFD6D6;
}
.bento-item.primary-bg {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFFFFF 100%);
    border-color: #FFCCCC;
}

/* Content */
.b-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin-bottom: 24px;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.bento-item:hover .b-icon { transform: scale(1.1) rotate(5deg); }

.bento-item.dark .b-icon { background: rgba(255,255,255,0.1); color: white; backdrop-filter: blur(5px); }

.b-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.large .b-title { font-size: 36px; }
.b-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

/* AI Chat Demo */
.chat-demo {
    max-width: 800px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px; box-shadow: 0 30px 80px rgba(255,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    transform: perspective(1000px) rotateX(2deg);
    transition: 0.5s;
}
.chat-demo:hover { transform: perspective(1000px) rotateX(0deg) scale(1.02); }

.chat-message { margin-bottom: 20px; padding: 20px; border-radius: 16px; font-size: 16px; }
.msg-user {
    background: white; color: #333; text-align: right; margin-left: auto; max-width: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.msg-ai {
    background: linear-gradient(135deg, #FFE5E5 0%, #FFFFFF 100%); color: #333; border: 1px solid #FFCCCC;
    max-width: 90%; display: flex; gap: 20px;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.05);
}

/* Cursor Animation */
.cursor {
    display: inline-block; width: 2px; height: 18px; background: var(--accent-primary);
    animation: blink 1s infinite; vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* Footer */
.footer {
    background: #F9FAFB; border-top: 1px solid var(--border-color); padding: 80px 0; margin-top: 100px;
}
.footer-col h4 { margin-bottom: 20px; color: #1A1A1A; font-weight: 700; }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: var(--accent-primary); transform: translateX(5px); }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-item { grid-column: auto !important; grid-row: auto !important; min-height: 300px; }
    .hero h1 { font-size: 42px; }
}
