/* ============================================
   NexaAI Finance - Complete Stylesheet
   Deep Space Quantum Core Design System
   20 AI-Generated Images Integrated
   ============================================ */

/* --- Google Fonts (CN-optimized) --- */
@import url('https://fonts.googleapis.cn/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-deep: #050816;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(96, 165, 250, 0.6);
  --blue: #60a5fa;
  --purple: #a78bfa;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gradient-main: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
  --gradient-btn: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-btn-alt: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-full: 9999px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg-deep); color: var(--text-primary); font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
ul { list-style: none; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: var(--gradient-main); background-size: 200% 200%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradientShift 6s ease infinite; }

/* ===========================
   NAVIGATION
   =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 8, 22, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1200px; margin: 0 auto;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 700;
}
.nav-logo img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.3);
  object-fit: cover;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s var(--ease-smooth); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gradient-main);
  transition: width 0.3s var(--ease-smooth);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 10px 24px; border-radius: var(--radius-full);
  background: var(--gradient-btn); color: white;
  font-weight: 600; font-size: 0.9rem;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4); }

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,22,0.2) 0%, rgba(5,8,22,0.6) 50%, var(--bg-deep) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); z-index: 1; opacity: 0.35; }
.hero-glow--blue { background: var(--blue); top: 10%; left: -5%; }
.hero-glow--purple { background: var(--purple); bottom: 10%; right: -5%; }

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: rgba(96, 165, 250, 0.1); border: 1px solid rgba(96, 165, 250, 0.2);
  color: var(--blue); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); animation: pulse-dot 2s ease infinite;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px;
}
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); max-width: 480px; line-height: 1.8; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Visual Card */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual-card {
  position: relative; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 28px; animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(80, 120, 255, 0.15); overflow: hidden;
}
.hero-visual-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
}
.hero-visual-img {
  width: 100%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px;
}
.hero-visual-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-stats { display: flex; flex-direction: column; gap: 10px; }
.hero-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem; font-weight: 500;
}
.stat-val { font-weight: 700; font-family: 'Space Grotesk', monospace; }
.stat-val--green { color: var(--green); }
.stat-val--blue { color: var(--blue); }
.stat-val--purple { color: var(--purple); }

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  padding: 16px 36px; border-radius: var(--radius-full);
  background: var(--gradient-btn); color: white;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  animation: pulse-glow 3s ease infinite;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(59,130,246,0.5); }
.btn-secondary {
  padding: 16px 36px; border-radius: var(--radius-full);
  background: transparent; border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary); font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s var(--ease-smooth);
}
.btn-secondary:hover { border-color: var(--blue); background: rgba(96,165,250,0.08); transform: translateY(-2px); }
.btn-cta {
  display: inline-block; padding: 18px 48px; border-radius: var(--radius-full);
  background: var(--gradient-btn-alt); color: white;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  animation: pulse-glow 3s ease infinite;
}
.btn-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 50px rgba(139,92,246,0.45); }

/* ===========================
   SECTION COMMON
   =========================== */
.section-header { text-align: center; margin-bottom: 72px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ===========================
   AI ASSISTANT SECTION
   =========================== */
.ai-assistant { padding: 120px 0; position: relative; overflow: hidden; }
.ai-assistant-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.ai-assistant-img {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.ai-assistant-img img { width: 100%; aspect-ratio: 4/4.5; object-fit: cover; }
.ai-assistant-img::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.ai-assistant-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px;
}
.ai-assistant-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }
.ai-assistant-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.ai-feat {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
}
.ai-feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ai-feat-icon--blue { background: rgba(96,165,250,0.15); color: var(--blue); }
.ai-feat-icon--purple { background: rgba(167,139,250,0.15); color: var(--purple); }
.ai-feat-icon--cyan { background: rgba(34,211,238,0.15); color: var(--cyan); }
.ai-feat span { font-size: 0.95rem; font-weight: 500; }

/* AI Avatar floating */
.ai-avatar-float {
  position: absolute; bottom: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  border: 3px solid var(--blue);
  box-shadow: 0 0 30px rgba(96,165,250,0.3);
  animation: float 5s ease-in-out infinite;
  overflow: hidden; z-index: 3;
}
.ai-avatar-float img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================
   FEATURES SECTION
   =========================== */
