/* ===========================
   AIWENS — Automation Hero (Compact Banner)
   =========================== */


#aiwens-automation-hero {
  background: transparent;            /* keep page bg */
  padding: 3rem 1.25rem;              /* compact vertical rhythm */
  position: relative;
}

.automation-hero__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.25rem 2rem;              /* inner padding (card) */
  border-radius: 1.25rem;
  /* automation vibe: purple→teal wash */
  background:
    radial-gradient(1200px 320px at 50% -80%, rgba(147,51,234,0.10), transparent 60%),
    radial-gradient(900px 260px  at 85% 120%, rgba(20,184,166,0.10), transparent 60%),
    linear-gradient(180deg, #eef2ff 0%, #ffffff 70%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
  text-align: center;
}

.automation-hero__copy { max-width: 760px; margin: 0 auto; }

.automation-hero__title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .75rem 0;
  color: #0f172a;
}

.automation-hero__sub {
  font-size: 1.05rem;
  color: #475569;
  margin: 0 0 1.1rem 0;
}

.automation-hero__cta { 
  margin-bottom: .9rem; 
  margin-top: 0.25rem;
}

.automation-hero__btn {
  display: inline-block;
  padding: .7rem 1.25rem;
  border-radius: .8rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
  color: #ffffff;
  /* gradient button: purple→teal */
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.25);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.automation-hero__btn:hover,
.automation-hero__btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.3);
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Trust chips */
.automation-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: .5rem 0 0 0;
  margin-bottom: 1.25rem;
}
.automation-hero__chip {
  background: #ffffff;
  border: 1px solid #c7d2fe;          /* soft indigo border */
  color: #4338ca;                      /* indigo text */
  border-radius: 999px;
  padding: .38rem .75rem;
  font-size: .87rem;
  font-weight: 500;
}

/* Responsive sizing */
@media (min-width: 768px) {
  .automation-hero__title { font-size: 2.25rem; }
  .automation-hero__sub   { font-size: 1.15rem; }
}
/* === Decorative Boxes for Hero Section === */
#aiwens-automation-hero {
  position: relative;
  overflow: hidden;
}

#aiwens-automation-hero .decor-box {
  position: absolute;
  width: 120px;
  height: 120px;
  background: #2563eb;   /* brand blue */
  border-radius: 24px;
  opacity: 0.12;
  animation: rotateBox 20s linear infinite;
  transform-origin: center;
  z-index: 0;
}

/* Left side box */
#aiwens-automation-hero .decor-box--hero-left {
  top: 20px;
  left: 20px;
  animation: rotateBoxReverse 22s linear infinite;
}

/* Right side box */
#aiwens-automation-hero .decor-box--hero-right {
  bottom: 20px;
  right: 20px;
  animation: rotateBox 24s linear infinite;
}

/* Reuse animations */
@keyframes rotateBox {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rotateBoxReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

/* ===========================
   Section 2: AI-Powered Conversations
   =========================== */
#aiwens-ai-conversations {
  padding: 2rem 1.25rem; /* tightened gap from hero */
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.ai-conversations__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: start; /* top-align both columns */
}

@media (min-width: 900px) {
  .ai-conversations__container {
    grid-template-columns: 1fr 1fr; /* text | visual */
  }
}

.ai-conversations__title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.25rem;
  color: #0f172a;
  text-align: center; /* centered headline */
}

.ai-conversations__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;         /* center the list */
  display: grid;
  gap: 0.75rem;
  max-width: 480px;       /* prevent stretching too wide */
}

.ai-conversations__item {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  color: #334155;
  font-weight: 500;
}
.ai-conversations__item::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22c55e; /* green tick */
  font-weight: bold;
}

/* Chat mockup */
.chat-mockup {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 340px;
  margin: 0 auto;
}

.chat-header {
  background: #2563eb;
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-body {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  background: #f8fafc;
}

.msg {
  padding: 0.6rem 0.9rem;
  border-radius: 0.75rem;
  max-width: 80%;
  font-size: 0.9rem;
  line-height: 1.3;
}
.msg.bot {
  background: #e0f2fe;
  color: #0c4a6e;
  justify-self: start;
}
.msg.user {
  background: #d9f99d;
  color: #365314;
  justify-self: end;
}

.chat-footer {
  display: flex;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding: 0.5rem;
  background: #fff;
}
.chat-footer input {
  flex: 1;
  border: none;
  padding: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}
.chat-footer input:disabled {
  background: transparent;
  cursor: not-allowed;
}
.chat-footer .icon.whatsapp {
  font-size: 1.2rem;
  color: #25d366;
  margin-right: 0.5rem;
}

/* Responsive nudge for mockup */
@media (min-width: 900px) {
  #aiwens-ai-conversations .ai-conversations__visual {
    align-self: start;
    margin-top: -2px; /* tweak for optical alignment */
  }
}

