/* === CSS RESET AND 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, menu, 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;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F3F6FA;
  color: #25324A;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}

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

/* === COLOR VARIABLES (with fallback) === */
:root {
  --primary: #25324A;
  --secondary: #0B8F9A;
  --accent: #F3F6FA;
  --white: #fff;
  --black: #111820;
  --shadow: rgba(37, 50, 74, 0.12);
  --border-radius: 14px;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
}

/* === GENERAL TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.65;
}
strong, b { font-weight: bold; }

ul, ol {
  margin-bottom: 14px;
  padding-left: 24px;
}
ul li, ol li {
  margin-bottom: 8px;
  position: relative;
  font-size: 1rem;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

.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;
  border-radius: var(--border-radius);
  background: var(--white);
  box-shadow: 0 4px 18px -4px var(--shadow);
  margin-bottom: 20px;
  min-width: 270px;
  flex: 1 1 320px;
  font-size: 1rem;
  color: #232e46;
}
.testimonial-card p {
  margin-bottom: 0;
}
.testimonial-card strong {
  margin-left: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 22px 22px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px -4px var(--shadow);
  background: var(--white);
  min-width: 260px;
  flex: 1 1 260px;
}
.feature-item img {
  width: 38px;
  height: 38px;
  background: var(--secondary);
  border-radius: 8px;
  padding: 7px;
  box-shadow: 0 2px 6px -2px var(--shadow);
}
.feature-item h3 {
  font-weight: 600;
}
.feature-item p {
  font-size: 0.98rem;
  color: #25324a;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

/* === HEADER/NAVIGATION === */
header {
  background: var(--white);
  box-shadow: 0 4px 18px -10px var(--shadow);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1999;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  min-height: 72px;
}
header img[alt="Glossy Mist Analytics"] {
  height: 38px;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.015em;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  min-height: 42px;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 18px -10px var(--shadow);
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin-left: 16px;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
}
.btn-secondary {
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--white);
}

/* === MOBILE MENU (HAMBURGER NAV) === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--secondary);
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 2100;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 2500;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.7,.2,.3,1);
  box-shadow: -8px 0 32px -12px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--primary);
  background: none;
  border: none;
  padding: 18px 28px 6px 14px;
  align-self: flex-end;
  cursor: pointer;
  transition: color var(--transition), background 0.16s;
  border-radius: 8px;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--secondary);
  background: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 12px;
  padding: 24px 32px 0 22px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.16rem;
  color: var(--primary);
  padding: 18px 0 14px 0;
  border-bottom: 1px solid var(--accent);
  width: 100%;
  letter-spacing: 0.02em;
  transition: color var(--transition), background 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--secondary);
  background: var(--accent);
}

/* === HERO SECTIONS & GENERAL SECTIONS === */
main section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: var(--accent);
  border-bottom: 2px solid #e1e9f2;
  display: flex;
  flex-direction: column;
}
main section:last-child { border-bottom: none; }

main .content-wrapper {
  flex-direction: column;
  gap: 18px;
}
.text-section {
  max-width: 750px;
}

/* === CARDS, GRIDS, ICONS, CTAS === */
.card, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.client-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 38px;
  margin-top: 16px;
}
.client-logos img {
  height: 38px;
  opacity: 0.65;
  transition: opacity 0.16s;
}
.client-logos img:hover {
  opacity: 1;
}

.tech-stack-icons {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  flex-wrap: wrap;
}
.tech-stack-icons img {
  height: 34px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px -5px var(--shadow);
  padding: 7px;
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 36px 0 12px 0;
  font-size: 0.98rem;
  margin-top: 40px;
}
footer .container {
  gap: 18px;
  flex-direction: column;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.011em;
  font-size: 1.01rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  color: var(--accent);
  font-size: 0.96rem;
  flex-direction: row;
}
.contact-info img {
  height: 22px;
  margin-right: 7px;
}
.footer-copy {
  color: #b1bbca;
  font-size: 0.97rem;
  margin-top: 10px;
}

/* === GEOMETRIC/STRUCTURED VISUALS === */
section, .feature-item, .testimonial-card, .card, .btn-primary, .btn-secondary {
  border-radius: var(--border-radius);
}
.card, .feature-item {
  border: 2.5px solid #e1e9f2;
  position: relative;
}
.feature-item::before {
  --points: polygon(80% 0,100% 40%,100% 100%,0 100%,0 0);
  content: '';
  display: block;
  position: absolute;
  top: -13px;
  right: 24px;
  width: 26px;
  height: 26px;
  background: var(--secondary);
  opacity: 0.16;
  clip-path: polygon(80% 0,100% 40%,100% 100%,0 100%,0 0);
  z-index: 0;
}
.feature-item {
  z-index: 1;
}

/* === BUTTON STATES === */
.btn-primary, .btn-secondary {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition);
}
.btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
  box-shadow: 0 1px 6px -3px var(--shadow);
}

