/* ================================================================
   AI BUSINESS PROCESS AUTOMATION — COMPLETE CSS v6.0.0
   Theme: agentic-pro-child | SEO: AI automation, AI business process automation
   Performance: GPU transforms, content-visibility, will-change hints
   All sections transparent — inherits theme dark background #0B0F19
   ================================================================ */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --amp-bg: #0B0F19;
  --amp-teal: #28CCCD;
  --amp-aqua: #3CDECF;
  --amp-navy: #353B5B;
  --amp-slate: #525C75;
  --amp-white: #FFFFFF;
  --amp-glass-bg: rgba(255, 255, 255, 0.03);
  --amp-glass-border: rgba(255, 255, 255, 0.08);
  --amp-glass-border-hover: #28CCCD;
  --amp-orange: #F97316;
  --amp-success: #22c55e;
  --amp-warning: #F39C12;
  --amp-danger: #E74C3C;
  --amp-purple: #8B5CF6;

  --amp-font-heading: 'Mona Sans', system-ui, -apple-system, sans-serif;
  --amp-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --amp-font-mono: 'Space Grotesk', 'Courier New', monospace;

  --amp-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --amp-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --amp-ease-dramatic: cubic-bezier(0.16, 1, 0.3, 1);
  --amp-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --amp-space-section: clamp(5rem, 10vh, 10rem);
  --amp-radius-sm: 8px;
  --amp-radius-md: 12px;
  --amp-radius-lg: 16px;
  --amp-radius-xl: 24px;
}

/* ---- RESET & BASE (scoped to avoid theme conflicts) ---- */
#ai-automation-landing,
#ai-automation-landing * {
  box-sizing: border-box;
}

#ai-automation-landing {
  font-family: var(--amp-font-body);
  color: var(--amp-white);
  overflow-x: hidden;
  contain: layout style;
}

/* Inherit body background — no override */
#ai-automation-landing {
  background: transparent;
}

/* ---- TYPOGRAPHY ---- */
#ai-automation-landing h1,
#ai-automation-landing h2,
#ai-automation-landing h3,
#ai-automation-landing h4 {
  font-family: var(--amp-font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--amp-white);
}

#ai-automation-landing h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.02em; }
#ai-automation-landing h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
#ai-automation-landing h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
#ai-automation-landing h4 { font-size: 1.2rem; }
#ai-automation-landing p  { line-height: 1.65; color: rgba(255,255,255,0.85); }
#ai-automation-landing strong { color: var(--amp-white); }
#ai-automation-landing a { color: var(--amp-teal); text-decoration: none; transition: color 0.2s; }
#ai-automation-landing a:hover { color: var(--amp-aqua); }

/* ---- SCREEN READER ONLY ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ================================================================
   WIDGET CSS CUSTOM PROPERTIES
   ================================================================ */
:root {
  --aw-teal: #28CCCD;
  --aw-teal-dark: #1da5a6;
  --aw-aqua: #3CDECF;
  --aw-bg: #0B0F19;
  --aw-glass: rgba(11,15,25,0.97);
  --aw-glass-border: rgba(40,204,205,0.15);
  --aw-text: #ffffff;
  --aw-text-muted: rgba(255,255,255,0.6);
  --aw-text-dim: rgba(255,255,255,0.35);
  --aw-success: #22c55e;
  --aw-warning: #F39C12;
  --aw-danger: #E74C3C;
  --aw-orange: #F97316;
  --aw-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --aw-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   WIDGET — ENTITY LAUNCHER (Living Eye)
   ================================================================ */
.aw-widget {
  position: fixed;
  z-index: 9999;
  font-family: var(--amp-font-body);
}

.aw-widget--floating {
  bottom: 24px;
  right: 24px;
}

/* ── Entity wrap ── */
.aw-entity-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  cursor: pointer;
}

/* ── Launcher ── */
.aw-launcher {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aw-teal) 0%, var(--aw-teal-dark) 100%) !important;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  outline: none;
  box-shadow: 0 4px 20px rgba(40,204,205,0.3), 0 0 0 1px rgba(40,204,205,0.1);
  transition: transform 0.3s var(--aw-ease-bounce), box-shadow 0.3s;
}

.aw-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(40,204,205,0.5), 0 0 0 2px rgba(40,204,205,0.2);
}

