/* RESET & BASE STYLES */
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;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main {
  display: block;
}
body {
  line-height: 1.6;
  background: #060d19;
  color: #e7f2fc;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #99c24d;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f4f7fa;
}
ul, ol {
  margin-left: 24px;
}

/* BRAND COLOR VARIABLES (with fallbacks) */
:root {
  --primary: #053d57;
  --secondary: #99c24d;
  --accent: #f4f7fa;
  --futuristic-bg: #060d19;
  --card-bg: #0d2135;
  --testimonial-bg: #eaeffc;
  --neon-blue: #39d2ff;
  --neon-green: #99ff99;
}

/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* TYPOGRAPHY */
h1, .display {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #fff;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: #39d2ff;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #99ff99;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
p, li, span, a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #e7f2fc;
}
p { margin-bottom: 12px; }
strong { font-weight: 700; color: #fff; }

/* CONTAINERS, SECTIONS, LAYOUTS */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: var(--card-bg);
  box-shadow: 0 2px 12px 0 #09213933;
  transition: box-shadow 0.3s;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 750px;
  margin: 0 auto;
  text-align: left;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* CARDS, GRIDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(39,213,255,0.14);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid #17425f;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  box-shadow: 0 6px 34px 0 rgba(57,210,255,0.23), 0 1.5px 8px 0 rgba(153,255,153,0.14);
  border-color: #39d2ff;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.feature-grid > div {
  background: #091d2b;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(57,210,255,0.09);
  flex: 1 1 235px;
  min-width: 230px;
  margin-bottom: 20px;
  padding: 28px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-left: 4px solid #39d2ff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-grid > div:hover {
  border-left: 4px solid #99ff99;
  box-shadow: 0 8px 28px 0 #39d2ff33;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 4px #39d2ff77);
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #eaeffc;
  color: #053d57;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 #39d2ff13;
  position: relative;
  border-left: 4px solid #99c24d;
  font-size: 1.08rem;
  max-width: 600px;
}
.testimonial-card p {
  color: #082642;
  margin-bottom: 0;
  font-weight: 500;
}
.testimonial-card span {
  color: #465e7d;
  font-size: 0.97em;
}
.testimonial-card strong {
  color: #053d57;
}
/* Accessibility - high contrast text */
.testimonial-card, .testimonial-card p, .testimonial-card span, .testimonial-card strong {
  color: #053d57 !important;
}

/* BUTTONS & CTA */
.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  padding: 13px 28px;
  background: linear-gradient(90deg, #053d57 60%, #39d2ff 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  border-radius: 32px;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: 0 1.5px 8px 0 #39d2ff44;
  transition: background 0.23s, transform 0.14s, box-shadow 0.21s;
  margin-top: 8px;
  margin-bottom: 12px;
  text-shadow: 0 0 2px #053d5760, 0 0 8px #053d5722;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, #39d2ff 40%, #99c24d 100%);
  color: #060d19;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 32px 0 #99ff9993;
}

.cta-secondary {
  background: linear-gradient(90deg, #99c24d 70%, #39d2ff 100%);
  color: #060d19;
  border: 2px solid #39d2ff;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: linear-gradient(90deg, #39d2ff 40%, #99ff99 100%);
  color: #053d57;
}
button, .cta-primary, .cta-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}

/* FEATURE LISTS */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 16px;
  font-size: 1.03em;
}
.feature-item:last-child { margin-bottom: 0; }

/* CONTACT DETAILS LIST */
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 18px;
}
.contact-details img {
  width: 22px;
  vertical-align: middle;
  margin-right: 10px;
}

