/* ==========================================================
   企元数智GEO · AI 品牌认知优化平台
   Shared stylesheet
   ========================================================== */

:root {
  --brand: #5b5bd6;
  --brand-hover: #4a4ac4;
  --brand-grad1: #6366f1;
  --brand-grad2: #8b5cf6;
  --brand-tint: #eef2ff;
  --brand-soft: #c7d2fe;

  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-hint: #94a3b8;
  --ink-border: #e2e8f0;
  --ink-section: #f8fafc;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --header-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: #c7d2fe; color: #1e1b4b; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.section--gray { background: var(--ink-section); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--brand-soft);
  background: var(--brand-tint);
  color: var(--brand-hover);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.12);
}

.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 800px;
  text-wrap: balance;
}

.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 680px;
}

.grad-text {
  background: linear-gradient(120deg, var(--brand-grad1), var(--brand-grad2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-grad1), var(--brand-grad2));
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.38);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover { background: #1e293b; transform: translateY(-2px); }

.btn--ghost {
  background: #fff;
  border-color: var(--ink-border);
  color: var(--ink);
}
.btn--ghost:hover { border-color: #cbd5e1; background: #f8fafc; }

.btn--light {
  background: #fff;
  color: var(--brand);
}
.btn--light:hover { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18); transform: translateY(-2px); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; border-radius: 9px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--ink-border);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06); }

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-grad1), var(--brand-grad2));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}
.brand-mark svg { width: 21px; height: 21px; color: #fff; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-name em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-grad1), var(--brand-grad2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(135deg, var(--brand-grad1), var(--brand-grad2));
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--ink-border);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(139, 92, 246, 0.1), transparent 70%),
    radial-gradient(50% 50% at 8% 20%, rgba(99, 102, 241, 0.1), transparent 70%),
    linear-gradient(180deg, #f7f8ff 0%, #ffffff 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 620px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: var(--ink-hint);
  margin-top: 6px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--success); }

