/* ===== CSS RESET AND NORMALIZATION ===== */
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; outline: none; border: none; background: none; }

/* ===== VARIABLES (with fallbacks) ===== */
:root {
  --rc-primary: #274469;
  --rc-secondary: #49AE92;
  --rc-accent: #F3F7FA;
  --rc-dark-bg: #1a2330;
  --rc-neon: #49ffd9;
  --rc-light: #ffffff;
  --rc-line: #243b56;
}

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--rc-light);
  background: var(--rc-dark-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--rc-neon);
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--rc-secondary);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--rc-neon);
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--rc-secondary);
}
p, li, ul {
  color: var(--rc-light);
  font-size: 1rem;
}
strong { color: var(--rc-neon); font-weight: 700; }
small { font-size: 0.9em; color: var(--rc-accent); }

/* ===== GENERAL SECTIONS & SPACING ===== */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.container {
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== TECH FUTURISTIC THEME ===== */
body {
  background: linear-gradient(135deg, #223048 0%, #24405f 100%);
}
section.hero {
  background: linear-gradient(100deg, #202a3b 80%, #274469 100%);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 8px 40px 0 rgba(64,238,205,0.08);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: relative;
  width: 100%;
  background: rgba(29, 42, 62, 0.96);
  border-bottom: 1px solid var(--rc-line);
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 40px;
}
header img {
  height: 44px;
  max-width: 180px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--rc-light);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  text-shadow: 0 0 2px #2fffe4;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--rc-neon);
}
.cta-primary {
  background: var(--rc-neon);
  color: var(--rc-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 12px 32px;
  border-radius: 36px;
  box-shadow: 0 0 16px 1px #43e2c5a3;
  margin-left: 20px;
  transition: background 0.22s, color 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--rc-secondary);
  color: #fff;
  box-shadow: 0 0 36px 4px #2fffe466;
}
.cta-secondary {
  background: none;
  border: 2px solid var(--rc-secondary);
  color: var(--rc-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 24px;
  margin-left: 12px;
  transition: background 0.22s, color 0.2s, border 0.2s;
  cursor: pointer;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--rc-secondary);
  color: #fff;
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-toggle {
  background: var(--rc-primary);
  border-radius: 8px;
  color: var(--rc-neon);
  font-size: 2rem;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  display: none;
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 22;
  transition: background 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--rc-secondary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(120deg, #1a2330 80%, #274469 100%);
  z-index: 1050;
  transform: translateX(100vw);
  transition: transform 0.5s cubic-bezier(.7,.03,.41,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  box-shadow: -8px 0 48px 0 #44ffe7a8;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--rc-neon);
  font-size: 2.2rem;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 18px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--rc-neon);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--rc-line);
  color: var(--rc-light);
}

/* ===== HERO SECTION ===== */
.hero .container {
  min-height: 390px;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.17;
  color: var(--rc-neon);
  letter-spacing: -1.5px;
  filter: drop-shadow(0 2px 36px #29ffe299);
}
.hero p {
  font-size: 1.19rem;
  color: var(--rc-light);
  opacity: 0.97;
  margin-bottom: 8px;
}

/* ===== CARD & FLEX PATTERNS ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #243b56;
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: 0 3px 32px 0 #38ffd86a;
  position: relative;
  transition: box-shadow 0.22s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 7px 64px 0 #28ffe1;
  transform: translateY(-2px) scale(1.021);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* ===== FLEX PATTERNS (MANDATORY) ===== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.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;
  margin-bottom: 24px;
  border-radius: 20px;
  background: #F3F7FA;
  color: #232940;
  box-shadow: 0 4px 40px 0 #51dcd04c;
  flex: 1 0 340px;
  max-width: 650px;
  border: 1.5px solid var(--rc-secondary);
  font-size: 1.07rem;
  transition: box-shadow 0.18s, transform 0.16s;
}
.testimonial-card blockquote {
  color: #232940;
  font-style: italic;
  font-size: 1.13rem;
  font-weight: 500;
}
.testimonial-card strong {
  color: var(--rc-primary);
}
.testimonial-card:hover {
  box-shadow: 0 7px 44px 0 #29ffe14b;
  transform: translateY(-1px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== LISTS and FEATURES ===== */
ul, .content-wrapper ul {
  list-style: none;
  margin-left: 0px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.03rem;
  background: none;
  color: var(--rc-light);
  transition: color 0.2s;
  padding: 0;
}
ul li img {
  width: 32px; height: 32px; margin-right: 4px; filter: drop-shadow(0 0 8px #4cffeda9);
}
ul li strong { color: var(--rc-neon); }
section.features ul li,
section#features ul li,
.benefits ul li {
  background: #223048;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 20px 0 #38ffd846;
  border: .5px solid #2fffe4;
  color: var(--rc-light);
  font-size: 1.04rem;
}

/* ===== BUTTONS & CTAs ===== */
button, .cta-primary, .cta-secondary {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.23s cubic-bezier(.7,.03,.41,1);
}
/* default link colors */
a { transition: color 0.18s; }
a.cta-primary, a.cta-secondary { display: inline-block; margin-top: 0; }

/* ===== CARDS & CASE STUDY ===== */
.case-study {
  background: #223048;
  border-radius: 18px;
  padding: 28px 20px 24px 24px;
  box-shadow: 0 3px 32px 0 #38ffd86a;
  margin: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 5px solid var(--rc-neon);
}
.case-study h3 { color: var(--rc-neon); font-size: 1.23rem; }

/* ===== STATS ===== */
.stats {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-top: 14px;
}
.stats p strong {
  color: var(--rc-neon);
  font-size: 1.47rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.stats p {
  color: var(--rc-accent);
  font-size: 1.1rem;
}

/* ===== MAP & CONTACT ===== */
.map-graphic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: #1e2736;
  padding: 20px 18px;
  border-radius: 12px;
  box-shadow: 0 3px 32px 0 #38ffd846;
  margin-left: 24px;
}
.map-graphic img { width: 80px; height: 80px; }
.map-graphic small { color: var(--rc-neon); }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(90deg, #1a2330 80%, #274469 100%);
  border-top: 1px solid var(--rc-line);
  padding: 46px 0 24px;
}
footer .container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 42px;
  flex-wrap: wrap;
}
footer img {
  height: 40px;
}
footer nav.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--rc-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--rc-neon);
}
footer .text-section {
  color: var(--rc-accent);
  font-size: 1.01rem;
  margin-top: 8px;
}

/* ===== LEGAL PAGES ===== */
section.legal {
  background: linear-gradient(120deg, #223048 84%, #274469 100%);
  border-radius: 24px;
  box-shadow: 0 4px 44px 0 #53ffd95f;
}
section.legal h1 {
  color: var(--rc-neon);
  font-size: 2.1rem;
}
section.legal h2 {
  color: var(--rc-secondary);
  font-size: 1.33rem;
}

/* ===== CONFIRMATION PAGE ===== */
section.confirmation {
  background: linear-gradient(106deg, #232f43 60%, #367f6a 100%);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 2px 44px 0 #51e4ffd2;
}
section.confirmation h1 { color: var(--rc-neon); }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1100px) {
  .container { max-width: 94vw; }
  footer .container { gap: 18px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .stats { gap: 18px; }
  .content-wrapper { gap: 16px; }
  .testimonial-card { max-width: 100%; }
  .case-study { padding: 18px 10px 18px 14px; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  h1, .h1 { font-size: 1.7rem; }
  h2, .h2 { font-size: 1.27rem; }
  header .container { gap: 8px; }
  .main-nav { display: none; }
  .cta-primary { font-size: 1rem; padding: 10px 23px; margin-left: 0; }
  .container { padding: 0 12px; }
  .section, section { padding: 26px 5vw; }
  .card-container, .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section, .stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonial-card, .case-study { max-width: 100%; }
  .map-graphic { margin-left: 0; }
  .mobile-menu-toggle { display: block; }
  .footer-nav { flex-direction: column; gap: 8px; }
  footer .container { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 520px) {
  .container { padding: 0 4vw; }
  .section, section { padding: 16px 2vw; }
  .card, .case-study, .map-graphic, .testimonial-card { padding: 14px 6px; }
  .footer-nav a, .footer .text-section { font-size: 0.98rem; }
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 1230;
  width: 100vw;
  background: rgba(30,43,60,0.99);
  border-top: 3px solid var(--rc-neon);
  padding: 20px 12px 18px 22px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 30px;
  box-shadow: 0 -4px 36px 0 #10ffccb4;
  transition: transform 0.33s cubic-bezier(.76,.1,.42,.96); 
  font-size: 1.04rem;
  color: var(--rc-light);
}
.cookie-banner .cookie-text { flex: 2 1 380px; }
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: flex-end;
}
.cookie-banner button {
  font-size: 1rem;
  border-radius: 22px;
  padding: 9px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: background 0.22s, color 0.13s, border 0.13s;
  margin-right: 4px;
}
.cookie-banner .accept {
  background: var(--rc-neon);
  color: var(--rc-primary);
  border: none;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus { background: var(--rc-secondary); color: #fff; }
.cookie-banner .reject {
  background: #223048;
  border: 1px solid var(--rc-neon);
  color: var(--rc-neon);
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus { background: var(--rc-neon); color: #233544; }
.cookie-banner .settings {
  background: none;
  color: var(--rc-accent);
  border: 1px solid var(--rc-secondary);
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus { background: var(--rc-secondary); color: #fff; }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 8px 4vw 12px 4vw; }
  .cookie-banner .cookie-actions { flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 6px; }
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(24, 31, 44, 0.93);
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadein-popup-bg 0.4s;
}
.cookie-modal.open {
  display: flex;
}
.cookie-modal .modal-content {
  background: #213143;
  border-radius: 18px;
  box-shadow: 0 10px 48px 0 #27ffe0b7;
  padding: 42px 28px 30px 28px;
  min-width: 320px;
  max-width: 97vw;
  color: var(--rc-light);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popup-bounce 0.36s;
}
.cookie-modal h2 { color: var(--rc-neon); font-size: 1.22rem; margin-bottom: 16px; }
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 14px;
  font-size: 1.05rem;
}
.cookie-modal .always { color: var(--rc-secondary); font-weight: 700; }
.cookie-modal .toggle {
  width: 48px; height: 22px;
  background: #253e64;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
  margin-left: 18px;
  transition: background 0.12s;
  flex-shrink: 0;
}
.cookie-modal .toggle.on { background: var(--rc-neon); }
.cookie-modal .toggle .knob {
  position: absolute;
  top: 2px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px 0 #2efffd37;
  transition: left 0.12s;
}
.cookie-modal .toggle.on .knob { left: 27px; }
.cookie-modal .modal-actions {
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}
.cookie-modal .modal-actions button {
  font-size: 1rem;
  border-radius: 20px;
  padding: 8px 19px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-modal .modal-actions .accept { background: var(--rc-neon); color: var(--rc-primary); border: none; }
.cookie-modal .modal-actions .reject { background: none; border: 1px solid var(--rc-secondary); color: var(--rc-secondary); }
.cookie-modal .modal-actions .close { background: none; color: #89daf6; border: none; }
.cookie-modal .modal-actions .accept:hover, .cookie-modal .modal-actions .accept:focus { background: var(--rc-secondary); color: #fff; }
.cookie-modal .modal-actions .reject:hover, .cookie-modal .modal-actions .reject:focus { background: var(--rc-secondary); color: #fff; }
@media (max-width: 540px) {
  .cookie-modal .modal-content { padding: 16px 5vw 13px; min-width: unset; }
}
@keyframes fadein-popup-bg {
  from { background: rgba(24, 31, 44, 0); }
  to   { background: rgba(24, 31, 44, 0.93); }
}
@keyframes popup-bounce {
  0% { opacity: 0; transform: scale(0.84); }
  75% { opacity: 0.88; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

/* ===== MICRO-INTERACTIONS ===== */
.card, .testimonial-card, .case-study, .cta-primary, .cta-secondary, button {
  transition: box-shadow 0.18s cubic-bezier(.7,.03,.41,1), transform 0.1s cubic-bezier(.7,.03,.41,1), background 0.19s, color 0.18s;
}
.cta-primary:active, .cta-secondary:active, button:active { transform: scale(0.97); }
a, button, .cta-primary, .cta-secondary {
  outline: 0;
  box-shadow: none;
}
a:focus-visible, button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid var(--rc-neon);
  outline-offset: 2px;
}
/* decorative neon border hover for links */
.main-nav a, .footer-nav a, .mobile-nav a {
  position: relative;
}
.main-nav a:after, .footer-nav a:after, .mobile-nav a:after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  left: 14%;
  right: 14%;
  bottom: -3px;
  background: var(--rc-neon);
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform 0.17s;
}
.main-nav a:hover:after, .footer-nav a:hover:after, .mobile-nav a:hover:after {
  transform: scaleX(1);
}

/* ======= ADDITIONAL SPACING ======= */
section:not(:last-child) { margin-bottom: 56px; }
.card:not(:last-child), .testimonial-card:not(:last-child), .case-study:not(:last-child) {margin-bottom: 20px;}

/* ===== DISPLAY FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;700&display=swap');

/* ==== Hide scrollbar for mobile menu overlay ==== */
.mobile-menu { overflow-y: auto; }
.mobile-menu::-webkit-scrollbar { display: none; }

