/*----------------------------------------*/
/*  AI Platform page (ai.html)
/*  Standalone stylesheet — scoped to this page's own classes only,
/*  so it can't affect any other page on the site.
/*----------------------------------------*/

/* ---------- Shared section rhythm ---------- */

.ai-hero-section,
.ai-features-section,
.ai-tech-section,
.ai-workflow-section,
.ai-benefits-section,
.ai-roadmap-section {
  background: #ffffff;
  padding: 100px 0;
  position: relative;
}

.ai-tech-section {
  background: #f6f9ff;
  overflow: hidden;
}

.ai-tech-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 440px at 12% 15%, rgba(0, 93, 224, 0.12), transparent 65%),
    radial-gradient(580px 440px at 88% 85%, rgba(124, 58, 237, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.ai-tech-section > .container {
  position: relative;
  z-index: 1;
}

/* Paired with a small inline script at the bottom of ai.html: fades the
   sitewide fixed back-to-top button out for the moment it would overlap
   the blue CTA card in the features grid, instead of resizing the card. */
.progress-wrap.ai-avoid-card {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media only screen and (max-width: 767px) {
  .ai-hero-section,
  .ai-features-section,
  .ai-tech-section,
  .ai-workflow-section,
  .ai-benefits-section,
  .ai-roadmap-section {
    padding: 64px 0;
  }
}

.ai-section-desc {
  color: #5b6478;
  font-size: 16px;
  line-height: 28px;
  max-width: 560px;
  margin: 14px auto 0;
}

.section-title:not(.text-center) .ai-section-desc {
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Hero ---------- */

.ai-hero-section {
  overflow: hidden;
  padding-top: 170px;
  background: radial-gradient(900px 560px at 85% -10%, rgba(84, 214, 235, 0.14), transparent 65%),
              radial-gradient(700px 500px at -10% 90%, rgba(124, 58, 237, 0.1), transparent 65%),
              #ffffff;
}

.ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: aiOrbFloat 9s ease-in-out infinite;
  will-change: transform;
}

.ai-orb-1 {
  top: 18%;
  left: 6%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 35% 35%, rgba(0, 93, 224, 0.3), transparent 70%);
}

.ai-orb-2 {
  bottom: 12%;
  left: 42%;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 35% 35%, rgba(84, 214, 235, 0.4), transparent 70%);
  animation-delay: -3s;
}

.ai-orb-3 {
  top: 8%;
  right: 8%;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 35% 35%, rgba(124, 58, 237, 0.3), transparent 70%);
  animation-delay: -5.5s;
}

@keyframes aiOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 16px); }
}

@media only screen and (max-width: 767px) {
  .ai-orb { display: none; }
  .ai-hero-section { padding-top: 110px; }
}

.ai-hero-content {
  position: relative;
  z-index: 1;
}

.ai-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(0, 93, 224, 0.06);
  border: 1px solid rgba(0, 93, 224, 0.18);
  border-radius: 999px;
  color: #005de0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.ai-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #54d6eb;
  box-shadow: 0 0 0 0 rgba(84, 214, 235, 0.55);
  animation: aiEyebrowPulse 2.2s ease-out infinite;
}

