/* ========================================================================
   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%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #20252B;
  color: #F3F6FA;
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
}
ul, ol {
  list-style: none;
  padding-left: 1.5em;
  margin-bottom: 0;
}
ul li, ol li {
  margin-bottom: 8px;
}
a {
  color: #8C52FE;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F3F6FA;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 10px 16px;
}
blockquote {
  margin: 0 0 8px 0;
  font-style: italic;
}
*, *::before, *::after {
  box-sizing: inherit;
}
::-webkit-scrollbar {
  width: 10px;
  background: #232b37;
}
::-webkit-scrollbar-thumb {
  background: #363b44;
  border-radius: 8px;
}

/* ========================================================================
   TYPOGRAPHY & COLORS
=========================================================================== */
:root {
  --primary: #29456D;
  --secondary: #8C52FE;
  --accent: #F3F6FA;
  --bg-dark: #23272E;
  --bg-light: #292E35;
  --surface-card: #232b37;
  --text-main: #F3F6FA;
  --text-light: #CFD9E7;
  --text-secondary: #8C52FE;
  --text-dark: #222831;
  --shadow: 0 6px 28px 0 rgba(30,40,55,.18);
  --border-radius: 18px;
  --border-metal: 2px solid #374151;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-main);
  line-height: 1.15;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  letter-spacing: .02em;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--secondary);
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
p, li, td, th {
  font-family: var(--font-body);
  font-size: 1rem;
}
p {
  margin-bottom: 20px;
  color: var(--text-light);
}
strong {
  color: var(--secondary);
  font-weight: 600;
}

