/* Product Engineering "AI Engineering": 2×2 cards with layered, animated SVG icons + split CTA panel. */

#ai.ai-eng { background: #151d2b; }
#ai.ai-eng .ai-block__inner { position: relative; z-index: 1; }
#ai.ai-eng .head-split { align-items: center; margin-bottom: clamp(32px, 3vw, 44px); }
#ai.ai-eng .head-split .lead { max-width: 580px; color: var(--night-soft); }
#ai.ai-eng .accent { color: var(--gold); }
#ai.ai-eng .badge { background: var(--gold); color: var(--ink); }

.ai-eng__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ai-eng__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(120px, 12vw, 170px);
  align-items: center;
  gap: 16px;
  padding: clamp(24px, 2.4vw, 34px) clamp(22px, 2.4vw, 32px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(245 200 66 / 22%);
  border-radius: 18px;
  background: radial-gradient(60% 70% at 85% 20%, rgb(46 92 200 / 16%), transparent 70%), #1e2638;
  
}

.ai-eng__title { margin: 0 0 16px; font-size: clamp(20px, 1.6vw, 25px); font-weight: 600; letter-spacing: -.4px; color: #fff; }
.ai-eng__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ai-eng__list li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.4; color: #c9d1e0; }
.ai-eng__list li::before {
  content: ""; position: absolute; left: 2px; top: 3px; width: 13px; height: 7px;
  border-left: 3px solid #ffc62a; border-bottom: 3px solid #ffc62a; transform: rotate(-45deg);
}
.ai-eng__art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* ---------- bottom panel ---------- */
.ai-eng__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 18px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 18px;
  background: radial-gradient(50% 80% at 100% 0%, rgb(46 92 200 / 14%), transparent 70%), #1b2538;
}
.ai-eng__pitch { padding: clamp(28px, 3vw, 40px); }
.ai-eng__ships { padding: 22px clamp(24px, 2.6vw, 34px); border-left: 1px solid rgb(255 255 255 / 8%); }
.ai-eng__kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #ffc62a; }
.ai-eng__kicker--muted { margin-bottom: 6px; color: #a9b9d6; }
.ai-eng__ptitle { margin: 0 0 16px; font-size: clamp(24px, 2vw, 30px); font-weight: 600; letter-spacing: -.5px; color: #fff; }
.ai-eng__ptext { max-width: 540px; margin: 0 0 26px; font-size: 16px; line-height: 1.6; color: #c9d1e0; }
.ai-eng__ships ul { margin: 0; padding: 0; list-style: none; }
.ai-eng__ships li { padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.ai-eng__ships li:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-eng__ships h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #fff; }
.ai-eng__ships p { margin: 0; font-size: 14px; line-height: 1.5; color: #c4d0e6; }

/* ---------- icon layer animation ---------- */
.aix-l, .aix-gear, .aix-spark, .aix-node, .aix-bar, .aix-pt { transform-box: fill-box; transform-origin: center; }

.aix--gen .aix-l--a { animation: aixFloat 5.6s ease-in-out infinite; }
.aix--gen .aix-l--b { animation: aixFloat 4.4s ease-in-out -1.4s infinite; }
.aix-spark { animation: aixSpark 3.6s ease-in-out infinite; }

.aix--srv .aix-l--a { animation: aixFloat 4.8s ease-in-out infinite; }
.aix--srv .aix-l--b { animation: aixFloatSm 4.8s ease-in-out -.8s infinite; }
.aix--srv .aix-l--c { animation: aixFloatSm 4.8s ease-in-out -1.6s infinite; }
.aix--ml .aix-l--a { animation: aixFloatSm 5s ease-in-out infinite; }
.aix--ml .aix-l--b { animation: aixFloatSm 5s ease-in-out -1.2s infinite; }
.aix--ml .aix-l--c { animation: aixFloatSm 5s ease-in-out -2.4s infinite; }
.aix-gear { animation: aixSpin 9s linear infinite; }

.aix-link { stroke: #ffe08a; stroke-opacity: .3; stroke-width: .9; animation: aixLink 3.2s ease-in-out var(--d) infinite; }
.aix-node--b { fill: #78a5ff; }
.aix-node--y { fill: #f5c842; }
.aix-node { animation: aixNode 3.2s ease-in-out var(--d) infinite; }

.aix-bar { transform-origin: bottom center; animation: aixBar 4s ease-in-out var(--d) infinite; }
.aix-pt { animation: aixPt 2.4s ease-in-out var(--d) infinite; }

@keyframes aixFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes aixFloatSm { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes aixSpark { 0%, 100% { transform: scale(.85) rotate(0deg); opacity: .8; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
@keyframes aixSpin { to { transform: rotate(360deg); } }
@keyframes aixLink { 0%, 100% { stroke-opacity: .25; } 50% { stroke-opacity: .85; } }
@keyframes aixNode { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .75; } 50% { transform: translate(.6px, -1px) scale(1.25); opacity: 1; } }
@keyframes aixBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.82); } }
@keyframes aixPt { 0%, 100% { transform: scale(1); filter: none; } 40% { transform: scale(1.35); filter: drop-shadow(0 0 4px rgb(255 207 58 / 90%)); } 60% { transform: scale(1); filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .aix-l, .aix-gear, .aix-spark, .aix-link, .aix-node, .aix-bar, .aix-pt { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ai-eng__grid, .ai-eng__panel { grid-template-columns: minmax(0, 1fr); }
  .ai-eng__ships { border-left: 0; border-top: 1px solid rgb(255 255 255 / 8%); }
}
@media (max-width: 560px) {
  .ai-eng__card { grid-template-columns: minmax(0, 1fr); }
  .ai-eng__art { order: -1; width: 120px; }
}

/* Soft gold glow behind each icon, as on the homepage service cards. */
.ai-eng__art { position: relative; }
.ai-eng__art svg { filter: drop-shadow(0 12px 18px rgb(0 0 0 / 40%)) drop-shadow(0 0 10px rgb(245 200 66 / 18%)); }

.aix--ml { transform: scale(.82); transform-origin: center; }
