/* --- 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #101a24;
  color: #F4F6F8;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #209FA1;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.6,.04,.98,.335);
}
a:hover,
a:focus {
  color: #00ffd0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.4;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  box-shadow: none;
}
ul, ol {
  padding-left: 1.25em;
}

/* --- BRAND & COLOR THEME --- */
:root {
  --color-primary: #18324C;
  --color-secondary: #209FA1;
  --color-accent: #F4F6F8;
  --color-bg-dark: #101a24;
  --color-bg-section: #19273b;
  --color-card-bg: #152130;
  --color-neon: #00ffd0;
  --color-neon2: #3594ff;
  --color-divider: #22334b;
  --color-error: #be1838;
}

/* Fallbacks */
body {
  background-color: var(--color-bg-dark);
  color: var(--color-accent);
}

/* --- TYPOGRAPHY --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #00ffd0;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-shadow: 0 0 12px #209FA166;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 6px #209FA133;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}
p, li, span, ul, ol, b {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
}
b {
  font-weight: 700;
}
.text-section h2, .text-section h3, .text-section h1 {
  color: #fff;
}
.text-section p, .text-section li {
  color: #F4F6F8;
}

/* --- LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: none;
}
.text-section {
  background: none;
  padding: 0;
  text-align: left;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-section);
  border-radius: 24px;
  box-shadow: 0 4px 40px 0 #0e283d33;
  position: relative;
}

/* --- FEATURE GRID / FLEX LAYOUTS --- */
.feature-grid, .card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 1px 16px 0 #00ffd022, 0 0.5px 2px #18324c12;
  padding: 32px 24px;
  transition: box-shadow 0.2s cubic-bezier(.6,.04,.98,.335), transform 0.18s cubic-bezier(.6,.04,.98,.335);
}
.card:hover {
  box-shadow: 0 2px 32px #00ffd099, 0 1.5px 16px #18324c22;
  transform: translateY(-4px) scale(1.01);
}
.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;
  padding: 20px;
  background: #fff;
  color: #18324C;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px #209FA122;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 32px #209FA144;
}
.testimonial-card p {
  flex: 1 1 0;
  margin: 0 0 4px 0;
  color: #18324C;
  font-size: 1.1rem;
  font-weight: 400;
}
.testimonial-card span {
  font-weight: 600;
  font-size: 1rem;
  color: #209FA1;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card-bg);
  border-radius: 18px;
  padding: 28px 24px;
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 240px;
  box-shadow: 0 1px 11px #00ffd012;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.21s cubic-bezier(.6,.04,.98,.335), transform 0.21s cubic-bezier(.6,.04,.98,.335);
}
.feature-item:hover {
  box-shadow: 0 2px 28px #209FA199, 0 4px 16px #00ffd033;
  transform: translateY(-2px) scale(1.018);
}
.feature-item img {
  height: 42px;
  filter: drop-shadow(0 0 8px #00ffd088) drop-shadow(0 0 2px #209FA133);
}
ul, ol {
  margin: 0 0 14px 0;
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
  color: #F4F6F8;
}
.text-section ul li,
.text-section ol li,
.section ul li, .section ol li {
  color: #F4F6F8;
}

/* --- HEADER & NAV --- */
header {
  width: 100%;
  background: #101a24;
  box-shadow: 0 4px 48px #18324c1b;
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 18px 20px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
}
.main-nav a {
  color: #F4F6F8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 6px 0 4px 0;
  transition: color 0.18s, border-bottom 0.18s;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: #00ffd0;
  border-bottom: 2px solid #00ffd0;
}
.cta-btn {
  background: linear-gradient(90deg, #209FA1 0%, #00ffd0 100%);
  color: #101a24;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  border: none;
  border-radius: 32px;
  padding: 12px 32px;
  margin-left: 18px;
  box-shadow: 0 0 12px #00ffd055;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background 0.15s, color 0.18s, box-shadow 0.19s;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #00ffd0 0%, #209FA1 100%);
  color: #18324c;
  box-shadow: 0 0 24px #00ffd099;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  color: #00ffd0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 999;
  margin-left: 16px;
  padding: 1px 6px;
  border-radius: 12px;
  transition: background 0.18s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: #209FA133;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #101aeeed;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: start;
  padding: 0 0 0 0;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.62,.08,.98,.345);
  box-shadow: 0 6px 64px #00ffd055;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #00ffd0;
  font-size: 2.4rem;
  font-weight: 600;
  margin: 26px 0 10px 34px;
  cursor: pointer;
  transition: color 0.12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  margin-left: 34px;
}
.mobile-nav a {
  color: #F4F6F8;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 7px 0 7px 0;
  border-bottom: 1px solid #209FA122;
  transition: color 0.15s, background 0.15s;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #00ffd0;
  background: #209FA133;
}

/* Only show mobile menu button & hide main nav on small screens */
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* Always hide mobile menu on large screens */
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- MAIN CONTENT SECTIONS --- */
section {
  background: var(--color-bg-section);
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 40px #00ffd011;
}
section:last-child { margin-bottom: 0; }
/* Remove default backgrounds from text-section-only sections */
.text-section {
  background: none;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 768px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
    min-width: 0;
  }
  .content-wrapper, .text-section {
    padding-left: 0;
    padding-right: 0;
    gap: 14px;
  }
  .section {
    padding: 22px 7px;
    margin-bottom: 32px;
    border-radius: 16px;
  }
  .feature-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .feature-item, .card {
    padding: 20px 10px;
    border-radius: 14px;
    min-width: 0;
    max-width: none;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 8px;
    border-radius: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* --- CARDS, TYPO, DIVIDERS, BUTTONS --- */
.card {
  border: 1.5px solid #209FA133;
  background: var(--color-card-bg);
}
hr {
  height: 1px;
  background: var(--color-divider);
  border: none;
  margin: 24px 0;
}

/* --- BUTTONS GENERIC --- */
button,
input[type="button"],
input[type="submit"],
.cta-btn {
  outline: none;
  user-select: none;
  cursor: pointer;
}
button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* --- FOOTER --- */
footer {
  background: #152130;
  border-top: 2px solid #209FA133;
  padding: 34px 0 24px 0;
  color: #F4F6F8;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.02rem;
  color: #209FA1;
  font-weight: 600;
}
.footer-brand img {
  height: 38px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 12px #00ffd022);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #00ffd0;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 2px;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  color: #F4F6F8;
}
.footer-contact img {
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px #00ffd022);
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.footer-social img {
  height: 24px;
  filter: drop-shadow(0 0 7px #00ffd055);
  transition: filter 0.16s;
}
.footer-social img:hover {
  filter: drop-shadow(0 0 18px #00ffd0cc);
}
@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- ANIMATIONS & MICRO-INTERACTIONS --- */
.cta-btn, .main-nav a, .mobile-nav a, .feature-item, .card, .testimonial-card {
  transition: 
    color 0.16s, 
    background 0.18s, 
    box-shadow 0.14s, 
    border-color 0.14s, 
    transform 0.14s;
}
.card:active,
.feature-item:active {
  transform: scale(0.98);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: #101a24;
  color: #F4F6F8;
  border-top: 2px solid #209FA133;
  box-shadow: 0 -4px 32px #00ffd055;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 1601;
  padding: 20px 16px;
  font-size: 1rem;
  animation: cookie-banner-in 0.55s cubic-bezier(.62,.08,.98,.345);
}
@keyframes cookie-banner-in {
  from { opacity: 0; transform: translateY(100px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  background: #209FA1;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 16px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.cookie-btn.accept {
  background: linear-gradient(90deg, #00ffd0, #209FA1);
  color: #18324C;
  box-shadow: 0 0 8px #00ffd066;
}
.cookie-btn.reject {
  background: #be1838;
  color: #fff;
}
.cookie-btn.settings {
  background: #152130;
  color: #00ffd0;
  border: 1.5px solid #209FA1;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.13) drop-shadow(0 0 3px #00ffd055);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: linear-gradient(90deg, #209FA1, #00ffd0);
  color: #101a24;
  box-shadow: 0 0 22px #00ffd099;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #b31d39;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  border-color: #00ffd0;
  color: #00ffd0;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    font-size: 0.95rem;
  }
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: #19273bcc;
}
.cookie-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #19273b;
  color: #F4F6F8;
  border-radius: 16px;
  padding: 40px 28px;
  box-shadow: 0 10px 52px #00ffd066;
  min-width: 320px;
  max-width: 99vw;
  animation: cookie-modal-in 0.39s cubic-bezier(.6,.04,.98,.335);
}
@keyframes cookie-modal-in {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1.0); }
}
.cookie-modal h3 {
  color: #00ffd0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
}
.cookie-category .category-label {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}
.cookie-switch {
  min-width: 42px; min-height: 26px;
  position: relative;
  margin-left: 8px;
  background: #22334b;
  border-radius: 16px;
  display: flex;
  align-items: center;
}
.cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  left: 0; top: 0;
  width: 42px;
  height: 26px;
  background: #22334b;
  border-radius: 16px;
  transition: background 0.16s;
}
.cookie-switch input:checked + .cookie-slider {
  background: linear-gradient(90deg,#00ffd0 10%, #209FA1 70%);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 5px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.13s cubic-bezier(.6,.04,.98,.335);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
  background: #00ffd0;
}

.cookie-modal .cookie-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 20px;
}
.cookie-modal .cookie-btn {
  min-width: 96px;
  padding: 8px 18px;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 24px 10px;
    min-width: 0;
  }
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 8px;
  background: #19273b;
}
::-webkit-scrollbar-thumb {
  background: #209FA144;
  border-radius: 8px;
}
/* Zebra-stripes for odd sections that are not .text-section only */
section:nth-child(odd):not(.text-section) {
  background: #18324C;
}

/* --- CUSTOM CLASSES ENFORCEMENT (for HTML) --- */
/* Spacing for card containers and flex wrappers */
.card-container, .content-grid, .feature-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 16px;
  }
}

/* --- FOCUS STYLES for a11y --- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid #00ffd0;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px #209FA144;
}

/* --- ERROR & ALERT STATES --- */
.error-text { color: var(--color-error); font-weight: 600; }
.alert {
  border-radius: 12px;
  padding: 16px 18px;
  background: #be1838;
  color: #fff;
  font-weight: 600;
}
