:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0b1020;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --shadow: 0 10px 30px -12px rgba(79, 70, 229, .35);
  --radius: 16px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; transition: .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(79,70,229,.5); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,.8);
  border-bottom: 1px solid var(--line);
  transition: .3s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px;
}
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* ---------- Hero (dark) ---------- */
.hero {
  position: relative; padding: 160px 0 100px; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(139,92,246,.45), transparent 60%),
              radial-gradient(900px 500px at 0% 20%, rgba(6,182,212,.35), transparent 55%),
              var(--bg-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  font-size: 13px; margin-bottom: 24px;
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; margin: 22px auto 34px; font-size: 18px; color: #cbd5e1; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .num { font-size: 36px; font-weight: 800; }
.hero-stats .lbl { font-size: 14px; color: #94a3b8; }

/* ---------- Carousel ---------- */
.carousel { position: relative; margin: 64px auto 0; max-width: 980px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.slides { display: flex; transition: transform .6s cubic-bezier(.7,0,.2,1); }
.slide { min-width: 100%; padding: 56px 48px; color: #fff; }
.slide.s1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.slide.s2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.slide.s3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.slide h3 { font-size: 26px; margin-bottom: 12px; }
.slide p { color: rgba(255,255,255,.9); }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: .3s; }
.dots button.active { width: 28px; border-radius: 6px; background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 14px; letter-spacing: -.5px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Features grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15));
  font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { counter-reset: s; }
.step { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px dashed var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 30px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 56px; }
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--grad); }
.tl-item { position: relative; padding: 0 0 36px 28px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-item .year { font-weight: 700; color: var(--primary); }
.tl-item h4 { margin: 4px 0; font-size: 17px; }
.tl-item p { color: var(--muted); font-size: 15px; }

/* Team */
.team .card { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 700; }
.team .role { color: var(--primary); font-size: 14px; font-weight: 600; margin-bottom: 8px; }

/* Product detail */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.product:nth-child(even) .product-media { order: 2; }
.product-media { height: 280px; border-radius: var(--radius); background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 64px; box-shadow: var(--shadow); }
.product h3 { font-size: 26px; margin-bottom: 14px; }
.product p { color: var(--muted); margin-bottom: 18px; }
.product ul li { display: flex; gap: 10px; padding: 6px 0; color: var(--ink-soft); }
.product ul li::before { content: "✓"; color: var(--primary); font-weight: 700; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.contact-info .item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .item .ic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15)); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.contact-info .item h4 { font-size: 15px; color: var(--muted); font-weight: 500; }
.contact-info .item p { font-size: 17px; font-weight: 600; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; transition: .2s; background: var(--bg-soft);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { width: 100%; justify-content: center; margin-top: 20px; }
.form .ok { display: none; background: #ecfdf5; color: #047857; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-top: 14px; }
.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 320px; background: linear-gradient(135deg, #eef2ff, #faf5ff); display: grid; place-items: center; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--grad); color: #fff; border-radius: 24px; padding: 64px 48px; text-align: center; margin: 0 auto; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 28px; font-size: 17px; }

/* Footer */
.site-footer { background: var(--bg-dark); color: #cbd5e1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer p { color: #94a3b8; font-size: 14px; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; font-size: 14px; padding: 6px 0; transition: .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #64748b; font-size: 13px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap, .product, .footer-grid { grid-template-columns: 1fr; }
  .product:nth-child(even) .product-media { order: 0; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 70px; right: 0; height: calc(100vh - 70px); width: 260px;
    background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px;
    transform: translateX(100%); transition: .3s; box-shadow: -10px 0 30px rgba(0,0,0,.1); }
  .nav-links.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .section { padding: 64px 0; }
}