/* ===========================
   Section 3: Workflow Automations
   =========================== */
#aiwens-workflows {
  padding: 2.5rem 1.25rem;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.workflows__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .workflows__container {
    grid-template-columns: 1fr 1fr; /* copy | visual */
  }
}

.workflows__title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1.1rem;
  color: #0f172a;
  text-align: center;
}

.workflows__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
}

.workflows__item {
  position: relative;
  padding-left: 1.75rem;
  font-size: 1.05rem;
  color: #334155;
  font-weight: 500;
}
.workflows__item::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 800;
}

/* Visual / Flowchart */
.workflows__visual {
  display: grid;
  place-items: center;
}
.flowchart {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

/* Responsive tweaks */
@media (max-width: 899px) {
  #aiwens-workflows { padding-top: 2rem; }
  .workflows__title { font-size: 1.7rem; }
}

/* ===========================
   Section 4: Future-Ready Services (improved)
   =========================== */
#aiwens-future {
  padding: 2.5rem 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.future__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .future__container { grid-template-columns: 1fr 1fr; }
}

.future__title {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .5rem;
  color: #0f172a;
  text-align: center;
}

.future__lead {
  text-align: center;
  color: #475569;
  margin: 0 auto 1.25rem;
  max-width: 700px;
  font-size: 1.02rem;
}

/* Feature cards */
.future__cards {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .future__cards { grid-template-columns: 1fr 1fr; }
}

.future-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1rem 1.25rem;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
  position: relative;
}

.future-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: #eef2ff;
  color: #4338ca;
  font-size: 20px;
  margin-bottom: .6rem;
}

.future-card__title {
  font-weight: 700;
  margin: 0 0 .4rem;
  font-size: 1.125rem;
}

.future-card__desc {
  color: #475569;
  margin: 0 0 .6rem;
  font-size: .98rem;
}

.future-card__list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: .35rem;
  color: #334155; font-size: .95rem;
}
.future-card__list li {
  position: relative; padding-left: 1.25rem;
}
.future-card__list li::before {
  content: "•";
  position: absolute; left: 0; top: 0;
  color: #22c55e; font-weight: 900;
}

.future-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: #ecfeff; color: #0e7490;
  border: 1px solid #a5f3fc;
  font-size: .75rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 999px;
}

/* Visual */
.future__visual { display: grid; place-items: center; }
.future-flow { width: 100%; max-width: 640px; height: auto; display: block; }

.future__caption {
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  margin-top: .5rem;
}

/* Responsive tweaks */
@media (max-width: 899px) {
  #aiwens-future { padding-top: 2rem; }
  .future__title { font-size: 1.7rem; }
}

/* ===========================
   Final CTA Block (boxed)
   =========================== */
#aiwens-final-cta {
  padding: 3rem 1.25rem;
  background: #f9fafb; /* neutral page background */
}

.final-cta__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  text-align: center;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.final-cta__title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.final-cta__sub {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn--primary {
  background: #fff;
  color: #1e3a8a;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
/* ===========================
   Final CTA Block (with section background)
   =========================== */
#aiwens-final-cta {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%); /* soft gray gradient */
}

.final-cta__container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* ==========================================================
   AIWENS Automation — Page Rhythm & Light Backgrounds
   Goal: connect sections with alternating soft washes + separators
   ========================================================== */

/* 1) Global page canvas: whisper-soft radial wash (not flat white) */
body {
  background:
    radial-gradient(1200px 600px at 10% -10%, #f1f5f9 18%, transparent 60%),
    radial-gradient(900px 500px at 110% -20%, #f8fafc 18%, transparent 60%),
    #ffffff;
}

/* 2) Consistent section scaffolding */
main > section {
  position: relative;
  isolation: isolate;               /* keeps inner shadows contained */
}

/* Soft separators between sections (hairline, not heavy lines) */
main > section + section {
  border-top: 1px solid rgba(226, 232, 240, 0.8); /* #e2e8f0 */
}

/* 3) Alternating light backgrounds (applies to ALL main sections) */
main > section:nth-of-type(odd) {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 85%);
}
main > section:nth-of-type(even) {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

/* 4) Gentle inner glow to anchor “floating” cards (very subtle) */
main > section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  background: radial-gradient(800px 140px at 50% -40px, rgba(15, 23, 42, 0.04), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* 5) Section-specific tweaks to harmonize with the new rhythm
   (keeps your existing designs, just softens the canvases)
---------------------------------------------------------------- */

/* Hero (Automation) */
#aiwens-automation-hero {
  background:
    radial-gradient(1200px 320px at 50% -80px, rgba(99,102,241,0.06), transparent 60%),
    radial-gradient(900px 260px  at 85% 120%, rgba(20,184,166,0.06), transparent 60%),
    transparent; /* let the global alternation show through */
  padding-top: 2.75rem; padding-bottom: 2.75rem; /* stays compact */
}

/* Section 2: AI Conversations */
#aiwens-ai-conversations {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%); /* slightly tinted */
}

/* Section 3: Workflows */
#aiwens-workflows {
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

/* Section 4: Future-Ready */
#aiwens-future {
  background:
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

/* Final CTA — boxed gradient on a soft section */
#aiwens-final-cta {
  background: linear-gradient(180deg, #eef2f7 0%, #e6ecf4 100%);
}
#aiwens-final-cta .final-cta__container {
  /* keep your bold inner gradient card */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  border-radius: 24px;
}