/* === MICRO-INTERACTIONS === */
a, .btn-primary, .btn-secondary, .main-nav a, .mobile-nav a {
  transition: box-shadow var(--transition), color var(--transition), background var(--transition), border var(--transition);
}
li:before {
  display: inline-block;
  content: '';
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--secondary);
  clip-path: polygon(85% 0,100% 45%,100% 100%,0 100%,0 0);
  border-radius: 2px;
  vertical-align: middle;
}
ul li {
  padding-left: 2px;
}

/* === MODAL/OVERLAY ANIMATION AND Z-INDEX === */
.modal-open {
  overflow: hidden;
}

/* === COOKIE CONSENT BANNER STYLES === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--accent);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  box-shadow: 0 -4px 32px -12px var(--shadow);
  gap: 32px;
  flex-wrap: wrap;
  border-radius: 16px 16px 0 0;
  font-size: 0.97rem;
  animation: slideUpCookie 0.36s cubic-bezier(.46, .21, .04, .98);
}
@keyframes slideUpCookie {
  from { transform: translateY(90px); opacity: 0; }
  to   { opacity: 1; transform: none; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 8px 22px;
  border-radius: 20px;
  font-weight: 600;
  background: var(--secondary);
  color: var(--white);
  border: none;
  margin-left: 0;
  margin-right: 0;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner button.cookie-settings {
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.cookie-banner button.cookie-settings:hover {
  background: var(--secondary);
  color: var(--white);
}

/* === COOKIE CONSENT MODAL === */
.cookie-modal-overlay {
  position: fixed;
  top:0;left:0;right:0;bottom:0;
  background: rgba(25,32,50,0.74);
  z-index: 6100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookieOverlay 0.32s cubic-bezier(.62,0,.04,.98);
}
@keyframes fadeInCookieOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 18px;
  max-width: 370px;
  width: 96vw;
  box-shadow: 0 8px 34px -10px var(--shadow);
  padding: 32px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  z-index: 6110;
  animation: popCookieModal 0.36s cubic-bezier(.62,0,.04,.98);
}
@keyframes popCookieModal {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.23rem;
  margin-bottom: 4px;
  color: var(--secondary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 1.01rem;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #d2dbe6;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.14s;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle:before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--white);
  position: absolute;
  top: 3px; left: 4px;
  border-radius: 50%;
  transition: transform 0.17s;
  box-shadow: 0 2px 6px -2px var(--shadow);
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-modal-actions button {
  padding: 8px 20px;
}
.cookie-modal button.cancel {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid #e1e9f2;
}
.cookie-modal button.cancel:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

/* === RESPONSIVENESS === */
@media (max-width: 1200px) {
  .container {
    max-width: 98vw;
    padding: 0 6vw;
  }
  .feature-grid, .content-grid {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 100vw;
    padding: 0 2vw;
  }
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .client-logos {
    gap: 18px;
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    min-height: 62px;
  }
  .main-nav {
    display: none!important;
  }
  .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
  }
  .content-wrapper.text-section,
  .text-section {
    max-width: 98vw;
  }
  .testimonial-card,
  .feature-item,
  .card {
    min-width: 0;
    width: 100%;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .contact-info {
    flex-direction: column;
    gap: 8px;
  }
  main section {
    padding: 32px 0 22px 0;
  }
  .client-logos img { height: 30px; }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .container {
    max-width: 100vw;
    padding: 0 2vw;
  }
  .btn-primary, .btn-secondary {
    min-height: 38px;
    padding: 0 20px;
    font-size: 0.99rem;
  }
  main section { padding: 22px 0 14px 0; }
  .testimonial-card, .feature-item {
    padding: 14px 10px;
  }
  .mobile-menu {
    padding-top: 0;
  }
  .mobile-nav {
    padding: 10px 14px 0 10px;
  }
}

/* === MISC CLASSES FOR UTILITIES === */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-2 { margin-top: 2px!important; }
.mt-6 { margin-top: 6px!important; }
.mb-8 { margin-bottom: 8px!important; }
.px-2 { padding-left: 2px!important; padding-right: 2px!important; }

/* === ACCESSIBLE FOCUS STATES === */
a:focus, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* === SLIDES/ANIMATION (Testimonial slider placeholder) === */
.testimonial-slider {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 650px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
}

/* === SHADOW & ELEVATION EFFECT === */
.card, .feature-item, .testimonial-card {
  box-shadow: 0 4px 18px -6px var(--shadow);
}

/* === SPECIAL CASES === */
.map-location {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
}
.map-location img {
  height: 48px;
}

/* === PRINT STYLES (Make print-friendly) === */
@media print {
  header, .footer-nav, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none!important; }
  footer { color: #333!important; background: #fff!important; }
  main section { border: none; background: #fff!important; }
}
