:root {
  --teal: #0DAE9B;
  --teal-d: #0a8c7e;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6fbfa;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 174, 155, 0.08);
  --grad: linear-gradient(120deg, #0DAE9B 0%, #2563eb 100%);
  --hero-bg: #07131a;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

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

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand__logo { width: 34px; height: 34px; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 600; color: var(--slate); }
.nav__links a:hover { color: var(--teal); }
.nav__cta {
  background: var(--teal); color: #fff !important; padding: 8px 16px; border-radius: 999px;
  transition: background .2s;
}
.nav__cta:hover { background: var(--teal-d); }
.nav__toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(13,174,155,.30), transparent 55%),
    linear-gradient(180deg, #07131a 0%, #0a1a24 100%);
  color: #e6f1ef; padding: 110px 0 100px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  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: 46px 46px; mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 78%);
}
.hero__beam { position: absolute; top: -30%; left: -10%; width: 60%; height: 160%; z-index: 0; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(13,174,155,.10) 45%, rgba(37,99,235,.10) 55%, transparent); filter: blur(20px); animation: beam 12s ease-in-out infinite alternate; }
@keyframes beam { from { transform: translateX(-10%) rotate(2deg); } to { transform: translateX(40%) rotate(-2deg); } }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #5fe6d2; font-weight: 700; letter-spacing: .12em; margin-bottom: 16px; font-size: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 0 rgba(45,212,191,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,.6); } 70% { box-shadow: 0 0 0 10px rgba(45,212,191,0); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); } }
.hero__title { font-size: clamp(34px, 5vw, 56px); line-height: 1.16; font-weight: 850; letter-spacing: -0.5px; color: #fff; }
.accent { background: linear-gradient(100deg, #5fe6d2, #60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__sub { margin: 22px 0 30px; font-size: 18px; color: #a7c0bd; max-width: 540px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn--primary { background: var(--grad); background-size: 180% 180%; color: #fff; box-shadow: 0 10px 30px rgba(13,174,155,.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(37,99,235,.45); animation: gradShift 3s ease infinite; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn--ghost { background: rgba(255,255,255,.06); color: #e6f1ef; border: 1px solid rgba(255,255,255,.22); }
.btn--ghost:hover { border-color: #5fe6d2; color: #5fe6d2; transform: translateY(-2px); }
.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero__badges span { font-size: 13px; color: #bcd4d0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.hero__logo { width: min(300px, 70%); position: relative; z-index: 3; filter: drop-shadow(0 24px 50px rgba(13,174,155,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.hero__glow { position: absolute; inset: 0; margin: auto; width: 360px; height: 360px; background: radial-gradient(circle, rgba(13,174,155,.35), transparent 65%); filter: blur(14px); z-index: 1; }
.hero__ring { position: absolute; width: 300px; height: 300px; border: 1px solid rgba(95,230,210,.30); border-radius: 50%; z-index: 1; animation: spin 24s linear infinite; }
.hero__ring::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #5fe6d2; box-shadow: 0 0 12px #5fe6d2; }
.hero__ring--2 { width: 380px; height: 380px; border-color: rgba(96,165,250,.22); border-style: dashed; animation: spin 36s linear infinite reverse; }
.hero__ring--2::before { background: #60a5fa; box-shadow: 0 0 12px #60a5fa; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 2px; background: #5fe6d2; animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(180deg, #0a1a24, #07131a); border-top: 1px solid rgba(255,255,255,.06); }
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 0; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); height: 46px; width: 1px; background: rgba(255,255,255,.10); }
.stat__num { font-size: clamp(30px, 4vw, 44px); font-weight: 850; line-height: 1; background: linear-gradient(100deg, #5fe6d2, #60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__num i { font-style: normal; }
.stat__label { margin-top: 10px; color: #9fb6b3; font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__eyebrow { color: var(--teal); font-weight: 700; letter-spacing: .12em; text-align: center; }
.section__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-align: center; margin-top: 10px; }
.section__lead { text-align: center; color: var(--slate); max-width: 620px; margin: 14px auto 0; }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 48px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(15,23,42,.12); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; background: var(--c, var(--teal)); margin-bottom: 18px; box-shadow: 0 8px 20px color-mix(in srgb, var(--c, var(--teal)) 40%, transparent); transition: transform .3s; }
.card:hover .card__icon { transform: translateY(-2px) scale(1.06) rotate(-3deg); }
.card__title { font-size: 21px; font-weight: 800; }
.card__tag { color: var(--teal); font-weight: 600; font-size: 14px; margin-top: 2px; }
.card__desc { color: var(--slate); font-size: 15px; margin: 14px 0 16px; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card__list li { position: relative; padding-left: 22px; color: var(--slate); font-size: 14px; }
.card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature__ic { font-size: 28px; }
.feature h3 { margin: 12px 0 8px; font-size: 18px; }
.feature p { color: var(--slate); font-size: 15px; }

/* ---------- Downloads ---------- */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.dl { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: box-shadow .2s, border-color .2s; }
.dl:hover { box-shadow: var(--shadow); border-color: transparent; }
.dl__icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: #fff; background: var(--c, var(--teal)); }
.dl__body { flex: 1 1 auto; min-width: 0; }
.dl__body h3 { font-size: 18px; font-weight: 800; }
.dl__body p { color: var(--muted); font-size: 13px; }
.dl__btn { padding: 9px 18px; white-space: nowrap; }
.dl__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* ---------- CTA ---------- */
.cta { padding: 80px 0; background: linear-gradient(135deg, var(--teal), #0c9d8c); color: #fff; text-align: center; }
.cta__inner h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.cta__inner p { margin: 12px auto 26px; max-width: 520px; opacity: .92; }
.cta .btn--primary { background: #fff; color: var(--teal); }
.cta .btn--primary:hover { background: #f1f5f9; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }
.cta .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: #0b1220; color: #cbd5e1; padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__logo { width: 44px; height: 44px; }
.footer__name { font-size: 18px; font-weight: 800; color: #fff; }
.footer__by { font-size: 13px; color: #94a3b8; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__col a { display: block; color: #94a3b8; font-size: 14px; padding: 5px 0; }
.footer__col a:hover { color: var(--teal); }
.footer__bar { border-top: 1px solid #1e293b; padding: 18px 0; }
.footer__barinner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #64748b; }
.footer__icp { color: #64748b; }
.footer__icp:hover { color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .downloads { grid-template-columns: 1fr; }
  .hero { padding: 84px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; min-height: 240px; }
  .hero__logo { width: 180px; }
  .hero__ring { width: 220px; height: 220px; }
  .hero__ring--2 { width: 280px; height: 280px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat:nth-child(3)::before, .stat:nth-child(odd)::before { display: none; }
}
@media (max-width: 640px) {
  .nav__links { position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 24px; width: 100%; }
  .nav__cta { margin: 8px 24px; text-align: center; }
  .nav__toggle { display: block; }
  .cards, .features, .downloads { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}
