/* ----------------------------------------------------------
   GLOBAL DESIGN VARIABLES
----------------------------------------------------------- */
:root {
  --primary: #0a2540;             /* Deep enterprise navy */
  --accent: #0078d4;              /* Microsoft Fluent Blue */
  --accent-600: #005fa3;
  --light-bg: #f4f7fb;
  --surface: #ffffff;
  --muted: #6b7280;
  --ring: rgba(0,120,212,0.22);
  --shadow: 0 8px 32px rgba(0,0,0,0.05);

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1100px;

  /* NEW Professional background layers */
  --bg-gradient-1: radial-gradient(
      circle at 20% 0%,
      rgba(199, 215, 255, 0.55) 0%,
      rgba(199, 215, 255, 0) 55%
  );
  --bg-gradient-2: radial-gradient(
      circle at 80% 90%,
      rgba(179, 205, 255, 0.45) 0%,
      rgba(179, 205, 255, 0) 60%
  );
  --bg-gradient-base: linear-gradient(
      135deg,
      #f7f9fc 0%,
      #eef2f7 50%,
      #e8edf5 100%
  );
}

html { scroll-behavior: smooth; }

/* ----------------------------------------------------------
   BODY
----------------------------------------------------------- */
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--primary);

  background:
      var(--bg-gradient-1),
      var(--bg-gradient-2),
      var(--bg-gradient-base);

  background-attachment: fixed;
  background-size: cover;
  line-height: 1.6;
  font-size: 16px;
}

/* ----------------------------------------------------------
   NAVIGATION
----------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);        /* deep enterprise navy */
  color: #fff;                       /* white text for contrast */
  border-bottom: 1px solid #0e416c;  /* subtle darker border */
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;                       /* brand text/logo white */
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-links a {
  color: #fff;                       /* white links */
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color .25s ease, background .25s ease;
}

.nav-links a:hover {
  color: var(--accent);              /* Fluent Blue on hover */
  background: rgba(255,255,255,0.1); /* subtle hover background */
}

.nav-cta .btn {
  padding: 8px 16px;
}


/* ----------------------------------------------------------
   DROPDOWN
----------------------------------------------------------- */
.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: 0.8em; }
.dropdown-content {
  display: none;
  position: absolute;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  min-width: 180px;
  top: 100%; left: 0;
}
.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: var(--primary);
}
.dropdown-content a:hover { background: #eef6ff; }
.dropdown:hover .dropdown-content { display: block; }

/* ----------------------------------------------------------
   HAMBURGER MENU
----------------------------------------------------------- */
.nav-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--primary);
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--surface);
    position: absolute;
    top: 60px; right: 20px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 10px;
  }
  .nav-links.show { display: flex; }
  .nav-toggle { display: block; }
}

/* ----------------------------------------------------------
   HERO
----------------------------------------------------------- */
header.hero {
  background: radial-gradient(
      1200px 600px at 70% -20%,
      #dbeafe 0%, rgba(219,234,254,0) 60%
    ),
    var(--primary);
  color: white;
  text-align: center;
  padding: 24px 10px 24px;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.hero p {
  color: #e5e7eb;
  max-width: 740px;
  margin: 0 auto 26px;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------
   BUTTONS
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .25s ease;
}
.btn:hover { background: var(--accent-600); transform: translateY(-2px); }

.btn.secondary { background: #0b3559; }
.btn.secondary:hover { background: #0e416c; }

/* ----------------------------------------------------------
   SECTIONS
----------------------------------------------------------- */
section {
  padding: 40px 20px;   /* reduced vertical padding for cleaner spacing */
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}

h2 {
  font-size: 30px;
  margin: 0 0 16px;     /* slightly more breathing room under headings */
}

.lede {
  color: var(--muted);
  max-width: 820px;
  margin-bottom: 28px;  /* tightened spacing under lede text */
}

/* ----------------------------------------------------------
   GRID & CARDS
----------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 20px;   /* horizontal spacing between cards */
  row-gap: 5px;      /* vertical spacing between cards */
}

.card {
  grid-column: span 4;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, opacity .3s ease;
  background-size: cover;
  background-position: center;
  color: var(--primary);
  position: relative;
  overflow: hidden;
  margin: 0;          /* ensure no extra margins around cards */
}

/* ----------------------------------------------------------
   HOW IT WORKS CARD BACKGROUNDS
----------------------------------------------------------- */
#how-it-works .feature-grid .card:nth-child(1) { background: #f9fafb; }
#how-it-works .feature-grid .card:nth-child(2) { background: #fff8f5; }
#how-it-works .feature-grid .card:nth-child(3) { background: #f5fff9; }
#how-it-works .feature-grid .card:nth-child(4) { background: #f5f9ff; }
#how-it-works .feature-grid .card:nth-child(5) { background: #fffaf5; }
#how-it-works .feature-grid .card:nth-child(6) { background: #f9fff5; }
/* -------------------------
   Cards with backgrounds
--------------------------- */
.card {
  grid-column: span 4;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, opacity .3s ease;
  background-size: cover;
  background-position: center;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}

/* Overlay for text readability */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  border-radius: inherit;
  transition: background .3s ease;
}
.card > * {
  position: relative;
  z-index: 1;
}

.card.visibility    { background-image: url("../images/visibility-bg.jpg"); }
.card.runs          { background-image: url("../images/faster-bg.jpg"); }
.card.teams         { background-image: url("../images/teams-bg.jpg"); }
.card.accessibility { background-image: url("../images/accessibility-bg.jpg"); }
.card.visual        { background-image: url("../images/visual-bg.jpg"); }
.card.scale         { background-image: url("../images/scale-bg.jpg"); }


/* Scroll-trigger animations */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.animate-left {
  opacity: 0;
  transform: translateX(-40px);
}
.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s ease;
}

