:root {
  --blue: #1f4e79;
  --light-blue: #4da3ff;
  --grey: #f5f7fa;
  --text: #222;

  /* Utility colours */
  --white: #ffffff;
  --border: #e5e7eb;
  --muted: #4b5563;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: var(--grey);
  color: var(--text);
}

/* =========================
   HERO
   ========================= */
.hero {
  position: relative; /* important for absolute promo badges */
  background: linear-gradient(135deg, var(--blue), #163a5a, var(--light-blue));
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: var(--white);
  text-align: center;
  padding: 70px 20px 90px;
  padding-top: 190px; /* reserve space above hero content (for promo badges) */
  border-bottom: 4px solid rgba(255, 255, 255, 0.15);
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.logo {
  max-width: 200px;
  margin-bottom: 20px;
}

/* =========================
   TOP NAVIGATION
   ========================= */
.top-nav { margin-bottom: 25px; }

.top-nav a {
  color: #eaf0f6;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.top-nav a:hover {
  color: var(--light-blue);
  border-bottom: 2px solid var(--light-blue);
}

.top-nav a.active { border-bottom: 2px solid var(--white); }

/* =========================
   HERO TEXT
   ========================= */
.hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.subtext {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.cta-btn {
  background: var(--light-blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.cta-btn:hover {
  background: var(--white);
  color: var(--blue);
}

.trial-note {
  color: #eaf0f6;
  font-size: 0.95rem;
  margin-top: 25px;
  display: block;
}

/* =========================
   PROMO BADGES (LEFT + RIGHT)
   ========================= */
.promo-badge {
  position: absolute;
  top: 18px;
  z-index: 50;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--white);
  line-height: 1.4;
  box-shadow: 0 12px 28px rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(2px);
}

.promo-badge.left {
  left: 18px;
  background: linear-gradient(
    135deg,
    rgba(31,78,121,0.98) 0%,
    rgba(22,58,90,0.98) 60%,
    rgba(77,163,255,0.55) 140%
  );
}

.promo-badge.right {
  right: 18px;
  background: linear-gradient(
    135deg,
    rgba(22,58,90,0.98) 0%,
    rgba(31,78,121,0.98) 60%,
    rgba(77,163,255,0.45) 140%
  );
}

.promo-badge h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.promo-badge .spark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.95;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.85); }
  70%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.promo-badge p {
  margin: 5px 0;
  font-size: 0.92rem;
}

.promo-badge .deal { font-weight: 800; }

.promo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: center;
}

.promo-btn {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.14);
  transition: transform 0.15s ease, background 0.2s ease;
}

.promo-btn:hover {
  background: #f3f7ff;
  transform: translateY(-1px);
}

.promo-badge.right .promo-btn { color: #163a5a; }

/* =========================
   FIX: Stop purple/visited links in promo badges (View contents / View details)
   ========================= */
/* Force ONLY the text links (promo-link or any non-button link) to white, including visited state */
.promo-badge a,
.promo-badge a:link,
.promo-badge a:visited {
  color: var(--white) !important;
  text-decoration: underline;
  font-weight: 800;
}

.promo-badge a:hover,
.promo-badge a:focus {
  color: var(--white) !important;
  opacity: 0.95;
}

/* Keep the white button styling for promo-btn (override link rules above) */
.promo-badge .promo-btn,
.promo-badge .promo-btn:link,
.promo-badge .promo-btn:visited {
  background: var(--white) !important;
  color: var(--blue) !important;
  text-decoration: none !important;
}

/* Right badge button uses darker text on white */
.promo-badge.right .promo-btn,
.promo-badge.right .promo-btn:link,
.promo-badge.right .promo-btn:visited {
  color: #163a5a !important;
}

/* =========================
   MAIN CONTENT
   ========================= */
main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

section {
  border-bottom: 1px solid #e3e6ea;
  padding-bottom: 60px;
  margin-bottom: 60px;
}

.intro h2, .features h2, .contact h2 {
  color: var(--blue);
  margin-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  text-align: left;
  margin: 20px auto 40px;
  max-width: 700px;
  font-size: 1.05rem;
}

/* =========================
   SLIDESHOW
   ========================= */
.slideshow-container {
  position: relative;
  text-align: center;
  margin-top: 25px;
}

.dashboard-img {
  transition: opacity 0.6s ease-in-out;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
}

.dots-container {
  text-align: center;
  margin-top: 12px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #d0d6dc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.dot:hover {
  background-color: var(--light-blue);
  transform: scale(1.15);
}

.dot.active {
  background-color: var(--blue);
  transform: scale(1.3);
}

.slideshow-caption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 10px;
  font-style: italic;
  transition: opacity 0.6s ease-in-out;
}

/* =========================
   DOWNLOADS SECTION
   ========================= */
.downloads {
  background: var(--white);
  text-align: center;
  padding: 70px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 850px;
  margin: 80px auto;
}

.downloads h2 {
  color: var(--blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.downloads p {
  max-width: 700px;
  margin: 0 auto 25px;
  line-height: 1.5;
  font-size: 1.05rem;
  color: #333;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.download-btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.download-btn:hover {
  background: var(--light-blue);
  transform: translateY(-1px);
}

/* =========================
   CONTACT FORM
   ========================= */
.contact-form {
  margin: 80px auto;
  padding: 40px 30px 50px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.07);
  max-width: 520px;
}

.contact-form h2 {
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 25px;
}

.contact-form p {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d5d8dc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--light-blue);
  box-shadow: 0 0 0 3px rgba(77,163,255,0.2);
  outline: none;
}

.contact-form button {
  align-self: center;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 1rem;
  transition: background 0.25s, transform 0.15s;
}

.contact-form button:hover {
  background: var(--light-blue);
  transform: translateY(-1px);
}

.response {
  text-align: center;
  font-weight: 500;
  color: var(--blue);
  margin-top: 16px;
  font-size: 0.95rem;
}

/* =========================
   FOOTER
   ========================= */
footer {
  text-align: center;
  padding: 30px 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.9rem;
}

footer a {
  color: #eaf0f6;
  text-decoration: none;
  font-weight: 500;
  margin: 0 6px;
  transition: color 0.3s;
}

footer a:hover { color: var(--light-blue); }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 700px) {
  .top-nav a {
    display: inline-block;
    margin: 6px 8px;
  }

  .hero h1 { font-size: 1.7rem; }

  .downloads { margin: 60px 10px; }

  .contact-form {
    margin: 60px 10px;
    padding: 30px 20px;
  }
}

/* Mobile stacking for promo badges */
@media (max-width: 640px) {
  .hero { padding-top: 290px; }

  .promo-badge {
    left: 10px;
    right: 10px;
    max-width: none;
    top: 10px;
  }

  /* stack right badge below left badge */
  .promo-badge.right { top: 150px; }
}
