/* --- CSS RESET & BASE TYPOGRAPHY --- */
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,
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;
}
/* 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;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #151829;
  color: #f1f7fe;
  -webkit-font-smoothing: antialiased;
  /* Tech Futurist: subtlest gradient, fallback solid for best compatibility */
  background: #151829;
}

/* --- BRAND COLORS --- */
:root {
  --color-primary: #234072;
  --color-secondary: #F3CF4A;
  --color-accent: #FFFFFF;
  --color-bg: #151829;
  --color-surface: #21253a;
  --color-shadow: rgba(45, 56, 120, 0.10);
  --color-section: #1c2151;
  --color-link: #F3CF4A;
  --color-link-hover: #ffe36b;
  --color-card: #232852;
  --color-testimonial-bg: #fff;
  --color-testimonial-text: #232852;
}

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.07rem; }
}

p, ul, ol, li, span {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #e6ecfa;
  line-height: 1.7;
}
p.subheadline {
  font-size: 1.25rem;
  color: var(--color-link);
  max-width: 700px;
  margin-bottom: 28px;
}
strong {
  font-weight: 600;
  color: var(--color-secondary);
}
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: none;
}

ul, ol {
  padding-left: 24px;
  margin: 12px 0 22px 0;
}
li {
  margin-bottom: 10px;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.content-wrapper {
  padding: 0 0 0 0;
  max-width: 900px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-section);
  border-radius: 18px;
  box-shadow: 0 4px 28px 0 var(--color-shadow);
  
}
@media (max-width: 800px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    padding: 0 0 0 0;
  }
}

/* --- FLEXBOX LAYOUT PATTERNS --- */
.features-grid, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid { gap: 24px; margin: 24px 0 0 0; }
.card-container { gap: 24px; }
.card-grid { gap: 24px; }
.content-grid {
  gap: 20px;
  justify-content: space-between;
}

@media (max-width: 800px) {
  .features-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

.card {
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 4px 20px 0 var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  min-width: 240px;
  flex: 1 1 230px;
  transition: box-shadow 0.24s, transform 0.24s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 7px 36px 0 rgba(45,56,120,0.15), 0 0 0 2px var(--color-secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-testimonial-bg);
  color: var(--color-testimonial-text);
  border-radius: 14px;
  box-shadow: 0 2px 16px 0 rgba(42,52,100,0.08);
  margin-bottom: 20px;
  flex-direction: row;
}
.testimonial-card p, .testimonial-card span {
  color: var(--color-testimonial-text);
}
.testimonial-card span {
  font-style: italic;
  font-size: 0.98em;
  margin-left: 12px;
}

@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-surface);
  box-shadow: 0 2px 16px 0 rgba(42,52,100,0.07);
  position: relative;
  z-index: 30;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-left: 20px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 7px;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: rgba(243,207,74,0.10);
}
header .cta.primary {
  margin-left: auto;
}

/* Logo */
header img {
  height: 43px;
  width: auto;
  margin-right: 12px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 14px;
  top: 18px;
  font-size: 2.2rem;
  color: var(--color-secondary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 50;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.22s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(243,207,74,0.19);
}
@media (max-width: 1024px) {
  .main-nav, header .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(107deg, #19182f 70%, #2b4161 100%);
  box-shadow: 0 8px 40px 0 rgba(40,44,94,0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-110vw);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 25px 7px 0;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1400;
  padding: 10px 15px;
  border-radius: 5px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(243,207,74,0.18);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: flex-start;
  padding: 24px 34px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid rgba(246,237,161,0.05);
  width: 100%;
  transition: color 0.18s, background 0.18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
  background: rgba(243,207,74,0.13);
}

/* Ensure hamburger always visible above everything */
@media (max-width: 1024px) {
  .mobile-menu, .mobile-menu.active { display: flex; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* --- BUTTONS & CTAs --- */
.cta, .cta.primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 13px 30px;
  margin: 16px 0 0 0;
  border: none;
  border-radius: 28px;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 12px 0 rgba(52,58,89,0.06);
  cursor: pointer;
  outline: none;
  transition: background 0.21s, box-shadow 0.22s, transform 0.22s;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.cta.primary, .cta.primary:visited {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 2px 14px 0 rgba(235,213,42,0.14);
}
.cta:hover, .cta:focus {
  background: #2b70d7;
  color: #fff;
  transform: translateY(-1.5px) scale(1.04);
  box-shadow: 0 5px 24px 0 rgba(59,126,255,0.12);
}
.cta.primary:hover, .cta.primary:focus {
  background: #ffe36b;
  color: #161438;
  box-shadow: 0 6px 26px 0 rgba(243,207,74,0.175);
}

/* --- ICONS & IMAGES INSIDE CARDS/GRIDS --- */
.features-grid li img, .features-grid img, .card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 4px #ffe36b44);
}
.features-grid li, .features-grid > li {
  background: var(--color-card);
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(62,76,192,0.07);
  flex: 1 1 180px;
  padding: 26px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  min-width: 180px;
  transition: transform 0.22s, box-shadow 0.2s;
  position: relative;
}
.features-grid li:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 4px 36px 0 rgba(235,213,42,0.13), 0 0 0 2px var(--color-secondary);
}

/* --- FOOTER --- */
footer {
  background: var(--color-surface);
  margin-top: 51px;
  padding: 38px 0 0 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 24px 0 rgba(29,25,80,0.14);
  color: #e6ecfa;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 0 18px 32px 18px;
}
.footer-logo img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-nav a {
  text-decoration: none;
  color: var(--color-link);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color 0.18s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ffe36b;
  text-decoration: underline;
}
.footer-contact p, .footer-contact a {
  color: #e6ecfa;
  font-size: 0.98rem;
}
.footer-contact a {
  text-decoration: underline;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-logo img { margin-bottom: 0; }
}

/* --- FORM ELEMENTS (if needed) --- */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 13px 15px;
  border: 1.5px solid var(--color-primary);
  border-radius: 10px;
  background: #181b2e;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  transition: border-color 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  outline: none;
}

/* --- COOKIE CONSENT BANNER --- */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-section);
  color: #fff;
  box-shadow: 0 -6px 32px 0 rgba(40,48,98,0.23);
  z-index: 3500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border-radius: 17px 17px 0 0;
  animation: slideInCookie 0.7s cubic-bezier(.77,0,.18,1);
}
@keyframes slideInCookie {
  from { transform: translateY(190%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
  margin: 0 16px 0 0;
  font-size: 1rem;
  color: #fff;
}
#cookie-banner .cookie-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  padding: 9px 22px;
  margin-right: 7px;
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 1px 10px rgba(28,31,80,0.08);
}
#cookie-banner .cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
#cookie-banner .cookie-btn.accept:hover, #cookie-banner .cookie-btn.accept:focus {
  background: #ffe36b;
  color: #19182f;
}
#cookie-banner .cookie-btn.reject {
  background: #191a24;
  color: #fff;
}
#cookie-banner .cookie-btn.reject:hover, #cookie-banner .cookie-btn.reject:focus {
  background: #22243b;
}
#cookie-banner .cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.2px solid var(--color-secondary);
}
#cookie-banner .cookie-btn.settings:hover, #cookie-banner .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

