/* ==========================================================================
   AI Automation Services — page styles
   Design language: neural / decision-node motif — dots connected by
   lines, representing AI making judgment calls across a workflow.
   Accent: violet → cyan gradient signals "intelligence in motion."
   ========================================================================== */

:root {
  --aia-ink: #100B29;
  --aia-ink-soft: #524B6B;
  --aia-bg: #FFFFFF;
  --aia-bg-alt: #F7F6FC;
  --aia-line: #E7E3F5;

  --aia-violet: #6D28D9;
  --aia-violet-deep: #4C1D95;
  --aia-cyan: #06B6D4;
  --aia-cyan-soft: #CFFAFE;
  --aia-magenta: #C026D3;

  --aia-gradient: linear-gradient(100deg, #6D28D9 0%, #8B5CF6 45%, #06B6D4 100%);
  --aia-gradient-soft: linear-gradient(135deg, #F2ECFE 0%, #E1FBFB 100%);

  --aia-radius-sm: 10px;
  --aia-radius-md: 16px;
  --aia-radius-lg: 28px;

  --aia-shadow: 0 20px 45px -25px rgba(16, 11, 41, 0.4);
  --aia-shadow-sm: 0 8px 20px -12px rgba(16, 11, 41, 0.28);

  --aia-font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --aia-font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- base ---------- */

.aiagent-hero-section,
.mobile-intro-section,
.zigzag-section.services-section,
.why-rovista-section,
.industries-section,
.process-section,
.tp-faq-area-2 {
  font-family: var(--aia-font-body);
  color: var(--aia-ink);
}

.aiagent-hero-title,
.section-title,
.why-rovista-section h2,
.industries-section h2,
.process-section h2,
.sec-title-2,
.tp-contact-inner .title {
  font-family: var(--aia-font-display);
  color: var(--aia-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.mb-70 { margin-bottom: 56px; }

/* ---------- eyebrow badges ---------- */

.intro-badge,
.service-badge,
.why-badge,
.industry-badge,
.process-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--aia-gradient-soft);
  color: var(--aia-violet-deep);
  font-family: var(--aia-font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.intro-badge::before,
.service-badge::before,
.why-badge::before,
.industry-badge::before,
.process-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aia-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.aiagent-hero-section {
  position: relative;
  background: var(--aia-ink);
  padding: 150px 0 100px;
  overflow: hidden;
}

.aiagent-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(109, 40, 217, 0.5), transparent 45%),
    radial-gradient(circle at 88% 70%, rgba(6, 182, 212, 0.35), transparent 50%);
  pointer-events: none;
}

/* neural node-and-line motif behind hero content */
.aiagent-hero-section::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -6%;
  width: 58%;
  height: 84%;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.35) 1.5px, transparent 1.5px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 45%, black 0%, transparent 70%);
  pointer-events: none;
}

.aiagent-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.aiagent-hero-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.aiagent-hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin-bottom: 34px;
}

.aiagent-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-primary-btn,
.hero-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--aia-font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hero-primary-btn {
  background: var(--aia-gradient);
  color: #FFFFFF;
  box-shadow: 0 12px 30px -10px rgba(109, 40, 217, 0.65);
}

.hero-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(6, 182, 212, 0.55);
  color: #FFFFFF;
}

.hero-secondary-btn {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.aiagent-hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--aia-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--aia-shadow);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   INTRO
   ========================================================================== */

.mobile-intro-section {
  background: var(--aia-bg);
}

.intro-content {
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--aia-ink-soft);
}

.intro-big-image {
  max-width: 1040px;
  margin: 0 auto;
}

.intro-image-wrapper {
  border-radius: var(--aia-radius-lg);
  overflow: hidden;
  box-shadow: var(--aia-shadow-sm);
  border: 1px solid var(--aia-line);
}

.intro-image-wrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   SERVICES (zig-zag grid)
   ========================================================================== */

.zigzag-section.services-section {
  background: var(--aia-bg-alt);
}

.section-header {
  max-width: 700px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--aia-ink-soft);
}

.service-card {
  height: 100%;
  background: var(--aia-bg);
  border: 1px solid var(--aia-line);
  border-radius: var(--aia-radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--aia-shadow-sm);
  border-color: transparent;
}

.service-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--aia-gradient-soft);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-content {
  padding: 26px 26px 30px;
}

.service-content h3 {
  font-family: var(--aia-font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--aia-ink);
  margin-bottom: 10px;
}

.service-content p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--aia-ink-soft);
  margin: 0;
}

/* ==========================================================================
   WHY ROVISTA
   ========================================================================== */

.why-rovista-section {
  background: var(--aia-bg);
}

