/* --- 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,main,menu,nav,output,ruby,section,summary,time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
}
ol,ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- CUSTOM CSS VARIABLES (FALLBACKS) --- */
:root {
  --primary: #2D3D4F;
  --secondary: #AACFDB;
  --accent: #F6EADF;
  --neon: #79E6F2;
  --neon-pink: #FF80C6;
  --background: #141925;
  --background-light: #232B38;
  --text-main: #F6EADF;
  --text-contrast: #232B38;
}

/* --- BASE TYPOGRAPHY --- */
body {
  background: var(--background);
  color: var(--text-main);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.5rem; margin-bottom: 12px; }
h4 { font-size: 1.2rem; margin-bottom: 10px; }
h5,h6 { font-size: 1rem; margin-bottom: 8px; }

p, li, ul {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 8px;
}
strong, b {
  color: var(--neon);
  font-weight: 700;
}
a {
  transition: color .25s;
  color: var(--secondary);
  font-weight: 600;
}
a:hover, a:focus {
  color: var(--neon-pink);
  text-shadow: 0 0 2px var(--secondary), 0 0 6px var(--neon-pink);
}

/* --- CONTAINER & LAYOUT PATTERNS --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--background-light);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44,67,98,0.18);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--background-light);
  border-radius: 16px;
  box-shadow: 0 1.5px 12px rgba(44, 67, 98, 0.28);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 260px;
  transition: box-shadow .25s, transform .2s;
  z-index: 1;
}
.card:hover {
  box-shadow: 0 4px 32px var(--neon-pink), 0 16px 64px rgba(44,67,98,0.30);
  transform: translateY(-6px) scale(1.03);
}
.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: #fafbfe5e;
  color: var(--text-contrast);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(44,67,98,0.11);
  padding: 20px;
  margin-bottom: 20px;
  font-size: 1.08rem;
  flex: 1;
  position: relative;
  z-index: 1;
  transition: box-shadow .22s;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 2px 28px var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border-left: 3px solid var(--secondary);
  padding-left: 18px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 0;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--primary);
  padding: 0;
  width: 100%;
  box-shadow: 0 2px 18px rgba(44,67,98,0.14);
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
}
header a img {
  height: 44px;
  width: auto;
  margin-right: 24px;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  font-size: 1rem;
  margin: 0 7px;
  padding: 7px 12px;
  border-radius: 7px;
  transition: background .18s, color .18s, box-shadow .27s;
  position: relative;
}
nav a:hover, nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--neon);
}

.cta.primary {
  background: linear-gradient(90deg, var(--neon), var(--neon-pink));
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.08rem;
  border: none;
  border-radius: 28px;
  padding: 14px 32px;
  margin-left: 18px;
  box-shadow: 0 2px 24px var(--neon-pink);
  transition: box-shadow .21s, transform .16s, color .14s;
  will-change: transform;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus {
  color: #fff;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon));
  box-shadow: 0 6px 38px var(--neon), 0 0 0 4px var(--secondary);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  color: var(--secondry, #AACFDB);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 24px;
  line-height: 1;
  z-index: 101;
  transition: color .2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--neon-pink);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,46,70,0.99);
  box-shadow: 0 6px 44px rgba(57,174,228,0.10);
  transition: transform 0.33s cubic-bezier(.83,-0.01,.41,1.06);
  transform: translateX(-100vw);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 40px;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--neon);
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: color .14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--neon-pink);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 56px 36px 0 36px;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.24rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 14px 0;
  border-radius: 0;
  width: 100%;
  transition: background .13s, color .13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--neon);
  background: rgba(143,233,255,0.09);
  text-shadow: 0 0 12px var(--neon);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(120deg, var(--primary) 60%, var(--neon) 110%);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow: 0 18px 94px 0 rgba(44,67,98,0.19);
  min-height: 340px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  padding: 60px 0 40px;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
  gap: 22px;
}
.hero h1 {
  color: #FAFAFD;
  text-shadow: 0 0 24px var(--neon-pink);
  font-size: 2.3rem;
}
.hero p {
  color: #ECF6FB;
  font-size: 1.21rem;
  margin-bottom: 16px;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(90deg,var(--secondary),var(--neon-pink));
  border-radius: 20px;
  margin: 55px 0 0 0;
  box-shadow: 0 8px 32px rgba(44,67,98,0.20);
  padding: 36px 0;
}
.cta-banner h2 {
  color: var(--primary);
  text-shadow: 0 0 12px #FAFAFA;
}
.cta-banner .cta.primary {
  margin-top: 16px;
  background: var(--primary);
  color: var(--neon);
  box-shadow: 0 2px 32px var(--neon-pink);
}
.cta-banner .cta.primary:hover, .cta-banner .cta.primary:focus {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 2px 48px var(--neon);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 50px 0 20px 0;
  margin-top: 45px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 200px;
  max-width: 240px;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-wrap: wrap;
  min-width: 160px;
}
.footer-nav a {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 6px;
  transition: color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--neon-pink);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

/* --- LIST & FEATURE STYLES --- */
ul, ol {
  margin-bottom: 10px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
ul li::before,
ol li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neon);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 10px;
  box-shadow: 0 0 8px var(--neon);
}