.aw-launcher:active {
  transform: scale(0.95);
}

.aw-launcher:focus-visible {
  box-shadow: 0 0 0 4px rgba(40,204,205,0.3);
}

/* ── Ring pulses ── */
.aw-launcher__ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--aw-teal);
  opacity: 0;
  pointer-events: none;
}
.ring-1 { animation: awRingPulse 3s ease-out 0s infinite; }
.ring-2 { animation: awRingPulse 3s ease-out 1s infinite; }
.ring-3 { animation: awRingPulse 3s ease-out 2s infinite; }

@keyframes awRingPulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0;   }
}

/* ── The Eye ── */
.aw-launcher__eye {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--aw-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.aw-launcher:hover .aw-launcher__eye {
  background: rgba(11,15,25,0.9);
}

/* ── Pupil ── */
.aw-launcher__pupil {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aw-teal);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--aw-ease-smooth);
  box-shadow: 0 0 8px var(--aw-teal), 0 0 16px rgba(40,204,205,0.4);
  animation: pupilPulse 3s ease-in-out infinite;
}

@keyframes pupilPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Pupil looking state */
.aw-launcher__eye--looking .aw-launcher__pupil {
  box-shadow: 0 0 20px var(--aw-teal), 0 0 30px rgba(40,204,205,0.5);
  animation: pupilActive 1s ease-in-out infinite alternate;
}

@keyframes pupilActive {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 12px var(--aw-teal); }
  100% { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 24px var(--aw-teal), 0 0 36px rgba(40,204,205,0.3); }
}

/* ── Eyelid blink animation ── */
.aw-launcher__eyelid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--aw-teal) 0%, var(--aw-teal-dark) 100%);
  border-radius: 50% 50% 0 0;
  animation: eyelidBlink 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes eyelidBlink {
  0%, 45%, 55%, 100% { height: 0%; }
  48%, 52%           { height: 100%; border-radius: 50%; }
}

/* Double blink occasionally */
.aw-launcher__eyelid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  border-radius: inherit;
  animation: eyelidDoubleBlink 12s ease-in-out infinite;
}

@keyframes eyelidDoubleBlink {
  0%, 70%, 76%, 100% { opacity: 0; }
  71%, 75%           { opacity: 1; }
}

/* ── Entity face expressions ── */
.aw-entity-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.aw-entity-face.curious  { opacity: 1; animation: faceCurious 0.5s var(--aw-ease-bounce); }
.aw-entity-face.alert    { opacity: 1; animation: faceAlert   0.3s var(--aw-ease-bounce); }
.aw-entity-face.thinking { opacity: 1; animation: faceThink  0.8s var(--aw-ease-smooth); }
.aw-entity-face.ready    { opacity: 1; animation: faceReady   0.4s var(--aw-ease-bounce); }

@keyframes faceCurious {
  0%   { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  100% { transform: scale(1)   rotate(0deg);   opacity: 1; }
}
@keyframes faceAlert {
  0%   { transform: scale(1.2); }
  50%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
@keyframes faceThink {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-3px); }
  75%      { transform: translateY(3px); }
}
@keyframes faceReady {
  0%   { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Tooltip ── */
.aw-entity-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: var(--aw-glass);
  border: 1px solid var(--aw-glass-border);
  color: var(--aw-text);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s var(--aw-ease-smooth);
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.aw-entity-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 24px;
  border: 6px solid transparent;
  border-top-color: var(--aw-glass-border);
}

.aw-widget--floating:hover .aw-entity-tooltip,
.aw-entity-wrap:hover .aw-entity-tooltip,
.aw-entity-wrap:focus .aw-entity-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ── Unread badge ── */
.aw-launcher__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: var(--aw-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  animation: badgePop 0.4s var(--aw-ease-bounce);
  z-index: 3;
}

@keyframes badgePop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ================================================================
   WIDGET — CHAT WINDOW
   ================================================================ */
.aw-window {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  max-height: 600px;
  background: var(--aw-glass);
  border: 1px solid var(--aw-glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s var(--aw-ease-smooth);
  pointer-events: none;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(40,204,205,0.05);
}

.aw-widget--open .aw-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* ── Header ── */
.aw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--aw-glass-border);
  flex-shrink: 0;
}

