/* ============================================================
   ClearAI 智通关 — Deep Purple Tech-Futuristic Style
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --purple-900: #4C1D95;
  --purple-800: #5B21B6;
  --purple-700: #6D28D9;
  --purple-600: #7C3AED;
  --purple-500: #8B5CF6;
  --purple-400: #A78BFA;
  --purple-300: #C4B5FD;
  --purple-200: #DDD6FE;
  --purple-100: #EDE9FE;
  --purple-50: #F5F3FF;

  --indigo-700: #4338CA;
  --indigo-600: #4F46E5;
  --indigo-500: #6366F1;
  --indigo-100: #E0E7FF;
  --indigo-50: #EEF2FF;

  --cyan-500: #06B6D4;
  --cyan-400: #22D3EE;
  --cyan-300: #67E8F9;

  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F8FAFC;

  --white: #FFFFFF;
  --black: #000000;

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --shadow-glow-cyan: 0 0 20px rgba(6,182,212,.35), 0 0 60px rgba(6,182,212,.15);
  --shadow-glow-purple: 0 0 20px rgba(124,58,237,.35), 0 0 60px rgba(124,58,237,.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(.4,0,.2,1);

  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.12);
  --glass-bg-light: rgba(255,255,255,.65);
  --glass-border-light: rgba(255,255,255,.5);

  --container-max: 1200px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.mono { font-family: var(--font-mono); }

/* ---------- Utility ---------- */
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--purple-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--purple-100);
  color: var(--purple-700);
  margin-bottom: 14px;
}
.section-subtitle {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--transition-base), box-shadow var(--transition-base), backdrop-filter var(--transition-base);
  background: transparent;
}
/* When user scrolls, the nav gets solid via JS toggle of .scrolled */
.navbar.scrolled {
  background: rgba(30,15,60,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan-400), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 900; color: var(--white);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.78);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan-400);
  transition: width var(--transition-base);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple-600), var(--indigo-600));
  color: var(--white) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-base) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-purple);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0533 0%, var(--purple-900) 30%, var(--purple-800) 60%, #1e1b4b 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 50%, rgba(109,40,217,.4), transparent),
    radial-gradient(ellipse 600px 500px at 80% 30%, rgba(6,182,212,.18), transparent),
    radial-gradient(ellipse 500px 400px at 60% 80%, rgba(79,70,229,.25), transparent);
  animation: heroShift 12s ease-in-out infinite alternate;
}
@keyframes heroShift {
  0%   { opacity: 1; transform: scale(1) translate(0,0); }
  50%  { opacity: .85; transform: scale(1.08) translate(-2%,3%); }
  100% { opacity: 1; transform: scale(1) translate(1%,-1%); }
}

/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  animation: orbFloat 8s ease-in-out infinite alternate;
}
.hero-orb--1 { width: 300px; height: 300px; background: var(--cyan-500); top: 10%; right: 10%; animation-delay: 0s; }
.hero-orb--2 { width: 400px; height: 400px; background: var(--purple-600); bottom: 5%; left: 5%; animation-delay: -3s; }
.hero-orb--3 { width: 200px; height: 200px; background: var(--indigo-500); top: 60%; right: 30%; animation-delay: -5s; }

@keyframes orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px,-40px) scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  color: var(--cyan-300);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: .02em;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .5; transform: scale(.7); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero h1 .accent { color: var(--cyan-400); }

.hero-sub {
  color: rgba(255,255,255,.6);
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub .typing-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--cyan-400);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink-cursor .8s step-end infinite;
}
@keyframes blink-cursor {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--cyan-500), var(--purple-500));
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-cyan);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(4px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.35);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-mono);
}
.hero-stat .label {
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features {
  background: var(--purple-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-500), var(--cyan-500));
  opacity: 0;
  transition: opacity var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-purple);
  border-color: var(--purple-300);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--purple-100), var(--indigo-100));
  color: var(--purple-700);
  transition: background var(--transition-base);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--purple-600), var(--indigo-600));
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--gray-900);
}
.feature-card p {
  color: var(--gray-600);
  font-size: .92rem;
  line-height: 1.7;
}
.feature-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--purple-100);
  color: var(--purple-700);
}

/* ============================================================
   AI DEMO SECTION
   ============================================================ */
