/* =============================
   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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background: #181E2E;
  color: #F2EFE5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  outline: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  box-sizing: border-box;
}
::-webkit-input-placeholder { color: #A1B0B9; }
::-moz-placeholder { color: #A1B0B9; }
:-ms-input-placeholder { color: #A1B0B9; }
::placeholder { color: #A1B0B9; }

/* =============================
   BRAND VARIABLES & ROOT STYLES
============================= */
:root {
  --color-primary: #2B3856;
  --color-secondary: #A1B0B9;
  --color-accent: #F2EFE5;
  --color-background: #181E2E;
  --color-surface: #232D44;
  --color-neon: #1FF5FF;
  --color-focus: #87FFD8;
  --color-danger: #FF267B;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

/* =============================
   LAYOUT CONTAINERS & SPACING
============================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-surface);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(31,245,255,0.06);
  overflow: hidden;
  transition: box-shadow 0.28s cubic-bezier(.4,0,.2,1);
}

.content-grid, .feature-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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #FCFCFA;
  color: #2B3856;
  border-radius: 14px;
  box-shadow: 0 0 24px 0 rgba(31,245,255,0.06), 0 1.5px 6px 0 rgba(43, 56, 86, 0.09);
  position: relative;
  border: 1.5px solid var(--color-secondary);
}
.testimonial-card .stars {
  display: flex;
  gap: 4px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 240px;
  background: var(--color-surface);
  border-radius: 14px;
  padding: 30px 22px 22px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px 0 rgba(31,245,255,0.08);
  border-left: 4px solid var(--color-neon);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feature-item:hover, .feature-item:focus {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 24px 5px rgba(31, 245, 255, 0.14), 0 0 6px var(--color-neon);
  border-left: 4px solid var(--color-focus);
}

/* =============================
   TYPOGRAPHY
============================= */
h1, .display {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.12;
}
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-neon);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
p, li, span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: #F2EFE5;
  line-height: 1.7;
}
.text-section h1, .text-section h2, .text-section h3 { color: #c9c9c9; }
.text-section p, .text-section li, .text-section a, .text-section span { color: #c9c9c9; }
.text-section ul, .text-section ol { padding-left: 24px; list-style: disc; }
.text-section ul li { margin-bottom: 10px; }
a.cta-primary  {color: black;}
strong { font-weight: 600; color: #1FF5FF; }

/* =============================
   HEADER & NAVIGATION
============================= */
header {
  width: 100%;
  background: var(--color-primary);
  padding: 0;
  box-shadow: 0 2px 13px 0 rgba(31,245,255, 0.04);
  position: relative;
  z-index: 15;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.015em;
  color: #F2EFE5;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background .16s, color .22s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-neon);
  color: #c9c9c9;
  box-shadow: 0 1px 8px 0 rgba(31,245,255,0.06);
}
.cta-primary {
  background: var(--color-neon);
  color: #c9c9c9;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 12px;
  margin-left: 12px;
  box-shadow: 0 2px 10px 0 rgba(31,245,255,0.13);
  text-shadow: 0 0 2px #fff6,0 0 2px #1ff5ff33;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
  transition: background .19s,color .19s, box-shadow .19s, border-color .13s;
  cursor: pointer;
  display: inline-block;
  position: relative;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-primary);
  color: var(--color-neon);
  border-color: var(--color-neon);
  box-shadow: 0 0 16px 0 var(--color-neon);
}
.cta-secondary {
  background: none;
  color: var(--color-neon);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 26px;
  margin-top: 10px;
  border: 2px solid var(--color-neon);
  transition: background .19s,color .19s, border-color .19s;
  cursor: pointer;
  display: inline-block;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-neon);
  color: #c9c9c9;
  border-color: var(--color-focus);
}

header .mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-neon);
  cursor: pointer;
  margin-left: 18px;
  z-index: 102;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background .11s;
}
header .mobile-menu-toggle:focus {
  background: #232D44;
}
header .mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,30,41,0.97);
  z-index: 120;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.33s cubic-bezier(.61,-0.18,.48,1.26);
  transform: translateX(-100%);
  padding: 0 0 0 0;
}
header .mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 22px 26px 5px 0;
  font-size: 2.3rem;
  color: var(--color-neon);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  transition: background .13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #2B3856;
}
.mobile-menu nav.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 36px 16px 36px;
  margin-top: 40px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #F2EFE5;
  padding: 14px 0;
  border-bottom: 1px solid #44485f;
  transition: color .18s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-neon);
  font-weight: 500;
}