/* Industrial font accent for headlines and nav */
header nav, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close {
  font-family: var(--font-display);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* ========================================================================
   LAYOUT UTILITIES
=========================================================================== */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  background: var(--surface-card);
  border: var(--border-metal);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  color: var(--text-main);
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.21s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 32px 0 rgba(72,70,108,0.23),
              0 1.5px 0 0 var(--secondary) inset;
  transform: translateY(-4px) scale(1.01);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f6f8fb;
  color: var(--text-dark);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(52,54,69,0.12);
  border-left: 4px solid var(--secondary);
  margin-bottom: 24px;
  min-width: 270px;
  max-width: 540px;
  transition: box-shadow 0.18s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 25px 0 rgba(150,134,255,.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* ========================================================================
   HEADER & NAVIGATION
=========================================================================== */
header {
  width: 100%;
  background: #222431;
  border-bottom: 1px solid #363b44;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 6px 0 rgba(32, 35, 43,.08);
}
header nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 20px;
  position: relative;
}
header nav a img {
  height: 44px;
  width: auto;
  margin-right: 14px;
}
header nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
header nav ul li a {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color .16s;
  padding: 8px 4px;
  border-radius: 4px;
}
header nav ul li a:hover, 
header nav ul li a:focus {
  color: var(--secondary);
  background: #2e3541;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 700;
  border: none;
  box-shadow: 0 1px 9px rgba(28,30,44,0.14);
  cursor: pointer;
  transition: background .17s, color .17s, transform 0.15s;
}
.btn-primary {
  color: #fff;
  background: var(--secondary);
  border: 2px solid var(--secondary);
  text-shadow: 0 1px 0 #20252B;
}
.btn-primary:hover, .btn-primary:focus {
  background: #6438af;
  border-color: #6438af;
  color: #F3F6FA;
  transform: translateY(-1.5px) scale(1.035);
}
.btn-secondary {
  color: var(--secondary);
  background: transparent;
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2.2rem;
  margin-left: auto;
  margin-right: 18px;
  padding: 8px 8px;
  border-radius: 8px;
  z-index: 190;
  transition: background 0.13s;
  cursor: pointer;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #30354a;
  color: var(--secondary);
}

/* Mobile nav overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #1F2230E6;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.36,.66,.04,1);
  z-index: 300;
  box-shadow: 2px 0 24px 0 rgba(44,46,74,0.17);
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 2.1rem;
  margin: 18px 10px 18px 22px;
  padding: 6px 8px;
  align-self: flex-end;
  border-radius: 6px;
  cursor: pointer;
  transition: background .11s, color .11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #383b48;
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 20px 38px;
  margin-top: 8px;
  z-index: 305;
}
.mobile-nav a {
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color .13s, background .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
}

/* Hide desktop nav on mobile and vice versa */
@media (max-width: 992px) {
  header nav ul {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ========================================================================
   MAIN & SECTION STRUCTURE
=========================================================================== */
main {
  width: 100%;
  margin: 0 auto;
  background: var(--bg-dark);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
@media (max-width: 768px) {
  section {
    padding: 32px 0 32px 0;
    margin-bottom: 34px;
  }
  .container {
    padding: 0 12px;
  }
}

/* ========================================================================
   LISTS, ICON LISTS, TABLES
=========================================================================== */
ul {
  padding-left: 22px;
}
ul li {
  margin-bottom: 10px;
  line-height: 1.55;
  font-size: 1rem;
  position: relative;
  padding-left: 18px;
  color: var(--text-light);
}
ul li img {
  vertical-align: middle;
  height: 22px;
  width: 22px;
  margin-right: 9px;
  margin-left: -17px;
  position: absolute;
  left: 0;
  top: 1px;
}
table {
  background: var(--surface-card);
  color: var(--text-main);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1.5px 14px 0 rgba(70,72,77,.07);
  margin-top: 10px;
}
th {
  background: var(--bg-light);
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .04em;
}
td {
  border-bottom: 1px solid #374151;
}
tr:last-child td {
  border-bottom: none;
}

/* ========================================================================
   FOOTER
=========================================================================== */
footer {
  background: #212430;
  color: var(--text-light);
  padding: 32px 0 0 0;
  border-top: 1px solid #343749;
  margin-top: 72px;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 4px 0;
  border-radius: 4px;
  transition: color .14s, background .17s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: #413c62;
}
footer .text-section {
  text-align: center;
  padding: 0 6px 20px 6px;
  color: #959bb5;
}

/* ========================================================================
   MICRO-INTERACTIONS AND TRANSITIONS
=========================================================================== */
a, .btn-primary, .btn-secondary, .card, .testimonial-card {
  transition: all 0.19s cubic-bezier(.34,1.56,.64,1);
}

/* Star rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 3px;
}
.star-rating img {
  height: 20px;
}

/* ========================================================================
   RESPONSIVE FLEXBOX ADJUSTMENTS
=========================================================================== */
@media (max-width: 900px) {
  .card-container, .content-grid, .card-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .content-wrapper, .text-section {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
  }
}

/* ========================================================================
   COOKIE CONSENT BANNER & MODAL
=========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #202130ed;
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -2px 18px rgba(35,36,50,0.18);
  color: #F3F6FA;
  z-index: 400;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.35s;
  transform: translateY(0);
  font-family: var(--font-body);
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
}
.cookie-banner p {
  color: #E3E8F6;
  font-size: 1rem;
  text-align: center;
  margin: 0 0 8px 0;
}
.cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  width: 100%;
}
.cookie-btn {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  border: 2px solid var(--secondary);
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  transition: background .2s, color .2s, transform .13s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #6438af;
  color: #fff;
  transform: translateY(-1px) scale(1.03);
}
.cookie-btn.reject {
  background: transparent;
  color: var(--secondary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #1c2238;
  color: #fff;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px dashed var(--secondary);
  color: var(--secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #222d53;
  color: #fff;
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,36,50, 0.94);
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .modal-content {
  background: #232744;
  border-radius: 22px;
  box-shadow: 0 2px 48px rgba(80,78,120,.22);
  padding: 38px 30px;
  min-width: 330px;
  max-width: 95vw;
  color: #ECEFFE;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  border: 2px solid var(--secondary);
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--secondary);
  width: 18px;
  height: 18px;
}
.cookie-category .alwayson {
  color: #59C67A;
  font-weight: 700;
  font-size: .98rem;
  margin-left: 6px;
  letter-spacing: .03em;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 19px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #ECEFFE;
  border-radius: 4px;
  cursor: pointer;
  transition: background .11s, color .11s;
}
.cookie-modal .modal-close:hover,  .cookie-modal .modal-close:focus {
  background: #2f3242;
  color: var(--secondary);
}

@media (max-width: 520px) {
  .cookie-modal .modal-content {
    padding: 22px 6vw;
    min-width: 0;
    max-width: 98vw;
  }
}

/* ========================================================================
   ACCESSIBILITY FOCUS STYLES
=========================================================================== */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2.5px solid #8C52FE;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #33204e33;
  z-index: 10;
}

/* ========================================================================
   INDUSTRIAL MODERN DECORATIVE ACCENTS
=========================================================================== */
.section {
  border-radius: 22px;
  background: #222531;
  box-shadow: 0 2px 20px 2px rgba(52,52,61,.10);
  border: 1.5px solid #232732;
}
@media (max-width: 560px) {
  .section {
    border-radius: 10px;
    padding: 22px 2vw;
  }
}

.card {
  border-left: 4px solid var(--secondary);
  box-shadow: 0 3px 18px rgba(36,38,59,0.21);
}

/* Metallic accent dividers for h2 and h3 */
h2, h3 {
  position: relative;
  padding-left: 10px;
}
h2:before, h3:before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 46%;
  transform: translateY(-45%);
  width: 5px;
  height: 80%;
  border-radius: 3px;
  background: linear-gradient(135deg, #7a889b 0%, #cbd3e1 100%);
  opacity: 0.58;
}

/* Slight metallic gradient for btn-primary border */
.btn-primary {
  border-image: linear-gradient(90deg,#847ebb,#bcb8ff) 1;
  box-shadow: 0 2.5px 14px 0 rgba(80,78,120,0.2);
}

/* ========================================================================
   PRINT OPTIMIZATION
=========================================================================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  body {
    background: #fff;
    color: #222;
  }
}