/* AI demo card */
.demo-wrap { position: relative; }
.demo-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(50% 50% at 50% 45%, rgba(99, 102, 241, 0.22), transparent 72%);
  filter: blur(8px);
  z-index: 0;
}
.demo-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}
.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
  background: #fbfcff;
}
.demo-tabs { display: flex; gap: 4px; }
.demo-tab {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-hint);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.demo-tab:hover { color: var(--ink-muted); }
.demo-tab.is-active { background: #eef2ff; color: var(--brand); }
.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 4px 10px;
}
.demo-live i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.demo-body { padding: 22px; }
.demo-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.demo-q .avatar {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #f1f5f9;
  display: grid; place-items: center;
  color: var(--ink-muted);
}
.demo-q .avatar svg { width: 15px; height: 15px; }
.demo-q p {
  font-size: 14px;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 14px;
  line-height: 1.5;
}
.demo-a { display: flex; gap: 10px; }
.demo-a .ai-avatar {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border: 1px solid #e0e7ff;
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.demo-a .ai-body { flex: 1; min-width: 0; }
.demo-a .ai-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-hint);
  margin-bottom: 8px;
}
.answer-list { display: flex; flex-direction: column; gap: 8px; }
.answer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.answer-item .rank {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  display: grid; place-items: center;
}
.answer-item .name { font-weight: 600; }
.answer-item .tag {
  margin-left: auto;
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-hint);
  background: #f8fafc;
  border-radius: 999px;
  padding: 2px 8px;
}
.answer-item.is-brand {
  border-color: #c7d2fe;
  background: linear-gradient(90deg, #eef2ff, #faf5ff);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}
.answer-item.is-brand .rank {
  background: linear-gradient(135deg, var(--brand-grad1), var(--brand-grad2));
  color: #fff;
}
.answer-item.is-brand .tag {
  color: var(--brand);
  background: #fff;
  border: 1px solid #e0e7ff;
}
.demo-source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  font-size: 11.5px;
  color: var(--ink-hint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-source svg { width: 13px; height: 13px; color: var(--brand); }
.demo-source b { color: var(--brand); font-weight: 700; }

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  animation: floaty 5s ease-in-out infinite;
}
.float-chip .chip-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: #ecfdf5;
  color: #059669;
}
.float-chip .chip-icon svg { width: 15px; height: 15px; }
.float-chip .chip-label { font-size: 10.5px; color: var(--ink-hint); }
.float-chip .chip-value { font-size: 13px; font-weight: 700; }
.float-chip--one { right: -18px; bottom: 54px; }
.float-chip--two { left: -26px; top: 42px; animation-delay: -2.4s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---------- Stats ---------- */
.stats-band {
  border-top: 1px solid var(--ink-border);
  border-bottom: 1px solid var(--ink-border);
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 28px;
  text-align: center;
  border-left: 1px solid var(--ink-border);
}
.stat:first-child { border-left: 0; }
.stat-value {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--brand-grad1), var(--brand-grad2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-label { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }

/* ---------- Cards / why ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #dbe3f0;
}
.icon-box {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  margin-bottom: 4px;
}
.icon-box svg { width: 23px; height: 23px; }
.why-card h3 { font-size: 18px; font-weight: 700; }
.why-card p { font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
.card-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-hint);
  margin-left: auto;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.step-card {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 7px;
  padding: 3px 8px;
  display: inline-block;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; line-height: 1.65; color: var(--ink-muted); }
.step-icon {
  position: absolute;
  top: 24px; right: 20px;
  color: #cbd5e1;
}
.step-icon svg { width: 18px; height: 18px; }

/* ---------- AI coverage ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.ai-tile {
  border: 1px solid var(--ink-border);
  background: #fff;
  border-radius: 14px;
  padding: 22px 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.ai-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  border-color: #dbe3f0;
}
.ai-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}
.ai-logo svg { width: 100%; height: 100%; display: block; }
.ai-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.ai-en {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-hint);
  margin-top: -6px;
}
.ai-note {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-hint);
}

/* ---------- SEO vs GEO ---------- */
.compare { margin-top: 56px; }
.compare-wrap {
  border: 1px solid var(--ink-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.compare-table { min-width: 660px; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.2fr;
}
.compare-row > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 24px;
  border-top: 1px solid #eef2f7;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.compare-row > div:first-child {
  font-weight: 600;
  color: var(--ink);
  background: #fbfcff;
}
.compare-row > div:last-child {
  color: var(--ink);
  background: #f5f7ff;
  border-left: 1px solid #e0e7ff;
}
.compare-head > div {
  border-top: 0;
  padding: 15px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-hint);
  background: #f8fafc;
}
.compare-head > div:last-child {
  color: var(--brand);
  background: #eef2ff;
}
.compare-row .tick { width: 15px; height: 15px; flex: none; color: var(--success); }

.channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: all 0.18s ease;
}
.channel:hover { border-color: var(--brand-soft); color: var(--brand); background: #fafaff; }
.channel i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.channel--more { border-style: dashed; color: var(--ink-hint); }

/* ---------- Quote / cases ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.logo-pill {
  border: 1px solid var(--ink-border);
  border-radius: 12px;
  padding: 16px 30px;
  background: #fff;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.cta-section { padding: 40px 0 104px; }
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 76px 64px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-grad1) 0%, var(--brand-grad2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 38%),
    radial-gradient(circle at 84% 82%, rgba(255, 255, 255, 0.16), transparent 40%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.cta-eyebrow i { width: 6px; height: 6px; background: #fff; border-radius: 50%; }
.cta-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  max-width: 720px;
}
.cta-sub { font-size: 16px; line-height: 1.7; color: #e0e7ff; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.cta-band .btn--secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.cta-band .btn--secondary:hover { background: rgba(255, 255, 255, 0.16); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-top: 64px;
}
.footer-top {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  padding-bottom: 48px;
}
.footer-brand { width: 320px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: #94a3b8; }
.footer-cols {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.footer-col a { font-size: 13px; color: #94a3b8; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: #e2e8f0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(55% 60% at 50% 0%, rgba(99, 102, 241, 0.1), transparent 72%),
    linear-gradient(180deg, #f8faff, #fff);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 10%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 10%, #000 20%, transparent 72%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.page-hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 860px;
  text-wrap: balance;
}
.page-hero p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 720px;
}

/* ---------- Solutions page ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.scenario {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.scenario:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.scenario-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scenario-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
}
.scenario-icon svg { width: 26px; height: 26px; }
.scenario-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 4px 10px;
}
.scenario h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.scenario-pain { font-size: 14px; line-height: 1.7; color: var(--ink-muted); }
.scenario-divider { height: 1px; background: #f1f5f9; }
.plan-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.plan-pill svg { width: 12px; height: 12px; }
.scenario ul { display: flex; flex-direction: column; gap: 11px; }
.scenario ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.scenario ul svg {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  color: var(--success);
}
.scenario--cta {
  justify-content: space-between;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--brand-grad1), var(--brand-grad2));
  box-shadow: 0 18px 44px rgba(99, 102, 241, 0.28);
}
.scenario--cta:hover { box-shadow: 0 24px 54px rgba(99, 102, 241, 0.36); }
.scenario--cta .scenario-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.scenario--cta h2 { color: #fff; }
.scenario--cta p { font-size: 14px; line-height: 1.7; color: #e0e7ff; }
.scenario-cta-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.scenario-cta-link svg { width: 16px; height: 16px; }
.scenario-cta-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18); }

/* ---------- Product page ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 30px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 17px; font-weight: 700; }
.feature-card p { font-size: 13.5px; line-height: 1.7; color: var(--ink-muted); }
.feature-card .meta {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-hint);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: 88px; }
.split-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.split-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.split-copy p { font-size: 15.5px; line-height: 1.75; color: var(--ink-muted); }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.check-list svg { flex: none; width: 18px; height: 18px; color: var(--success); margin-top: 1px; }

.panel {
  border: 1px solid var(--ink-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fbfcff;
  border-bottom: 1px solid #eef2f7;
}
.panel-head .dots { display: flex; gap: 5px; }
.panel-head .dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
}
.panel-head .panel-title {
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-hint);
  font-family: var(--mono);
}
.panel-body { padding: 20px; }

.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kw {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: var(--ink-muted);
}
.kw--hot { background: var(--brand-tint); border-color: #e0e7ff; color: var(--brand); font-weight: 600; }

.bar-list { display: flex; flex-direction: column; gap: 14px; }
.bar-row .bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
  color: var(--ink-muted);
}
.bar-row .bar-top b { color: var(--ink); }
.bar-track {
  height: 7px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-grad1), var(--brand-grad2));
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.publish-list { display: flex; flex-direction: column; gap: 10px; }
.publish-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  font-size: 13px;
}
.publish-row .p-logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.publish-row .p-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}
.p-status--done { background: #ecfdf5; color: #059669; }
.p-status--run { background: #eff6ff; color: #2563eb; }
.p-status--wait { background: #f8fafc; color: #94a3b8; }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-grad1), var(--brand-grad2));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}
.contact-card:hover::before { opacity: 1; }
.contact-card .icon-box { margin-bottom: 6px; }
.contact-card h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.contact-card .value {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  word-break: break-all;
}
.contact-card .value a:hover { color: var(--brand); }
.contact-card p { font-size: 13px; line-height: 1.7; color: var(--ink-muted); }
.contact-card .action {
  margin-top: auto;
  padding-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}
.contact-card .action svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}
.contact-card:hover .action svg { transform: translateX(3px); }

.steps-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Phone / FAQ ---------- */
.phone-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 12px 22px 12px 14px;
  border: 1px solid var(--ink-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.phone-strip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}
.phone-strip .icon-box {
  margin: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-grad1), var(--brand-grad2));
  color: #fff;
}
.phone-strip .icon-box svg { width: 20px; height: 20px; }
.phone-strip small {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink-hint);
}
.phone-strip strong {
  display: block;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.phone-strip:hover strong { color: var(--brand); }
.phone-link {
  color: var(--brand);
  font-weight: 700;
  font-size: 15px;
}
.phone-link:hover { text-decoration: underline; }

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--ink-border);
  border-radius: 14px;
  background: #fff;
  padding: 0 22px;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-muted);
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .float-chip, .demo-live i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-inner { padding: 0 24px; }
  .nav { gap: 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero h1, .hero-sub { max-width: 720px; }
  .hero-actions, .hero-meta { justify-content: center; }
  .demo-wrap { max-width: 580px; margin: 0 auto; width: 100%; }
  .float-chip--one { right: 6px; }
  .float-chip--two { left: -6px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(4, 1fr); }
  .split { gap: 40px; }
  .footer-top { gap: 48px; }
  .footer-brand { width: 260px; }
}

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .container { padding: 0 24px; }
  .grid-3, .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--ink-border); }
  .scenario-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .steps-grid--3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .panel { order: -1; }
  .page-hero { padding: 72px 0 56px; }
  .cta-band { padding: 56px 28px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-brand { width: 100%; }
  .footer-cols { width: 100%; flex-wrap: wrap; gap: 32px; }

  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 10px; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--ink-border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { height: 52px; border-bottom: 1px solid #f1f5f9; font-size: 15px; }
  .nav a.is-active::after { display: none; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 18px; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15.5px; }
  .header-actions .btn--primary { display: none; }
  .btn { height: 46px; padding: 0 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-tile--wide {
    grid-column: span 2;
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    padding: 18px;
  }
  .ai-tile--wide .ai-logo { width: 40px; height: 40px; }
  .scenario { padding: 26px 22px; }
  .scenario h2 { font-size: 20px; }
  .contact-card { padding: 26px 22px; }
  .float-chip { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .demo-body { padding: 18px; }
  .page-hero h1 { font-size: 32px; }
  .cta-title { font-size: 27px; }
}