.features { padding: 120px 0; position: relative; }
.features-bg {
  position: absolute; inset: 0; z-index: 0;
}
.features-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.08; }
.features-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(5,8,22,0.85) 50%, var(--bg-deep) 100%);
}
.features .container { position: relative; z-index: 1; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.feature-card:hover { transform: translateY(-10px); border-color: var(--border-hover); box-shadow: 0 20px 60px rgba(96,165,250,0.12); }
.feature-card-img { width: 100%; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-smooth); }
.feature-card:hover .feature-card-img img { transform: scale(1.05); }
.feature-card-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, rgba(5,8,22,1), transparent);
}
.feature-card-body { padding: 24px 24px 28px; }
.feature-card-tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px;
}
.tag--blue { background: rgba(96,165,250,0.12); color: var(--blue); }
.tag--purple { background: rgba(167,139,250,0.12); color: var(--purple); }
.tag--cyan { background: rgba(34,211,238,0.12); color: var(--cyan); }
.tag--green { background: rgba(52,211,153,0.12); color: var(--green); }
.tag--amber { background: rgba(251,191,36,0.12); color: var(--amber); }
.feature-card-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.feature-card-desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ===========================
   PLATFORM SHOWCASE
   =========================== */
.platform { padding: 120px 0; position: relative; }
.platform-showcase {
  max-width: 1000px; margin: 0 auto; border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(96,165,250,0.1);
}
.platform-showcase img { width: 100%; display: block; }
.platform-showcase::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
}
.platform-glow {
  position: absolute; width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(96,165,250,0.15), transparent 70%);
  bottom: -100px; left: 50%; transform: translateX(-50%);
}

/* ===========================
   TECHNOLOGY SECTION
   =========================== */
.technology { padding: 140px 0; position: relative; overflow: hidden; }
.tech-bg { position: absolute; inset: 0; z-index: 0; }
.tech-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.tech-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(5,8,22,0.5) 40%, rgba(5,8,22,0.5) 60%, var(--bg-deep) 100%);
}
.tech-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.tech-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.tech-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 48px; }
.tech-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.tech-metric {
  padding: 32px 20px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  text-align: center; transition: border-color 0.3s var(--ease-smooth);
}
.tech-metric:hover { border-color: var(--border-hover); }
.tech-metric-value { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.tech-metric-label { font-size: 0.9rem; color: var(--text-secondary); }

/* Quantum decoration */
.tech-quantum {
  position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
  width: 400px; height: 400px; border-radius: 50%; opacity: 0.12;
  overflow: hidden; z-index: 0;
}
.tech-quantum img { width: 100%; height: 100%; object-fit: cover; }

/* ===========================
   MOBILE APP SECTION
   =========================== */
.mobile-app { padding: 120px 0; position: relative; overflow: hidden; }
.mobile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.mobile-img-wrap {
  display: flex; justify-content: center; position: relative;
}
.mobile-img-wrap img {
  max-width: 380px; border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}
.mobile-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.mobile-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }
.mobile-features { display: flex; flex-direction: column; gap: 14px; }
.mob-feat {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.95rem; color: var(--text-secondary);
}
.mob-feat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mob-feat-dot--blue { background: var(--blue); }
.mob-feat-dot--purple { background: var(--purple); }
.mob-feat-dot--cyan { background: var(--cyan); }
.mob-feat-dot--green { background: var(--green); }

/* ===========================
   AI + HUMAN COLLABORATION
   =========================== */
.collaboration { padding: 120px 0; position: relative; }
.collab-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.collab-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.collab-img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.collab-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.collab-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; }
.collab-quote {
  padding: 20px 24px; border-radius: var(--radius-md);
  background: var(--bg-card); border-left: 3px solid var(--purple);
  font-style: italic; color: var(--text-secondary); font-size: 0.95rem;
}

/* ===========================
   SECURITY SECTION
   =========================== */
.security { padding: 120px 0; position: relative; overflow: hidden; }
.security-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.security-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.security-text p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; margin-bottom: 32px; }
.security-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.sec-badge {
  padding: 10px 20px; border-radius: var(--radius-full);
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.sec-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.security-img {
  display: flex; justify-content: center;
}
.security-img img {
  max-width: 420px; border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ===========================
   PROMO / AD SECTION
   =========================== */
.promo { padding: 100px 0; position: relative; }
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.promo-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  border: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.promo-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(96,165,250,0.15); }
.promo-card img { width: 100%; aspect-ratio: 1200/628; object-fit: cover; }
.promo-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,8,22,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 28px;
}
.promo-card-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 600; }