/* =============================
   HERO & GENERAL SECTION STYLES
============================= */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
section:nth-child(even) {
  background: #232D44;
}
section .container {
  padding: 0;
}
.text-section {
  align-items: flex-start;
  max-width: 800px;
}

/* ============================
   CARDS & FEATURE STYLES
============================ */
.card, .feature-item {
  box-shadow: 0 3px 16px 0 rgba(43,56,86,0.10),0 0 2px var(--color-neon);
}
.card:hover, .card:focus {
  box-shadow: 0 6px 24px 0 var(--color-neon), 0 3px 20px #1ff5ff26;
  z-index: 3;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item img {
  height: 40px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 6px var(--color-neon));
}

.categories-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.categories-filter span {
  color: var(--color-neon);
  font-weight: 500;
  font-size: 1.05rem;
}
.categories-filter a {
  background: var(--color-surface);
  color: var(--color-neon);
  font-family: var(--font-display);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.98rem;
  font-weight: 500;
  transition: background .19s, color .19s;
  margin-right: 2px;
}
.categories-filter a:hover, .categories-filter a:focus {
  background: var(--color-neon);
  color: #c9c9c9;
}

/* ============================
   TESTIMONIALS
============================ */
.testimonial-card {
  background: #FCFCFA;
  color: #2B3856;
  border: 1.5px solid var(--color-secondary);
  border-radius: 14px;
  box-shadow: 0 0 24px 0 rgba(31,245,255,0.06), 0 1.5px 6px 0 rgba(43, 56, 86, 0.09);
}
.testimonial-card p {
  font-size: 1.17rem;
  line-height: 1.6;
  color: #2B3856;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #A1B0B9;
  font-size: 1rem;
}
.testimonial-card .stars img {
  height: 21px;
  width: 21px;
  filter: drop-shadow(0 0 3.5px var(--color-neon));
}

