/* ============================================
   XBSGEO - 艾博思 企业官网样式
   深蓝+金色 | 玻璃态 | 科技感
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --primary-deep: #1a237e;
  --primary-light: #283593;
  --primary-indigo: #0d47a1;
  --accent-gold: #d4a843;
  --accent-gold-light: #f0d78c;
  --bg-dark: #0a0e27;
  --bg-card: rgba(26, 35, 126, 0.3);
  --bg-card-hover: rgba(26, 35, 126, 0.45);
  --text-white: #ffffff;
  --text-light: #b0bec5;
  --text-gold: #d4a843;
  --font-cn: 'Noto Sans SC', sans-serif;
  --font-en: 'Inter', sans-serif;
  --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.3s ease-out;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.5);
  --border-subtle: 1px solid rgba(212, 168, 67, 0.15);
  --border-gold: 1px solid rgba(212, 168, 67, 0.4);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-cn);
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.gold-text {
  color: var(--accent-gold);
}

/* --- Glassmorphism Card --- */
.glass-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 168, 67, 0.4);
  box-shadow: var(--shadow-card-hover);
  background: var(--bg-card-hover);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-cn);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
  background: rgba(212, 168, 67, 0.1);
  transform: scale(1.02);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-fast);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo-img {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 14px;
  color: var(--text-light);
  transition: color var(--transition-fast);
  position: relative;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent-gold);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(176, 190, 197, 0.3);
  background: transparent;
  font-family: var(--font-en);
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.lang-toggle .active-lang {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(26, 35, 126, 0.5) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(13, 71, 161, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Animated data stream lines */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(212, 168, 67, 0.3), transparent);
  animation: particle-fall linear infinite;
}

@keyframes particle-fall {
  0% { transform: translateY(-100px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(calc(100vh + 100px)); opacity: 0; }
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 100px;
  font-size: 14px;
  color: var(--accent-gold);
  margin-bottom: 32px;
  font-weight: 500;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero h1 .gold-text {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-desc .ai-names {
  color: var(--accent-gold);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat-number span {
  font-size: 24px;
  margin-left: 2px;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--text-light);
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(212, 168, 67, 0.3);
}

/* ============================================
   WHAT IS GEO
   ============================================ */
.geo-section {
  background:
    radial-gradient(circle at 10% 50%, rgba(26, 35, 126, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(212, 168, 67, 0.05) 0%, transparent 40%);
}

.geo-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.geo-compare-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.geo-compare-card.seo {
  background: rgba(40, 53, 147, 0.2);
  border: 1px solid rgba(40, 53, 147, 0.4);
}

.geo-compare-card.geo {
  background: rgba(212, 168, 67, 0.08);
  border: 1px solid rgba(212, 168, 67, 0.3);
}

.geo-compare-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
}

.geo-compare-card.seo .geo-compare-label {
  background: rgba(40, 53, 147, 0.4);
  color: var(--text-light);
}

.geo-compare-card.geo .geo-compare-label {
  background: rgba(212, 168, 67, 0.2);
  color: var(--accent-gold);
}

.geo-compare-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
}

.geo-compare-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.geo-compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.geo-compare-list li .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.geo-compare-card.seo .geo-compare-list li .icon {
  color: var(--text-light);
}

.geo-compare-card.geo .geo-compare-list li .icon {
  color: var(--accent-gold);
}

.geo-advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.geo-advantage {
  text-align: center;
  padding: 40px 28px;
}

.geo-advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 50%;
  color: var(--accent-gold);
}

.geo-advantage-icon svg {
  width: 32px;
  height: 32px;
}

.geo-advantage h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.geo-advantage p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ============================================
   CORE SERVICES
   ============================================ */
.services-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 35, 126, 0.3) 0%, transparent 60%);
}

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

.service-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent-gold);
  transition: background var(--transition-fast);
}

.service-card:hover .service-icon {
  background: rgba(212, 168, 67, 0.2);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

/* ============================================
   PRICING
   ============================================ */
.pricing-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 168, 67, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(26, 35, 126, 0.2) 0%, transparent 50%);
}

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

