/* =============================================
   pages/email-archival.css — Email & Archival Service Page
   ============================================= */
/* EMAIL & ARCHIVAL HERO         */
/* ============================= */

.em-hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

/* Background */
.em-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, #091228 0%, #122246 45%, #193264 100%);
}

.em-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* Orbs */
.em-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 2;
  animation: emOrbDrift 14s ease-in-out infinite;
}
.em-orb-1 {
  width: 320px;
  height: 320px;
  background: #1e4fd8;
  opacity: 0.13;
  top: -80px;
  right: 80px;
}
.em-orb-2 {
  width: 200px;
  height: 200px;
  background: #f19839;
  opacity: 0.09;
  bottom: -50px;
  left: 40px;
  animation-delay: -7s;
}
@keyframes emOrbDrift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-16px, 12px);
  }
}

/* Layout */
.em-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
  width: 100%;
}

/* ---- LEFT ---- */
.em-hero-text {
  color: #fff;
}

/* Eyebrow */
.em-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #f19839;
  margin-bottom: 16px;
  opacity: 0;
  animation: emFadeUp 0.5s ease forwards;
  animation-delay: 0.1s;
}

.em-eyebrow-dot {
  width: 10px;
  height: 10px;
  background: #f19839;
  border-radius: 50%;
  flex-shrink: 0;
  animation: emBlink 1.6s ease-in-out infinite;
}

@keyframes emBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* Title */
.em-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
  opacity: 0;
  animation: emFadeUp 0.55s ease forwards;
  animation-delay: 0.2s;
}
.em-hero-title span {
  color: #f19839;
}

/* Subtitle */
.em-hero-sub {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin-bottom: 26px;
  opacity: 0;
  animation: emFadeUp 0.55s ease forwards;
  animation-delay: 0.3s;
}

/* Buttons */
.em-hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  animation: emFadeUp 0.55s ease forwards;
  animation-delay: 0.4s;
}

/* Stats */
.em-stats {
  display: flex;
  gap: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  animation: emFadeUp 0.5s ease forwards;
  animation-delay: 0.88s;
}

.em-stat {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 0;
}
.em-stat + .em-stat {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.em-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f19839;
  letter-spacing: -0.02em;
}
.em-stat-lbl {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
}

@keyframes emFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- RIGHT — PIPELINE VIZ ---- */
.em-hero-viz {
  opacity: 0;
  animation: emFadeUp 0.7s ease forwards;
  animation-delay: 0.55s;
  width: 100%;
}

/* Inbound email header */
.em-pipe-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 0;
}

.em-pipe-envelope {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(241, 152, 57, 0.15);
  border: 1px solid rgba(241, 152, 57, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.em-pipe-envelope svg {
  width: 16px;
  height: 16px;
  stroke: #f19839;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.em-pipe-header-text {
  flex: 1;
}
.em-pipe-from {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.em-pipe-subject {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 2px;
}

.em-pipe-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(241, 152, 57, 0.15);
  border: 1px solid rgba(241, 152, 57, 0.3);
  color: #f19839;
  white-space: nowrap;
  animation: emBadgePulse 2s ease-in-out infinite;
}
@keyframes emBadgePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Arrow connectors */
.em-pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  position: relative;
}
.em-pipe-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}
.em-pipe-arrow::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f19839;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: emDotDown 1.8s ease-in-out infinite;
}
.em-arrow-1::after {
  animation-delay: 0s;
}
.em-arrow-2::after {
  animation-delay: -0.45s;
}
.em-arrow-3::after {
  animation-delay: -0.9s;
}
.em-arrow-4::after {
  animation-delay: -1.35s;
}

@keyframes emDotDown {
  0% {
    top: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 22px;
    opacity: 0;
  }
}

/* Security filter steps */
.em-pipe-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid;
  position: relative;
  overflow: hidden;
}

/* Left accent */
.em-pipe-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

