:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px -10px rgba(79, 70, 229, 0.3);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  color: #fff;
  padding: 64px 24px 56px;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 30%; top: 60%; animation-delay: -4s; width: 6px; height: 6px; }
.hero-particles span:nth-child(3) { left: 50%; top: 30%; animation-delay: -8s; }
.hero-particles span:nth-child(4) { left: 70%; top: 70%; animation-delay: -12s; width: 3px; height: 3px; }
.hero-particles span:nth-child(5) { left: 85%; top: 15%; animation-delay: -16s; }
.hero-particles span:nth-child(6) { left: 15%; top: 80%; animation-delay: -6s; width: 5px; height: 5px; }
.hero-particles span:nth-child(7) { left: 60%; top: 10%; animation-delay: -10s; }
.hero-particles span:nth-child(8) { left: 40%; top: 85%; animation-delay: -14s; width: 7px; height: 7px; }

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: #22d3ee;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.hero .subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

.hero-cta {
  margin-top: 32px;
  display: inline-flex;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.hero-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.hero-cta .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

/* ── WAVE DIVIDER ── */
.wave-divider {
  position: relative;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ── MAIN CONTENT ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

section { margin-bottom: 32px; }

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-header .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-purple { background: linear-gradient(135deg, #ede9fe, #e0e7ff); }
.icon-green { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.icon-yellow { background: linear-gradient(135deg, #fef3c7, #fde68a); }

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.section-header p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── IDEAL FOR ── */
.ideal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ideal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ede9fe, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  transition: all 0.3s ease;
}

.ideal-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.ideal-tag .check {
  width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* ── CAPABILITY CARDS ── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.capability-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: transparent;
}

.capability-card:hover::before { transform: scaleX(1); }

/* ── CARD HOVER OVERLAY ── */
.card-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  z-index: 2;
}

.capability-card:hover .card-hover {
  opacity: 1;
  transform: translateY(0);
}

.card-hover h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}

.card-hover ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-hover li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.card-hover li::before {
  content: '›';
  font-weight: 700;
  font-size: 14px;
  color: #22d3ee;
}

.capability-card .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.capability-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.capability-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── USE CASES ── */
.usecase-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.usecase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.usecase-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.usecase-item .num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.usecase-item span {
  font-weight: 600;
  font-size: 14px;
}

/* ── EXAMPLE QUESTIONS ── */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px;
}

.question-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.question-bubble:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.question-bubble .q-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.question-bubble p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  padding-top: 4px;
}

/* ── WHY DEEPSPENT ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.why-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--primary);
}

.why-item .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.why-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.why-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd;
  border-radius: 16px;
}

.cta-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.cta-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.cta-buttons {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.cta-btn-secondary {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.cta-btn-secondary:hover {
  background: rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.3);
}

/* ── FOOTER ── */
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.back-link:hover { background: #ede9fe; }

.product-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── ANIMATE ON SCROLL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.3s; }
.reveal-d4 { animation-delay: 0.4s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero { padding: 60px 20px 80px; }
  .hero h1 { font-size: 34px; }
  .hero .subtitle { font-size: 16px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta a { justify-content: center; }
  .page-footer { flex-direction: column; gap: 16px; text-align: center; }
}