.pricing-card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(212, 168, 67, 0.5);
  background: rgba(26, 35, 126, 0.4);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -1px;
  right: 24px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.pricing-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 32px;
  font-family: var(--font-cn);
}

.pricing-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 8px 0;
  color: var(--text-light);
  border-bottom: 1px solid rgba(176, 190, 197, 0.1);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li .check {
  color: var(--accent-gold);
  flex-shrink: 0;
}

.pricing-features li .check svg {
  width: 16px;
  height: 16px;
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================
   CASES
   ============================================ */
.cases-section {
  background:
    radial-gradient(circle at 50% 50%, rgba(26, 35, 126, 0.15) 0%, transparent 60%);
}

.cases-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.cases-demo {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.4), rgba(10, 14, 39, 0.6));
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
}

.cases-demo-inner {
  width: 85%;
  padding: 24px;
}

.demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.demo-dot.red { background: #ff5f57; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green { background: #28ca41; }

.demo-bar {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-left: 12px;
}

.demo-content {
  text-align: left;
}

.demo-question {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
}

.demo-answer {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-light);
}

.demo-answer .highlight {
  color: var(--accent-gold);
  font-weight: 600;
  background: rgba(212, 168, 67, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.cases-info {
  padding: 0 16px;
}

.cases-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.cases-info p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.cases-industries {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-tag {
  padding: 8px 20px;
  background: rgba(212, 168, 67, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 100px;
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 500;
}

.cases-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.case-metric {
  text-align: center;
  padding: 28px 20px;
}

.case-metric-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: var(--font-en);
  line-height: 1;
  margin-bottom: 8px;
}

.case-metric-label {
  font-size: 14px;
  color: var(--text-light);
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  background:
    radial-gradient(circle at 30% 50%, rgba(26, 35, 126, 0.25) 0%, transparent 50%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 67, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-visual-ring::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(26, 35, 126, 0.3);
}

.about-visual-ring::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(26, 35, 126, 0.15);
}

.about-logo-center {
  width: 120px;
  height: 120px;
}

.about-logo-center svg {
  width: 100%;
  height: 100%;
}

.about-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-light);
}

.about-highlight .icon {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact-section {
  padding: 80px 0 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(26, 35, 126, 0.3) 0%, transparent 50%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(176, 190, 197, 0.15);
}

.contact-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.contact-item .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.contact-wechat {
  align-items: flex-start;
}

.wechat-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(26, 35, 126, 0.3);
  border: 1px solid rgba(176, 190, 197, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 15px;
  font-family: var(--font-cn);
  outline: none;
  transition: border-color var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(176, 190, 197, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-gold);
}

/* --- Contact Chat Preview --- */
.contact-chat {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-preview {
  text-align: center;
  padding: 40px 32px;
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
}

.chat-preview-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 50%;
  color: var(--accent-gold);
}

.chat-preview-icon svg {
  width: 36px;
  height: 36px;
}

.chat-preview h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.chat-preview p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* --- Floating Chat Widget --- */
/* --- Chat Widget (ported from geotester CustomerServiceChat) --- */

/* Floating button */
.chat-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border: none;
  color: var(--bg-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(212, 168, 67, 0.4);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: chat-float-in 0.5s ease-out 1s both;
}

@keyframes chat-float-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.chat-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(212, 168, 67, 0.5);
}

.chat-float-btn svg {
  width: 26px;
  height: 26px;
}

.chat-float-btn.hidden {
  display: none;
}

/* Chat panel */
.chat-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 384px;
  max-width: calc(100vw - 32px);
  border-radius: var(--radius-lg);
  background: #0f1333;
  border: 1px solid rgba(212, 168, 67, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  overflow: hidden;
}

.chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.chat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  background: #12173d;
}

.chat-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-panel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel-avatar svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

.chat-panel-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
}

.chat-panel-status {
  font-size: 12px;
  color: rgba(176, 190, 197, 0.7);
}

.chat-panel-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: rgba(176, 190, 197, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.chat-panel-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.chat-panel-close svg {
  width: 18px;
  height: 18px;
}

/* Messages area */
.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 384px;
  background: #0a0e27;
}

