/* RESET AND 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,main,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; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height:1.6;background:#F6F5F2;color:#23263B;-webkit-font-smoothing:antialiased;font-family:'Georgia', 'Times New Roman', Times, serif;font-size:16px;
}
img { max-width:100%;display:block;border:none; }
a { color: #23263B; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #39A7FF; outline: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font: inherit; border: none; background: none; color: inherit; outline: none;
}

/* BRAND FONTS */
@font-face {
  font-family: 'Orbitron';
  src: local('Orbitron'), url('https://fonts.googleapis.com/css?family=Orbitron:wght@700&display=swap');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
  font-weight: 400;
  font-style: normal;
}

:root {
  --primary: #23263B;
  --secondary: #39A7FF;
  --accent: #FFD600;
  --muted-bg: #F6F5F2;
  --muted: #B2B2B2;
  --heading-font: 'Georgia', 'Times New Roman', Times, serif;
  --display-font: 'Orbitron', 'Georgia', serif;
  --body-font: 'Georgia', 'Times New Roman', Times, serif;
  --body-font-fallback:'Roboto', Arial, sans-serif;
}

/* LAYOUT CONTAINERS */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(35,38,59,.06);
  position: relative;
}

@media (max-width: 768px) {
  .section { padding: 28px 7px; margin-bottom: 36px; }
  .container { padding: 0 7px; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: var(--heading-font);
  line-height:1.18;
  font-weight:700;
  letter-spacing:0.02em;
  margin-bottom:16px;
}
h1 {font-family: var(--display-font); font-size: 2.5rem; margin-top: 0;}
h2 {font-size: 2rem;}
h3 {font-size: 1.5rem;}
h4 {font-size: 1.125rem;}
p, li, a, ul, ol, span, strong, em, div {
  font-family: var(--body-font), var(--body-font-fallback);
}
p, li { font-size: 1rem; color: #23263B; margin-bottom: 0; }
strong { font-weight: 700; }

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.25rem; }
}

/* HEADER */
header {
  background: #FFF;
  border-bottom: 1px solid #ECECEC;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 76px;
}
.logo img { height: 48px; width: auto; margin-right: 14px; }

.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-left: 32px;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--body-font), var(--body-font-fallback);
  color: var(--primary);
  padding: 6px 0;
  position: relative;
  transition: color .18s;
}
.main-nav a:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: -2px; right: 0;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .20s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--secondary);
}
.main-nav a:hover:after, .main-nav a:focus:after {
  transform: scaleX(1);
}

.cta-btn {
  font-size: 1.08rem;
  font-weight: 700;
  font-family: var(--display-font), var(--heading-font);
  background: var(--accent);
  color: #23263B;
  padding: 12px 32px;
  border-radius: 26px;
  box-shadow: 0 3px 16px 0 rgba(35,38,59,.09);
  border:none;
  cursor:pointer;
  display:inline-block;
  margin-left:32px;
  letter-spacing: 0.04em;
  outline: none;
  transition: box-shadow .18s, background .18s, color .18s;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ffe96c;
  color: var(--primary);
  box-shadow: 0 6px 24px 0 rgba(35,38,59,.16);
  text-decoration:none;
}

/* MOBILE HEADER MENU */
.mobile-menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--secondary);
  margin-left: 32px;
  display: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e6f1fa;
  color: var(--accent);
}

@media (max-width: 992px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(35,38,59,0.98);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity .3s cubic-bezier(.4,.2,.3,1), transform .33s cubic-bezier(.44,.32,.18,1);
  display: flex;
  flex-direction: column;
  gap:0;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 28px 0 0;
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border-radius: 8px;
  padding: 7px 10px;
  border:none;
  outline:none;
  transition: background .15s;
  z-index: 11;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--accent);
  background: rgba(255,255,255,.08);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 48px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.25rem;
  font-family: var(--body-font), var(--body-font-fallback);
  font-weight:500;
  padding: 8px 0;
  letter-spacing: 0.03em;
  transition: color .15s, background .14s;
  border-radius: 5px;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
  background: rgba(57,167,255,0.13);
}

@media (min-width:993px) {
  .mobile-menu { display:none!important; }
}

