/* ------------------------------
   CSS RESET & BASE NORMALIZE
------------------------------ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #152048;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #152048;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #41AFFF;
  outline: none;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
strong, b {
  font-weight: 700;
}

/* ------------------------------
   BRAND TYPOGRAPHY
------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #152048;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}
p, li, span {
  font-size: 1rem;
  line-height: 1.6;
  color: #152048;
}

/* Typography hierarchy and spacing */
.section h1, .section h2, .section h3 { margin-top: 0; }
.section h2 { margin-top: 12px; }
.section h3 { margin-top: 10px; }

/* ------------------------------
   CONTAINERS & SPACING
------------------------------ */
.container {
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}
.content-wrapper {
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

/* White space helpers */
.text-section {
  margin-bottom: 24px;
}

/* ------------------------------
   FLEXBOX PATTERNS
------------------------------ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 310px;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 20px rgba(21,32,72,0.06);
  padding: 28px 24px;
  transition: box-shadow 0.15s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 32px rgba(65,175,255,0.13);
  transform: translateY(-2px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 12px rgba(21,32,72,0.06);
  flex: 1 1 320px;
  min-width: 260px;
  transition: box-shadow 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(65,175,255,0.09);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 0 0 14px 0;
  min-width: 170px;
}

/* ------------------------------
   HEADER & NAVIGATION
------------------------------ */
header {
  background: #fff;
  border-bottom: 1px solid #EBEEF2;
  position: sticky;
  top: 0;
  z-index: 30;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
header nav a {
  transition: color 0.2s;
  color: #152048;
  padding: 6px 10px;
  border-radius: 6px;
}
header nav a:hover, header nav a:focus {
  color: #41AFFF;
  background: #f5fbff;
}
header nav img {
  height: 34px;
  width: auto;
  margin-right: 18px;
}
.mobile-menu-toggle {
  display: none;
  color: #152048;
  background: #fff;
  border-radius: 8px;
  font-size: 2rem;
  padding: 0 14px;
  margin-left: auto;
  height: 44px;
  min-width: 44px;
  transition: background 0.15s, color 0.13s;
  border: 1px solid #EBEEF2;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #41AFFF;
  background: #f5fbff;
  outline: none;
}

/* ------------------------------
   MOBILE MENU
------------------------------ */
.mobile-menu {
  display: none; /* shown on .open */
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(21,32,72,0.93);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.69,0,0.34,1);
  will-change: transform;
}
.mobile-menu.open {
  display: block;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 2.4rem;
  color: #fff;
  background: transparent;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 101;
  border: none;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(65,175,255,0.15);
  color: #41AFFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  gap: 24px;
  align-items: center;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 10px 24px;
  border-radius: 8px;
  min-width: 180px;
  text-align: center;
  transition: background 0.14s, color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #41AFFF;
  color: #152048;
}

/* ------------------------------
   CTA BUTTONS
------------------------------ */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 13px 34px;
  background: #41AFFF;
  color: #fff;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 14px rgba(65,175,255,0.07);
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.13s;
}
.cta-button:hover, .cta-button:focus {
  background: #152048;
  color: #fff;
  box-shadow: 0 6px 30px rgba(21,32,72,0.13);
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

/* ------------------------------
   SECTION STYLES
------------------------------ */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* List improvements */
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
ul > li, ol > li {
  margin-bottom: 11px;
  padding-left: 0;
  color: #212534;
}
ul > li::marker {
  color: #41AFFF;
}

/* Distinctive Testimonial Card Styling */
.testimonial-card p {
  font-size: 1.06rem;
  color: #152048;
  margin: 0 0 4px 0;
}
.testimonial-card span {
  color: #152048;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer */
footer {
  border-top: 1px solid #EBEEF2;
  background: #fff;
  padding: 24px 0 16px 0;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}
footer nav a {
  color: #8999a2;
  padding: 2px 7px;
  border-radius: 4px;
}
footer nav a:hover {
  color: #41AFFF;
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 6px;
}
footer p {
  color: #B5BFD8;
}

/* ------------------------------
   COOKIE CONSENT BANNER
------------------------------ */
#cookie-consent-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  bottom: 0;
  width: 94vw;
  max-width: 480px;
  background: #fff;
  color: #152048;
  box-shadow: 0 4px 32px rgba(21,32,72,0.13);
  border-radius: 16px 16px 0 0;
  padding: 28px 20px 20px 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.69,0,0.34,1), opacity 0.19s;
}
#cookie-consent-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#cookie-consent-banner p {
  margin-bottom: 7px;
  color: #152048;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 9px 22px;
  border: none;
  border-radius: 8px;
  margin: 0 0 0 0;
  min-width: 120px;
  cursor: pointer;
  background: #41AFFF;
  color: #fff;
  transition: background 0.17s, color 0.14s;
}
.cookie-btn.reject {
  background: #fff;
  color: #152048;
  border: 1.5px solid #EBEEF2;
  font-weight: 400;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #152048;
  color: #fff;
  outline: none;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F5FBFF;
  color: #152048;
  border-color: #41AFFF;
}
.cookie-settings-btn {
  background: #EBEEF2;
  color: #152048;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #E3F2FE;
  color: #152048;
}