.aw-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aw-teal), var(--aw-teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.avatar-pulse-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--aw-teal);
  animation: avatarPulse 2s ease-out infinite;
}

@keyframes avatarPulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.aw-header__info { flex: 1; min-width: 0; }
.aw-header__info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--aw-text);
  margin: 0;
  line-height: 1.3;
}
.aw-header__info span {
  font-size: 12px;
  color: var(--aw-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.aw-header__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aw-success);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%      { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.aw-header__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.05);
  color: var(--aw-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.aw-header__close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--aw-text);
  transform: rotate(90deg);
}

/* ── Messages ── */
.aw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.aw-messages::-webkit-scrollbar { width: 4px; }
.aw-messages::-webkit-scrollbar-track { background: transparent; }
.aw-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* ── Message bubbles ── */
.aw-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  animation: msgIn 0.3s var(--aw-ease-smooth);
}

@keyframes msgIn {
  0%   { opacity: 0; transform: translateY(10px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.aw-msg--bot {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--aw-text);
  border-bottom-left-radius: 4px;
}

.aw-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--aw-teal), var(--aw-teal-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.aw-msg--nudge {
  background: rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.2);
  font-size: 12px;
  padding: 8px 12px;
}

.aw-nudge-label {
  margin-right: 4px;
}

/* ── Typing indicator ── */
.aw-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.aw-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aw-teal);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.aw-typing span:nth-child(2) { animation-delay: 0.2s; }
.aw-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* ── Scroll button ── */
.aw-scroll-indicator {
  position: absolute;
  bottom: 80px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--aw-teal);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 5;
}

.aw-scroll-indicator.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.aw-scroll-indicator:hover {
  transform: translateY(0) scale(1.1);
  box-shadow: 0 4px 12px rgba(40,204,205,0.3);
}

/* ── Quick chips ── */
.aw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--aw-glass-border);
  flex-shrink: 0;
}

.aw-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--aw-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.aw-chip:hover {
  background: rgba(40,204,205,0.1);
  border-color: var(--aw-teal);
  color: var(--aw-teal);
  transform: translateY(-1px);
}

.aw-chip:active {
  transform: translateY(0);
}

/* ── Input area ── */
.aw-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--aw-glass-border);
  flex-shrink: 0;
}

.aw-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--aw-text);
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.aw-input::placeholder { color: var(--aw-text-dim); }

.aw-input:focus {
  border-color: var(--aw-teal);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(40,204,205,0.1);
}

.aw-send {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: var(--aw-teal);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.aw-send:hover {
  background: var(--aw-aqua);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(40,204,205,0.3);
}

.aw-send:active { transform: scale(0.95); }

.aw-send svg { width: 18px; height: 18px; }

/* ── Footer bar ── */
.aw-footer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--aw-glass-border);
  font-size: 11px;
  color: var(--aw-text-dim);
  flex-shrink: 0;
}

.aw-neural-indicator {
  display: flex;
  gap: 3px;
}

.neural-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aw-teal);
  animation: neuralPulse 1.5s ease-in-out infinite;
}

.neural-dot:nth-child(2) { animation-delay: 0.3s; }
.neural-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes neuralPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.5); }
}

/* ── Flow visualization ── */
.aw-flow {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.aw-flow__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aw-teal);
  margin-bottom: 8px;
}

.aw-flow__svg {
  width: 100%;
  height: auto;
  max-height: 200px;
}

/* ── CTA buttons ── */
.aw-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.aw-cta__btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--aw-teal);
  background: rgba(40,204,205,0.1);
  color: var(--aw-teal);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.aw-cta__btn:hover {
  background: var(--aw-teal);
  color: #fff;
  transform: translateY(-1px);
}

.aw-cta__btn--primary {
  background: var(--aw-teal);
  color: #fff;
}

.aw-cta__btn--primary:hover {
  background: var(--aw-aqua);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 480px) {
  .aw-widget--floating {
    bottom: 16px;
    right: 16px;
  }
  
  .aw-window {
    width: calc(100vw - 32px);
    max-height: 70vh;
    right: -8px;
    border-radius: 16px;
  }
  
  .aw-launcher {
    width: 56px;
    height: 56px;
  }
  
  .aw-entity-wrap {
    width: 56px;
    height: 56px;
  }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .aw-launcher__ring,
  .aw-launcher__eyelid,
  .aw-launcher__pupil,
  .avatar-pulse-ring,
  .aw-header__status,
  .neural-dot,
  .aw-typing span,
  .aw-msg,
  .aw-chip,
  .aw-entity-face {
    animation: none !important;
    transition: none !important;
  }
}