/* ===========================
   CTA SECTION
   =========================== */
.cta { padding: 140px 0; text-align: center; position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.1; }
.cta-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(5,8,22,0.3), var(--bg-deep) 70%); }
.cta-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.15), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
}
.cta-content { position: relative; z-index: 2; }
.cta-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
.cta-desc { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 44px; }

/* ===========================
   FOOTER
   =========================== */
.footer { position: relative; overflow: hidden; }
.footer-banner {
  width: 100%; aspect-ratio: 1920/600; overflow: hidden; position: relative;
}
.footer-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.footer-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg-deep), rgba(5,8,22,0.6), var(--bg-deep));
}
.footer-bottom {
  padding: 32px 24px; text-align: center;
  border-top: 1px solid var(--border-subtle);
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--blue); }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-18px); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(96,165,250,0.4); } 50% { box-shadow: 0 0 30px 8px rgba(96,165,250,0.15); } 100% { box-shadow: 0 0 0 0 rgba(96,165,250,0); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --- Scroll Reveal --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===========================
   PARTICLE CANVAS
   =========================== */
.particle-canvas {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: auto;
}

/* ===========================
   MODAL
   =========================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease-smooth);
}
.modal-overlay--open { opacity: 1; pointer-events: all; }

.modal {
  width: 420px; max-width: 92vw; max-height: 90vh; overflow-y: auto;
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 35, 0.95);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(96, 165, 250, 0.1);
  padding: 36px 32px;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s var(--ease-smooth);
}
.modal-overlay--open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: none;
  color: var(--text-muted); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }

.modal-header { text-align: center; margin-bottom: 28px; }
.modal-logo { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; border: 2px solid rgba(96,165,250,0.3); object-fit: cover; }
.modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.modal-desc { color: var(--text-secondary); font-size: 0.9rem; }

.modal-form { display: flex; flex-direction: column; gap: 18px; }
.modal-input-group { display: flex; flex-direction: column; gap: 6px; }
.modal-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.03em; }
.modal-input {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: 0.9rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.modal-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(96,165,250,0.15); }
.modal-input::placeholder { color: var(--text-muted); }

.modal-submit {
  padding: 14px; border-radius: var(--radius-full);
  background: var(--gradient-btn); color: white;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.modal-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.4); }
.modal-submit:active { transform: translateY(0); }

.modal-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: 0.8rem;
}
.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-subtle);
}

.modal-social {
  padding: 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: all 0.2s;
}
.modal-social:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.modal-success { text-align: center; padding: 20px 0; }
.modal-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.15); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--green);
  margin: 0 auto 16px;
  animation: successPop 0.5s var(--ease-smooth);
}
.modal-success-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.modal-success-desc { color: var(--text-secondary); font-size: 0.9rem; }
@keyframes successPop {
  0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); }
}

/* ===========================
   TOAST
   =========================== */
.toast-container {
  position: fixed; top: 80px; right: 24px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: rgba(10, 14, 35, 0.95);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  color: var(--text-primary); font-size: 0.85rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  pointer-events: all;
  animation: toastIn 0.4s var(--ease-smooth);
  max-width: 340px;
}
.toast--success { border-left: 3px solid var(--green); }
.toast--info { border-left: 3px solid var(--blue); }
.toast--exit { animation: toastOut 0.3s var(--ease-smooth) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ===========================
   AI SIMULATION WINDOW
   =========================== */
.ai-sim-window {
  margin-top: 16px; border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(96, 165, 250, 0.2);
  overflow: hidden;
}
.ai-sim-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(96, 165, 250, 0.08);
  border-bottom: 1px solid rgba(96, 165, 250, 0.1);
  font-size: 0.75rem;
}
.ai-sim-dot { width: 6px; height: 6px; border-radius: 50%; }
.ai-sim-dot--green { background: var(--green); animation: pulse-dot 2s ease infinite; }
.ai-sim-title { font-weight: 600; color: var(--text-secondary); flex: 1; }
.ai-sim-status {
  padding: 2px 8px; border-radius: var(--radius-full);
  background: rgba(52, 211, 153, 0.15); color: var(--green);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.05em;
}
.ai-sim-body {
  padding: 10px 14px; max-height: 160px; overflow-y: auto;
  font-family: 'Space Grotesk', monospace; font-size: 0.75rem;
  color: var(--text-secondary); line-height: 1.8;
}
.ai-sim-body::-webkit-scrollbar { width: 3px; }
.ai-sim-body::-webkit-scrollbar-track { background: transparent; }
.ai-sim-body::-webkit-scrollbar-thumb { background: rgba(96,165,250,0.3); border-radius: 3px; }
.ai-sim-line { opacity: 0.7; }
.ai-sim-line--new {
  opacity: 1; color: var(--blue);
  animation: simFadeIn 0.5s ease;
}
.ai-sim-time {
  color: var(--text-muted); margin-right: 8px;
  font-size: 0.65rem;
}
@keyframes simFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===========================
   3D GLASS CARDS
   =========================== */
.glass-3d {
  transition: transform 0.15s ease-out, border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  transform-style: preserve-3d;
  will-change: transform;
}
.glass-3d:hover {
  box-shadow: 0 25px 60px rgba(96, 165, 250, 0.18), 0 0 0 1px rgba(96, 165, 250, 0.3);
}

/* ===========================
   AI CHATBOT
   =========================== */
.chatbot {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
}
.chatbot-toggle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-btn);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  position: relative; overflow: visible;
}
.chatbot-toggle:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5); }
.chatbot-toggle-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chatbot-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--blue); animation: chatbot-pulse 2s ease infinite;
}
@keyframes chatbot-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.chatbot-window {
  position: absolute; bottom: 80px; right: 0;
  width: 360px; max-height: 500px;
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 35, 0.95);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column;
  transform: scale(0.8) translateY(20px); opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-smooth), opacity 0.35s var(--ease-smooth);
}
.chatbot-window--open {
  transform: scale(1) translateY(0); opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(96,165,250,0.3); }
