/* ------------------------ CSS RESET & BASE -------------------------- */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.5;
  min-height: 100vh;
  background: #11171f;
  color: #f6f9fb;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

*, *:before, *:after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------------------- BRAND COLORS & FONTS ------------------------- */
:root {
  --color-primary: #19335A;
  --color-secondary: #276955;
  --color-accent: #F6F9FB;
  --color-bg-dark: #11171f;
  --color-bg-light: #222c3a;
  --color-brand-neon: #3effea;
  --color-neon-blue: #5c83fa; /* custom futuristic accent */
  --color-white: #ffffff;
  --color-gray: #b9c8e0;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  /* Fallbacks */
  font-family: var(--font-body, Roboto, Arial, sans-serif);
}

body {
  background: linear-gradient(120deg, #182144 0%, #2a3b4d 100%);
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------- TYPOGRAPHY --------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-brand-neon);
  line-height: 1.15;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
h4, h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1.7;
}
p {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
blockquote {
  border-left: 4px solid var(--color-brand-neon);
  background: var(--color-bg-light);
  color: var(--color-accent);
  font-style: italic;
  padding: 16px 28px;
  border-radius: 12px;
  margin-bottom: 18px;
}
strong { color: var(--color-neon-blue); }

.text-section {
  margin-top: 10px;
  margin-bottom: 30px;
  font-size: 1rem;
}

/* ------------------- GLOBAL FLEX LAYOUT CLASSES ------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(27,40,70,0.92);
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(26,255,234,0.06), 0 2px 8px 0 rgba(67,80,255,0.09);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-light);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(26,255,234,0.10), 0 2px 8px 0 rgba(67,80,255,0.12);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-accent);
  color: #222c3a;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 3px 20px rgba(48,255,255,0.08);
  margin-bottom: 20px;
  border-left: 5px solid var(--color-brand-neon);
}
.testimonial-card p {
  color: #222c3a;
  font-size: 1.13rem;
}
.testimonial-card strong { color: var(--color-primary); }
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ----------------------- NAVIGATION & HEADER ---------------------- */
header {
  background: linear-gradient(90deg, #161f38 0%, #1b2950 100%);
  box-shadow: 0 2px 16px rgba(30,255,243,0.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
  padding: 0 20px;
  font-family: var(--font-display);
  justify-content: center;
}
.main-nav a {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.18s, color 0.2s;
  position: relative;
}
.main-nav a.button-primary {
  background: var(--color-brand-neon);
  color: #0f1532;
  font-weight: 700;
  padding: 9px 24px;
  margin-left: 12px;
  border: none;
  box-shadow: 0 2px 16px rgba(50,255,245,0.13);
  border-radius: 8px;
  transition: background 0.19s, color 0.18s,box-shadow 0.22s;
}
.main-nav a.button-primary:hover {
  background: var(--color-neon-blue);
  color: #fff;
  box-shadow: 0 0 8px var(--color-neon-blue),0 3px 36px rgba(25,82,216,0.20);
}
.main-nav a:hover,
.main-nav a:focus {
  background: #212c4e;
  color: var(--color-brand-neon);
}
.main-nav a img {
  height: 40px;
  margin-right: 14px;
  filter: brightness(2);
}

/* Hide mobile burger button on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--color-brand-neon);
  position: absolute;
  top: 16px;
  right: 24px;
  z-index: 120;
  transition: color 0.15s;
  cursor: pointer;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--color-neon-blue); }

/* -------------------- MOBILE DRAWER NAVIGATION --------------------- */
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #151c26;
  box-shadow: 0 0 80px #50ffe9a0;
  z-index: 99999;
  transition: transform 0.33s cubic-bezier(.77,0,.18,1);
  transform: translateX(-100vw);
  padding-top: 24px; /* leave space for close btn */
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: var(--color-brand-neon);
  margin: 0 30px 24px 0;
  cursor: pointer;
  transition: color 0.14s;
  z-index: 1001;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  padding-left: 40px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.13rem;
  padding: 8px 0;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid #24304a44;
  transition: color 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-brand-neon);
}

/* ------------- MAIN, CARDS, CALLS TO ACTION, BUTTONS -------------- */
.button-primary, .main-nav .button-primary {
  background: var(--color-brand-neon);
  color: #0f1532;
  font-family: var(--font-display);
  padding: 11px 32px;
  border-radius: 8px;
  border: none;
  font-size: 1.13rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(67,80,255,0.11);
  box-shadow: 0 2px 10px 0 rgba(67,255,255,0.16);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.19s, box-shadow 0.19s;
}
.button-primary:hover,
.button-primary:focus {
  background: var(--color-neon-blue);
  color: #fff;
  box-shadow: 0 0 4px #5098ff, 0 3px 24px 0 #1effe2b3;
}

a.button-primary:active {
  filter: brightness(0.97);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.blog-list .tag {
  margin-left: 10px;
  padding: 2px 10px;
  font-size: 0.95rem;
  background: var(--color-neon-blue);
  color: #fff;
  border-radius: 11px;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
  margin-top: 2px;
  box-shadow: 0 2px 8px #1e89b7c0;
}

/* --- Footer --- */
footer {
  background: linear-gradient(90deg, #132042 0%, #223754 100%);
  padding: 0;
  font-family: var(--font-body);
  color: var(--color-accent);
  width: 100%;
}
footer section {
  padding: 40px 0 18px 0;
}
footer nav {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--color-brand-neon);
  font-weight: 600;
  font-size: 1.01rem;
  transition: color .16s;
  border-radius: 6px;
  padding: 2px 8px;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--color-neon-blue);
  background: #19335a22;
}
footer address {
  font-style: normal;
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-accent);
}
.brand-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.brand-footer img {
  height: 28px;
  filter: drop-shadow(0 2px 12px #00fff8bb);
}

/* --- Content Section Spacing --- */
main > section,
footer > section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Icon Style in Lists --- */
ul li > img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  filter: drop-shadow(0 0 9px var(--color-brand-neon));
}

