/* --- CSS RESET & 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;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F5F7FA;
  color: #23233C;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
}
a {
  color: #30C7FF;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #25214D;
  text-decoration: underline;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* --- FONT IMPORTS (Google Fonts) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* --- BRAND COLOR PALETTE --- */
:root {
  --primary: #25214D;
  --secondary: #30C7FF;
  --accent: #FFD200;
  --gray-100: #F5F7FA;
  --gray-200: #E5E7EF;
  --gray-400: #B6BACD;
  --gray-600: #75799C;
  --gray-900: #23233C;
  --white: #fff;
  --shadow: 0 3px 16px 0 rgba(37, 33, 77, 0.09);
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px;
}


/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;   /* 32px */
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem; /* 20px */
  margin-bottom: 10px;
}
p, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #23233C;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
.section ul, .section ol {
  margin-bottom: 0;
}

/* --- HEADER --- */
header {
  background: var(--white);
  box-shadow: 0 3px 12px rgba(41, 40, 51, 0.04);
  position: relative;
  z-index: 10;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}
header a img {
  height: 46px;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 5px;
  border-radius: 4px;
  transition: background 0.15s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(48,199,255,0.10);
  padding: 12px 34px;
  margin-left: 24px;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 16px 0 rgba(48, 199, 255, 0.14);
  outline: none;
}

/* --- MOBILE MENU BURGER --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  margin-left: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background .2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--gray-200);
  color: var(--primary);
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.78,.12,.42,.96);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  visibility: hidden;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0%);
  visibility: visible;
}
.mobile-menu-close {
  margin-top: 18px;
  margin-left: 18px;
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--gray-200);
  color: var(--secondary);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-top: 24px;
  align-items: flex-start;
}
.mobile-nav a {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-size: 1.15rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
  transition: background .18s, color .18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}

/* --- MAIN STYLES, SECTION SPACING --- */
main {
  width: 100%;
  margin-top: 0;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* --- CARD LAYOUTS, FEATURE GRIDS (FLEXBOX) --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
  align-items: stretch;
  margin-top: 6px;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 330px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.feature-grid > div:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(48,199,255,.12);
}
.feature-grid img {
  margin-bottom: 6px;
  height: 46px;
}
.feature-grid h3 {
  margin-bottom: 6px;
  font-size: 1.22rem;
}
.feature-grid p, .feature-grid a {
  font-size: 1rem;
}
.feature-grid a {
  margin-top: 4px;
  color: var(--secondary);
  font-weight: 600;
  transition: color .15s;
}
.feature-grid a:hover { color: var(--primary); }

/* --- CARD CONTAINER SPACING FLEX --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
  transition: box-shadow .18s, transform .15s;
}
.card:hover {
  box-shadow: 0 6px 24px 0 rgba(37, 33, 77, 0.13);
  transform: translateY(-2px) scale(1.015);
}

/* --- CONTENT GRID (FLEXBOX) --- */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* --- TEXT IMAGE SECTION (FLEX) --- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(37, 33, 77, 0.11);
  margin-bottom: 20px;
  max-width: 720px;
  font-size: 1.07rem;
  color: var(--primary);
  transition: box-shadow .14s, transform .14s;
}
.testimonial-card strong {
  margin-left: 14px;
  color: var(--secondary);
  font-size: 0.98em;
  font-weight: 700;
  white-space: nowrap;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(48,199,255,.08);
  transform: translateY(-2px);
}

/* --- ICON ROW --- */
.icon-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
}
.icon-row img {
  height: 42px;
  filter: grayscale(0.1) brightness(0.98);
  opacity: 0.92;
  transition: opacity .2s;
}
.icon-row img:hover {
  opacity: 1;
}

/* --- PROMO BANNER --- */
.promo-banner {
  background: var(--accent);
  color: var(--primary);
  border-radius: 12px;
  padding: 18px 24px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.19rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(255,210,0,0.08);
  margin-bottom: 18px;
}

/* --- FEATURE ITEM --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 36px 0 22px 0;
  border-top: 4px solid var(--secondary);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--gray-200);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 2px;
  padding: 2px 0;
  transition: color 0.18s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--accent);
}
.brand-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--gray-200);
  font-size: .99rem;
}
.brand-contact a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
}
.brand-contact img {
  display: inline;
  vertical-align: middle;
  height: 18px;
  margin-left: 4px;
}

/* --- BUTTONS --- */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 32px;
  font-size: 1rem;
  padding: 10px 28px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(48,199,255,0.06);
}
button:hover, button:focus,
input[type="button"]:hover,
input[type="submit"]:hover {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 2px 12px 0 rgba(48,199,255,0.10);
}

