/* ==== 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%;
  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;
  background: #fff;
  color: #10213a;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ==== ROOT & BRAND COLORS ==== */
:root {
  --color-primary: #12336C;
  --color-secondary: #29A3A3;
  --color-accent: #F6F7FA;
  --color-text: #10213a;
  --color-bg: #fff;
  --color-footer-bg: #12336C;
  --color-footer-text: #fff;
  --color-contrast: #fff;
  --color-shadow: rgba(46, 60, 94, 0.13);
}

/* ==== TYPOGRAPHY ==== */
h1,h2,h3,h4,h5,h6 {
  color: var(--color-primary);
  font-family: 'Montserrat', 'Arial Black', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.15;
  margin-bottom: 18px;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}

body, p, li, span {
  color: var(--color-text);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
p {
  font-size: 1.05rem;
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
}

/* ==== GENERAL LAYOUT & UTILITIES ==== */
.container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 6px 28px var(--color-shadow);
}

.text-section {
  max-width: 860px;
  margin: 0 auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

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

/* ==== HEADER ==== */
header {
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 3px 14px rgba(27, 40, 67, 0.09);
  z-index: 100;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  min-height: 48px;
  gap: 16px;
}
header img[alt="Cyberscape Analytics"] {
  height: 44px;
  display: block;
}

/* ==== NAVIGATION BAR ==== */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 6px 10px;
  color: var(--color-primary);
  border-radius: 5px;
  transition: background .18s, color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-contrast);
}
.main-nav .cta-btn {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 28px;
  font-size: 1.08rem;
  margin-left: 26px;
  box-shadow: 0 3px 11px 0 rgba(18,51,108,0.14);
  letter-spacing: 0.6px;
  transition: background .18s, box-shadow .18s, transform .13s;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px 0 rgba(41,163,163,0.17);
}

.mobile-menu-toggle {
  background: var(--color-primary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
  transition: background .13s;
  z-index: 120;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ==== MOBILE SLIDE MENU ==== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100vw);
  width: 100vw;
  height: 100vh;
  background: var(--color-accent);
  box-shadow: 6px 0 36px 0 rgba(18,51,108,0.14);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px 24px 20px 22px;
  transition: transform 0.36s cubic-bezier(0.61,0,0.43,1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  color: var(--color-primary);
  background: none;
  align-self: flex-end;
  margin-bottom: 26px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(41,163,163,0.11);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 10px 10px;
  border-radius: 7px;
  transition: background .17s, color .17s;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-contrast);
}

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

/* ==== MAIN HERO, CONTENT ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  width: 100%;
  background: none;
}

/* ==== FLEXBOX DESIGN PATTERNS ==== */
.feature-grid,
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 3px 18px 0 var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px;
  min-width: 270px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin: 0 -10px 0 0;
}
.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;
  padding: 20px 24px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 15px 0 rgba(18,51,108,0.08);
  margin-bottom: 24px;
  border: 2px solid var(--color-accent);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.feature-grid > div, .card-container > div, .content-grid > div {
  flex: 1 1 250px;
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 9px 0 rgba(41,163,163,0.07);
  padding: 28px 20px 24px 20px;
  transition: box-shadow .18s, transform .18s;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid > div:hover,
.card-container > div:hover {
  box-shadow: 0 7px 27px 0 rgba(18,51,108,0.12);
  transform: translateY(-6px) scale(1.04);
}

@media (max-width: 1024px) {
  .feature-grid, .card-container, .content-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 22px;
  }
}

/* ==== CTA BUTTON ==== */
.cta-btn {
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.16rem;
  border-radius: 28px;
  padding: 14px 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  letter-spacing: 1.1px;
  box-shadow: 0 6px 14px 0 rgba(41,163,163,0.17);
  transition: background .17s, box-shadow .18s, transform .14s;
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 9px 22px 0 rgba(18,51,108,0.13);
  transform: translateY(-3px) scale(1.04);
}

/* ==== ICONS ==== */
.feature-grid img, .card img, .footer-contact img, .footer-social img, .footer-nav img,
.content-wrapper img[alt*="icon"], ul img, ol img {
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
  margin-right: 10px;
}

/* ==== TESTIMONIAL CARDS ==== */
.testimonial-card {
  font-size: 1.11rem;
  color: var(--color-primary);
  font-style: italic;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(41,163,163,0.06);
  border-left: 8px solid var(--color-secondary);
  padding: 18px 24px 16px 22px;
  margin-bottom: 20px;
  transition: box-shadow .16s, border-color .15s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 25px 0 rgba(18,51,108,0.10);
  border-left-color: var(--color-primary);
}
.testimonial-card p {
  color: var(--color-text);
  font-style: italic;
  font-size: 1.09rem;
  margin-bottom: 4px;
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 0.98rem;
  font-style: normal;
}
@media (max-width: 520px) {
  .testimonial-card {
    padding: 14px 12px 13px 12px;
    font-size: 1.02rem;
  }
}