.chat-panel-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-panel-messages::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 67, 0.3);
  border-radius: 2px;
}

/* Empty state */
.chat-empty-state {
  text-align: center;
  color: rgba(176, 190, 197, 0.4);
  padding: 32px 0;
}

.chat-empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: 0.3;
  display: block;
}

.chat-empty-state p {
  font-size: 14px;
}

/* Message bubbles */
.chat-msg {
  display: flex;
  flex-direction: column;
  animation: chat-msg-in 0.2s ease-out;
}

@keyframes chat-msg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg.user {
  align-items: flex-end;
}

.chat-msg.bot {
  align-items: flex-start;
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.chat-bubble p {
  margin: 0;
}

.chat-msg.user .chat-bubble {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold);
  border-bottom-right-radius: 4px;
}

.chat-msg.bot .chat-bubble {
  background: #1a237e;
  color: var(--text-white);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(212, 168, 67, 0.1);
}

/* Thinking indicator */
.chat-bubble .thinking {
  color: rgba(176, 190, 197, 0.5);
  font-style: italic;
}

/* Loading spinner */
.chat-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.chat-spinner {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  animation: chat-spin 1s linear infinite;
}

@keyframes chat-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Input area */
.chat-panel-input-area {
  border-top: 1px solid rgba(212, 168, 67, 0.15);
  background: #12173d;
  padding: 12px 16px 16px;
}

/* Contact us button */
.chat-contact-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 8px;
  background: transparent;
  color: var(--accent-gold);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-contact-btn:hover {
  background: rgba(212, 168, 67, 0.08);
}

.chat-contact-btn svg {
  width: 14px;
  height: 14px;
}

/* Input row */
.chat-panel-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-panel-input input {
  flex: 1;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 8px;
  background: #0a0e27;
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.chat-panel-input input:focus {
  border-color: var(--accent-gold);
}

.chat-panel-input input::placeholder {
  color: rgba(176, 190, 197, 0.5);
}

.chat-panel-input input:disabled {
  opacity: 0.5;
}

.chat-panel-input button {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--accent-gold);
  border-radius: 8px;
  color: var(--bg-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.chat-panel-input button:hover {
  opacity: 0.85;
}

.chat-panel-input button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-panel-input button svg {
  width: 16px;
  height: 16px;
}

/* QR Code modal overlay */
.chat-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chat-qr-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.chat-qr-modal {
  position: relative;
  background: #12173d;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.chat-qr-overlay.show .chat-qr-modal {
  transform: scale(1);
}

.chat-qr-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: rgba(176, 190, 197, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.chat-qr-close:hover {
  color: #fff;
}

.chat-qr-close svg {
  width: 20px;
  height: 20px;
}

.chat-qr-modal h3 {
  color: var(--text-white);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}

.chat-qr-modal img {
  width: 256px;
  height: 256px;
  border-radius: 8px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  object-fit: contain;
}

.chat-qr-modal p {
  color: rgba(176, 190, 197, 0.7);
  font-size: 14px;
  margin: 16px 0 0;
}

/* Footer */
.footer {
  padding: 32px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(176, 190, 197, 0.6);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(176, 190, 197, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-stats {
    gap: 40px;
  }

  .hero-stat-number {
    font-size: 36px;
  }

  .geo-advantages,
  .services-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .cases-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .cases-demo {
    max-width: 560px;
    margin: 0 auto;
  }

  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 28px;
  }

  /* Nav mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition-fast);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .lang-toggle {
    display: none;
  }

  /* Hero mobile */
  .hero h1 {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-stat-divider {
    width: 48px;
    height: 1px;
  }

  .hero-stat-number {
    font-size: 32px;
  }

  /* GEO mobile */
  .geo-compare {
    grid-template-columns: 1fr;
  }

  .geo-advantages {
    grid-template-columns: 1fr;
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Cases mobile */
  .cases-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Contact mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .chat-preview {
    padding: 28px 20px;
  }

  /* Chat panel mobile - fullscreen */
  .chat-panel {
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }

  .chat-panel-messages {
    height: calc(100vh - 200px);
  }

  .chat-float-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .glass-card {
    padding: 24px;
  }
}
