/* ============================================================
   CLEVER DATA - MAIN STYLESHEET
   Version: 15
   Last updated: 8 May 2026
   ============================================================ */


/* ------------------------------------------------------------
   GLOBAL RESET & DEFAULTS
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #111;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px;
  line-height: 1.2;
  color: #111;
}

p {
  margin: 0 0 12px;
}

a {
  color: #e30613;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ------------------------------------------------------------
   LAYOUT HELPERS
   ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.hidden {
  display: none !important;
}


/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */

.site-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
}

.logo {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #333;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover {
  color: #e30613;
  text-decoration: none;
}


/* ------------------------------------------------------------
   DROPDOWN MENUS
   ------------------------------------------------------------ */

.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.has-dropdown > .nav-link::after {
  content: "▾";
  font-size: 10px;
  margin-left: 4px;
  color: #888;
  display: inline-block;
  transition: transform 0.2s;
}

.has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after {
  transform: rotate(180deg);
  color: #e30613;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 10px 0;
  min-width: 240px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 200;
  margin-top: 8px;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 11px 20px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
  background: #fafafa;
  color: #e30613;
  text-decoration: none;
}


/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s;
  border: none;
  line-height: 1.2;
}

.btn-primary {
  background: #e30613;
  color: #fff;
}

.btn-primary:hover {
  background: #c00510;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: #111;
  border: 1.5px solid #d9d9d9;
}

.btn-secondary:hover {
  border-color: #111;
  text-decoration: none;
}

.btn-large {
  font-size: 16px;
  padding: 15px 30px;
}

.btn-small {
  font-size: 14px;
  padding: 9px 16px;
}


/* ------------------------------------------------------------
   HERO SECTION (homepage)
   ------------------------------------------------------------ */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-title .accent {
  color: #e30613;
}

.hero-subtitle {
  font-size: 19px;
  color: #555;
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ------------------------------------------------------------
   FEATURES SECTION
   ------------------------------------------------------------ */

.features {
  padding: 70px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #e30613;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}


/* ------------------------------------------------------------
   TRY NOW CARD
   ------------------------------------------------------------ */

.try-now {
  padding: 70px 0;
  background: #fff;
}

.try-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 48px 40px;
  text-align: center;
}

.try-icon-circle {
  width: 64px;
  height: 64px;
  background: #e30613;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 22px;
}

.try-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.try-text {
  color: #555;
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.5;
}


/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */

.site-footer {
  background: #0f0f10;
  color: #bbb;
  padding: 60px 0 0;
  margin-top: 80px;
}

.footer-inner-new {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 18px;
  line-height: 0;
  transition: transform 0.2s;
}

.footer-logo-link:hover {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-tagline {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #bbb;
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #e30613;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding: 24px 40px;
  text-align: center;
}

.footer-bottom p {
  color: #666;
  font-size: 13px;
  margin: 0;
}


/* ============================================================
   RESPONSIVE - LARGE TABLET (up to 1199px)
   ============================================================ */

@media (max-width: 1199px) {

  .header-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 14px;
  }

}


/* ============================================================
   RESPONSIVE - TABLET (up to 1023px)
   ============================================================ */

@media (max-width: 1023px) {

  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-nav {
    gap: 14px;
  }

  .logo {
    height: 34px;
  }

  /* Hide Blog and Case Studies on tablet to save space */
  .header-nav .nav-link[href="blog.html"],
  .header-nav .nav-link[href="case-studies.html"] {
    display: none;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero-title {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .features {
    padding: 50px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .try-now {
    padding: 50px 0;
  }

  .try-card {
    padding: 40px 32px;
  }

  .try-title {
    font-size: 24px;
  }

  .footer-inner-new {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-bottom {
    padding: 20px 24px;
  }

}


/* ============================================================
   RESPONSIVE - MOBILE (up to 699px)
   ============================================================ */

@media (max-width: 699px) {

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header */
  .site-header {
    padding: 12px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo {
    height: 28px;
  }

  .header-nav {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .header-nav .nav-link {
    font-size: 13px;
    padding: 4px 6px;
  }

  .header-nav .btn-primary.btn-small {
    padding: 8px 12px;
    font-size: 13px;
  }

  /* Hide extra nav items on mobile */
  .header-nav .nav-link[href="faq.html"],
  .header-nav .nav-link[href="blog.html"],
  .header-nav .nav-link[href="case-studies.html"],
  .header-nav .has-dropdown {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 40px 0 30px;
  }

  .hero-title {
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
  }

  /* Features */
  .features {
    padding: 40px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  /* Try Now card */
  .try-now {
    padding: 40px 0;
  }

  .try-card {
    padding: 32px 20px;
  }

  .try-title {
    font-size: 22px;
  }

  .try-text {
    font-size: 15px;
  }

  /* Buttons */
  .btn-large {
    font-size: 15px;
    padding: 14px 24px;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 0;
    margin-top: 50px;
  }

  .footer-inner-new {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 0;
    padding-bottom: 24px;
  }

  .footer-brand .footer-logo-img {
    height: 32px;
  }

  .footer-tagline {
    font-size: 13px;
  }

  .footer-heading {
    font-size: 14px;
  }

  .footer-col a {
    font-size: 14px;
    padding: 4px 0;
  }

  .footer-bottom {
    padding: 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

}

/* ============================================================
    Footer social icons
   ============================================================ */
/* ----- Footer social icons - Safari compatible ----- */

.footer-social {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-flex-direction: row !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  margin-top: 20px !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  width: auto !important;
}

.footer-col .footer-social a,
.footer-social a {
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  border-radius: 50% !important;
  background: #222 !important;
  color: #fff !important;
  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  float: none !important;
  transition: background 0.2s !important;
}

.footer-col .footer-social a:last-child,
.footer-social a:last-child {
  margin-right: 0 !important;
}

.footer-col .footer-social a:hover,
.footer-social a:hover {
  background: #e30613 !important;
}

.footer-social svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: currentColor !important;
}