/* Scan sweep animation */
.em-pipe-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  bottom: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.04),
    transparent
  );
  animation: emScanBar 3s ease-in-out infinite;
}
.em-step-spam::after {
  animation-delay: 0s;
}
.em-step-phish::after {
  animation-delay: -1s;
}
.em-step-malware::after {
  animation-delay: -2s;
}

@keyframes emScanBar {
  0% {
    left: -40%;
  }
  100% {
    left: 140%;
  }
}

/* Step variants */
.em-step-spam {
  background: rgba(96, 165, 250, 0.06);
  border-color: rgba(96, 165, 250, 0.25);
}
.em-step-phish {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.25);
}
.em-step-malware {
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.2);
}

.em-step-spam::before {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
}
.em-step-phish::before {
  background: linear-gradient(180deg, #a78bfa, #7c3aed);
}
.em-step-malware::before {
  background: linear-gradient(180deg, #34d399, #10b981);
}

/* Step icon */
.em-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.em-step-spam .em-step-icon {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.em-step-phish .em-step-icon {
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
}
.em-step-malware .em-step-icon {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.em-step-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.em-step-spam .em-step-icon svg {
  stroke: #60a5fa;
}
.em-step-phish .em-step-icon svg {
  stroke: #a78bfa;
}
.em-step-malware .em-step-icon svg {
  stroke: #34d399;
}

/* Step text */
.em-step-body {
  flex: 1;
  min-width: 0;
}
.em-step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.em-step-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.42);
}

/* Step check badge */
.em-step-check {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.em-step-spam .em-step-check {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}
.em-step-phish .em-step-check {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}
.em-step-malware .em-step-check {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

/* Result row */
.em-pipe-result {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.em-result-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid;
}

.em-result-inbox {
  background: rgba(74, 222, 128, 0.07);
  border-color: rgba(74, 222, 128, 0.25);
}
.em-result-archive {
  background: rgba(241, 152, 57, 0.08);
  border-color: rgba(241, 152, 57, 0.3);
}

.em-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.em-result-inbox .em-result-icon {
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
}
.em-result-archive .em-result-icon {
  background: rgba(241, 152, 57, 0.15);
  border: 1px solid rgba(241, 152, 57, 0.3);
}

.em-result-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.em-result-inbox .em-result-icon svg {
  stroke: #4ade80;
}
.em-result-archive .em-result-icon svg {
  stroke: #f19839;
}

.em-result-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.em-result-sub {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.38);
}

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

@media (max-width: 992px) {
  .em-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .em-hero-sub {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .em-hero-buttons {
    flex-direction: column;
  }
  .em-stats {
    gap: 12px;
    flex-wrap: wrap;
  }
  .em-pipe-result {
    flex-direction: column;
  }
  .em-step-sub {
    display: none;
  }
}

/* =============================
   PROBLEM / SOLUTION
   ============================= */

.email-problem-solution h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f1c3f;
  margin-bottom: 16px;
}

.email-problem-solution p {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  max-width: 520px;
}

/* =============================
   SERVICE CARDS
   ============================= */

.email-service-cards .card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  height: 100%;
}

.email-service-cards .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.email-service-cards .card-body {
  padding: 28px;
}

.email-service-cards .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f1c3f;
  margin-bottom: 10px;
}

.email-service-cards .card-text {
  font-size: 0.96rem;
  color: #4b5563;
  line-height: 1.65;
}

/* =============================
   BENEFITS SECTION
   ============================= */

.email-benefits li {
  font-size: 1rem;
  color: #374151;
  margin-bottom: 14px;
  line-height: 1.6;
}

.email-benefits li strong {
  color: #0f1c3f;
}

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

.email-cta {
  background: linear-gradient(135deg, #0f1c3f, #1e293b);
  color: #ffffff !important;
  padding: 100px 0;
  text-align: center;
}

.email-cta h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.email-cta .lead {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.email-cta .hero-btn-primary {
  background: linear-gradient(135deg, #f19839, #f58220);
  border: none;
  padding: 14px 38px;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.email-cta .hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(241, 152, 57, 0.35);
  background: linear-gradient(135deg, #f58220, #ff7b00);
}
