/* 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.6;
  background: #0b1e37;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #F4F8FB;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  background: none;
  border: none;
  color: inherit;
}
:root {
  --primary: #143263;
  --secondary: #51A399;
  --accent: #F4F8FB;
  --neon: #48FFE6;
  --bg: #0B1E37;
  --card-bg: #16294D;
  --white: #FFFFFF;
  --shadow: 0 4px 32px 0 rgba(48, 210, 255, 0.05);
  --radius: 18px;
}

/* FONT DECLARATIONS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,800|Open+Sans:400,600&display=swap');
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.8rem; margin-bottom: 20px; font-weight: 800; }
h2 { font-size: 2rem; margin-bottom: 18px; font-weight: 700; }
h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 700; }

p, ul, ol, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 10px;
}
strong { color: var(--neon); font-weight: bold; }

.container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.main, main {
  width: 100%;
}

/* HEADER & NAVIGATION */
header {
  width: 100%;
  background: linear-gradient(90deg, #143263 60%, #51A399 100%);
  box-shadow: 0 6px 18px 0 rgba(29, 80, 170, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  height: 78px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
header nav a:hover:not(.cta-primary), header nav a:focus:not(.cta-primary) {
  background: rgba(72,255,230,0.11);
  color: var(--neon);
}
.cta-primary {
  background: linear-gradient(90deg,#51A399 30%, #48FFE6 100%);
  color: #143263 !important;
  border-radius: 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  padding: 10px 26px;
  margin-left: 14px;
  cursor: pointer;
  box-shadow: 0 2px 16px 0 rgba(72,255,230,0.07);
  transition: box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 2px solid var(--neon);
  outline: none;
  text-shadow: 0 2px 16px rgba(72,255,230,0.05);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--neon);
  color: #143263 !important;
  box-shadow: 0 0 0 4px rgba(72,255,230,0.15);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1020;
  font-size: 2rem;
  color: var(--neon);
  background: var(--primary);
  border-radius: 50%;
  width: 48px; height: 48px;
  border: 2px solid var(--neon);
  box-shadow: 0 2px 12px 0 rgba(72,255,230,0.13);
  transition: background 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #212b45;
  outline: 2px solid var(--neon);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(109deg,#0b1e37 86%,#143263 100%);
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.77,0,0.18,1), opacity 0.32s;
  z-index: 1050;
  box-shadow: 4px 0 32px 0 rgba(72,255,230,0.14);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 22px 0 0;
  font-size: 2.2rem;
  color: var(--neon);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  transition: background 0.2s;
}
.mobile-menu-close:hover {
  background: rgba(72,255,230,0.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: 24px;
}
.mobile-nav a {
  width: 100%;
  padding: 20px 38px;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--accent);
  border-bottom: 1px solid rgba(72,255,230,0.09);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--neon);
  background: rgba(72,255,230,0.11);
}

/* HERO SECTION */
.hero {
  width: 100%;
  background: linear-gradient(111deg, #143263 70%, #51a399 140%);
  min-height: 330px;
  border-radius: 0 0 65px 0;
  box-shadow: 0 10px 50px 0 rgba(72,255,230,0.07);
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
}
.hero .container {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero p {
  font-size: 1.3rem;
  color: #F4F8FB;
  margin-bottom: 20px;
  margin-top: 5px;
  text-shadow: 0 2px 14px rgba(72,255,230,0.09);
}

/* SECTIONS AND LAYOUT */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  background: transparent;
  border-radius: var(--radius);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 360px;
  flex: 1 1 300px;
  padding: 28px 22px;
  gap: 14px;
  border: 1.5px solid rgba(72,255,230,0.09);
  transition: box-shadow 0.16s, border 0.16s;
}
.card:hover, .card:focus-within {
  border: 1.5px solid var(--neon);
  box-shadow: 0 0 18px 0 rgba(72,255,230,0.22);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
@media (max-width: 768px) {
  .features, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

ul, ol {
  margin-left: 1.3em;
  margin-bottom: 20px;
  padding-left: 0.5em;
}
ul li, ol li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  color: #F4F8FB;
}
ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px;
  background: var(--neon);
  border-radius: 3px;
  box-shadow: 0 0 4px var(--neon);
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #F4F8FB;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px 0 rgba(72,255,230,0.08);
  color: var(--primary);
  font-size: 1.07rem;
  font-family: 'Open Sans', Arial, sans-serif;
  flex: 1 1 330px;
  transition: box-shadow 0.17s;
}
.testimonial-card p {
  color: #152E54;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: var(--secondary);
  font-weight: 700;
  margin-left: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 7px 28px 0 rgba(72,255,230,0.13);
}

/* BUTTONS */
button, .button, .cta-primary {
  cursor: pointer;
  appearance: none;
  border: none;
  transition: background 0.18s, color 0.17s, box-shadow 0.12s, border 0.13s;
}
.button {
  background: var(--secondary);
  color: #fff;
  border-radius: 9px;
  padding: 10px 25px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border: 2px solid var(--secondary);
  box-shadow: 0 1px 6px 0 rgba(81,163,153,0.08);
}
.button:hover, .button:focus {
  background: var(--neon);
  color: var(--primary);
  border: 2px solid var(--neon);
}

/* FOOTER */
footer {
  width: 100%;
  background: linear-gradient(90deg,#143263 70%,#0b1e37 100%);
  padding: 38px 0 18px 0;
  margin-top: 60px;
  border-radius: 65px 0 0 0;
  box-shadow: 0 0px 32px 0 rgba(72,255,230,0.07);
}
footer .container {
  gap: 24px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  opacity: 0.88;
  transition: color 0.13s, opacity 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--neon);
  opacity: 1;
}
footer .contact-info p {
  color: var(--accent);
  font-size: 0.96rem;
}
footer p:last-child {
  width: 100%;
  color: var(--secondary);
  margin-top: 8px;
  text-align: right;
  font-size: 0.92rem;
  opacity: 0.84;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  footer p:last-child {
    text-align: left;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(92deg, #143263 84%, #51a399cc 150%);
  color: #F4F8FB;
  padding: 28px 10px 18px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 26px;
  z-index: 2000;
  box-shadow: 0 -3px 40px 0 rgba(72,255,230,0.12);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.36s, opacity 0.18s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(120px);
}
.cookie-banner-text {
  flex: 1 1 250px;
  font-size: 1.07rem;
  color: var(--accent);
}
.cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: var(--neon);
  color: #143263;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  margin-left: 2px;
  transition: background 0.19s, color 0.15s, box-shadow 0.14s;
  box-shadow: 0 2px 11px 0 rgba(81,163,153,0.07);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: #fff;
}
.cookie-btn.reject {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--neon);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 0 0 3px var(--neon);
  outline: none;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  width: 92vw; max-width: 390px;
  background: #16294D;
  color: var(--accent);
  border-radius: 18px;
  box-shadow: 0 5px 50px 0 rgba(72,255,230,0.13);
  transform: translate(-50%,-50%) scale(0.85);
  opacity: 0;
  z-index: 2200;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.33s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 26px 22px 26px;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%,-50%) scale(1);
}
.cookie-modal h2 {
  color: var(--neon);
  margin-bottom: 6px;
  font-size: 1.3rem;
}
.cookie-modal .modal-close-btn {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 1.5rem;
  background: none;
  color: var(--neon);
  border: none;
  cursor: pointer;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-size: 1.12rem;
  color: var(--accent);
  margin-right: 12px;
}
.cookie-modal .toggle-switch {
  width: 44px; height: 24px;
  position: relative;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .slider {
  position: absolute;
  cursor: pointer;
  background: var(--secondary);
  border-radius: 18px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.17s;
}
.cookie-modal .slider:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background: var(--neon);
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}
.cookie-modal .cookie-category.essential label {
  color: var(--neon);
  font-weight: 700;
}
.cookie-modal .cookie-category.essential .slider {
  background: #128687;
  opacity: 0.58;
}
.cookie-modal .cookie-category.essential .slider:before {
  background: #48FFE6;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 6px 16px 6px;
  }
  .cookie-modal {
    padding: 22px 8px 16px 8px;
    max-width: 99vw;
  }
}

/* GENERAL INTERACTIONS */
a, .button, button, .cta-primary {
  transition: color 0.18s, background 0.18s, box-shadow 0.14s;
}
section, .section {
  box-sizing: border-box;
}
h1,h2 { text-shadow: 0 2px 14px rgba(72,255,230,0.04); }

/* ICON SIZING */
ul li img, .text-section img {
  vertical-align: middle;
  width: 28px;
  height: 28px;
  margin-right: 13px;
  display: inline-block;
  filter: drop-shadow(0 0 7px #39fff9cc);
}
@media (max-width: 650px) {
  ul li img, .text-section img { width: 22px; height: 22px; margin-right: 8px; }
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  header .container {
    height: auto;
    flex-direction: column;
    gap: 13px;
    padding-top: 14px;
    padding-bottom: 10px;
    align-items: flex-start;
  }
  header nav { flex-wrap: wrap; gap: 12px; font-size: 0.98rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.24rem; }
  .hero {
    min-height: 220px;
    border-radius: 0 0 32px 0;
    margin-bottom: 36px;
    padding: 30px 0;
  }
  .section {
    margin-bottom: 38px;
    padding: 24px 4px;
    border-radius: 10px;
  }
  .card-container, .content-grid, .features {
    flex-direction: column;
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    font-size: 1rem;
  }
}
@media (max-width: 700px) {
  .mobile-menu-toggle { display: block; }
  header nav { display: none !important; }
  .hero .container { padding: 0 7px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; margin-bottom: 10px; }
  .section, section { padding: 13px 2px; border-radius: 7px; }
  .container { padding: 0 2px; }
}

/* MICRO-ANIMATIONS */
.cta-primary, .cookie-btn, .button {
  transition: background 0.18s, color 0.17s, box-shadow 0.13s, border 0.14s;
}
.cta-primary:active, .cookie-btn:active, .button:active {
  transform: scale(0.97);
}

/* ACCORDION / FAQ (if present in how-it-works) */
.faq-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  padding: 17px 15px;
}

/* FORM ELEMENTS */
input, textarea {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1.5px solid var(--secondary);
  font-size: 1rem;
  color: #143263;
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(81,163,153,0.08);
  margin-bottom: 18px;
  transition: border 0.11s;
}
input:focus, textarea:focus {
  border: 1.5px solid var(--neon);
  outline: none;
}

/* ERROR / SUCCESS STATES Placeholder (for future extension) */
input.error, textarea.error {
  border: 1.5px solid #ff2070;
}
input.success, textarea.success {
  border: 1.5px solid var(--secondary);
}

/* Z-INDEX LAYERING */
header { z-index: 100; }
.mobile-menu { z-index: 1050; }
.mobile-menu-toggle { z-index: 1020; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2200; }

/* HIDE MOBILE MENU/COOKIE ELEMENTS INITIALLY */
.mobile-menu, .cookie-modal { display: none; }
.mobile-menu.open, .cookie-modal.open { display: flex; }

/* OVERRIDES FOR PRINT */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-modal { display: none !important; }
}