/* MAIN */
main {
  margin: 0 auto; width: 100%;
  display: flex;
  flex-direction: column;
  gap:0;
  min-height: 68vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 5px 24px rgba(35,38,59,.04);
}
@media (max-width: 768px) {
  section { margin-bottom: 34px; padding: 20px 8px; border-radius: 12px; }
}

/* FLEX PATTERNS */
.card-container, .card-grid, .content-grid, .features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 11px rgba(35,38,59,.07);
  padding: 30px 22px;
  min-width:240px;
  transition: box-shadow .2s,transform .14s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.card:hover, .card:focus {
  box-shadow: 0 10px 32px rgba(35,38,59,.14);
  transform: translateY(-5px) scale(1.02);
  z-index:2;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

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

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  background: #F6F5F2;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 rgba(35,38,59,0.08);
  margin-bottom: 20px;
  color: #23263B;
  font-size: 1.08rem;
  position: relative;
  min-width: 220px;
}
.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 7px;
  color: #23263B;
}
.testimonial-card div {
  font-size: 0.98rem;
  font-family: var(--body-font), var(--body-font-fallback);
  font-weight: 500;
  color: #666652;
  margin-left: 11px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 7px rgba(35,38,59,.05);
  padding: 24px 18px;
}

.text-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  font-size:1.08rem;
  color:var(--primary);
  margin-bottom: 12px;
}
.text-section img {
  width:27px;height:27px;vertical-align:middle;margin-right:4px;opacity:.85;
}
@media (max-width:639px){
  .testimonial-card, .feature-item {
    padding: 14px 10px;
    font-size:1rem;
  }
}

/* BUTTONS */
button, .btn {
  font-family: var(--display-font), var(--heading-font);
  font-weight: 700;
  font-size: 1.04rem;
  color: #23263B;
  background: var(--accent);
  border-radius: 24px;
  border: none;
  cursor: pointer;
  padding: .7em 2.2em;
  margin-top: 10px;
  transition: background .17s, box-shadow .13s, color .12s;
  box-shadow: 0 2px 8px rgba(57,167,255,.06);
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: #ffe475;
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(57,167,255,.11);
}

/* LINKS */
a.cta-btn {
  display: inline-block;
}
a {
  transition: color .2s;
}
a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* LISTS */
ul, ol {
  padding-left: 24px;
  margin-bottom: 9px;
}
ul li {
  margin-bottom: 7px;
  position: relative;
  color: #23263B;
  line-height: 1.7;
  font-size: 1rem;
}
ul li::before {
  content: '—';
  color: var(--secondary);
  display: inline-block;
  margin-right: 12px;
  font-weight: bold;
}

/* FOOTER */
footer {
  background: #23263B;
  color: #fff;
  padding: 40px 0 24px 0;
  width: 100%;
  border-top: 1px solid #ececec;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.logo-footer img {
  height: 42px;
  filter: brightness(1.15);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-nav a {
  color: #c7d5ee;
  font-family: var(--body-font), var(--body-font-fallback);
  font-size: 1.01rem; text-decoration: none;
  transition: color .12s;
}
.footer-nav a:hover, .footer-nav a:focus { color: var(--accent); }
.footer-contact {
  font-size: 1em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #D9D7D3;
  margin-top: 9px;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 17px; }
  .logo-footer { margin-bottom: 8px; }
}

/* CARDS STYLE */
.card, .feature-item {
  border: 1.5px solid #ececec;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 2px 15px rgba(35,38,59,.07);
  transition: box-shadow .15s, border-color .13s;
}
.card:hover, .feature-item:hover {
  box-shadow: 0 7px 27px rgba(35,38,59,.13);
  border-color: var(--secondary);
}

/* Animations */
@keyframes fadeInSlideUp {
  0% {opacity:0;transform:translateY(25px);}
  100%{opacity:1;transform:translateY(0);}
}
.section, .card, .testimonial-card, .feature-item {
  animation: fadeInSlideUp .7s cubic-bezier(.342,0.7,.22,1.01);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width:500px){
  h1{font-size:1.13rem;}
  h2{font-size:.96rem;}
  .cta-btn, button, .btn{font-size:.98rem;padding:8px 16px;}
}

@media (max-width: 420px) {
  .main-nav,.footer-nav{gap:8px;}
  .container{padding:0 2px;}
  section{padding:7px 2px;}
}