@media (max-width: 650px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 19px 10px;
  }
  #cookie-banner .cookie-btn { margin-right: 0; margin-top: 5px; }
}

/* --- COOKIE MODAL --- */
#cookie-modal-overlay {
  position: fixed;
  left:0; top:0; right:0; bottom:0;
  width:100vw; height:100vh;
  background: rgba(41,43,69,0.75);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.35s;
}
#cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#cookie-modal {
  background: var(--color-card);
  color: #fff;
  border-radius: 16px;
  padding: 36px 30px 28px 30px;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 15px 70px 0 rgba(40,48,98,0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 4100;
  position: relative;
  animation: popIn 0.43s cubic-bezier(.8,.3,0,1.07);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.8) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
#cookie-modal h2 {
  font-size: 1.36rem;
  color: var(--color-secondary);
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 8px;
}
.cookie-toggle {
  appearance: none;
  width: 36px;
  height: 19px;
  background: #22254b;
  border-radius: 20px;
  border: 1px solid #3e447f;
  outline: none;
  position: relative;
  vertical-align: middle;
  transition: background 0.21s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cookie-toggle:checked::before {
  transform: translateX(17px);
}

#cookie-modal .cookie-btn-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

#cookie-modal .cookie-btn {
  padding: 8px 18px;
  font-size: 1rem;
  margin: 0 7px 0 0;
}
#cookie-modal-close {
  position: absolute; right: 18px; top: 16px;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 2px 6px 2px 4px;
  border-radius: 5px;
  transition: background 0.17s;
}
#cookie-modal-close:hover, #cookie-modal-close:focus {
  background: rgba(243,207,74,0.1);
}

@media (max-width: 500px) {
  #cookie-modal { min-width: 0; padding: 19px 7vw 14px 7vw; font-size: 0.98rem; }
  #cookie-modal h2 { font-size: 1.05rem; }
}

/* --- MICRO-INTERACTIONS: LINK + CARD HOVER SHADOWS --- */
.card, .features-grid li { cursor: pointer; }
.card:active, .features-grid li:active { filter: brightness(0.97); }

/* --- VISUAL ACCENTS & SHADOWS --- */
.card, .features-grid li,
.section {
  border: 1.1px solid rgba(243,207,74,0.14);
}

/* --- VISUAL HIERARCHY (SPACING) --- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* --- SPACING: LISTS, HEADLINES, BUTTONS --- */
main > section + section {
  margin-top: 18px;
}

/* --- CUSTOM UTILITIES --- */
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-36 { margin-top: 36px; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/***** RESPONSIVE ADJUSTMENTS *****/
@media (max-width: 650px) {
  h1 { font-size: 1.35rem; padding: 0 0 8px 0; }
  h2 { font-size: 1.06rem; }
  .container { padding: 0 7px; }
  .section, section { padding: 19px 0 12px 0; }
  .card, .features-grid li, .testimonial-card { padding: 15px 11px; min-width: 0; }
  .card, .features-grid li { gap: 7px; }
  .footer-logo img { width: 42px; height: 42px; }
}

/* --- SCROLLBAR STYLING FOR TECH APPEAL --- */
::-webkit-scrollbar {
  width: 10px;
  background: #202245;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(130deg, #234072, #4329b8);
  border-radius: 7px;
}

/* --- ANIMATIONS --- */
.card, .features-grid li, .cta, .cta.primary, .mobile-menu, .mobile-menu-close {
  will-change: transform, box-shadow;
  transition: box-shadow 0.22s, transform 0.22s, background 0.21s;
}

/* --- MISC (accessibility, etc) --- */
:focus {
  outline: 2.5px solid var(--color-secondary);
  outline-offset: 2px;
}
.hidden { display: none !important; }

/* --- SECTIONAL COLORS ACCENTING FUTURISTIC THEME --- */
.section-highlight {
  background: #203568;
  border-radius: 20px;
  padding: 50px 22px;
}

/* --- Fix for no overlapping (added spacing) --- */
.features-grid li:not(:last-child), .testimonial-card:not(:last-child), .card:not(:last-child) {
  margin-bottom: 20px;
}

/* --- END OF CSS --- */
