:root {
  --indigo: #5566f0;
  --indigo-2: #7b8cff;
  --indigo-d: #4456e6;
  --grad: linear-gradient(135deg, #5566f0 0%, #7b8cff 100%);
  --ink: #161a2b;
  --text: #3a4256;
  --muted: #79829c;
  --bg: #f5f7fc;
  --card: #ffffff;
  --line: #e7eaf3;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(20,23,40,.04), 0 4px 14px rgba(20,23,40,.05);
  --shadow: 0 10px 34px rgba(20,23,40,.10);
  --shadow-lg: 0 24px 60px rgba(60,70,150,.18);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Buttons ─────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.button:active { transform: translateY(1px); }
.button.sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.button.lg { padding: 14px 28px; font-size: 16px; }
.button.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(85,102,240,.35); }
.button.primary:hover { box-shadow: 0 10px 26px rgba(85,102,240,.45); }
.button.ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.button.ghost:hover { border-color: #cdd4ea; background: #fbfcff; }
.button.disabled, .button[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }

/* ── Header ──────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(245,247,252,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; }
.brand-logo-full {
  width: 128px;
  height: 44px;
  object-fit: contain;
}
.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand-mark.lg {
  width: 60px;
  height: 60px;
}
.nav { display: flex; gap: 26px; margin-left: 18px; }
.nav a { font-size: 15px; color: var(--text); font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--indigo); }
.header-actions { margin-left: auto; display: flex; gap: 10px; }

/* ── Hero ────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 48px) 64px; }
.hero-glow {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(123,140,255,.30), rgba(123,140,255,0) 62%);
  pointer-events: none;
}
.hero-glow::after {
  content: ''; position: absolute; left: -340px; top: 220px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(85,102,240,.18), rgba(85,102,240,0) 62%);
}
.hero-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--indigo); background: rgba(85,102,240,.10); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 17px; color: var(--muted); margin: 22px 0 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { margin-top: 36px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust-logos { display: flex; }
.trust-logos img { width: 40px; height: 40px; border-radius: 11px; box-shadow: var(--shadow-sm); margin-left: -10px; border: 2px solid #fff; }
.trust-logos img:first-child { margin-left: 0; }
.trust span { font-size: 13px; color: var(--muted); }

/* product mockup */
.mockup {
  display: flex; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); min-height: 320px;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
}
.mock-side { width: 132px; background: linear-gradient(180deg,#f3f5fd,#eef1fb); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.mock-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mock-brand svg { width: 26px; height: 26px; }
.mock-brand b { font-size: 14px; color: var(--ink); }
.mock-nav { font-size: 13px; color: var(--muted); padding: 9px 12px; border-radius: 9px; }
.mock-nav.active { background: #fff; color: var(--indigo); font-weight: 700; box-shadow: var(--shadow-sm); }
.mock-main { flex: 1; padding: 18px; }
.mock-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mock-card { background: #fafbff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.mock-card.accent { background: linear-gradient(135deg,#f1f0ff,#f7f3ff); }
.mock-card b { font-size: 13px; color: var(--ink); }
.mock-card small { font-size: 11px; color: var(--muted); }
.mock-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 8px; }
.mock-ico.blue { background: linear-gradient(135deg,#4d8bff,#5cc6ff); }
.mock-logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.mock-logos img { width: 100%; aspect-ratio: 1; border-radius: 9px; }

/* ── Sections ────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 48px); }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--indigo); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.section-head p { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feat-ico { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; color: #fff; }
.grad-a { background: linear-gradient(135deg,#5566f0,#7b8cff); }
.grad-b { background: linear-gradient(135deg,#1ec98b,#7bd97b); }
.grad-c { background: linear-gradient(135deg,#ff8a3d,#ffb648); }
.grad-d { background: linear-gradient(135deg,#ff6c9a,#ff8ac0); }
.feature h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

/* platforms */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 16px; }
.logo-chip { aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; padding: 14px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.logo-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logo-chip img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }

/* download */
.download-card {
  max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg,#1d2348 0%, #2a2f63 100%); color: #fff;
  border-radius: 24px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow-lg);
}
.dl-left .eyebrow { color: #9fb0ff; }
.dl-left h2 { color: #fff; font-size: clamp(24px,3vw,34px); font-weight: 800; }
.dl-left p { color: rgba(255,255,255,.78); margin: 12px 0 18px; }
.dl-meta { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dl-meta li { font-size: 14px; color: rgba(255,255,255,.82); padding-left: 24px; position: relative; }
.dl-meta li::before { content: '✓'; position: absolute; left: 0; color: #8fa0ff; font-weight: 700; }
.dl-right { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.dl-badge { width: 80px; height: 80px; border-radius: 22px; background: rgba(255,255,255,.10); display: flex; align-items: center; justify-content: center; }
.dl-badge img { width: 60px; height: 60px; object-fit: contain; }
.dl-right .button.primary { width: 100%; }
.dl-hint { font-size: 12px; color: rgba(255,255,255,.55); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd6f3; }
.plan h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.plan-price { font-size: 34px; font-weight: 800; color: var(--indigo); letter-spacing: -1px; }
.plan p { font-size: 13px; color: var(--muted); flex: 1; }
.plan .button { margin-top: 6px; }

/* account / forms */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.form.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.form.card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.form input {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; font-size: 14px;
  color: var(--ink); background: #fafbff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form input::placeholder { color: #aab2c8; font-weight: 400; }
.form input:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(85,102,240,.16); background: #fff; }
.form .button { margin-top: 4px; }
.form-result { font-size: 13px; color: var(--indigo); min-height: 18px; }
.form-result.center { text-align: center; margin-top: 18px; }

/* footer */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 32px clamp(18px,5vw,48px);
  display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.footer-logo { width: 116px; height: 42px; }
.api-status { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.copyright { color: #aab2c8; }

/* ── Hero animated GEO visual ────────── */
.orbit { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.pulse { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(85,102,240,.35); animation: pulse 3.4s ease-out infinite; }
.pulse.d2 { animation-delay: 1.13s; }
.pulse.d3 { animation-delay: 2.26s; }
@keyframes pulse { 0% { transform: scale(.45); opacity: .75; } 100% { transform: scale(2.7); opacity: 0; } }
.orbit-core {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-lg);
  animation: bob 5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-core img { width: 74px; height: 74px; object-fit: contain; }
.orbit-ring { position: absolute; inset: 0; animation: bob 7s ease-in-out infinite; }
.orbit-ring img {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px;
  border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); padding: 5px; object-fit: contain;
  transform: rotate(var(--a)) translate(var(--r, 152px)) rotate(calc(-1 * var(--a)));
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── GEO promo ───────────────────────── */
.geo-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.geo-copy h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; color: var(--ink); margin: 6px 0 14px; letter-spacing: -.3px; }
.geo-copy p { color: var(--muted); font-size: 16px; }
.geo-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.geo-points li { display: flex; flex-direction: column; gap: 3px; padding-left: 26px; position: relative; }
.geo-points li::before { content: '✓'; position: absolute; left: 0; top: 1px; color: var(--indigo); font-weight: 800; }
.geo-points b { color: var(--ink); font-size: 15px; }
.geo-points span { color: var(--muted); font-size: 13px; }
.geo-vis { display: flex; justify-content: center; }
.rank-card { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.rank-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.rank-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #1ec98b; box-shadow: 0 0 0 4px rgba(30,201,139,.15); }
.rank-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--text); }
.rank-row > span { width: 62px; flex-shrink: 0; font-weight: 600; }
.rank-row .bar { flex: 1; height: 10px; border-radius: 6px; background: #eef0f8; position: relative; overflow: hidden; }
.rank-row .bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 6px; background: linear-gradient(90deg,#ccd2f7,#aab2ee); transform-origin: left; animation: grow 1.5s ease-out both; }
.rank-row.up .bar::after { background: var(--grad); }
.rank-row b { width: 18px; text-align: center; font-weight: 800; color: var(--muted); }
.rank-row.up b { color: var(--indigo); }
.rank-foot { margin-top: 4px; font-size: 12px; color: #1ea672; font-weight: 700; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── AI engines marquee ──────────────── */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scrollX 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
.ai-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 22px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.ai-chip img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; }
.ai-chip span { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ── Scroll reveal (staggered + directional) ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.left { transform: translateX(-40px); } .reveal.left.in { transform: none; }
.reveal.right { transform: translateX(40px); } .reveal.right.in { transform: none; }
.reveal.scale { transform: scale(.92); } .reveal.scale.in { transform: none; }

/* ── Animated background orbs (hero) ── */
.hero-glow { animation: float1 16s ease-in-out infinite; }
.hero-glow::after { animation: float2 19s ease-in-out infinite; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px,36px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-46px,54px); } }

/* ── Nav drop-in ── */
.site-header { animation: dropIn .6s ease both; }
@keyframes dropIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ── Nav underline hover ── */
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .25s ease; }
.nav a:hover::after { width: 100%; }

/* ── Gradient text hue shift ── */
.grad-text { background-size: 220% auto; }
.grad-text.anim { animation: hue 6s linear infinite; }
@keyframes hue { to { background-position: 220% center; } }

/* ── Primary button shimmer ── */
.button.primary { background-size: 170% 170%; }
.button.primary:hover { transform: translateY(-2px); animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 170% 50%; } }

/* ── Pill blink dot ── */
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #1ec98b; box-shadow: 0 0 9px #1ec98b; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Stats band (count-up) ── */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px,5vw,48px) clamp(20px,4vw,40px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfd6f3; }
.stat-card .num { font-size: clamp(30px,4vw,42px); font-weight: 850; line-height: 1; letter-spacing: -1px; }
.stat-card .cap { color: var(--muted); margin-top: 12px; font-size: 14px; }

/* ── Trend sparkline (GEO card) ── */
.spark-wrap { margin-top: 16px; }
.spark-wrap svg { width: 100%; height: auto; }
.spark-line { stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.8s ease .2s; }
.spark-line.draw { stroke-dashoffset: 0; }
.spark-area { opacity: 0; transition: opacity 1s ease .7s; }
.spark-area.draw { opacity: 1; }

@media (max-width: 920px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .pulse, .orbit-core, .orbit-ring, .hero-glow, .hero-glow::after, .site-header, .grad-text.anim, .button.primary:hover { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ──────────────────────── */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .geo-grid { grid-template-columns: 1fr; gap: 32px; }
  .download-card { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .orbit { max-width: 320px; }
  .orbit-ring { --r: 118px; }
  .orbit-ring img { width: 40px; height: 40px; margin: -20px; }
}