.animate-right {
  opacity: 0;
  transform: translateX(40px);
}
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.8s ease;
}

/* Staggered card animation */
.card.animate-up:nth-child(1) { animation-delay: 0.2s; }
.card.animate-up:nth-child(2) { animation-delay: 0.4s; }
.card.animate-up:nth-child(3) { animation-delay: 0.6s; }
.card.animate-up:nth-child(4) { animation-delay: 0.8s; }

.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

/* ----------------------------------------------------------
   QUOTES
----------------------------------------------------------- */
.quote {
  background: linear-gradient(180deg,#ffffff 0%, #f6f9ff 100%);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px;
  color: #263;
}

/* ----------------------------------------------------------
   PRICING
----------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.plan {
  grid-column: span 4;
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.plan.popular { border: 2px solid var(--accent); }

.badge {
  position: absolute;
  top: 12px;
  right: -34px;
  transform: rotate(35deg);
  background: var(--accent);
  color: white;
  font-size: 12px;
  padding: 6px 40px;
}
.price { font-size: 28px; font-weight: 800; margin: 10px 0 14px; }

.features-list { list-style: none; padding: 0; margin: 0 0 18px; }
.features-list li {
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}
.features-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 14px;
}

/* ----------------------------------------------------------
   EMBEDS
----------------------------------------------------------- */
.embed {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.embed iframe {
  width: 100%;
  border: 0;
  border-radius: 10px;
}

/* ----------------------------------------------------------
   FORMS
----------------------------------------------------------- */
form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
label { font-weight: 600; margin-bottom: 6px; }

input, textarea {
  font: inherit;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px;
  background: white;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
}

/* ----------------------------------------------------------
   REPORTING IMAGES
----------------------------------------------------------- */
.report-img {
  width: auto;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: var(--light-bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 6px;
}

.embed img {
  width: auto;
  height: 180px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
footer {
  margin-top: 20px;
  text-align: center;
  padding: 28px 20px;
  color: #6b7280;
  background: #f1f5f9;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
}

/* ----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 1024px) {
  .card { grid-column: span 6; }
  .plan { grid-column: span 6; }
}
@media (max-width: 480px) {
  section { padding: 40px 15px; }
  header.hero { padding: 40px 15px; }
  nav a { margin: 0 6px; font-size: 14px; }
  h2 { font-size: 24px; }
  .hero h1 { font-size: 28px; }
  .card { padding: 18px; }
}

/* ----------------------------------------------------------
   ANIMATION KEYFRAMES
----------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* ----------------------------------------------------------
   CHAT STYLES
----------------------------------------------------------- */
.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .25s;
  z-index: 99998; /* Ensure launcher stays above page */
}
.chat-launcher:hover {
  transform: translateY(-2px);
  background: var(--accent-600);
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 340px;
  max-height: 60vh;

  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  display: none;
  overflow: hidden; /* Prevent page scroll bleeding into panel */
  animation: fadeInUp .25s ease forwards;

  z-index: 99999; /* Critical: keep panel above page content */
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.chat-messages {
  padding: 14px;
  height: 38vh;
  overflow-y: auto; /* Independent scroll works correctly */
  overscroll-behavior: contain; /* Stop page from scrolling */
  font-size: 14px;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
}
.chat-form input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px;
}

.chat-bubble {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  max-width: 85%;
}
.chat-bubble.user {
  background: #eef6ff;
  margin-left: auto;
}
.chat-bubble.bot {
  background: #f6f9ff;
}

@media (max-width: 480px) {
  .chat-panel {
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 70vh; /* Better mobile visibility */
  }
}


/* ----------------------------------------------------------
   WHATSAPP SUPPORT FLOATING BUTTON
----------------------------------------------------------- */
.whatsapp-support {
  position: fixed;
  right: 22px;        /* corrected syntax */
  bottom: 90px;       /* sits above chat launcher */
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  transition: transform .22s ease, box-shadow .22s ease;
}
.whatsapp-support:hover {
  transform: scale(1.10);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
}
.whatsapp-support img {
  width: 32px;
  height: 32px;
  pointer-events: none;
}

/* ----------------------------------------------------------
   FEATURES: Horizontal Scroll Slides
----------------------------------------------------------- */
.feature-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
}

.feature-scroll::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

.feature-scroll .card {
  flex: 0 0 75%;             /* each card fills viewport width */
  min-height: clamp(300px, 45vh, 480px);        /* tall enough to feel like a slide */
  scroll-snap-align: start;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  color: #fff;                /* text readable on images */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Dark overlay for readability */
.feature-scroll .card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: inherit;
}

.feature-scroll .card-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 2rem;
}

/* Typography inside cards */
.feature-scroll .card-content h3 {
  font-size: 2rem;       /* larger heading */
  margin-bottom: 1rem;
}

.feature-scroll .card-content p {
  font-size: 1.2rem;     /* larger paragraph text */
  line-height: 1.5;
}

/* ----------------------------------------------------------
   FEATURES: Heading + Lede spacing tweaks
----------------------------------------------------------- */
section#features {
  padding-top: 30px !important;   /* reduce top padding */
}

section#features h2.animate-up {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
  font-size: 34px;                /* optional: larger heading */
}

section#features p.lede.animate-left {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  font-size: 18px;                /* optional: larger lede */
}
