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

:root {
    --bg: #f6f8fc;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --border: #e8eaf3;
    --border-light: #d9dcea;
    --text: #6b7280;
    --text-heading: #1f2437;
    --text-body: #414755;
    --accent: #8b7cf6;
    --accent-glow: rgba(139, 124, 246, 0.22);
    --accent-soft: rgba(139, 124, 246, 0.10);
    --green: #10a37f;
    --green-soft: rgba(16, 163, 127, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    background:
        radial-gradient(1000px 600px at 85% -10%, rgba(139, 124, 246, 0.10) 0%, transparent 65%),
        radial-gradient(900px 500px at 5% 5%, rgba(96, 165, 250, 0.09) 0%, transparent 60%),
        var(--bg);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
section { scroll-margin-top: 88px; }

/* ── Header ── */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0.9rem 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    font-size: 1.55rem; font-weight: 750;
    color: var(--text-heading);
    letter-spacing: -0.3px;
}
.logo span { color: var(--accent); font-weight: 800; }

nav { display: flex; gap: 2rem; align-items: center; }
nav a {
    color: var(--text); font-weight: 500; font-size: 0.93rem;
    transition: color .2s;
}
nav a:hover { color: var(--accent); }

.btn-nav {
    background: var(--accent); color: #ffffff !important;
    padding: 0.6rem 1.3rem; border-radius: 8px; font-weight: 650 !important;
    transition: background .2s, box-shadow .2s !important;
}
.btn-nav:hover { background: #7a68f0; box-shadow: 0 6px 18px var(--accent-glow); }
.btn-nav { color: #ffffff !important; box-shadow: 0 1px 3px rgba(31, 36, 55, 0.12); }

/* ── Hero ── */
.hero {
    min-height: 100vh; display: flex; align-items: center; padding: 6rem 5% 3rem;
    position: relative;
}
.hero::after {
    content: ''; position: absolute; right: -10%; top: 10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139, 124, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    max-width: 700px; position: relative; z-index: 1;
    animation: fadeInUp 0.9s ease-out;
}
.hero-badge {
    display: inline-block; padding: 0.35rem 0.9rem; margin-bottom: 1.4rem;
    border: 1px solid rgba(139, 124, 246, 0.28); border-radius: 999px;
    color: var(--accent); font-size: 0.88rem; font-weight: 550;
    background: var(--accent-soft);
}
.hero h1 {
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    line-height: 1.1; margin-bottom: 1.2rem;
    color: var(--text-heading); font-weight: 800;
    letter-spacing: -0.8px;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #a78bfa 0%, #8b7cf6 45%, #60a5fa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.1rem; color: var(--text); max-width: 580px;
    margin-bottom: 2.2rem; line-height: 1.8;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn-primary {
    padding: 0.9rem 1.8rem; border-radius: 8px; font-weight: 650; cursor: pointer;
    background: var(--accent); color: #ffffff; border: none; box-shadow: 0 4px 14px var(--accent-glow);
    font-size: 0.98rem; transition: all .2s;
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary:hover { background: #7a68f0; box-shadow: 0 8px 24px var(--accent-glow); }
.btn-ghost {
    padding: 0.9rem 1.8rem; border-radius: 8px; font-weight: 650; cursor: pointer;
    background: #ffffff; color: var(--text-heading); border: 1px solid var(--border-light);
    font-size: 0.98rem; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.hero-metrics {
    margin-top: 3rem; display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.metric {
    display: flex; flex-direction: column;
}
.metric .num {
    font-size: 2rem; font-weight: 750; color: var(--text-heading);
    letter-spacing: -0.5px;
}
.metric .label { font-size: 0.88rem; color: var(--text); margin-top: 0.15rem; }

/* ── Sections ── */
.features, .products, .about, .contact, .stats { padding: 6rem 5%; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 0.8rem; color: var(--text-heading); font-weight: 750;
    letter-spacing: -0.4px;
}
.section-header p { color: var(--text); max-width: 560px; margin: 0 auto; font-size: 1.02rem; }

.grid-3 {
    display: grid; gap: 1.3rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-2 {
    display: grid; gap: 1.3rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.8rem;
    box-shadow: 0 1px 2px rgba(31, 36, 55, 0.04), 0 2px 8px rgba(31, 36, 55, 0.04);
    transition: border-color .25s, background .25s, box-shadow .25s, transform .25s;
}
.card:hover {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(139, 124, 246, 0.14);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: var(--radius); font-size: 1.5rem; margin-bottom: 1.1rem;
    background: var(--accent-soft); border: 1px solid rgba(139, 124, 246, 0.18);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.55rem; color: var(--text-heading); font-weight: 700; }
.card p { color: var(--text); font-size: 0.96rem; line-height: 1.7; }

/* ── Stats Strip ── */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}
.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat-cell {
    text-align: center; padding: 1.6rem 1rem;
    border: 1px solid transparent; border-radius: var(--radius);
    transition: border-color .25s, background .25s;
}
.stat-cell:hover { border-color: var(--border-light); background: #fbfcff; }
.stat-cell .big {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800; color: var(--accent);
    letter-spacing: -0.5px;
}
.stat-cell .sub { color: var(--text); font-weight: 500; font-size: 0.95rem; }

/* ── Products ── */
.prod-img {
    height: 180px; border-radius: var(--radius); margin-bottom: 1rem;
    display: grid; place-items: center; font-size: 3.5rem;
    background: linear-gradient(135deg, rgba(139, 124, 246, 0.12), rgba(96, 165, 250, 0.10));
    border: 1px solid var(--border);
}
.tag {
    display: inline-block; padding: 0.25rem 0.7rem; border-radius: 6px;
    font-size: 0.8rem; margin-bottom: 0.7rem; font-weight: 600;
    background: var(--green-soft); color: var(--green);
    letter-spacing: 0.3px;
}
.card-link {
    color: var(--accent); font-weight: 650; display: inline-flex;
    align-items: center; gap: 0.35rem; margin-top: 0.6rem;
    font-size: 0.94rem; transition: gap .2s;
}
.card-link:hover { gap: 0.6rem; }

/* ── About ── */
.timeline { display: grid; gap: 1rem; }
.timeline-row {
    display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
}
.timeline-num {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; background: var(--accent-soft);
    border: 1px solid rgba(139, 124, 246, 0.22);
    font-weight: 700; color: var(--accent); font-size: 0.95rem;
}
.timeline-row strong { color: var(--text-heading); display: block; margin-bottom: 0.15rem; }
.timeline-row span { color: var(--text); font-size: 0.93rem; }

.checklist { list-style: none; display: grid; gap: 0.7rem; margin-top: 1rem; }
.checklist li { display: flex; align-items: center; gap: 0.45rem; color: var(--text); font-size: 0.95rem; }
.checklist li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ── Contact ── */
.contact { text-align: center; }
.contact-card {
    max-width: 720px; margin: 0 auto; padding: 3rem 2.5rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 36px rgba(31, 36, 55, 0.07);
}
.contact-card h2 { color: var(--text-heading); margin-bottom: 0.6rem; }
.contact-card > p { color: var(--text); margin-bottom: 1.8rem; }
.input-row { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
.input-row input {
    flex: 1; min-width: 220px; max-width: 380px;
    padding: 0.9rem 1.1rem; border-radius: 8px;
    border: 1px solid var(--border-light); background: #ffffff;
    color: var(--text-heading); outline: none; font-size: 0.95rem;
    transition: border-color .2s, box-shadow .2s;
}
.input-row input::placeholder { color: #9aa1b1; }
.input-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-row button {
    padding: 0.9rem 1.5rem; border-radius: 8px; border: none;
    background: var(--accent); color: #ffffff; font-weight: 650;
    font-size: 0.95rem; cursor: pointer; transition: background .2s, box-shadow .2s;
}
.input-row button:hover { background: #7a68f0; box-shadow: 0 8px 22px var(--accent-glow); }

/* ── Footer ── */
footer {
    padding: 3rem 5% 1.8rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-col h4 { color: var(--text-heading); font-size: 0.95rem; margin-bottom: 0.8rem; }
.footer-col a {
    display: block; color: var(--text); font-size: 0.9rem;
    margin-bottom: 0.5rem; transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center; padding-top: 1.2rem;
    border-top: 1px solid var(--border); color: var(--text); font-size: 0.85rem;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    nav { display: none; }
    .hero { padding-top: 5.5rem; }
    .hero-metrics { gap: 1.2rem; }
    .input-row, .hero-actions { flex-direction: column; align-items: stretch; }
    .input-row input { max-width: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}
