﻿/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Navigation ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10,10,15,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(10,10,15,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; height: 72px;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 1.3rem; font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-logo-img { width: 36px; height: 36px; border-radius: 8px; }
.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
    padding: 8px 18px; border-radius: 8px; font-size: 0.95rem; font-weight: 500;
    color: #94a3b8; transition: all 0.3s ease; position: relative;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(99,102,241,0.1); }
.nav-cta {
    padding: 10px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
    background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff;
    transition: all 0.3s ease; margin-left: 8px;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); }
.nav-toggle {
    display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 4px;
}
.nav-toggle span {
    width: 24px; height: 2px; background: #e2e8f0; border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(236,72,153,0.08) 0%, transparent 50%);
    z-index: 0;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
    display: inline-block; padding: 8px 20px; border-radius: 50px;
    background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
    color: #818cf8; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 24px; animation: fadeInUp 0.6s ease 0.1s both;
}
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); color: #94a3b8;
    max-width: 680px; margin: 0 auto 36px; line-height: 1.8;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.3s both; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 12px; font-size: 1rem; font-weight: 600;
    transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99,102,241,0.4); }
.btn-outline {
    background: transparent; color: #e2e8f0; border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Hero Stats ===== */
.hero-stats {
    display: flex; justify-content: center; gap: 48px; margin-top: 60px;
    animation: fadeInUp 0.6s ease 0.4s both;
}
.stat-item { text-align: center; }
.stat-number {
    display: block; font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.85rem; color: #64748b; margin-top: 4px; display: block; }

/* ===== Section Common ===== */
section { padding: 100px 0; }
.section-header {
    text-align: center; max-width: 640px; margin: 0 auto 60px;
}
.section-tag {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.2);
    color: #818cf8; font-size: 0.8rem; font-weight: 600; margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700;
    margin-bottom: 16px; line-height: 1.3;
}
.section-header p { color: #94a3b8; font-size: 1.05rem; line-height: 1.7; }

/* ===== Services ===== */
.services { background: #0d0d14; position: relative; }
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06); border-radius: 20px;
    padding: 36px 28px; transition: all 0.4s ease; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--icon-color, #6366f1), transparent);
    opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.12); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--icon-color); margin-bottom: 20px;
    transition: all 0.4s ease;
}
.service-card:hover .service-icon { background: rgba(255,255,255,0.08); transform: scale(1.05); }
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.service-card > p { color: #94a3b8; font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }
.service-features li {
    display: flex; align-items: center; gap: 10px; padding: 8px 0;
    color: #cbd5e1; font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.04);
}
.service-features li i { color: #22c55e; font-size: 0.8rem; }

/* ===== Features ===== */
.features { background: #0a0a0f; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-item {
    text-align: center; padding: 32px 20px; border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.04); transition: all 0.3s ease;
}
.feature-item:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.08); transform: translateY(-3px); }
.feature-icon { font-size: 2rem; color: #6366f1; margin-bottom: 16px; }
.feature-item h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature-item p { color: #94a3b8; font-size: 0.9rem; line-height: 1.6; }

/* ===== Testimonials ===== */
.testimonials { background: #0d0d14; }
.testimonials-wrapper {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 32px 28px;
    transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.1); }
.testimonial-stars { color: #f59e0b; font-size: 0.85rem; margin-bottom: 16px; gap: 2px; display: flex; }
.testimonial-card > p { color: #94a3b8; font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem;
    flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { display: block; font-size: 0.8rem; color: #64748b; }

/* ===== CTA Section ===== */
.cta-section { padding: 0 0 100px; background: #0a0a0f; }
.cta-card {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.08));
    border: 1px solid rgba(99,102,241,0.15); border-radius: 24px;
    padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(99,102,241,0.05) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}
.cta-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 12px;
    position: relative;
}
.cta-card p { color: #94a3b8; margin-bottom: 28px; position: relative; }
.cta-card .btn { position: relative; }

/* ===== Contact ===== */
.contact { background: #0d0d14; }
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start;
}
.contact-info { display: grid; gap: 24px; }
.contact-item {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 20px; border-radius: 16px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
}
.contact-item i {
    font-size: 1.2rem; color: #6366f1; margin-top: 4px; width: 24px; text-align: center;
}
.contact-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.contact-item a, .contact-item p { color: #94a3b8; font-size: 0.9rem; }
.contact-item a:hover { color: #818cf8; }
.contact-form {
    display: grid; gap: 16px;
}
.contact-form input, .contact-form select, .contact-form textarea {
    padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03); color: #e2e8f0; font-family: inherit;
    font-size: 0.95rem; transition: all 0.3s ease; outline: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: #6366f1; background: rgba(99,102,241,0.05); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #475569; }
.contact-form select { cursor: pointer; }
.contact-form select option { background: #1a1a24; color: #e2e8f0; }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
    background: #06060a; border-top: 1px solid rgba(255,255,255,0.04);
    padding: 60px 0 30px;
}
.footer-content {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-logo { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { color: #64748b; font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-links h4 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; color: #e2e8f0; }
.footer-links a {
    display: block; color: #64748b; font-size: 0.9rem; padding: 6px 0;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: #818cf8; }
.footer-bottom { text-align: center; padding-top: 30px; }
.footer-bottom p { color: #475569; font-size: 0.85rem; }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===== Scroll Animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid, .testimonials-wrapper { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
        background: rgba(10,10,15,0.98); flex-direction: column;
        padding: 32px 24px; gap: 8px; display: none;
        backdrop-filter: blur(20px);
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .nav-link, .nav-cta { width: 100%; text-align: center; padding: 14px; margin: 0; }
    
    .services-grid, .testimonials-wrapper { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.5rem; }
    section { padding: 64px 0; }
    .cta-card { padding: 40px 24px; }
}
@media (max-width: 480px) {
    .footer-content { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
}
