/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #7c3aed;
    --bg: #fafbfc;
    --bg-alt: #f0f4f8;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.08);
    --transition: .3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37,99,235,.04), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(124,58,237,.03), transparent),
        var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Subtle global geometric texture */
body::after {
    content: '';
    position: fixed; inset: 0; pointer-events: none; z-index: 9999;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(37,99,235,.04) 0.5px, transparent 0.5px),
        radial-gradient(circle at 85% 70%, rgba(124,58,237,.03) 0.5px, transparent 0.5px);
    background-size: 52px 52px;
    opacity: .5;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,.88); backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent; transition: var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex; align-items: center; gap: 10px; font-size: 20px;
    font-weight: 700; color: var(--text);
}
.logo-icon { display: flex; align-items: center; }

.nav { display: flex; gap: 32px; }
.nav-link {
    font-size: 15px; color: var(--text-muted); font-weight: 500;
    transition: var(--transition); position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary); border-radius: 1px; transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.menu-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 4px;
}
.menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text);
    border-radius: 1px; transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; overflow: hidden;
    background: linear-gradient(170deg, #f8fafc 0%, #f0f4f8 25%, #e8eef6 55%, #f0f4f8 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Grid with fade-out mask */
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, black 25%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 40%, black 25%, transparent 70%);
}

/* Subtle geometric circle accents */
.hero-geo {
    position: absolute; inset: 0; pointer-events: none;
}
.hero-geo::before {
    content: '';
    position: absolute; top: 12%; right: 8%;
    width: 280px; height: 280px;
    border: 1px solid rgba(37,99,235,.07);
    border-radius: 50%;
}
.hero-geo::after {
    content: '';
    position: absolute; bottom: 18%; left: 10%;
    width: 180px; height: 180px;
    border: 1px solid rgba(124,58,237,.05);
    border-radius: 50%;
}

/* Radial glow orbs */
.hero-glow {
    position: absolute; border-radius: 50%; filter: blur(140px); opacity: .1;
}
.hero-glow-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, #2563eb, #3b82f6 35%, transparent 65%);
    top: -250px; right: -150px;
}
.hero-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #7c3aed, #8b5cf6 35%, transparent 65%);
    bottom: -150px; left: -80px;
}
.hero-glow-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(37,99,235,.4), transparent 60%);
    top: 45%; left: 55%; transform: translate(-50%, -50%);
    opacity: .05;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero-subtitle {
    display: block; font-size: 18px; font-weight: 500; color: var(--primary);
    letter-spacing: 2px; margin-bottom: 16px;
}
.hero-title {
    font-size: 52px; font-weight: 800; line-height: 1.2; letter-spacing: -1px;
    margin-bottom: 24px;
}
.hero-desc {
    font-size: 18px; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px;
    max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600;
    transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.4); }
.btn-outline {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-alt {
    background:
        radial-gradient(ellipse 50% 30% at 20% 50%, rgba(37,99,235,.02), transparent),
        radial-gradient(ellipse 50% 30% at 80% 50%, rgba(124,58,237,.02), transparent),
        var(--bg-alt);
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-title {
    font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-desc { font-size: 17px; color: var(--text-muted); }

/* ===== Product Showcase ===== */
.product-showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.dashboard-mockup {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    overflow: hidden; border: 1px solid var(--border);
}
.mockup-header {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: #f1f5f9; border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }
.mockup-title { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.mockup-body { display: flex; height: 280px; }
.mockup-sidebar {
    width: 56px; background: #f8fafc; border-right: 1px solid var(--border);
    padding: 12px 8px; display: flex; flex-direction: column; gap: 8px;
}
.side-item {
    width: 40px; height: 40px; border-radius: 8px; background: #e2e8f0;
}
.side-item.active { background: linear-gradient(135deg, var(--primary), var(--accent)); }

.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chart-row { display: flex; gap: 12px; flex: 1; }

.chart-box { background: #f8fafc; border-radius: 8px; padding: 12px; }
.chart-lg {
    flex: 2; display: flex; align-items: flex-end; gap: 8px;
}
.chart-bar {
    flex: 1; background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px 4px 0 0; height: var(--h); opacity: .8; transition: .3s;
    min-width: 16px;
}
.chart-sm {
    flex: 1; display: flex; align-items: center; justify-content: center;
}
.pie-chart {
    width: 70px; height: 70px; border-radius: 50%;
    background: conic-gradient(var(--primary) 0% 65%, var(--accent) 65% 85%, #e2e8f0 85% 100%);
}

.card-row { display: flex; gap: 8px; }
.mini-card {
    flex: 1; padding: 10px 12px; border-radius: 8px; font-size: 12px; color: #fff;
}
.mini-card strong { display: block; font-size: 18px; }
.mini-card.green { background: linear-gradient(135deg, #10b981, #059669); }
.mini-card.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.mini-card.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* Product Info */
.product-info h3 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.product-info > p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.product-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.product-list li {
    padding-left: 28px; position: relative; font-size: 15px; color: var(--text);
}
.product-list li::before {
    content: ''; position: absolute; left: 0; top: 6px;
    width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.product-list li::after {
    content: ''; position: absolute; left: 5px; top: 11px;
    width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* ===== Features ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.feature-icon {
    width: 56px; height: 56px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(124,58,237,.1));
    color: var(--primary);
}
.feature-card h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== About ===== */
.about-content { max-width: 900px; margin: 0 auto; }
.about-text p {
    font-size: 16px; color: var(--text-muted); line-height: 1.9; margin-bottom: 16px;
}
.about-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== Contact ===== */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(124,58,237,.1));
    color: var(--primary);
}
.contact-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.contact-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.text-muted { color: var(--text-muted); font-size: 13px; }

.contact-form-wrap {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow);
}
.contact-form-wrap h3 { font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; font-family: inherit;
    transition: var(--transition); outline: none; color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ===== Footer ===== */
.footer {
    background: #0f172a; color: #fff; padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #e2e8f0; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: #94a3b8; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact p { font-size: 13px; color: #94a3b8; line-height: 1.8; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px;
    text-align: center; font-size: 14px; color: #64748b;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .product-showcase { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .nav { display: none; }
    .menu-toggle { display: flex; }
    .nav.open {
        display: flex; flex-direction: column; position: absolute; top: 72px;
        left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border);
        padding: 16px 24px; gap: 16px; box-shadow: var(--shadow-lg);
    }
    .features-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
