/* ============================================================
   WHY RPA Page Specific Styles
   Inherits design variables from design-system.css and styles.css
   Clean, White-Dominant, Glassmorphism, and Cyber Accent Palette
   ============================================================ */

/* === AI Bot Hero Section === */
@property --elh { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --erx { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --fx { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
@property --ealw { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --earw { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --erh { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --mh { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --mw { syntax: '<number>'; inherits: true; initial-value: 1; }


.rpa-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 0 40px;
}

.rpa-hero .container {
  width: 100%;
}

.rpa-hero-content {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.8s ease-out forwards;
}

.ai-bot-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.ai-bot-container {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ai-bot-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 210px; /* Horizontal ratio 1.5 */
  height: 140px; /* Vertical ratio 1.0 */
  border-radius: 50%;
  background: #06b6d4; /* starting color: electric cyan */
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
  animation: aura-flow 6s ease-in-out infinite;
}

@keyframes aura-flow {
  0% {
    background-color: #06b6d4; /* blue-cyan */
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  33% {
    background-color: #ec4899; /* pink-magenta */
    transform: translate(calc(-50% + 5px), calc(-50% - 5px)) scale(1.15);
    opacity: 0.65;
  }
  66% {
    background-color: #6366f1; /* purple-indigo */
    transform: translate(calc(-50% - 5px), calc(-50% + 5px)) scale(0.9);
    opacity: 0.5;
  }
  100% {
    background-color: #06b6d4;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
}

:root {
  --surface: #111;
  --c: white;
  --c2: #9ae3dc;
  --c3: magenta;
  --color-electric-cyan: #00E5FF;
  --shadow-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.4);
}

.ai-bot {
  scale: 4.2;
  width: 34px;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  animation: blink 2.4s ease infinite, move-head 4.2s linear infinite, mouth 1.2s ease-in infinite;
}

.ai-bot .head {
  background: linear-gradient(var(--c) 80%, color-mix(in srgb, var(--c), black 30%), var(--c));
  border-radius: .375rem;
  position: absolute;
  width: 28px;
  height: 20px;
}

.ai-bot .head::before,
.ai-bot .head::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 2px;
  height: 8px;
  background: var(--c);
  border-radius: 2px 0 0 2px;
}

.ai-bot .head::before {
  left: -4px;
  scale: var(--ealw, 1) 1;
}

.ai-bot .head::after {
  right: -4px;
  left: unset;
  border-radius: 0 2px 2px 0;
  scale: var(--earw, 1) 1;
}

.ai-bot .face {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  inset: 0 3px;
  background: var(--surface);
  translate: var(--fx) 0;
  border-radius: 4px;
  padding: 4px 4px 2px 4px;
  gap: 3px;
}

.ai-bot .face::before {
  content: '';
  background: var(--c);
  position: absolute;
  height: 1px;
  width: 10px;
  top: -2px;
  border-radius: 2px 2px 0 0;
  mask: radial-gradient(circle at 50% 100%, transparent 45%, black 45%);
}

.ai-bot .eyes {
  display: flex;
  height: 8px;
  gap: 6px;
}

.ai-bot .eyes::before,
.ai-bot .eyes::after {
  content: '';
  width: 5px;
  height: 8px;
  scale: 1 var(--elh);
  filter: drop-shadow(0 0 2px var(--c2));
  background:
    repeating-linear-gradient(to bottom, var(--c), var(--c) .25px, transparent .25px, transparent .6px),
    linear-gradient(to bottom, var(--c3), transparent 60%),
    var(--c2);
  border-radius: 1px;
  translate: var(--erx) 0;
}

.ai-bot .eyes::after {
  scale: 1 var(--erh);
  translate: var(--erx) 0;
}

.ai-bot .mouth {
  width: 10px;
  height: 2px;
  background: var(--c2);
  border-radius: 0 0 1px 1px;
  filter: drop-shadow(0 0 2px var(--c2));
  scale: var(--mw, 1) var(--mh, 1);
}

@layer animations {
  @keyframes blink {
    from, 10%, to {
      --elh: 1;
      --erh: 1;
    }
    2% {
      --elh: .2;
    }
    8% {
      --erh: .1;
    }
  }

  @keyframes mouth {
    from, 30%, 70%, to {
      --mh: 1;
      --mw: 1;
    }
    20% {
      --mh: .5;
    }
    60% {
      --mw: .7;
    }
  }

  @keyframes move-head {
    from, 20%, 40%, to {
      --erx: 0%;
      --fx: 0%;
      --ealw: 1;
      --earw: 1;
    }
    10% {
      --erx: 20%;
      --fx: 10%;
      --ealw: 1.5;
      --earw: .5;
    }
    30% {
      --erx: -20%;
      --fx: -10%;
      --ealw: .5;
      --earw: 1.5;
    }
  }
}

.rpa-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 24px;
  max-width: 850px;
  letter-spacing: -0.02em;
}

.rpa-hero-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  max-width: 650px;
  line-height: 1.6;
}

/* === Quick Info Section === */
.rpa-quick-info {
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.quick-info-text {
  font-size: 18px;
  color: #444;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* === RPA Expertise Section === */
.rpa-expertise {
  padding: 100px 0;
  position: relative;
}

/* === Platform Logo Grid (Ex-Expertise Section) === */
.platform-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 48px auto;
  max-width: 600px;
}

.platform-logo-item {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 20px 60px rgba(0, 0, 0, 0.05);
}

.platform-logo-item:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.12);
}

.platform-logo-item.featured-platform {
  background: rgba(255, 255, 255, 0.65);
}

.platform-logo-item.featured-platform:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.12);
}

.logo-image-wrapper {
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.platform-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.platform-logo-img[src*="uipath"] {
  max-height: 70px;
  max-width: 200px;
}

.platform-logo-img[src*="robusta"] {
  max-height: 48px;
  max-width: 210px;
}

.platform-logo-img[src*="power-automate"] {
  max-height: 52px;
  max-width: 52px;
}

.platform-logo-img[src*="n8n"] {
  max-height: 48px;
  max-width: 140px;
}

.platform-logo-item:hover .platform-logo-img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.06);
}