/* --- BUTTONS --- */
button,
input[type="button"],
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 21px;
  padding: 10px 24px;
  border: none;
  font-size: 1.08rem;
  background: var(--neon);
  color: var(--primary);
  cursor: pointer;
  transition: background .22s, color .18s, box-shadow .27s;
}
button:hover, button:focus {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 12px var(--neon-pink);
}

/* --- CARD --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

/* --- ANIMATIONS & TRANSITIONS --- */
.section, .card, .testimonial-card, .cta.primary, .mobile-menu, .cookie-banner, .cookie-modal {
  transition: box-shadow .25s, background .18s, color .17s, transform .22s;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1020px) {
  .container {
    max-width: 97vw;
    padding: 0 10px;
  }
  .card-container, .content-grid, .footer-nav, footer .container {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 24px;
    max-width: 100%;
  }
  .footer-brand, .footer-contact {
    min-width: 120px;
    max-width: 180px;
  }
  .section {
    padding: 40px 8px;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero {
    min-height: 220px;
    padding: 30px 0 22px;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
  }
  .footer-nav, .footer-brand, .footer-contact, footer .container {
    flex-direction: column;
    gap: 12px;
    min-width: unset;
    max-width: unset;
  }
  .container {
    padding: 0 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.26rem; }
  .hero h1 { font-size: 1.45rem; }
  .cta.primary, button, input[type="button"] {
    padding: 11px 18px;
    font-size: 1rem;
  }
  .section {
    margin-bottom: 32px;
    padding: 30px 4px;
    border-radius: 9px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #191d2a;
  color: #f9fafc;
  box-shadow: 0 -2px 32px var(--neon-pink);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 100001;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 20px 14px 20px;
  opacity: 1;
  transition: opacity .25s, transform .4s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 1 1 200px;
  font-size: 1.02rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-size: 0.97rem;
  padding: 8px 16px;
  border-radius: 18px;
  box-shadow: 0 0 8px var(--neon);
  border: none;
  transition: box-shadow .19s, background .19s;
  background: var(--secondary);
  color: var(--primary);
  margin-right: 5px;
}
.cookie-banner button:nth-child(2) { background: var(--neon-pink); color: #fff; }
.cookie-banner button:nth-child(3) { background: var(--primary); color: var(--neon); }
.cookie-banner button:hover, .cookie-banner button:focus {
  box-shadow: 0 0 18px var(--neon-pink);
  background: var(--neon-pink);
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30,50,66,0.64);
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #222943;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px var(--neon-pink);
  max-width: 420px;
  width: 90vw;
  padding: 38px 26px 26px 26px;
  position: relative;
  z-index: 100003;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookie-modal-in .33s cubic-bezier(.87,.1,.73,1.23);
}
@keyframes cookie-modal-in {
  from { transform: translateY(60px) scale(.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 1.7rem;
  color: var(--neon-pink);
  background: none;
  border: none;
  cursor: pointer;
}
.cookie-modal h2 {
  color: var(--neon);
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.01rem;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--neon-pink);
}
.cookie-category.cookie-essential {
  opacity: 0.75;
  font-style: italic;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-size: .99rem;
  background: var(--neon-pink);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 9px 16px;
  margin: 0;
  box-shadow: 0 0 10px var(--neon-pink);
}
.cookie-modal button.secondary {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--neon);
  color: var(--primary);
  box-shadow: 0 0 20px var(--neon);
}

/* --- MICRO-INTERACTIONS --- */
.cta.primary:active {
  transform: scale(0.97);
}
.card:active {
  transform: scale(0.98);
}
nav a:active,
.mobile-nav a:active {
  outline: 2px solid var(--neon-pink);
}

/* --- Z-INDEX HIERARCHY --- */
header { z-index: 100; }
.mobile-menu { z-index: 99999; }
.cookie-banner { z-index: 100001; }
.cookie-modal-bg { z-index: 100002; }

/* --- UTILITIES --- */
.hidden { display: none !important; }

/* --- AUTOFILL FIX FOR FORMS, IF NECESSARY --- */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #28324b inset;
  -webkit-text-fill-color: #F6EADF;
}

/* Ensure no overlapping cards */
.card, .testimonial-card, .feature-item, .section, .content-wrapper, .card-container, .content-grid,
.text-image-section, .footer-contact, .footer-brand {
  box-sizing: border-box;
}

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