.ai-demo {
  background: var(--white);
}

.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Chat interface */
.chat-window {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-700);
}
.chat-header {
  padding: 16px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-header .status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px rgba(52,211,153,.5);
}
.chat-header span {
  color: var(--gray-300);
  font-size: .85rem;
  font-weight: 600;
}
.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
}

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .88rem;
  line-height: 1.65;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--purple-700);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.chat-msg.ai {
  align-self: flex-start;
  background: var(--gray-800);
  color: var(--gray-300);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--gray-700);
}
.chat-msg .ai-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--cyan-400);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.chat-msg .ai-label .spark { font-size: .8rem; }

.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-input-bar input {
  flex: 1;
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--gray-300);
  font-size: .85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.chat-input-bar input:focus { border-color: var(--purple-500); }
.chat-input-bar button {
  padding: 10px 18px;
  background: var(--purple-600);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .83rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.chat-input-bar button:hover { background: var(--purple-500); }

/* Result card */
.result-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}
.result-card h3 {
  margin-bottom: 24px;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-card h3 .icon { color: var(--purple-600); }

.hs-candidate {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.hs-candidate:last-child { border-bottom: none; }

.hs-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.hs-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple-700);
}
.hs-confidence {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .9rem;
  color: var(--cyan-500);
}
.hs-desc {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.hs-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.hs-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--purple-500), var(--cyan-500));
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.hs-tax-info {
  margin-top: 6px;
  font-size: .78rem;
  color: var(--gray-500);
  font-family: var(--font-mono);
}

/* ============================================================
   DASHBOARD PREVIEW
   ============================================================ */
.dashboard {
  background: var(--gray-50);
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.dash-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.dash-card h4 {
  font-size: .92rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-card h4 .icon { color: var(--purple-500); }

/* Bar chart (CSS only) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 180px;
  padding-top: 10px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(180deg, var(--purple-500), var(--indigo-600));
  transition: height .8s cubic-bezier(.4,0,.2,1);
  min-height: 4px;
  position: relative;
}
.bar::after {
  content: attr(data-value);
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  font-weight: 700;
  color: var(--purple-700);
  font-family: var(--font-mono);
}
.bar-label {
  font-size: .7rem;
  color: var(--gray-500);
  white-space: nowrap;
}

/* Metric cards */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.metric-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--purple-50);
  border: 1px solid var(--purple-100);
  text-align: center;
}
.metric-item .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple-700);
  font-family: var(--font-mono);
}
.metric-item .label {
  font-size: .78rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Status list */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.green { background: #34D399; box-shadow: 0 0 6px rgba(52,211,153,.5); }
.status-dot.yellow { background: #FBBF24; box-shadow: 0 0 6px rgba(251,191,36,.5); }
.status-dot.blue { background: var(--cyan-500); box-shadow: 0 0 6px rgba(6,182,212,.5); }
.status-dot.purple { background: var(--purple-500); box-shadow: 0 0 6px rgba(124,58,237,.5); }

.status-info { flex: 1; }
.status-info .name { font-size: .85rem; font-weight: 600; color: var(--gray-800); }
.status-info .desc { font-size: .75rem; color: var(--gray-500); }
.status-badge {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.status-badge.success { background: #D1FAE5; color: #065F46; }
.status-badge.pending { background: #FEF3C7; color: #92400E; }
.status-badge.active { background: var(--purple-100); color: var(--purple-700); }

/* Donut chart */
.donut-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}
.donut-chart {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--purple-600) 0% 45%,
    var(--cyan-500) 45% 72%,
    var(--indigo-500) 72% 88%,
    var(--gray-300) 88% 100%
  );
  position: relative;
  flex-shrink: 0;
}
.donut-chart::after {
  content: '';
  position: absolute;
  inset: 25%;
  background: var(--white);
  border-radius: 50%;
}
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gray-600);
}
.donut-legend-item .swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============================================================
   INTEGRATION
   ============================================================ */
.integration {
  background: var(--indigo-50);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.integration-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.integration-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-cyan);
  border-color: var(--cyan-300);
}