/* MAP EMBED (Contact Page) */
.map-embed {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px 0 #39d2ff22;
  background: #091d2b;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

/* NAVIGATION (Desktop) */
header {
  background: #072131;
  box-shadow: 0 2px 8px 0 #053d5740;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 28px;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
  color: #e7f2fc;
  letter-spacing: 0.01em;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.17s;
}
header nav a:not(.cta-primary):hover, header nav a:not(.cta-primary):focus {
  background: #181f2a;
  color: #39d2ff;
}
header img[alt="GlistenFin Monitor"] {
  height: 44px;
  width: auto;
  margin-right: 32px;
  transition: filter 0.18s;
  filter: drop-shadow(0 1px 7px #39d2ff44);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #39d2ff;
  font-size: 2rem;
  border: none;
  outline: none;
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.19s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #99ff99;
}

/* FOOTER */
footer {
  background: #051b27;
  padding: 42px 0 24px 0;
  color: #acc5d7;
  font-size: 0.98rem;
  box-shadow: 0 -2px 8px 0 #053d5733;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-navigation {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-navigation a {
  color: #99c24d;
  font-weight: 500;
  font-size: 1.04em;
  transition: color 0.14s;
}
.footer-navigation a:hover, .footer-navigation a:focus {
  color: #39d2ff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.96em;
  color: #e7f2fc;
  line-height: 1.45;
  max-width: 260px;
}
.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-logo img {
  height: 44px;
  margin-top: 12px;
  filter: drop-shadow(0 1px 7px #39d2ff33);
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: #053d57;
  color: #fff;
  padding: 28px 16px 23px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: center;
  box-shadow: 0 -8px 30px 0 #39d2ff40;
  animation: banner-slide-in 0.6s cubic-bezier(.32,1.33,.58,1) 1;
}
@keyframes banner-slide-in {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner button {
  margin: 0 5px;
  padding: 11px 22px;
  border-radius: 32px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #39d2ff22;
  transition: background 0.19s, color 0.13s, transform 0.19s;
}
.cookie-banner .accept-cookies {
  background: #39d2ff;
  color: #072131;
}
.cookie-banner .accept-cookies:hover {
  background: #99ff99;
  color: #053d57;
  transform: translateY(-2px);
}
.cookie-banner .reject-cookies {
  background: #fff;
  color: #053d57;
  border: 1px solid #99c24d;
}
.cookie-banner .reject-cookies:hover {
  background: #39d2ff;
  color: #fff;
}
.cookie-banner .cookie-settings {
  background: transparent;
  color: #99c24d;
  border: 1.5px solid #99c24d;
}
.cookie-banner .cookie-settings:hover {
  background: #99c24d;
  color: #053d57;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 200;
  background: rgba(6,13,25,0.90);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #efeefa;
  color: #053d57;
  padding: 38px 24px 30px 24px;
  min-width: 310px;
  max-width: 98vw;
  border-radius: 22px;
  box-shadow: 0 4px 44px 0 #39d2ff60;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  animation: modal-fadein 0.6s cubic-bezier(.24,1.05,.63,1) 1;
}
@keyframes modal-fadein {
  from { transform: scale(0.88) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: #39d2ff;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal label {
  font-size: 1.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #39d2ff;
  transform: scale(1.14);
  margin-right: 7px;
}
.cookie-modal .category-essential {
  opacity: 0.65;
  cursor: not-allowed;
}
.cookie-modal button {
  min-width: 120px;
  padding: 10px 18px;
  font-size: 1rem;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 17px;
  right: 19px;
  background: transparent;
  color: #39d2ff;
  border: none;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .modal-close:hover { color: #053d57; }

/* MOBILE NAVIGATION STYLES */
.mobile-menu {
  position: fixed;
  left: 100vw;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #060d19ee;
  transition: transform 0.33s cubic-bezier(.56,1.4,.4,1);
  z-index: 120;
  display: flex;
  flex-direction: column;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.active {
  pointer-events: auto;
  transform: translateX(-100vw);
}
.mobile-menu:not(.active) {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #39d2ff;
  border: none;
  font-size: 2rem;
  align-self: flex-end;
  margin: 18px 26px 0 0;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 121;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #99ff99;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  margin: 50px 0 0 36px;
}
.mobile-nav a {
  color: #e7f2fc;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 12px 20px;
  border-radius: 14px;
  background: transparent;
  transition: background 0.11s, color 0.15s;
  width: fit-content;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #053d57;
  color: #39d2ff;
}

/* RESPONSIVE STYLES */
@media (max-width: 1024px) {
  header .container, footer .container {
    max-width: 96vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .container {
    max-width: 96vw;
  }
}

@media (max-width: 900px) {
  .feature-grid {
    gap: 17px;
  }
  .content-grid, .card-container {
    gap: 17px;
  }
  footer .container {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  /* Navigation adaptations */
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }

  .container {
    padding: 0 8px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column !important;
    gap: 14px;
  }
  .row, .footer-row {
    flex-direction: column;
    gap: 15px;
  }
  .footer-navigation {
    flex-direction: row;
    gap: 17px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .footer-contact {
    max-width: 100vw;
  }
  .footer-logo img {
    margin-top: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 7px;
    padding: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-modal {
    padding: 19px 4vw 19px 4vw;
  }
}

@media (max-width:480px) {
  h1, .display { font-size: 1.43rem; }
  h2 { font-size: 1.11rem }
  .section {
    padding: 18px 3px;
  }
  .feature-grid > div {
    padding: 18px 7px 14px 7px;
    min-width: 0;
  }
  .cta-primary, .cta-secondary, .cookie-banner button {
    min-width: 110px;
    padding: 10px 10px;
    font-size: 0.98rem;
  }
  .testimonial-card { font-size: 0.94rem; }
}

/* UTILITIES */
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* MICRO-INTERACTIONS, HOVER */
.card, .feature-grid > div, .cta-primary, .cta-secondary, .cookie-banner button {
  will-change: transform, box-shadow;
}
.card:active, .feature-grid > div:active, .cta-primary:active, .cta-secondary:active {
  transform: scale(0.99) translateY(1px);
}

/* SELECTION COLORS */
::selection {
  background: #39d2ff55;
  color: #060d19;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 11px;
  background: #053d5733;
}
::-webkit-scrollbar-thumb {
  background: #053d5747;
  border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover { background: #39d2ff44; }

/* HIDE OUTLINES WHEN USING MOUSE, SHOW ON FOCUS/KEYBOARD */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px dashed #39d2ff;
  outline-offset: 2px;
}