@keyframes aiEyebrowPulse {
  0% { box-shadow: 0 0 0 0 rgba(84, 214, 235, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(84, 214, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(84, 214, 235, 0); }
}

.ai-hero-title {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1.15;
  color: #171b2e;
  margin-bottom: 22px;
}

.ai-hero-title .text-gradient {
  background: linear-gradient(100deg, #005de0 0%, #54d6eb 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ai-hero-subtitle {
  font-size: 18px;
  line-height: 30px;
  color: #5b6478;
  max-width: 480px;
  margin-bottom: 36px;
}

.ai-hero-btn {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media only screen and (max-width: 1199px) {
  .ai-hero-title { font-size: 42px; }
}

@media only screen and (max-width: 767px) {
  .ai-hero-title { font-size: 32px; }
  .ai-hero-subtitle { font-size: 16px; }
}

/* ---------- Hero: Copilot-style chat mock ---------- */

.ai-copilot-mock {
  position: relative;
  z-index: 1;
}

.ai-copilot-window {
  background: #ffffff;
  border: 1px solid rgba(0, 20, 60, 0.08);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 70px rgba(0, 20, 60, 0.14), 0 2px 6px rgba(0, 20, 60, 0.06);
}

.ai-copilot-titlebar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.ai-copilot-titlebar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e5e9f2;
}

.ai-copilot-row {
  display: flex;
  margin-bottom: 14px;
}

.ai-copilot-row-user {
  justify-content: flex-end;
}

.ai-copilot-row-ai {
  align-items: flex-start;
  gap: 10px;
}

.ai-copilot-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #54d6eb, #005de0);
  color: #ffffff;
  font-size: 14px;
}

.ai-copilot-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 22px;
  max-width: 82%;
}

.ai-copilot-bubble-user {
  background: #005de0;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.ai-copilot-bubble-ai {
  background: #f2f5fb;
  color: #2b2f45;
  border-bottom-left-radius: 4px;
}

.ai-copilot-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 16px 42px;
}

.ai-copilot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(0, 93, 224, 0.07);
  border: 1px solid rgba(0, 93, 224, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #005de0;
}

.ai-copilot-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f6f9ff;
  border: 1px solid rgba(0, 93, 224, 0.12);
  border-radius: 999px;
  color: #8a93a6;
  font-size: 14px;
}

.ai-copilot-input i {
  color: #005de0;
}

@media only screen and (max-width: 991px) {
  .ai-copilot-mock { margin-top: 48px; }
}

/* ---------- AI Copilot Features ---------- */

/* Glassmorphism needs something colorful behind the frosted cards for the
   blur to actually pick up — a flat white section makes translucent white
   cards invisible. This gives the grid a soft tinted backdrop to blur. */
.ai-features-section {
  overflow: hidden;
}

.ai-features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 420px at 8% 10%, rgba(0, 93, 224, 0.1), transparent 65%),
    radial-gradient(560px 420px at 92% 70%, rgba(84, 214, 235, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.ai-features-section > .container {
  position: relative;
  z-index: 1;
}

/* Row/column gap, not margin-top on the card itself: margin-top plus
   height:100% on a flex-stretched child makes it overflow the bottom
   of its own column by the margin amount, silently erasing the visual
   gap to the next wrapped row. */
.ai-features-section .row {
  row-gap: 30px;
  margin-top: 30px;
}

.ai-feature-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2) 55%, rgba(255, 255, 255, 0.32));
  backdrop-filter: blur(18px) saturate(110%);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 36px 30px;
  box-shadow:
    0 14px 34px rgba(0, 20, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -12px 22px -14px rgba(255, 255, 255, 0.4);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.35s ease;
}

.ai-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  background-size: 260% 260%;
  background-position: -80% -80%;
  pointer-events: none;
  transition: background-position 0.8s ease;
}

.ai-feature-card:hover::after {
  background-position: 100% 100%;
}

.ai-feature-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3) 55%, rgba(255, 255, 255, 0.42));
  box-shadow:
    0 22px 46px rgba(0, 20, 60, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -12px 22px -14px rgba(255, 255, 255, 0.5);
}

.ai-feature-card .title {
  font-size: 20px;
  margin: 20px 0 10px;
  color: #171b2e;
}

.ai-feature-card p {
  color: #5b6478;
  font-size: 15px;
  line-height: 26px;
  margin: 0;
}

.ai-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 22px;
  color: #ffffff;
}