/* --- LISTS & DETAILS --- */
ul, ol {
  margin-bottom: 24px;
  color: var(--gray-900);
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
ul li img, ol li img {
  height: 22px;
  margin-right: 8px;
  flex-shrink: 0;
}

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

/* --- RESPONSIVE: MOBILE FIRST, FLEX DIRECTIONS --- */
@media (max-width: 1020px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 36px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.36rem; }
  .content-wrapper {
    gap: 10px;
  }
  .feature-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-grid > div {
    max-width: 96vw;
    min-width: 88vw;
    width: 100%;
    padding: 22px 14px 18px 16px;
  }
  .testimonial-card,
  .card {
    min-width: auto;
    width: 98vw;
    max-width: 96vw;
    padding: 18px 10px;
  }
  .card-container {
    gap: 16px;
    flex-direction: column;
  }
  .content-grid {
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  section, .section {
    padding: 28px 4vw; 
    margin-bottom: 40px;
  }
  header .container {
    flex-direction: row;
    align-items: center;
    min-height: 56px;
    gap: 10px;
    padding: 0 4vw;
  }
  .cta-btn {
    font-size: 0.98rem;
    padding: 10px 22px;
    margin-left: 8px;
  }
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu.open { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
  header nav {
    display: flex !important;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.12rem; }
  .container { padding: 0 3vw; }
  section, .section { padding-left: 8px; padding-right: 8px; }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.cta-btn,
button,
.feature-grid > div,
.card,
.testimonial-card {
  transition: box-shadow .2s, background .19s, color .16s, transform .18s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9998;
  background: var(--primary);
  color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 10vw 20px 10vw;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  box-shadow: 0 -4px 18px 0 rgba(37,33,77,0.14);
  gap: 24px;
  font-size: 0.98rem;
  animation: cookie-slide-in .42s cubic-bezier(.61,-0.22,.66,1.16);
}
.cookie-banner .cookie-btn {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 9px 22px;
  border-radius: 24px;
  font-size: 1rem;
  outline: none;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  margin-right: 3px;
  box-shadow: 0 2px 6px 0 rgba(255,210,0,0.08);
  transition: background .14s, color .14s;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner .cookie-btn.settings {
  background: var(--secondary);
  color: var(--white);
  margin-left: 16px;
}
.cookie-banner .cookie-btn.settings:hover {
  background: var(--primary);
  color: var(--accent);
}
@keyframes cookie-slide-in {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: none; opacity: 1;}
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,33,77, 0.55);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-modal .22s cubic-bezier(.61,-0.22,.66,1.16);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
@keyframes fade-in-modal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  min-width: 310px;
  max-width: 98vw;
  width: 400px;
  background: var(--white);
  color: var(--primary);
  border-radius: 16px;
  box-shadow: 0 12px 36px 0 rgba(48,199,255,0.17), var(--shadow);
  padding: 38px 34px 26px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  animation: modal-popup .33s cubic-bezier(.51,.01,.4,1.43);
}
@keyframes modal-popup {
  from { transform: scale(0.89) translateY(42px); opacity:0; }
  to   { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}
.cookie-modal .cookie-categories {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
}
.cookie-category .switch {
  position: relative;
  display: flex;
  width: 46px;
  height: 22px;
  align-items: center;
}
.cookie-category .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-category .slider {
  position: absolute;
  top: 0; left: 0;
  width: 46px;
  height: 22px;
  border-radius: 20px;
  background: var(--gray-200);
  transition: background .18s;
}
.cookie-category .switch input:checked + .slider {
  background: var(--secondary);
}
.cookie-category .slider:before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .18s;
}
.cookie-category .switch input:checked + .slider:before {
  transform: translateX(24px);
}
.cookie-modal .cookie-btn-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-top: 12px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px; top: 14px;
  background: none;
  color: var(--gray-900);
  font-size: 1.55rem;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: var(--gray-200);
  color: var(--secondary);
}

/* --- A11Y OUTLINE --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- VISUAL HIERARCHY: SPACING & SHADOWS --- */
section:not(:last-child) {
  margin-bottom: 60px;
}
.card + .card,
.feature-grid > div + div,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* --- HIDE FROM VIEWPORT --*/
[hidden] {display: none !important;}

/* --- UTILITIES --- */
.nowrap { white-space: nowrap; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }

/* --- END OF CSS --- */