.chatbot-name { font-weight: 600; font-size: 0.9rem; }
.chatbot-online { font-size: 0.75rem; color: var(--green); display: flex; align-items: center; gap: 4px; }
.chatbot-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chatbot-close {
  background: none; color: var(--text-muted); font-size: 1.4rem;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.2s;
}
.chatbot-close:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

.chatbot-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  min-height: 200px; max-height: 300px;
}
.chatbot-messages::-webkit-scrollbar { width: 3px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: rgba(96,165,250,0.3); border-radius: 3px; }

.chat-msg { display: flex; }
.chat-msg--bot { justify-content: flex-start; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 0.85rem; line-height: 1.5;
}
.chat-msg--bot .chat-msg-bubble {
  background: rgba(96, 165, 250, 0.12); border: 1px solid rgba(96, 165, 250, 0.15);
  color: var(--text-primary); border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-msg-bubble {
  background: var(--gradient-btn); color: white; border-bottom-right-radius: 4px;
}
.chat-msg-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }

.chatbot-input-area {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}
.chatbot-input {
  flex: 1; padding: 10px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-subtle);
  color: var(--text-primary); font-size: 0.85rem; outline: none;
  transition: border-color 0.3s;
}
.chatbot-input:focus { border-color: var(--blue); }
.chatbot-input::placeholder { color: var(--text-muted); }
.chatbot-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-btn); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: transform 0.2s;
}
.chatbot-send:hover { transform: scale(1.1); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-content, .ai-assistant-grid, .mobile-grid, .collab-grid, .security-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text { max-width: 100%; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .tech-metrics { grid-template-columns: 1fr; max-width: 360px; margin: 60px auto 0; }
  .promo-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .security-badges { justify-content: center; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding-top: 80px; }
  .hero-title { font-size: 2.2rem; }
  .features, .technology, .cta, .ai-assistant, .platform, .mobile-app, .collaboration, .security, .promo { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  .ai-avatar-float { width: 70px; height: 70px; bottom: -10px; right: -10px; }
  .chatbot-window { width: 300px; right: -10px; }
  .chatbot { bottom: 16px; right: 16px; }
  .chatbot-toggle { width: 54px; height: 54px; }
  .chatbot-toggle-img { width: 36px; height: 36px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .features-grid .feature-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
}