/* ============================
   FOOTER
============================ */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 42px 0 0 0;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 7px 7px;
  border-radius: 6px;
  transition: background .17s, color .18s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-neon);
  color: #c9c9c9;
}
footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1rem;
  color: #A1B0B9;
}
footer .footer-contact img { margin-right: 7px; vertical-align: middle; height: 22px; }
footer p:last-child { color: #A1B0B9; font-size: 0.9em; margin-bottom: 24px; }

/* =============================
   COOKIE CONSENT BANNER/MODAL
============================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #232D44;
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 18px 12px;
  gap: 17px;
  box-shadow: 0 0 36px 0 rgba(31,245,255,0.14);
  z-index: 2001;
  animation: fadeYIn .55s cubic-bezier(.38,1.25,.24, 1.08);
  font-size: 1.05rem;
}
.cookie-banner .cookie-banner-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.cookie-banner .cookie-banner-btns button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 9px 18px;
  border-radius: 9px;
  border: 2px solid #1FF5FF;
  color: #c9c9c9;
  background: var(--color-neon);
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .13s, border-color .11s;
  margin-right: 3px;
}
.cookie-banner .cookie-banner-btns button:last-child {
  background: none;
  color: var(--color-neon);
  border: 2px solid var(--color-neon);
}
.cookie-banner .cookie-banner-btns button:hover, .cookie-banner .cookie-banner-btns button:focus {
  background: var(--color-primary);
  color: var(--color-neon);
}

.cookie-consent-modal {
  position: fixed;
  z-index: 2010;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center; /* vertical center */
  justify-content: center;
  background: rgba(26,28,38,0.96);
  animation: fadeYIn .38s cubic-bezier(.41,1.04,.50,1.17);
}
.cookie-consent-modal .modal-box {
  background: #232D44;
  color: var(--color-neon);
  border-radius: 14px;
  box-shadow: 0 12px 32px 0 #1ff5ff28;
  padding: 36px 24px 32px 24px;
  max-width: 410px;
  width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.06rem;
}
.cookie-consent-modal .modal-box h3 {
  color: var(--color-neon);
  font-family: var(--font-display);
  margin-bottom: 14px;
}
.cookie-consent-modal .modal-box label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  font-family: var(--font-body);
  color: #F2EFE5;
}
.cookie-consent-modal .modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 7px;
}
.cookie-consent-modal .modal-actions button {
  background: var(--color-neon);
  color: #c9c9c9;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-neon);
  cursor: pointer;
  transition: background .19s, color .11s, border-color .13s;
}
.cookie-consent-modal .modal-actions button:last-child {
  background: none;
  color: var(--color-neon);
  border: 2px solid var(--color-neon);
}
.cookie-consent-modal .modal-actions button:hover, .cookie-consent-modal .modal-actions button:focus {
  background: var(--color-primary);
  color: var(--color-neon);
}
.cookie-consent-modal .modal-close {
  position: absolute;
  top: 10px; right: 14px;
  color: var(--color-neon);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  transition: background .11s;
}
.cookie-consent-modal .modal-close:hover, .cookie-consent-modal .modal-close:focus {
  background: #2B3856;
}

/* =============================
   ANIMATIONS
============================= */
@keyframes fadeYIn {
  from { opacity: 0; transform: translateY(45px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
}
@media (max-width: 900px) {
  .content-wrapper, .text-section, .feature-grid, .card-container {
    gap: 18px;
  }
  .feature-item { min-width: 210px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }

  .container { padding: 0 12px; }
  .content-grid, .feature-grid, .card-container, .testimonial-card {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    text-align: left;
  }
  header .container {
    flex-direction: row;
    gap: 12px;
    padding: 14px 10px;
  }
  header nav, .cta-primary {
    display: none; 
  }
  header .mobile-menu-toggle {
    display: flex;
    margin-right: 3px;
  }
}
@media (max-width: 550px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .section,
  section { padding: 32px 5px; margin-bottom: 36px; }
  .feature-item,
  .card {
    padding: 20px 14px 16px 14px;
  }
  .feature-item img {
    height: 28px;
  }
}

/* =============================
   UTILITIES
============================= */
.shadow-neon {
  box-shadow: 0 0 12px 1px var(--color-neon);
}
.hide { display: none !important; }

/* ===== Scrollbars for dark bg ===== */
::-webkit-scrollbar {
  width: 8px;
  background: var(--color-background);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-neon);
}

/* =============================
   CHECKBOX TOGGLE FOR COOKIE MODAL
============================= */
.cookie-toggle {
  appearance: none;
  width: 26px;
  height: 16px;
  background: #C7E9F1;
  border-radius: 10px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-toggle:checked {
  background: var(--color-neon);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  top: 2.5px; left: 3px;
  width: 11px; height: 11px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 7px #2223;
  transition: left 0.17s;
}
.cookie-toggle:checked:before {
  left: 12px;
}

/* =============================
   ACCESSIBILITY: FOCUS STATES
============================= */
:focus-visible {
  outline: 2px solid var(--color-neon);
  outline-offset: 1.5px;
  z-index: 8;
}


/* =============================
   PRINT STYLES (Hide nav,footer) 
============================= */
@media print {
  header, .mobile-menu, footer, .cookie-banner, .cookie-consent-modal { display: none !important; }
  section, .section { margin: 0 !important; padding: 0 !important; }
  .container { max-width: 100vw; padding: 0 !important; }
}
