/* ======== CSS RESET & NORMALIZE ======== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  height: 100%;
  background: #111923;
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #223E58 0%, #18293d 100%);
  color: #F5F6F8;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  position: relative;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #8EC63F;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #D0FF54;
}
ul, ol {
  list-style: none;
}

/* ======== VARIABLES (use fallbacks for broad compatibility) ======== */
:root {
  --brand-primary: #223E58;
  --brand-secondary: #8EC63F;
  --brand-accent: #F5F6F8;
  --brand-dark: #18293d;
  --neon: #55FFD8;
  --neon-hover: #8CF6FF;
  --bg-gradient: linear-gradient(120deg, #18293d 0%, #223E58 60%, #2F4662 100%);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --shadow-1: 0 2px 20px 0 rgba(34,62,88,0.11);
  --shadow-2: 0 4px 28px 0 rgba(142,198,63,0.07);
}

/* ======== TYPOGRAPHY ======== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: 0.015em;
}
h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.17;
}
h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 14px;
  color: #F5F6F8;
}
p.subheadline {
  font-size: 1.23rem;
  color: #8EC63F;
  margin-bottom: 22px;
}
blockquote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0 0 8px 0;
  color: #223E58;
  font-style: italic;
}

/* ======== CONTAINERS AND LAYOUT ======== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.features-grid,
.card-container,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
}

.card {
  position: relative;
  margin-bottom: 20px;
  border-radius: 18px;
  background: #192A3b;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s, transform 0.22s;
  overflow: hidden;
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 280px;
}
.card:hover {
  box-shadow: 0 0 15px #55FFD8, 0 8px 30px rgba(142,198,63,0.12);
  transform: translateY(-3px) scale(1.025);
  z-index: 2;
}

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

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 22px;
}

.card img {
  margin-bottom: 16px;
}

/* CRITICAL - Flex patterns - already fulfilled above */

/* ======== HEADER & NAVIGATION ======== */
header {
  width: 100%;
  background: var(--bg-gradient);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 7px rgba(20,35,56,0.11);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 8px #8EC63F38);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  color: #FFF;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.17s, color 0.18s;
  position: relative;
}
.main-nav a:not(.logo):hover,
.main-nav a:not(.logo):focus {
  background: #202F4a;
  color: #8EC63F;
}
.main-nav .cta-primary {
  padding: 10px 22px;
  background: linear-gradient(93deg,#8EC63F 60%, #55FFD8 100%);
  color: #223E58;
  font-size: 1.1rem;
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 2px 32px 0 #8EC63F22;
  border: none;
  margin-left: 7px;
  transition: background 0.2s, color 0.22s, box-shadow 0.22s;
}
.main-nav .cta-primary:hover,
.main-nav .cta-primary:focus {
  background: #223E58;
  color: #8EC63F;
  box-shadow: 0 0 18px #55FFD8, 0 6px 15px #8EC63F44;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #8EC63F;
  font-size: 2.1rem;
  cursor: pointer;
  margin-left: 20px;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: #55FFD8;
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: #1b2230f5;
  z-index: 888;
  transition: transform 0.32s cubic-bezier(.4,.5,.27,1), opacity 0.22s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #8EC63F;
  font-size: 2.2rem;
  position: absolute;
  top: 24px;
  right: 38px;
  cursor: pointer;
  z-index: 999;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #55FFD8;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 110px;
  margin-left: 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding: 8px 0px;
  border-radius: 10px;
  width: 100%;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #8EC63F;
  background: #223E58;
}

/* Show burger & hide desktop nav on mobile */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ======== HERO, FEATURES, CARDS ======== */
section {
  background: transparent;
  margin-bottom: 60px;
  padding: 40px 0 32px 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature {
  background: #192A3b;
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  flex: 1 1 200px;
  padding: 26px 22px 22px 22px;
  min-width: 220px;
  max-width: 310px;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1.5px solid transparent;
  transition: box-shadow 0.18s, border 0.2s;
  margin-bottom: 20px;
}
.feature:hover {
  border-color: #8EC63F;
  box-shadow: 0 0 12px #8EC63F99;
}
.feature img {
  width: 38px; height: 38px; margin-bottom: 12px;
  filter: drop-shadow(0 0 8px #55FFD844);
}
.feature h3 {
  color: #8EC63F;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature p {
  margin: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.card {
  background: #223E58;
  border-radius: 20px;
  box-shadow: 0 6px 24px #223E5833;
  color: #F5F6F8;
  padding: 28px 24px;
  transition: box-shadow 0.22s, transform 0.24s;
  margin-bottom: 20px;
}
.card:hover {
  box-shadow: 0 2px 24px #8EC63F55, 0 0 22px #55FFD8aa;
  transform: translateY(-2px) scale(1.03);
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ======== TESTIMONIALS ======== */
.content-wrapper .testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 20px 28px;
  border-radius: 17px;
  background: #f5f6f8;
  color: #223E58;
  box-shadow: 0 2px 32px 0 #223E581c;
  flex: 1 1 320px;
  border-left: 6px solid #8EC63F;
  transition: box-shadow 0.16s, border 0.17s;
  min-width: 260px;
  max-width: 530px;
}
.testimonial-card blockquote {
  color: #223E58;
  line-height: 1.38;
  font-size: 1.14rem;
  font-style: italic;
}
.testimonial-card div {
  color: #223E58;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.testimonial-card:hover {
  border-left-color: #55FFD8;
  box-shadow: 0 0 24px #8EC63F30, 0 2px 16px #55FFD855;
}

/* ======== BUTTONS & CTAs ======== */
.cta-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(90deg, #8EC63F 60%, #55FFD8 100%);
  color: #223E58;
  border-radius: 21px;
  border: none;
  font-size: 1.16rem;
  padding: 14px 38px;
  margin-top: 8px;
  transition: background 0.17s, box-shadow 0.19s, color 0.14s;
  box-shadow: 0 0 12px #8EC63F40, 0 6px 28px #55FFD833;
  cursor: pointer;
  letter-spacing: 0.05em;
  outline: none;
  box-sizing: border-box;
}
.cta-primary:hover, .cta-primary:focus {
  background: #223E58;
  color: #8EC63F;
  box-shadow: 0 0 22px #8EC63F80, 0 4px 12px #55FFD899;
}

button, .button {
  font-family: var(--font-display);
  font-weight: 600;
  border: none;
  background: #223e58;
  color: #8ec63f;
  padding: 11px 26px;
  border-radius: 16px;
  box-shadow: 0 2px 12px #223E5840;
  transition: background 0.17s, color 0.14s;
  cursor: pointer;
  font-size: 1rem;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: #8ec63f;
  color: #223e58;
}

/* ======== FOOTER ======== */
footer {
  width: 100%;
  background: #141d28;
  color: #f5f6f8;
  padding: 40px 0 32px 0;
  border-top: 3px solid #8EC63F11;
  box-shadow: 0 -3px 26px #223E5822;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
}
.footer-logo-social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-logo-social img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 12px #8EC63F28);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 180px;
}
.footer-nav a {
  color: #8EC63F;
  font-family: var(--font-display);
  font-size: 1.06rem;
  padding: 6px 1px;
  border-radius: 6px;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #55FFD8;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 8px;
  vertical-align: middle;
  filter: brightness(1.4) drop-shadow(0 0 6px #8EC63F55);
}
.footer-contact p {
  color: #F5F6F8;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

/* ======== COOKIE CONSENT BANNER & MODAL ======== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #223E58;
  color: #F5F6F8;
  padding: 22px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  z-index: 1111;
  box-shadow: 0 -2px 18px #8EC63F40;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1), opacity 0.19s;
  opacity: 1;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner-content {
  flex: 1 1 380px;
  max-width: 530px;
  color: #F5F6F8;
  font-size: 1rem;
}
.cookie-banner button {
  margin-left: 10px;
  margin-right: 3px;
  font-size: 1rem;
  padding: 9px 23px;
  border-radius: 13px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.18s, color 0.16s;
}
.cookie-banner .accept {
  background: #8EC63F;
  color: #223E58;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: #223E58;
  color: #8EC63F;
}
.cookie-banner .reject {
  background: transparent;
  color: #8EC63F;
  border: 1.5px solid #8EC63F;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #223E58;
  color: #8EC63F;
}
.cookie-banner .settings {
  background: #192A3b;
  color: #55FFD8;
  border: 1.5px solid #55FFD8;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  border-color: #8EC63F;
  color: #8EC63F;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,41,61,0.97);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(.22,.61,.36,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #223E58;
  color: #F5F6F8;
  border-radius: 16px;
  box-shadow: 0 16px 48px #18293ddd;
  padding: 40px 30px 24px 30px;
  min-width: 330px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  font-size: 1rem;
}
.cookie-modal-content h3 {
  color: #8EC63F;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.07rem;
  margin-bottom: 7px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cookie-modal-content .modal-actions {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: flex-end;
}
.cookie-modal-content button {
  padding: 9px 21px;
  font-size: 1rem;
  border-radius: 12px;
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #8EC63F;
  position: absolute;
  top: 17px;
  right: 22px;
  cursor: pointer;
  transition: color 0.16s;
  outline: none;
}
.cookie-modal-close:hover,.cookie-modal-close:focus {
  color: #55FFD8;
}

/* COOKIE TOGGLES */
.cookie-modal-toggle {
  appearance: none;
  outline: none;
  width: 40px;
  height: 23px;
  background: #18293d;
  border-radius: 14px;
  border: 2px solid #8EC63F;
  position: relative;
  transition: background 0.18s;
}
.cookie-modal-toggle:checked {
  background: #8EC63F;
}
.cookie-modal-toggle::before {
  content: '';
  display: block;
  position: absolute;
  width: 19px; height: 19px;
  left: 2px; top: 1px;
  background: #fff;
  border-radius: 11px;
  transition: left 0.18s, background 0.18s;
}
.cookie-modal-toggle:checked::before {
  left: 19px;
  background: #192A3b;
}
.cookie-required-label {
  font-style: italic;
  color: #8EC63F;
  font-size: 0.97rem;
}

/* ======== RESPONSIVE MEDIA QUERIES ======== */
@media (max-width: 1200px) {
  .container {
    max-width: 980px;
  }
  .features-grid, .card-container, .content-grid {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 96vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  .features-grid, .card-container, .content-grid {
    gap: 10px;
  }
  .feature, .card {
    min-width: 170px;
    max-width: 100%;
  }
  .footer-nav {
    min-width: 130px;
  }
}
@media (max-width: 800px) {
  .container {
    max-width: 98vw;
  }
  .footer-logo-social img {
    height: 40px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .container {
    padding-left: 10px; padding-right: 10px;
  }
  .content-wrapper,
  .features-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 16px !important;
  }
  .footer-contact,
  .footer-nav {
    min-width: 90px;
    font-size: 0.97rem;
  }
  .footer-logo-social {
    margin-bottom: 12px;
  }
  /* section paddings */
  .section, section {
    padding: 22px 0 18px 0;
    margin-bottom: 32px;
  }
  .testimonial-card {
    min-width: 0;
    padding: 17px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
}
@media (max-width: 600px) {
  html, body {
    font-size: 15px;
  }
  header .container, .container, .footer {
    padding: 0 8px;
  }
  .footer-contact p {
    font-size: 0.88rem;
  }
  .card, .card-content, .feature {
    padding-left: 11px; padding-right: 11px;
  }
  .footer {
    padding: 18px 0 16px 0;
  }
  .testimonial-card {
    padding: 13px 4px;
    font-size: 0.98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 5px;
    gap: 15px;
  }
  .cookie-banner .cookie-banner-content {
    font-size: 0.97rem;
    max-width: 87vw;
  }
  .cookie-modal-content {
    min-width: 93vw;
    padding: 18px 8px 12px 8px;
  }
}

/* ======== ANIMATIONS & EFFECTS ======== */
.cta-primary, .main-nav .cta-primary, .card, .feature, .testimonial-card, .cookie-banner, .cookie-modal-content, .footer-nav a, .mobile-menu, .cookie-modal-toggle {
  transition: all 0.18s cubic-bezier(.52,.07,.47,1), box-shadow 0.17s cubic-bezier(.51,0,.49,1.01);
}

/* ======== VISUAL EFFECTS & DECORATIVE LINES ======== */
section h2:after, section h1:after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, #8EC63F 60%, #55FFD8 100%);
  margin-top: 8px;
  border-radius: 4px;
}
h3:after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 2px;
  background: #8EC63F;
  border-radius: 2px;
}

/* ======== SCROLLBAR FOR FUTURISTIC LOOK ======== */
::-webkit-scrollbar {
  width: 8px;
  background: #223E58;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(120deg, #8EC63F 40%, #55FFD8 100%);
  border-radius: 7px;
}

/* ======== UTILITY CLASSES (MARGIN / GAP / ALIGN) ======== */
.mb-32 { margin-bottom: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-12 { margin-bottom: 12px !important; }
.gap-24 { gap: 24px !important; }
.gap-16 { gap: 16px !important; }
align-center { align-items: center !important; }

/* ======== MISC ======== */
hr {
  border: none;
  border-top: 2px solid #223E58;
  margin: 24px 0;
}

/* ====== END OF CSS ====== */