.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.2px;
}

/* Robusta RPA Text Logo Placeholder style */
.robusta-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #555;
  transition: all 0.3s ease;
}

.robusta-logo-placeholder i {
  font-size: 38px;
  color: #777;
  transition: all 0.3s ease;
}

.platform-logo-item:hover .robusta-logo-placeholder i {
  color: var(--color-electric-cyan);
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.5));
}

.robusta-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #333;
  transition: all 0.3s ease;
}

.platform-logo-item:hover .robusta-text {
  color: var(--color-tech-black);
}

/* n8n Text Logo Placeholder style */
.n8n-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #555;
  transition: all 0.3s ease;
}

.n8n-logo-placeholder i {
  font-size: 38px;
  color: #777;
  transition: all 0.3s ease;
}

.platform-logo-item:hover .n8n-logo-placeholder i {
  color: var(--color-neon-violet);
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.5));
}

.n8n-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #333;
  transition: all 0.3s ease;
}

.platform-logo-item:hover .n8n-text {
  color: var(--color-tech-black);
}

.expertise-support-note {
  font-size: 16px;
  color: #666;
  font-style: italic;
  margin-top: 32px;
}

/* === Use Cases Section === */
.rpa-usecases {
  padding: 100px 0;
  position: relative;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.usecase-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 20px 60px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.usecase-card:hover {
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-4px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.12);
}

.usecase-content {
  flex: 1.3;
}

.usecase-image-wrapper {
  flex: 0.7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.usecase-illustration {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.usecase-card:hover .usecase-illustration {
  transform: scale(1.08);
}

.usecase-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.usecase-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* === Benefits Section & Timeline === */
.rpa-benefits {
  padding: 100px 0;
  position: relative;
}

.timeline {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 48px auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.timeline__event {
  position: relative;
  margin-left: 60px;
  margin-bottom: 40px;
  padding-left: 20px;
  padding-bottom: 10px;
  border-left: 2px solid transparent;
  transition: all 0.5s ease-out;
  text-align: left;
}

.timeline__event.is-active {
  border-left-color: var(--color-electric-cyan);
}

.timeline__event__icon {
  position: absolute;
  left: -51px;
  top: 0;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #888;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 4px #ffffff;
}

.timeline__event.is-active .timeline__event__icon {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #ffffff;
}

.timeline__event__title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  padding-top: 6px;
}

.timeline__event__description {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.rpa-conclusion {
  max-width: 800px;
  margin: 60px auto 0;
  padding: 40px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
}

.rpa-conclusion p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
}

/* === Sticky CTA Banner === */
.sticky-cta-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 998;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

.sticky-cta-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sticky-cta-text {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.sticky-cta-button {
  display: inline-flex;
  align-items: center;
  background: #1a1a1a;
  color: #ffffff;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.sticky-cta-button:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === Responsive adjustments === */
@media (max-width: 768px) {
  .rpa-hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 120px 0 40px;
  }
  .ai-bot {
    scale: 3.5;
  }
  .platform-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 100%;
    margin: 32px auto;
    padding: 0 12px;
  }
  .platform-logo-item {
    padding: 20px 12px;
    aspect-ratio: 1.3 / 1;
    border-radius: 16px;
  }
  .logo-image-wrapper {
    height: 55px;
    margin-bottom: 12px;
    overflow: visible;
  }
  .platform-logo-item:hover .platform-logo-img {
    transform: none;
  }
  .platform-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .platform-logo-img[src*="uipath"],
  .platform-logo-img[src*="robusta"],
  .platform-logo-img[src*="power-automate"],
  .platform-logo-img[src*="n8n"] {
    max-width: 100%;
    max-height: 100%;
  }
  .platform-name {
    font-size: 12px;
  }
  .usecases-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .usecase-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
    gap: 20px;
  }
  .usecase-illustration {
    max-height: 100px;
  }
  .timeline::before {
    left: 15px;
  }
  .timeline__event {
    margin-left: 45px;
    padding-left: 15px;
  }
  .timeline__event__icon {
    left: -46px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .sticky-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .sticky-cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* === Helper Classes === */
.text-center {
  text-align: center;
}