/* ==== FOOTER ==== */
footer {
  width: 100%;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 1rem;
}
footer section {
  margin-bottom: 0;
  padding: 24px 0 18px 0;
  background: var(--color-footer-bg);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 38px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-footer-text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color .13s, text-decoration .12s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  text-decoration: underline;
  color: var(--color-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-footer-text);
  font-size: 1rem;
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: underline;
  font-weight: 700;
}
.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 7px;
}
.footer-social img {
  width: 32px;
  height: 32px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  transition: box-shadow .14s, background .11s;
  box-shadow: 0 2px 8px rgba(18,51,108,0.11);
}
.footer-social img:hover {
  background: var(--color-secondary);
  box-shadow: 0 4px 18px 0 rgba(41,163,163,0.13);
}
@media (max-width:900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .footer-social {
    margin-top: 8px;
  }
}

/* ==== LIST & OL/UL RESET ==== */
ul, ol {
  list-style: none;
  margin-left: 0;
  margin-bottom: 10px;
}
ul li, ol li {
  margin-bottom: 11px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.03rem;
  line-height: 1.35;
}
ul li img, ol li img {
  margin-right: 7px;
  width: 24px;
  height: 24px;
}

/* ==== RESPONSIVE HEADING SIZES ==== */
@media (max-width:600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .cta-btn { font-size: 1rem; }
}

/* ==== WHITE PAPER, RESOURCE CARDS ==== */
.feature-grid a {
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
  text-decoration: underline;
  transition: color .14s;
}
.feature-grid a:hover,
.feature-grid a:focus {
  color: var(--color-secondary);
  text-decoration: none;
}

/* ==== CARD CONTAINERS AND SPACING ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 -2px 24px 0 rgba(18,51,108,0.15);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 22px 18px 22px 24px;
  transition: transform 0.38s cubic-bezier(.81,-0.03,.16,1.12);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  border-top: 3px solid var(--color-secondary);
}
.cookie-banner.hide {
  transform: translateY(180px);
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 0;
  margin-right: 18px;
  max-width: 700px;
  font-size: 1.03rem;
}
.cookie-banner__buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  min-width: 120px;
  padding: 10px 22px;
  border-radius: 23px;
  font-size: 1.04rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 0;
  border: none;
  cursor: pointer;
  transition: background .17s, color .15s, transform .12s;
  box-shadow: 0 3px 13px 0 rgba(41,163,163,0.08);
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-btn.reject {
  background: #e5e7eb;
  color: #373f56;
  border: 1px solid #c1c3c7;
}
.cookie-btn:hover, .cookie-btn:focus {
  transform: translateY(-2px) scale(1.04);
  background: var(--color-primary);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
.cookie-btn.reject:hover {
  background: #b2bacb;
  color: #fff;
}
@media (max-width: 680px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 16px 10px 18px 10px;
  }
  .cookie-banner__buttons {
    flex-direction: row;
    gap: 9px;
  }
}

/* ==== COOKIE MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18,51,108,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  transition: opacity .36s;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fff;
  padding: 38px 32px 28px 32px;
  border-radius: 22px;
  width: 95%;
  max-width: 430px;
  box-shadow: 0 7px 38px 0 rgba(8,32,56,0.22);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
}
.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.3rem;
  background: none;
  color: var(--color-secondary);
  border: none;
  cursor: pointer;
  transition: color .13s;
}
.cookie-modal__close:focus, .cookie-modal__close:hover {
  color: var(--color-primary);
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 1.04rem;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-secondary);
  margin-right: 7px;
  margin-top: 1px;
}
.cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.cookie-modal__footer {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
@media (max-width:500px) {
  .cookie-modal__content {
    width: 99vw;
    padding: 16px 7px;
    gap: 17px;
    border-radius: 13px;
  }
}

/* ==== MICRO-INTERACTIONS & ANIMATIONS ==== */
.cta-btn, .card, .feature-grid > div, .mobile-menu, .cookie-banner, .cookie-modal__content {
  transition: box-shadow .18s, background .17s, color .14s, transform .11s;
}

/* ==== SCROLLBAR FOR MODERN LOOK ==== */
body::-webkit-scrollbar {
  width: 8px;
  background: var(--color-accent);
}
body::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 9px;
}

/* ==== ACCESSIBILITY ==== */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* ==== MISC ==== */
a {
  transition: color .14s;
}
a:hover, a:focus {
  color: var(--color-secondary);
}

/* ==== OVERRIDE SECTION SPACING JUST IN CASE ==== */
section {
  margin-bottom: 60px !important;
  padding-top: 40px;
  padding-bottom: 40px;
}
@media (max-width: 768px) {
  section {
    margin-bottom: 36px !important;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

/* ==== MOBILE FLEX COLUMN ON MAIN SECTIONS ==== */
@media (max-width: 768px) {
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

/* ==== END OF CSS ==== */