/* --- Text links in content --- */
.content-wrapper a:not(.button-primary),
.text-section a:not(.button-primary) {
  color: var(--color-brand-neon);
  text-decoration: underline;
  transition: color 0.16s;
}
.content-wrapper a:not(.button-primary):hover,
.text-section a:not(.button-primary):hover {
  color: var(--color-neon-blue);
}

/* --- Microinteractions / Animations --- */
.button-primary,
.main-nav a.button-primary,
footer nav a,
.mobile-menu-toggle,
.mobile-menu-close {
  transition: background 0.17s, color 0.17s, box-shadow 0.19s, outline 0.16s;
}
.card, .testimonial-card, .section {
  transition: box-shadow 0.25s, border-color 0.19s;
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 4px 36px 0 rgba(62,255,234,0.15);
  border-left-color: var(--color-neon-blue);
}

/* --- Forms (Newsletter etc.) --- */
input[type=text], input[type=email], textarea {
  background: #223754;
  color: var(--color-accent);
  border: 1px solid #395769;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  transition: border-color 0.2s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  outline: none;
  border-color: var(--color-brand-neon);
  background: #1a293a;
}

/* --- Utility --- */
.mt-18 { margin-top: 18px; }
.mb-12 { margin-bottom: 12px; }
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }

/* ---------------------- RESPONSIVE DESIGN ------------------------- */
@media (max-width: 1080px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; font-size: 0.98rem; height: 68px; }
  .section, main > section, footer > section { padding: 32px 10px; }
}
@media (max-width: 820px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.2rem; }
  .testimonial-card { padding: 16px; font-size: 1rem; }
  .content-grid, .card-container { gap: 14px; }
  .section, main > section, footer > section { padding: 24px 5px; }
  .brand-footer img { height: 22px; }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .section, main > section, footer > section { margin-bottom: 42px; padding: 18px 0 18px 0; border-radius: 14px; }
  .content-wrapper { gap: 16px; }
  .card, .testimonial-card { margin-bottom: 14px; border-radius: 12px; }
  .testimonial-card { gap: 10px; padding: 11px 10px; font-size: 0.96rem; }
  .content-grid, .card-container, .features {
    flex-direction: column !important;
    gap: 12px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
  .brand-footer { gap: 7px; }
  .mobile-menu {
    padding-top: 15px;
    font-size: 1.18rem;
    min-height: 100vh;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1.04rem; }
  .container { padding: 0 6px; }
}

/* -------------- COOKIE CONSENT BANNER AND MODAL ------------------ */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #102133;
  color: var(--color-accent);
  border-top: 3px solid var(--color-brand-neon);
  box-shadow: 0 -2px 24px #45ffe90a;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 18px;
  font-size: 0.97rem;
  transition: transform 0.19s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-banner button {
  padding: 6px 19px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.17s, color 0.16s, box-shadow 0.14s;
  outline: none;
}
.cookie-accept {
  background: var(--color-brand-neon);
  color: #002346;
}
.cookie-accept:hover {
  background: var(--color-neon-blue);
  color: #fff;
}
.cookie-reject {
  background: #222c3a;
  color: var(--color-accent);
  border: 2px solid var(--color-brand-neon);
}
.cookie-reject:hover {
  background: #0d1823;
  color: var(--color-neon-blue);
}
.cookie-settings {
  background: #19335A;
  color: var(--color-brand-neon);
  border: 1px solid #3effea;
}
.cookie-settings:hover {
  background: var(--color-neon-blue);
  color: #fff;
}

/* --- Cookie Consent Modal --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,24,35,0.8);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
}
.cookie-modal {
  background: #162142;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(62,255,234,0.18);
  padding: 38px 24px;
  min-width: 330px;
  max-width: 98vw;
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.cookie-modal h3 {
  color: var(--color-brand-neon);
  font-size: 1.18rem;
  margin-bottom: 11px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  margin-bottom: 10px;
}
.cookie-switch {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #344166;
  border-radius: 10px;
  border: 1px solid var(--color-brand-neon);
  position: relative;
  outline: none;
  transition: background 0.14s;
}
.cookie-switch:checked {
  background: var(--color-brand-neon);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-switch:checked:before {
  transform: translateX(16px);
}
.cookie-modal .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-brand-neon);
  cursor: pointer;
}
.cookie-modal-close:focus { outline: 2px solid var(--color-neon-blue); }

/* ---- Miscellaneous ---- */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--color-neon-blue);
  outline-offset: 2px;
}

/* ---- Hide focus outline if not keyboard navigation --- */
:focus:not(:focus-visible) {
  outline: none;
}

/* ---- VISIBILITY HELPERS (for JS to toggle) --- */
.invisible { display: none !important; }
.visible { display: flex !important; }