.why-card {
  height: 100%;
  padding: 32px 28px;
  border-radius: var(--aia-radius-md);
  background: var(--aia-bg-alt);
  border: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.why-card:hover {
  background: var(--aia-bg);
  border-color: var(--aia-line);
  box-shadow: var(--aia-shadow-sm);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aia-gradient);
  color: #FFFFFF;
  font-size: 20px;
  margin-bottom: 20px;
}

.why-card h4 {
  font-family: var(--aia-font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--aia-ink);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--aia-ink-soft);
  margin: 0;
}

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */

.industries-section {
  background: var(--aia-bg-alt);
}

.industry-card {
  height: 100%;
  padding: 28px 24px;
  border-radius: var(--aia-radius-md);
  background: var(--aia-bg);
  border: 1px solid var(--aia-line);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aia-shadow-sm);
  border-color: var(--aia-cyan);
}

.industry-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aia-cyan-soft);
  color: var(--aia-cyan);
  font-size: 17px;
  margin-bottom: 18px;
}

.industry-card h4 {
  font-family: var(--aia-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--aia-ink);
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--aia-ink-soft);
  margin: 0;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */

.process-section {
  background: var(--aia-bg);
}

.process-wrapper {
  position: relative;
}

/* connecting line to reinforce "process" as a sequence */
.process-wrapper::before {
  content: "";
  position: absolute;
  top: 74px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--aia-line) 0 10px, transparent 10px 18px);
  z-index: 0;
}

.process-card {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 30px 24px;
  border-radius: var(--aia-radius-md);
  background: var(--aia-bg);
  border: 1px solid var(--aia-line);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--aia-shadow-sm);
}

.process-number {
  font-family: var(--aia-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--aia-cyan);
  margin-bottom: 10px;
}

.process-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aia-gradient);
  color: #FFFFFF;
  font-size: 20px;
}

.process-card h4 {
  font-family: var(--aia-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--aia-ink);
  margin-bottom: 10px;
}

.process-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--aia-ink-soft);
  margin: 0;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.tp-contact-area.cta-bg {
  position: relative;
  background: var(--aia-ink);
  padding: 90px 0;
  overflow: hidden;
}

.tp-contact-area.cta-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--aia-gradient);
  opacity: 0.2;
  pointer-events: none;
}

.tp-contact-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.tp-contact-inner .title {
  font-size: clamp(26px, 3.4vw, 38px);
  color: #FFFFFF;
  margin-bottom: 16px;
}

.tp-contact-inner p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
}

.tp-contact-btns {
  display: flex;
  justify-content: center;
}

.tp-btn-one {
  position: relative;
  display: inline-flex;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--aia-gradient);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 14px 34px -10px rgba(6, 182, 212, 0.55);
}

.tp-btn-one .btn-wrap {
  position: relative;
  display: block;
  height: 20px;
  overflow: hidden;
}

.tp-btn-one .text-one,
.tp-btn-one .text-two {
  display: block;
  font-family: var(--aia-font-display);
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  transition: transform 0.35s ease;
}

.tp-btn-one .text-two {
  position: absolute;
  top: 100%;
  left: 0;
}

.tp-btn-one:hover .text-one,
.tp-btn-one:hover .text-two {
  transform: translateY(-20px);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.tp-faq-area-2 {
  background: var(--aia-bg);
}

.title-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.sec-title-2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.tp-faq-inner-2 {
  max-width: 840px;
  margin: 0 auto;
}

.tp-faq-item.style-2 {
  border: 1px solid var(--aia-line);
  border-radius: var(--aia-radius-sm);
  padding: 22px 26px;
  margin-bottom: 16px;
  background: var(--aia-bg-alt);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.tp-faq-item.style-2:hover {
  border-color: var(--aia-cyan);
  box-shadow: var(--aia-shadow-sm);
}

.tp-faq-title {
  position: relative;
  font-family: var(--aia-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--aia-ink);
  margin: 0 0 10px;
  padding-right: 28px;
}

.tp-faq-title::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 20px;
  font-weight: 400;
  color: var(--aia-cyan);
}

.tp-faq-body p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--aia-ink-soft);
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 991px) {
  .aiagent-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .aiagent-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .aiagent-hero-btns {
    justify-content: center;
  }

  .process-wrapper::before {
    display: none;
  }

  .pt-100 { padding-top: 70px; }
  .pb-100 { padding-bottom: 70px; }
}

@media (max-width: 767px) {
  .aiagent-hero-section {
    padding: 90px 0 70px;
  }

  .aiagent-hero-title {
    font-size: 30px;
  }

  .service-content,
  .why-card,
  .process-card {
    padding: 24px 20px;
  }

  .tp-faq-item.style-2 {
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .why-card,
  .industry-card,
  .process-card,
  .hero-primary-btn,
  .hero-secondary-btn,
  .service-image img,
  .tp-btn-one .text-one,
  .tp-btn-one .text-two {
    transition: none !important;
  }
}