/* ================================================================
   SECTION STYLES — All transparent, theme-compatible
   ================================================================ */

/* Hero */
#ai-automation-landing #hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: transparent;
}

#hero-canvas-ai {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content-ai {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(40,204,205,0.1);
  border: 1px solid rgba(40,204,205,0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--amp-teal);
  margin-bottom: 32px;
  animation: badgeIn 0.6s var(--amp-ease-smooth) 0.2s both;
}

@keyframes badgeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline-ai {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: headlineIn 0.8s var(--amp-ease-dramatic) 0.4s both;
}

@keyframes headlineIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.ai-holographic-text {
  background: linear-gradient(135deg, var(--amp-teal) 0%, var(--amp-aqua) 50%, var(--amp-teal) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographicShift 4s ease-in-out infinite;
}

@keyframes holographicShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-highlight-ai {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--amp-white);
  font-weight: 500;
  margin-bottom: 16px;
  animation: fadeIn 0.6s var(--amp-ease-smooth) 0.6s both;
}

.hero-tagline-ai {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  animation: fadeIn 0.6s var(--amp-ease-smooth) 0.8s both;
}

.hero-subheadline-ai {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  animation: fadeIn 0.6s var(--amp-ease-smooth) 1s both;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeIn 0.6s var(--amp-ease-smooth) 1.2s both;
}

.btn-ai-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--amp-teal), var(--amp-teal-dark));
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  transition: all 0.3s var(--amp-ease-smooth);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-ai-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(40,204,205,0.3);
  color: #fff;
}

.btn-glow {
  position: relative;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amp-teal), var(--amp-aqua));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  filter: blur(12px);
}

.btn-glow:hover::before {
  opacity: 0.4;
}

.btn-ai-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--amp-white);
  font-weight: 500;
  font-size: 16px;
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.btn-ai-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--amp-white);
}

.hero-trust-ai {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  animation: fadeIn 0.6s var(--amp-ease-smooth) 1.4s both;
}

.hero-trust-ai li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.hero-trust-ai .check-icon {
  color: var(--amp-success);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounceDown 2s ease-in-out infinite;
  text-decoration: none;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Section base styles ── */
#ai-automation-landing section {
  position: relative;
  padding: var(--amp-space-section) 24px;
  background: transparent;
}

#ai-automation-landing .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section headings */
#ai-automation-landing .section-heading {
  text-align: center;
  margin-bottom: 48px;
}

#ai-automation-landing .section-heading h2 {
  margin-bottom: 16px;
}

#ai-automation-landing .section-heading p {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255,255,255,0.6);
}

/* ── Cards / Glass panels ── */
.glass-card {
  background: var(--amp-glass-bg);
  border: 1px solid var(--amp-glass-border);
  border-radius: var(--amp-radius-lg);
  padding: 32px;
  transition: all 0.3s var(--amp-ease-smooth);
}

.glass-card:hover {
  border-color: var(--amp-glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* ── Grid layouts ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

/* ── Agent cards ── */
.agent-card {
  background: linear-gradient(135deg, rgba(40,204,205,0.05) 0%, rgba(139,92,246,0.05) 100%);
  border: 1px solid rgba(40,204,205,0.1);
  border-radius: var(--amp-radius-lg);
  padding: 32px;
  transition: all 0.4s var(--amp-ease-smooth);
  position: relative;
  overflow: hidden;
}

.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amp-teal), var(--amp-purple));
  opacity: 0;
  transition: opacity 0.3s;
}

.agent-card:hover::before {
  opacity: 1;
}

