/* ── AI product showcases (varied layouts) ──────────────────────────────── */

.ai-showcase {
  width: 100%;
  margin-inline: auto;
}

/* ── iPhone channel mockups ─────────────────────────────────────────────── */

.ai-showcase--iphone {
  max-width: 280px;
  position: relative;
}

.ai-showcase__phone {
  position: relative;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(145deg, #3a3a3c, #1c1c1e);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ai-showcase__phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 28%;
  height: 22px;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}

.ai-showcase__phone-screen {
  overflow: hidden;
  border-radius: 28px;
  background: #000;
}

.ai-showcase__phone-screen.is-wa {
  background: #0b141a;
}

.ai-showcase__phone-screen.is-tg {
  background: #17212b;
}

.ai-showcase__app-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 38px 14px 10px;
  color: #fff;
}

.ai-showcase__app-header.is-wa {
  background: #1f2c34;
}

.ai-showcase__app-header.is-tg {
  background: #2481cc;
}

.ai-showcase__app-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
}

.ai-showcase__app-meta strong {
  display: block;
  font-size: 0.82rem;
}

.ai-showcase__app-meta span {
  display: block;
  font-size: 0.62rem;
  opacity: 0.78;
}

.ai-showcase__mini-chat {
  min-height: 300px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 10px 16px;
}

.ai-showcase__mini-msg {
  max-width: 82%;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  animation: ai-showcase-msg-in 360ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ai-showcase__mini-msg.is-user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.ai-showcase__mini-msg.is-bot {
  border-bottom-left-radius: 4px;
}

.is-wa .ai-showcase__mini-msg.is-user {
  background: #005c4b;
  color: #fff;
}

.is-wa .ai-showcase__mini-msg.is-bot {
  background: #fff;
  color: #111827;
}

.is-tg .ai-showcase__mini-msg.is-user {
  background: #2b5278;
  color: #fff;
}

.is-tg .ai-showcase__mini-msg.is-bot {
  background: #182533;
  color: #eef2f7;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-showcase__phone-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 12px;
  background: rgba(0, 0, 0, 0.2);
}

.ai-showcase__phone-input span {
  flex: 1;
  padding: 8px 12px;
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
}

.ai-showcase__phone-input em {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  flex-shrink: 0;
}

.is-tg .ai-showcase__phone-input em {
  background: #2aabee;
}

/* ── Website embed mockup ───────────────────────────────────────────────── */

.ai-showcase--website {
  max-width: 520px;
}

.ai-showcase__browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(8, 9, 11, 0.94);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

.ai-showcase__browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.ai-showcase__browser-dots {
  display: flex;
  gap: 5px;
}

.ai-showcase__browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ai-showcase__browser-dots span:nth-child(1) { background: #ff5f57; }
.ai-showcase__browser-dots span:nth-child(2) { background: #febc2e; }
.ai-showcase__browser-dots span:nth-child(3) { background: #28c840; }

.ai-showcase__browser-url {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  color: rgba(161, 168, 181, 0.88);
  font-size: 0.68rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-showcase__browser-body {
  position: relative;
  line-height: 0;
}

.ai-showcase__browser-body img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.ai-showcase__widget-fab {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: default;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #3e72f4, #6f9cff);
  box-shadow: 0 12px 32px rgba(91, 140, 255, 0.45);
  animation: ai-showcase-pulse 2.4s ease-in-out infinite;
}

.ai-showcase__widget-panel {
  position: absolute;
  right: 16px;
  bottom: 78px;
  width: min(260px, 72%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(8, 9, 11, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: ai-showcase-panel-in 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.ai-showcase__widget-head {
  padding: 10px 12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #3e72f4, #6f9cff);
}

.ai-showcase__widget-body {
  padding: 10px;
}

.ai-showcase__widget-body .ai-showcase__mini-msg {
  font-size: 0.68rem;
  margin-bottom: 6px;
}

.ai-showcase__widget-body .ai-showcase__mini-msg.is-user {
  background: linear-gradient(135deg, #3e72f4, #6f9cff);
  color: #fff;
}

.ai-showcase__widget-body .ai-showcase__mini-msg.is-bot {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Integration hub diagram ────────────────────────────────────────────── */

.ai-showcase--integration {
  max-width: 480px;
}

.ai-showcase__hub {
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 140, 255, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.ai-showcase__hub-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ai-showcase__hub-row:last-child {
  margin-bottom: 0;
}

.ai-showcase__hub-node {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
  min-width: 88px;
  background: rgba(255, 255, 255, 0.04);
}

.ai-showcase__hub-node strong {
  display: block;
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.72rem;
}

.ai-showcase__hub-node span {
  display: block;
  margin-top: 3px;
  color: rgba(161, 168, 181, 0.88);
  font-size: 0.6rem;
}

.ai-showcase__hub-node.is-core {
  min-width: 140px;
  border-color: rgba(138, 180, 255, 0.32);
  background: rgba(91, 140, 255, 0.14);
  box-shadow: 0 12px 36px rgba(91, 140, 255, 0.18);
}

.ai-showcase__hub-node.is-core strong {
  font-size: 0.78rem;
}

.ai-showcase__hub-node.is-bankid {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

.ai-showcase__hub-node.is-clinic {
  border-color: rgba(85, 211, 138, 0.28);
  background: rgba(85, 211, 138, 0.08);
}

.ai-showcase__hub-connector {
  display: flex;
  justify-content: center;
  margin: 6px 0;
  color: rgba(138, 180, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

.ai-showcase__hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 99px;
  color: #55d38a;
  font-size: 0.66rem;
  font-weight: 700;
  background: rgba(85, 211, 138, 0.1);
  border: 1px solid rgba(85, 211, 138, 0.22);
}

/* ── Promo strip (work page) ────────────────────────────────────────────── */

.ai-promo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(138, 180, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 50%, rgba(91, 140, 255, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.03);
}

.ai-promo-strip p {
  margin: 0;
  max-width: 52ch;
  color: rgba(161, 168, 181, 0.92);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ai-promo-strip strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.95rem;
}

@keyframes ai-showcase-msg-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ai-showcase-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ai-showcase-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 640px) {
  .ai-showcase--iphone {
    max-width: 240px;
  }

  .ai-showcase--website {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-showcase__mini-msg,
  .ai-showcase__widget-panel,
  .ai-showcase__widget-fab {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