.ai-icon-blue { background: linear-gradient(135deg, #2f8dff, #005de0); }
.ai-icon-cyan { background: linear-gradient(135deg, #54d6eb, #0072c9); }
.ai-icon-purple { background: linear-gradient(135deg, #9d7bf0, #6a3fd6); }

.ai-feature-card-cta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 55%, rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #005de0, #0072c9 55%, #54d6eb);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 14px 34px rgba(0, 61, 224, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -12px 22px -14px rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ai-feature-card-cta:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, #005de0, #0072c9 55%, #54d6eb);
  box-shadow:
    0 22px 46px rgba(0, 61, 224, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -12px 22px -14px rgba(255, 255, 255, 0.22);
}

.ai-feature-card-cta .title {
  color: #ffffff;
}

.ai-feature-card-cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}

.ai-feature-link,
.ai-feature-link:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.ai-feature-link i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.ai-feature-link:hover i {
  transform: translateX(4px);
}

/* ---------- AI Technologies ---------- */

.ai-tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}

.ai-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  box-shadow:
    0 10px 26px rgba(0, 20, 60, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.ai-tech-badge:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.4));
  box-shadow:
    0 16px 32px rgba(0, 20, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ai-tech-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #54d6eb, #005de0);
  color: #ffffff;
  font-size: 14px;
}

.ai-tech-name {
  font-weight: 700;
  color: #2b2f45;
  font-size: 15px;
}

/* ---------- AI Workflow Diagram ---------- */

.ai-workflow-section {
  overflow: hidden;
}

.ai-workflow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 420px at 90% 10%, rgba(0, 93, 224, 0.09), transparent 65%),
    radial-gradient(560px 420px at 10% 90%, rgba(84, 214, 235, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.ai-workflow-section > .container {
  position: relative;
  z-index: 1;
}

.ai-workflow-diagram {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.ai-workflow-step {
  flex: 1 1 220px;
  max-width: 240px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow:
    0 10px 26px rgba(0, 20, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.ai-workflow-step:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  box-shadow:
    0 18px 36px rgba(0, 20, 60, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ai-workflow-step h4 {
  font-size: 17px;
  color: #171b2e;
  margin: 16px 0 8px;
}

.ai-workflow-step p {
  font-size: 13.5px;
  line-height: 22px;
  color: #5b6478;
  margin: 0;
}

.ai-workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #54d6eb, #005de0);
  color: #ffffff;
  font-size: 20px;
}

.ai-workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7c2d8;
  font-size: 18px;
  flex: 0 0 auto;
}

@media only screen and (max-width: 991px) {
  .ai-workflow-diagram { flex-direction: column; align-items: center; }
  .ai-workflow-step { max-width: 340px; width: 100%; }
  .ai-workflow-arrow { transform: rotate(90deg); margin: -4px 0; }
}

/* ---------- Benefits ---------- */

.ai-benefits-section .title {
  color: #171b2e;
}

.ai-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.ai-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  line-height: 26px;
  color: #3a3f55;
}

.ai-benefits-list li i {
  color: #22b07d;
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

@media only screen and (max-width: 767px) {
  .ai-benefits-list { grid-template-columns: 1fr; }
}

/* ---------- AI Roadmap ---------- */

.ai-roadmap-section {
  background: #f6f9ff;
  overflow: hidden;
}

.ai-roadmap-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 440px at 10% 20%, rgba(0, 93, 224, 0.1), transparent 65%),
    radial-gradient(580px 440px at 90% 80%, rgba(124, 58, 237, 0.1), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.ai-roadmap-section > .container {
  position: relative;
  z-index: 1;
}

.ai-roadmap-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
  position: relative;
}

.ai-roadmap-item {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.28));
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow:
    0 10px 26px rgba(0, 20, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ai-roadmap-phase {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(0, 93, 224, 0.08);
  color: #005de0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.ai-roadmap-item h4 {
  font-size: 17px;
  color: #171b2e;
  margin: 0 0 10px;
}

.ai-roadmap-item p {
  font-size: 14px;
  line-height: 23px;
  color: #5b6478;
  margin: 0;
}

@media only screen and (max-width: 991px) {
  .ai-roadmap-track { grid-template-columns: 1fr 1fr; }
}

@media only screen and (max-width: 575px) {
  .ai-roadmap-track { grid-template-columns: 1fr; }
}