/* 6) Respect reduced motion (removes any background animation you might add later) */
@media (prefers-reduced-motion: reduce) {
  /* intentionally left for future animated backgrounds */
}


/* === Decorative Rotating Boxes for Section 2 (adjusted positions) === */
#aiwens-ai-conversations {
  position: relative; 
  overflow: hidden; 
}

/* Bottom-right box */
#aiwens-ai-conversations .decor-box {
  position: absolute;
  bottom: 20px;         /* moved UP from -60px */
  right: 20px;          /* moved IN from -60px */
  width: 120px;
  height: 120px;
  background: #2563eb;
  border-radius: 24px;
  opacity: 0.12;
  animation: rotateBox 20s linear infinite;
  transform-origin: center;
  z-index: 0;
}

/* Top-left box */
#aiwens-ai-conversations .decor-box--left {
  position: absolute;
  top: 20px;            /* moved DOWN from -60px */
  left: 20px;           /* moved IN from -60px */
  width: 100px;         /* slightly smaller */
  height: 100px;
  background: #2563eb;
  border-radius: 20px;
  opacity: 0.1;
  animation: rotateBoxReverse 22s linear infinite;
  transform-origin: center;
  z-index: 0;
}

/* Animations */
@keyframes rotateBox {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rotateBoxReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
/* === Decorative Rotating Boxes for Section 3 & 4 === */
#aiwens-workflows,
#aiwens-future {
  position: relative;
  overflow: hidden;
}

/* Shared base style */
.decor-box {
  position: absolute;
  width: 110px;
  height: 110px;
  background: #2563eb;   /* brand blue */
  border-radius: 22px;
  opacity: 0.12;
  animation: rotateBox 22s linear infinite;
  transform-origin: center;
  z-index: 0;
}

/* Section 3 (Workflows) — left side */
#aiwens-workflows .decor-box--left {
  top: 30px;     /* inside padding */
  left: 20px;    /* anchored left */
}

/* Section 4 (Future-Ready) — right side */
#aiwens-future .decor-box--right {
  bottom: 30px;  /* anchored bottom */
  right: 20px;   /* anchored right */
  animation: rotateBoxReverse 24s linear infinite; /* opposite spin */
}

/* Animations */
@keyframes rotateBox {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rotateBoxReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
/* === Decorative Rotating Boxes for Section 3 & 4 === */
#aiwens-workflows,
#aiwens-future {
  position: relative;
  overflow: hidden;
}

/* Shared base style */
.decor-box {
  position: absolute;
  width: 110px;
  height: 110px;
  background: #2563eb;   /* brand blue */
  border-radius: 22px;
  opacity: 0.12;
  animation: rotateBox 22s linear infinite;
  transform-origin: center;
  z-index: 0;
}

/* Section 3 (Workflows) — left side */
#aiwens-workflows .decor-box--left {
  top: 30px;     /* inside padding */
  left: 20px;    /* anchored left */
}

/* Section 4 (Future-Ready) — right side */
#aiwens-future .decor-box--right {
  bottom: 30px;  /* anchored bottom */
  right: 20px;   /* anchored right */
  animation: rotateBoxReverse 24s linear infinite; /* opposite spin */
}

/* Animations */
@keyframes rotateBox {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes rotateBoxReverse {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}

/* === CTA hover effect (gentle lift + glow) === */
.btn.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(249,115,22,0.35); /* orange glow */
}

/* === CTA bounce loop (gentle) === */
.cta-bounce {
  animation: ctaBounce 4s ease-in-out infinite;
}

@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