.integration-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--indigo-100), var(--purple-100));
  color: var(--indigo-600);
}
.integration-card h3 {
  margin-bottom: 10px;
  color: var(--gray-900);
}
.integration-card p {
  color: var(--gray-600);
  font-size: .9rem;
  margin-bottom: 18px;
  line-height: 1.65;
}
.integration-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.integration-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--indigo-50);
  color: var(--indigo-600);
  font-family: var(--font-mono);
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}

.pricing-card {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--purple-400);
  background: linear-gradient(180deg, var(--purple-50), var(--white));
}
.pricing-card.featured::before {
  content: '最受欢迎';
  position: absolute;
  top: 16px; right: -30px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--purple-600), var(--cyan-500));
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 40px;
}

.pricing-card .plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.pricing-card .plan-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.pricing-card .plan-price .currency { font-size: 1.2rem; vertical-align: top; }
.pricing-card .plan-price .period { font-size: .9rem; font-weight: 500; color: var(--gray-500); }
.pricing-card .plan-desc {
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: var(--gray-700);
}
.pricing-features li .check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}

.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: .95rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), background var(--transition-fast);
}
.pricing-btn.outline {
  border: 2px solid var(--purple-300);
  color: var(--purple-700);
}
.pricing-btn.outline:hover {
  background: var(--purple-50);
  transform: translateY(-2px);
}
.pricing-btn.filled {
  background: linear-gradient(135deg, var(--purple-600), var(--indigo-600));
  color: var(--white);
}
.pricing-btn.filled:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-purple);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0F0720;
  color: rgba(255,255,255,.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.footer-brand .logo .logo-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan-400), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900; color: var(--white);
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: rgba(255,255,255,.5);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.footer-social a:hover {
  background: var(--purple-700);
  color: var(--white);
  border-color: var(--purple-600);
}

.footer-col h4 {
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: .85rem;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--cyan-400); }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--cyan-400); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15,7,32,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hidden {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-inner p {
  flex: 1;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  min-width: 240px;
}
.cookie-inner a {
  color: var(--cyan-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: .83rem;
  font-weight: 600;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.cookie-btn.accept {
  background: var(--purple-600);
  color: var(--white);
}
.cookie-btn.accept:hover {
  background: var(--purple-500);
  transform: translateY(-1px);
}
.cookie-btn.decline {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
}
.cookie-btn.decline:hover {
  background: rgba(255,255,255,.14);
}

/* ============================================================
   COOKIE PAGE
   ============================================================ */
.cookie-page-header {
  background: linear-gradient(135deg, #1a0533 0%, var(--purple-900) 50%, #1e1b4b 100%);
  padding: 140px 0 60px;
  text-align: center;
}
.cookie-page-header h1 { color: var(--white); margin-bottom: 12px; }
.cookie-page-header p { color: rgba(255,255,255,.6); font-size: 1.05rem; }

.cookie-content {
  padding: 64px 0 100px;
  background: var(--white);
}
.cookie-content .container { max-width: 860px; }

.cookie-section { margin-bottom: 48px; }
.cookie-section h2 {
  font-size: 1.4rem;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--purple-100);
}
.cookie-section h3 {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin: 20px 0 10px;
}
.cookie-section p,
.cookie-section li {
  color: var(--gray-600);
  font-size: .92rem;
  line-height: 1.8;
}
.cookie-section ul { padding-left: 20px; margin: 10px 0; }
.cookie-section ul li { list-style: disc; margin-bottom: 6px; }

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: .85rem;
}
.cookie-table th,
.cookie-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--gray-200);
}
.cookie-table th {
  background: var(--purple-50);
  color: var(--purple-800);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cookie-table td {
  color: var(--gray-700);
}
.cookie-table tr:nth-child(even) td {
  background: var(--gray-50);
}
.cookie-table code {
  font-family: var(--font-mono);
  background: var(--purple-50);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .8rem;
  color: var(--purple-700);
}

.cookie-contact {
  background: var(--purple-50);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  border: 1px solid var(--purple-100);
}
.cookie-contact p { margin-bottom: 6px; }

/* ============================================================
   SCROLL ANIMATIONS (fade-in)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid,
  .integration-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-wrapper { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(30,15,60,.97);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-toggle { display: flex; }

  .features-grid,
  .integration-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 24px; }
  .section-padding { padding: 64px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .bar-chart { height: 140px; gap: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: center; }
}
