/* ============================================================
   CiCC Platform v4.0.0 — AI PLATFORM PAGE (VIP PRO)
   ============================================================ */

.ai-hero {
  padding: calc(var(--header-height, 80px) + 48px) 0 56px;
  text-align: center;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 45%, #2563eb 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(700px 380px at 15% 20%, rgba(168,85,247,.35), transparent 60%),
    radial-gradient(600px 320px at 85% 80%, rgba(59,130,246,.30), transparent 60%);
}
.ai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.ai-hero-inner { position: relative; z-index: 1; }
.ai-hero .section-tag { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.ai-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; color: #fff; margin: 16px auto; text-shadow: 0 4px 16px rgba(0,0,0,.45); max-width: 800px; }
.ai-hero p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 680px; margin: 0 auto 24px; line-height: 1.7; }
.ai-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.ai-hero-stats { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; margin-top: 36px; }
.ai-stat { text-align: center; }
.ai-stat-num { display: block; font-size: 34px; font-weight: 800; color: #fff; line-height: 1.1; }
.ai-stat-label { font-size: 12px; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: .5px; }

.btn-white { background: #fff; color: #4c1d95; font-weight: 700; padding: 13px 30px; border-radius: 12px; white-space: nowrap; transition: transform .2s; }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 13px 30px; border-radius: 12px; font-weight: 700; white-space: nowrap; transition: background .2s; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }

/* Sections */
.ai-section { padding: 80px 0; }
.ai-section .section-header { text-align: center; margin-bottom: 48px; }
.ai-section .section-header h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--text-primary); margin: 0 auto 12px; max-width: 680px; }
.ai-section .section-header p { color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto; }

.ai-apps { background: var(--bg-page); }
.ai-automation { background: var(--bg-page); }

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

@media (max-width: 1100px) {
  .ai-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ai-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ai-grid--4, .ai-grid--3, .ai-grid--2 { grid-template-columns: 1fr; }
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ai, #7c3aed);
}
.ai-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 60px -20px color-mix(in srgb, var(--ai, #7c3aed) 45%, transparent);
  border-color: transparent;
}
.ai-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ai, #7c3aed) 14%, transparent);
  color: var(--ai, #7c3aed);
  margin-bottom: 18px;
}
.ai-icon svg { width: 30px; height: 30px; }
.ai-card h3 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; }
.ai-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 16px; }
.ai-features { list-style: none; padding: 0; margin: 0 0 16px; }
.ai-features li { font-size: 13px; color: var(--text-secondary); padding: 4px 0 4px 22px; position: relative; }
.ai-features li::before { content: "✓"; position: absolute; left: 0; color: var(--ai, #7c3aed); font-weight: 700; }
.btn-small {
  display: inline-block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ai, #7c3aed) 12%, transparent);
  color: var(--ai, #7c3aed);
  text-decoration: none;
  transition: background .2s;
}
.btn-small:hover { background: color-mix(in srgb, var(--ai, #7c3aed) 22%, transparent); }

/* CTA */
.ai-cta { padding: 80px 0; }
.ai-cta .cta-box {
  text-align: center;
  padding: 52px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #2563eb 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ai-cta .cta-box::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(500px 250px at 20% 20%, rgba(255,255,255,.12), transparent 60%);
}
.ai-cta h2 { position: relative; color: #fff; font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; margin: 0 0 16px; }
.ai-cta p { position: relative; color: rgba(255,255,255,.88); font-size: 17px; margin: 0 0 26px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { position: relative; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .ai-card, .btn-white, .btn-outline-white { transition: none !important; }
  .ai-card:hover { transform: none; }
}