.agent-card:hover {
  transform: translateY(-6px);
  border-color: rgba(40,204,205,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.agent-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--amp-radius-md);
  background: linear-gradient(135deg, var(--amp-teal), var(--amp-teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

/* ── Comparison table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.compare-table th,
.compare-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.compare-table th {
  font-weight: 600;
  color: var(--amp-teal);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare-table td {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}

.compare-table .highlight-col {
  background: rgba(40,204,205,0.03);
  border-left: 2px solid var(--amp-teal);
  border-right: 2px solid var(--amp-teal);
}

.compare-table .highlight-col td {
  color: var(--amp-white);
  font-weight: 500;
}

/* ── Pricing cards ── */
.pricing-card {
  background: var(--amp-glass-bg);
  border: 1px solid var(--amp-glass-border);
  border-radius: var(--amp-radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s var(--amp-ease-smooth);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--amp-teal);
  background: linear-gradient(180deg, rgba(40,204,205,0.05) 0%, transparent 100%);
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amp-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--amp-teal);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-price {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--amp-white);
  line-height: 1;
  margin: 24px 0 8px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

/* ── FAQ accordion ── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  color: var(--amp-white);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--amp-teal);
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--amp-teal);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--amp-ease-smooth), padding 0.4s;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--amp-glass-bg);
  border: 1px solid var(--amp-glass-border);
  border-radius: var(--amp-radius-lg);
  padding: 32px;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 64px;
  color: rgba(40,204,205,0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amp-teal), var(--amp-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 16px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--amp-white);
  font-size: 14px;
}

.testimonial-role {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ── Stats ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--amp-teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* ── Process steps ── */
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amp-teal), var(--amp-teal-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.step-content p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

/* ── Before/After comparison ── */
.compare-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.compare-before,
.compare-after {
  padding: 32px;
  border-radius: var(--amp-radius-lg);
}

.compare-before {
  background: rgba(231,76,60,0.05);
  border: 1px solid rgba(231,76,60,0.1);
}

.compare-after {
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.1);
}

.compare-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.compare-before .compare-label { color: var(--amp-danger); }
.compare-after .compare-label { color: var(--amp-success); }

/* ── Tab system ── */
.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--amp-radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn:hover {
  border-color: var(--amp-teal);
  color: var(--amp-teal);
}

.tab-btn.active {
  background: var(--amp-teal);
  border-color: var(--amp-teal);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: panelIn 0.4s var(--amp-ease-smooth);
}

@keyframes panelIn {
  0% { opacity: 0; transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ── Slider/Calculator ── */
.slider-group {
  margin-bottom: 24px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amp-teal);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(40,204,205,0.3);
}

/* ── Checkbox group ── */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--amp-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.checkbox-item:hover {
  border-color: rgba(40,204,205,0.3);
  background: rgba(40,204,205,0.03);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--amp-teal);
}

/* ── Results/Calculator output ── */
.calc-result {
  background: linear-gradient(135deg, rgba(40,204,205,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(40,204,205,0.15);
  border-radius: var(--amp-radius-lg);
  padding: 32px;
  text-align: center;
}

.calc-result-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--amp-teal);
  line-height: 1;
  margin-bottom: 8px;
}

.calc-result-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Industry selector ── */
.industry-select {
  width: 100%;
  max-width: 400px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--amp-radius-md);
  color: var(--amp-white);
  font-size: 16px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
}

.industry-select:focus {
  border-color: var(--amp-teal);
  box-shadow: 0 0 0 3px rgba(40,204,205,0.1);
}

.industry-select option {
  background: var(--amp-bg);
  color: var(--amp-white);
}

/* ── Final CTA section ── */
.final-cta {
  text-align: center;
  padding: 80px 24px;
}

.final-cta h2 {
  margin-bottom: 24px;
}

.final-cta p {
  max-width: 600px;
  margin: 0 auto 40px;
  color: rgba(255,255,255,0.7);
}

/* ── Footer links ── */
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  padding: 64px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--amp-white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--amp-teal);
}

/* ================================================================
   ANIMATIONS — Scroll-triggered
   ================================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--amp-ease-smooth), transform 0.8s var(--amp-ease-smooth);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--amp-ease-smooth), transform 0.6s var(--amp-ease-smooth);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  #ai-automation-landing section {
    padding: 60px 16px;
  }
  
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .compare-block {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-ai-primary,
  .btn-ai-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  .aw-widget,
  .scroll-indicator,
  .ai-ambient-field,
  #hero-canvas-ai {
    display: none !important;
  }
  
  #ai-automation-landing section {
    break-inside: avoid;
    padding: 24px 0;
  }
}