/* Cookie Modal Overlay & Modal */
#cookie-modal-overlay {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; right:0; bottom:0;
  background: rgba(21,32,72,0.54);
  display: none;
  align-items: flex-end;
  justify-content: center;
}
#cookie-modal-overlay.open {
  display: flex;
}
#cookie-modal {
  width: 96vw;
  max-width: 480px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 10px 40px rgba(21,32,72,.17);
  margin-bottom: 0;
  padding: 34px 22px 22px 22px;
  position: relative;
  animation: modalIn 0.32s cubic-bezier(0.69,0,0.34,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@keyframes modalIn {
  from { transform: translateY(90px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
#cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F3F3FA;
}
.category-toggle {
  margin-left: 24px;
  min-width: 42px;
}
.category-toggle input[type=checkbox] {
  width: 34px;
  height: 20px;
  appearance: none;
  background: #EBEEF2;
  outline: none;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}
.category-toggle input[type=checkbox]:checked {
  background: #41AFFF;
}
.category-toggle input[type=checkbox]::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(21,32,72,.05);
  transition: transform 0.16s cubic-bezier(0.69,0,0.34,1);
}
.category-toggle input[type=checkbox]:checked::before {
  transform: translateX(13px);
}
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 16px;
  background: none;
  color: #152048;
  border-radius: 8px;
  font-size: 1.6rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F5FBFF;
  color: #41AFFF;
  outline: none;
}

/* Prevent banner/modal from being too wide */
@media (max-width: 540px) {
  #cookie-consent-banner,
  #cookie-modal {
    padding-left: 12px;
    padding-right: 12px;
    width: 99vw;
    max-width: 99vw;
  }
}

/* ------------------------------
   RESPONSIVENESS
------------------------------ */
@media (max-width: 1100px) {
  .container {
    max-width: 94vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 98vw;
  }
  .section {
    padding: 28px 6vw;
  }
}
@media (max-width: 768px) {
  main {
    padding-top: 0;
  }
  .section, section {
    padding: 30px 4vw;
    margin-bottom: 44px;
  }
  h1 { font-size: 1.47rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.05rem; }
  .feature-item { min-width: 125px; }
  .testimonial-card {
    min-width: 165px;
    padding: 16px;
    font-size: 0.97rem;
  }
  .card {
    padding: 18px 10px;
    min-width: 165px;
    font-size: 0.98rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 12px 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-wrapper { padding: 0; }
  header nav { gap: 13px; padding: 10px 4vw; }
  footer .content-wrapper { gap: 7px; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.17rem; }
  h2 { font-size: 1.01rem; }
}
@media (max-width: 976px) {
  .card-container, .content-grid {
    gap: 16px;
  }
}

/* Responsive Navigation: Mobile Menu Show/Hide */
@media (max-width: 1024px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
  }
}
@media (min-width: 1025px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}

/* ------------------------------
   MICRO-INTERACTIONS & EFFECTS
------------------------------ */
.card, .testimonial-card, .cta-button, .cookie-btn, .cookie-settings-btn, .cookie-modal-close, .mobile-menu-toggle, .mobile-menu-close {
  transition: box-shadow 0.15s, background 0.16s, color 0.15s, transform 0.13s;
}
.cta-button:active, .cookie-btn:active, .mobile-menu-toggle:active {
  transform: scale(0.98);
}

/* Focus states for accessibility */
a:focus, .cta-button:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2px solid #41AFFF;
  outline-offset: 2px;
}

/* ------------------------------
   MINIMAL EXTRAS
------------------------------ */
::-webkit-scrollbar {
  width: 9px;
  background: #f5f7fb;
}
::-webkit-scrollbar-thumb {
  background: #EBEEF2;
  border-radius: 8px;
}

/* Hide visually unnecessary elements for print */
@media print {
  .mobile-menu, .mobile-menu-toggle, #cookie-consent-banner, #cookie-modal-overlay { display: none !important; }
}
