/* ============================================
   HYPERAUTOMATION PAGE — Premium Dark Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* --- Color Tokens --- */
:root {
  --ha-bg-deep: #000022;
  --ha-bg-card: rgba(10, 15, 50, 0.7);
  --ha-bg-card-solid: #0a0f32;
  --ha-cyan: #00e5ff;
  --ha-violet: #a855f7;
  --ha-lightblue: #60a5fa;
  --ha-pink: #f472b6;
  --ha-green: #34d399;
  --ha-orange: #fb923c;
  --ha-text: #c8d6e5;
  --ha-text-bright: #e8edf3;
  --ha-text-muted: #6b7fa3;
  --ha-border: rgba(100, 140, 220, 0.15);
  --ha-glow-cyan: 0 0 20px rgba(0, 229, 255, 0.15);
  --ha-glow-violet: 0 0 20px rgba(168, 85, 247, 0.15);
  --ha-glow-blue: 0 0 20px rgba(96, 165, 250, 0.15);
  --ha-radius: 20px;
  --ha-radius-sm: 12px;
  --ha-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Page Body Override --- */
.ha-page {
  background: var(--ha-bg-deep);
  color: var(--ha-text);
  font-family: 'Montserrat', 'Inter', sans-serif;
  overflow-x: hidden;
}

.ha-page h1,
.ha-page h2,
.ha-page h3,
.ha-page h4,
.ha-page h5,
.ha-page h6 {
  color: #ffffff;
  font-family: 'Montserrat', 'Inter', sans-serif;
}

/* --- Ambient Background --- */
.ha-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ha-ambient::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: ha-float-1 18s ease-in-out infinite;
}

.ha-ambient::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation: ha-float-2 22s ease-in-out infinite;
}

@keyframes ha-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes ha-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -80px) scale(1.1); }
}

/* --- Header Override for Dark Page --- */
.ha-page .header {
  background: rgba(0, 0, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ha-border);
}

.ha-page .header.scrolled {
  background: rgba(0, 0, 34, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.ha-page .logo {
  color: #ffffff;
}

.ha-page .logo span {
  color: var(--ha-cyan);
}

.ha-page .nav-link {
  color: var(--ha-text);
}

.ha-page .nav-link:hover,
.ha-page .nav-link.active {
  color: var(--ha-cyan);
}

.ha-page .nav-link::after {
  background-color: var(--ha-cyan);
}

.ha-page .mobile-menu-btn {
  color: #ffffff;
}

@media (max-width: 768px) {
  .ha-page .nav-links {
    background-color: var(--ha-bg-deep);
  }
}

/* --- Hero Section --- */
.ha-hero {
  position: relative;
  z-index: 1;
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 30, 80, 0.4) 0%, transparent 100%);
}

.ha-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--ha-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.ha-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--ha-cyan) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ha-hero p {
  font-size: 1.15rem;
  color: var(--ha-text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .ha-hero h1 {
    font-size: 4rem;
  }
}

/* --- Section Titles --- */
.ha-section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ha-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.ha-section-title .ha-accent-line {
  display: block;
  width: 60px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ha-cyan), var(--ha-violet));
}

/* --- 3-Column Process Grid --- */
.ha-processes {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.ha-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ha-process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Process Card --- */
.ha-process-card {
  background: var(--ha-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ha-border);
  border-radius: var(--ha-radius);
  padding: 2.5rem 2rem;
  transition: var(--ha-transition);
  position: relative;
  overflow: hidden;
}

.ha-process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--ha-radius) var(--ha-radius) 0 0;
}

.ha-process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 140, 220, 0.3);
}

/* Color Variants */
.ha-process-card--cyan::before {
  background: linear-gradient(90deg, var(--ha-cyan), transparent);
}
.ha-process-card--cyan:hover {
  box-shadow: var(--ha-glow-cyan);
}

.ha-process-card--violet::before {
  background: linear-gradient(90deg, var(--ha-violet), transparent);
}
.ha-process-card--violet:hover {
  box-shadow: var(--ha-glow-violet);
}

.ha-process-card--blue::before {
  background: linear-gradient(90deg, var(--ha-lightblue), transparent);
}
.ha-process-card--blue:hover {
  box-shadow: var(--ha-glow-blue);
}

/* --- Card Header --- */
.ha-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
}

.ha-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ha-card-icon--cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--ha-cyan);
}

.ha-card-icon--violet {
  background: rgba(168, 85, 247, 0.12);
  color: var(--ha-violet);
}

.ha-card-icon--blue {
  background: rgba(96, 165, 250, 0.12);
  color: var(--ha-lightblue);
}

.ha-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.ha-card-subtitle {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.3px;
}

.ha-card-subtitle--cyan { color: var(--ha-cyan); }
.ha-card-subtitle--violet { color: var(--ha-violet); }
.ha-card-subtitle--blue { color: var(--ha-lightblue); }

/* --- AI Capabilities List --- */
.ha-capabilities {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.ha-capabilities li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--ha-text);
  border-bottom: 1px solid rgba(100, 140, 220, 0.07);
}

.ha-capabilities li:last-child {
  border-bottom: none;
}

.ha-cap-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ha-cap-bullet--cyan { background: var(--ha-cyan); box-shadow: 0 0 6px var(--ha-cyan); }
.ha-cap-bullet--violet { background: var(--ha-violet); box-shadow: 0 0 6px var(--ha-violet); }
.ha-cap-bullet--blue { background: var(--ha-lightblue); box-shadow: 0 0 6px var(--ha-lightblue); }
.ha-cap-bullet--green { background: var(--ha-green); box-shadow: 0 0 6px var(--ha-green); }
.ha-cap-bullet--pink { background: var(--ha-pink); box-shadow: 0 0 6px var(--ha-pink); }
.ha-cap-bullet--orange { background: var(--ha-orange); box-shadow: 0 0 6px var(--ha-orange); }

