/* =============================================
   PARKAR × SMART ANALYTICA — homepage announcement popup
   css/announcement.css
   Modal opens after 2s, closes ONLY via the × button.
   ============================================= */

.anc-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 9, 18, 0.38);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.anc-overlay.is-open { opacity: 1; visibility: visible; }

.anc-modal {
  position: relative;
  width: 100%;
  max-width: 960px;                 /* wide enough for the full headline on one line */
  opacity: 0;
  transform: scale(0.86) translateY(14px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.06s,
              opacity 0.42s ease 0.06s;
}
.anc-overlay.is-open .anc-modal { opacity: 1; transform: scale(1) translateY(0); }

/* Close button — the ONLY way to dismiss */
.anc-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a1730;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}
.anc-close:hover { transform: rotate(90deg) scale(1.05); background: #f0f2f5; }
.anc-close svg { width: 18px; height: 18px; }

/* Banner card — real particle-wave background image */
.anc-banner {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #050d1f url('/assets/announcement-background.png') center bottom / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  padding: clamp(36px, 5vw, 56px) clamp(22px, 4vw, 48px) clamp(30px, 4.4vw, 46px);
}

.anc-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logos row */
.anc-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 26px; margin-bottom: clamp(24px, 3.6vw, 38px); }
.anc-logo-parkar { height: clamp(39px, 5.1vw, 57px); width: auto; display: block; }
.anc-logo-sa { height: clamp(51px, 6.9vw, 78px); width: auto; display: block; }
.anc-plus { color: rgba(255, 255, 255, 0.5); font-size: clamp(28px, 3.6vw, 42px); font-weight: 300; }

/* Headline */
.anc-headline {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 0 clamp(14px, 2vw, 20px);
}
@media (max-width: 640px) {
  .anc-headline { white-space: normal; }
}

/* Subhead — "Building for the Enterprise AI transformation." */
.anc-subhead {
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 2vw, 21px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 clamp(8px, 1.2vw, 12px);
}

/* Recreated Smart Analytica fallback (used only if the logo file is missing) */
.anc-sa { display: inline-flex; align-items: center; gap: 10px; }
.anc-sa-mark { height: clamp(24px, 2.5vw, 34px); width: auto; }
.anc-sa-txt { display: flex; flex-direction: column; line-height: 0.98; text-align: left; }
.anc-sa-txt b { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(16px, 1.7vw, 22px); letter-spacing: 0.01em; }
.anc-sa-txt i { color: rgba(255, 255, 255, 0.72); font-style: normal; font-weight: 500; font-size: clamp(8px, 0.8vw, 10px); letter-spacing: 0.32em; }

/* Tagline — "Data. Applications. Operations. One platform." */
.anc-sub {
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 1.7vw, 18px);
  letter-spacing: 0.01em;
  margin: 0 0 clamp(26px, 3.6vw, 36px);
}

/* Button — filled white pill */
.anc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #0b1f3c;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.3vw, 14.5px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.anc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4); }

/* Responsive */
@media (max-width: 640px) {
  .anc-close { top: -13px; right: 2px; }
  .anc-logos { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .anc-modal { transition: opacity 0.3s ease; transform: none; }
  .anc-overlay.is-open .anc-modal { transform: none; }
}