/* COOKIE BANNER */
#cookie-banner {
  position: fixed;
  left: 0; right:0; bottom:0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -3px 20px 0 rgba(35,38,59,0.15);
  border-top:1.5px solid #ececec;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 21px 12px;
  z-index:4000;
  font-size:1.04rem;
  animation: fadeInSlideUp .6s cubic-bezier(.33,.7,.15,1.01);
}
#cookie-banner p{
  margin-bottom:0;color:var(--primary);max-width:460px;
}
.cookie-btn {
  background: var(--accent);
  color: #1b202e;
  border: none;
  border-radius: 18px;
  margin: 0 7px;
  padding: 10px 23px;
  font-family: var(--display-font), var(--heading-font);
  font-weight: 700;
  font-size: 1.01rem;
  cursor: pointer;
  transition: background .18s, box-shadow .15s, color .13s;
  box-shadow: 0 2px 8px rgba(57,167,255,.06);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #ffe46c;
  color: var(--primary);
}
@media (max-width:670px) {
  #cookie-banner{flex-direction:column;gap:13px;padding:13px 2px;}
}

/* COOKIE MODAL */
#cookie-modal-overlay {
  display: flex;
  align-items: center; justify-content:center;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(35,38,59,0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.4,.69,.36,1.01);
}
#cookie-modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
#cookie-modal {
  background: #fff;
  color: #23263B;
  padding: 34px 36px 23px 36px;
  border-radius: 16px;
  max-width: 390px;
  width: 98vw;
  box-shadow: 0 8px 38px 0 rgba(35,38,59,0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInSlideUp .5s;
}
#cookie-modal h3 {
  font-size: 1.34rem; font-family: var(--display-font), var(--heading-font); margin-bottom:12px;margin-top:0;color:var(--primary);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.04rem;
  margin-bottom: 11px;
}
.cookie-category label {
  font-weight:600;
}
.cookie-toggle {
  width: 45px; height: 26px;
  background: #ececec;
  border-radius: 14px;
  position: relative;
  transition: background .18s;
  cursor: pointer;
}
.cookie-toggle input { display: none; }
.cookie-toggle span {
  display: block;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 2px;
  transition: left .16s cubic-bezier(.4,.7,.36,1.01), background .14s;
  box-shadow: 0 2px 8px rgba(35,38,59,.06);
}
.cookie-toggle input:checked + span {
  left: 21px; background: var(--secondary);
}
.cookie-category.essential .cookie-toggle span {
  background: #bfcbe1;
}
.cookie-category.essential .cookie-toggle { background: #e8eaf4; cursor: not-allowed; }
.cookie-category.essential input { pointer-events: none; }
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 13px;
}
#cookie-modal-close {
  position: absolute; top: 18px; right: 22px;
  font-size: 1.6rem;
  color: #23263B;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  z-index: 2;
  padding: 4px 9px;
  transition: background .13s, color .13s;
}
#cookie-modal-close:hover, #cookie-modal-close:focus { background: #f6f5f2; color:var(--secondary); }

@media (max-width:450px) {
  #cookie-modal { padding: 15px 7px 14px 7px; max-width:95vw; }
}

/* ACCESSIBILITY FOCUS STYLE */
*:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px;}

/* MISC */
::-webkit-scrollbar {
  width: 8px; background: #F0F0F0; border-radius:7px;
}
::-webkit-scrollbar-thumb { background: #e0e7f6; border-radius:7px; }

/* UTILITY GAPS */
.gap-8 { gap: 8px; } .gap-16 { gap:16px; } .gap-24 { gap:24px; } .gap-32 { gap:32px; }
.mt-16 { margin-top:16px; } .mt-32 { margin-top:32px; }

/* ENSURE NO OVERLAP -- spacing for nested items */
section > .container > .content-wrapper > *+* { margin-top: 20px; }
.card+.card, .testimonial-card+.testimonial-card { margin-top: 20px; }

/* ICONS */
.text-section img, ul li img {
  width: 28px; height: 28px; display: inline-block; vertical-align: middle; margin-right: 6px; opacity:.84;
}

/* CUSTOM FORMS (for cookie modal) */
input[type="checkbox"]{ accent-color:var(--secondary);}

/* PRINT CLEANUP */
@media print { header,footer,#cookie-banner,#cookie-modal-overlay,.mobile-menu { display:none !important; }}