/* --- Benefit Box --- */
.ha-benefit {
  border-radius: var(--ha-radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.ha-benefit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--ha-radius-sm);
  padding: 1px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.ha-benefit--cyan {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.ha-benefit--violet {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.ha-benefit--blue {
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.ha-benefit-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.ha-benefit-label--cyan { color: var(--ha-cyan); }
.ha-benefit-label--violet { color: var(--ha-violet); }
.ha-benefit-label--blue { color: var(--ha-lightblue); }

.ha-benefit p {
  color: var(--ha-text-bright);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

/* --- ROI Indicators --- */
.ha-roi-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ha-text-muted);
  margin-bottom: 1.25rem;
}

.ha-roi-item {
  margin-bottom: 1rem;
}

.ha-roi-item:last-child {
  margin-bottom: 0;
}

.ha-roi-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.ha-roi-label {
  font-size: 0.82rem;
  color: var(--ha-text);
  font-weight: 500;
}

.ha-roi-value {
  font-size: 0.82rem;
  font-weight: 700;
}

.ha-roi-value--cyan { color: var(--ha-cyan); }
.ha-roi-value--violet { color: var(--ha-violet); }
.ha-roi-value--blue { color: var(--ha-lightblue); }

.ha-roi-bar {
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.ha-roi-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ha-roi-fill--cyan { background: linear-gradient(90deg, var(--ha-cyan), rgba(0, 229, 255, 0.4)); }
.ha-roi-fill--violet { background: linear-gradient(90deg, var(--ha-violet), rgba(168, 85, 247, 0.4)); }
.ha-roi-fill--blue { background: linear-gradient(90deg, var(--ha-lightblue), rgba(96, 165, 250, 0.4)); }
.ha-roi-fill--green { background: linear-gradient(90deg, var(--ha-green), rgba(52, 211, 153, 0.4)); }
.ha-roi-fill--pink { background: linear-gradient(90deg, var(--ha-pink), rgba(244, 114, 182, 0.4)); }
.ha-roi-fill--orange { background: linear-gradient(90deg, var(--ha-orange), rgba(251, 146, 60, 0.4)); }

/* Animated state */
.ha-roi-fill.animated {
  width: var(--target-width);
}

/* --- Business Outcomes Section --- */
.ha-outcomes {
  position: relative;
  z-index: 1;
  padding: 5rem 0 6rem;
}

.ha-outcomes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ha-outcomes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ha-outcomes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ha-outcome-card {
  background: var(--ha-bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ha-border);
  border-radius: var(--ha-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--ha-transition);
  position: relative;
  overflow: hidden;
}

.ha-outcome-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 140, 220, 0.3);
}

.ha-outcome-card:nth-child(1):hover { box-shadow: 0 0 30px rgba(0, 229, 255, 0.12); }
.ha-outcome-card:nth-child(2):hover { box-shadow: 0 0 30px rgba(168, 85, 247, 0.12); }
.ha-outcome-card:nth-child(3):hover { box-shadow: 0 0 30px rgba(52, 211, 153, 0.12); }
.ha-outcome-card:nth-child(4):hover { box-shadow: 0 0 30px rgba(251, 146, 60, 0.12); }

.ha-outcome-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  position: relative;
}

.ha-outcome-icon::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  opacity: 0.4;
  animation: ha-pulse 3s ease-in-out infinite;
}

@keyframes ha-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.15; }
}

.ha-outcome-icon--cyan {
  background: rgba(0, 229, 255, 0.1);
  color: var(--ha-cyan);
}
.ha-outcome-icon--cyan::after { border: 2px solid var(--ha-cyan); }

.ha-outcome-icon--violet {
  background: rgba(168, 85, 247, 0.1);
  color: var(--ha-violet);
}
.ha-outcome-icon--violet::after { border: 2px solid var(--ha-violet); }

.ha-outcome-icon--green {
  background: rgba(52, 211, 153, 0.1);
  color: var(--ha-green);
}
.ha-outcome-icon--green::after { border: 2px solid var(--ha-green); }

.ha-outcome-icon--orange {
  background: rgba(251, 146, 60, 0.1);
  color: var(--ha-orange);
}
.ha-outcome-icon--orange::after { border: 2px solid var(--ha-orange); }

.ha-outcome-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
}

.ha-outcome-value--cyan { color: var(--ha-cyan); }
.ha-outcome-value--violet { color: var(--ha-violet); }
.ha-outcome-value--green { color: var(--ha-green); }
.ha-outcome-value--orange { color: var(--ha-orange); }

.ha-outcome-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.ha-outcome-desc {
  font-size: 0.82rem;
  color: var(--ha-text-muted);
  line-height: 1.5;
}

/* --- CTA Section --- */
.ha-cta {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  text-align: center;
  border-top: 1px solid var(--ha-border);
}

.ha-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ha-cta p {
  color: var(--ha-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.ha-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, var(--ha-cyan), var(--ha-violet));
  color: #000022;
  border: none;
  cursor: pointer;
  transition: var(--ha-transition);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}

.ha-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35);
  color: #000022;
}

/* --- Footer Override --- */
.ha-page .footer {
  background: rgba(5, 5, 25, 0.95);
  border-top: 1px solid var(--ha-border);
}

/* --- Utility: Scroll Reveal --- */
.ha-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ha-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Tweaks --- */
@media (max-width: 767px) {
  .ha-hero {
    padding: 130px 0 50px;
  }

  .ha-hero h1 {
    font-size: 2rem;
  }

  .ha-process-card {
    padding: 2rem 1.5rem;
  }

  .ha-outcome-value {
    font-size: 1.6rem;
  }
}
