/* ==== 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;
}
html { scroll-behavior: smooth; }
body { 
  line-height: 1.5;
  background: #181B2F;
  color: #E5E1DB;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.03em;
}
*, *::before, *::after { box-sizing: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:focus { outline: 2px solid #AA8746; outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; border: 0; }

:root {
  --primary: #24326B;
  --secondary: #E5E1DB;
  --accent: #AA8746;
  --bg-dark: #181B2F;
  --bg-darker: #151729;
  --card-bg: #21253e;
  --neon: #3bd6e9;
  --radius: 16px;
  --shadow: 0 2px 16px 0 rgba(42,102,204, 0.20), 0 1.5px 4px 0 rgba(170,135,70,0.07);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ==== TYPOGRAPHY ==== */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  color: #fff;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  color: var(--accent);
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #fff;
}
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 12px;
}
p:last-child {
  margin-bottom: 0;
}
.subheadline {
  font-family: var(--font-display);
  color: var(--neon);
  font-size: 1.23rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
strong { color: var(--accent); font-weight: 600; }

/* ==== LAYOUT CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.text-section {
  margin-bottom: 0;
  padding: 0;
  max-width: 850px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px 28px 22px;
  min-width: 260px;
  flex: 1 1 270px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid rgba(59,214,233,0.05);
}
.card:hover {
  box-shadow: 0 2px 32px 0 rgba(59,214,233,0.22), 0 2px 12px rgba(170,135,70,0.10);
  border-color: var(--neon);
  transform: translateY(-2px) scale(1.01);
}

.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: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #222b45;
  border-radius: var(--radius);
  box-shadow: 0 1px 12px 0 rgba(57,128,233,0.11);
  min-width: 230px;
  min-height: 140px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #222b45;
  font-size: 1.08rem;
  text-align: center;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #2d3760;
  font-weight: 600;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 24px 20px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  border-left: 3px solid var(--primary);
  border-right: 3px solid var(--bg-dark);
  position: relative;
}
.feature-grid > div img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px var(--neon));
}
.feature-grid > div:hover {
  border-color: var(--neon);
  box-shadow: 0 2px 24px 0 rgba(59,214,233,0.16), var(--shadow);
  transform: translateY(-2px) scale(1.01);
}

ul, ol {
  margin-top: 10px;
  margin-bottom: 15px;
  padding-left: 25px;
}
li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ==== HERO SECTION ==== */
.hero {
  background: linear-gradient(120deg, #24326B 70%, #282a48 100%);
  border-radius: 0 0 34px 34px;
  box-shadow: 0 4px 40px 0 rgba(59,214,233,0.12);
  margin-bottom: 60px;
  padding: 64px 0 54px 0;
  position: relative;
  z-index: 2;
}
.hero .container, .hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  color: #fff;
}
.hero .subheadline {
  color: var(--neon);
}

/* ==== BUTTONS ==== */
.cta,
button, .button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: calc(var(--radius) / 2);
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 34px;
  margin-top: 15px;
  margin-bottom: 12px;
  box-shadow: 0 0 10px rgba(59,214,233,0.08);
  transition: all 0.18s cubic-bezier(0.36,1.5,0.47,1);
  cursor: pointer;
  text-align: center;
  outline: none;
  position: relative;
}
.cta.primary, .cta.primary:visited {
  background: var(--accent);
  color: #24326B;
  box-shadow: 0 0 20px 0 rgba(170,135,70,0.07);
  border: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--neon);
  color: #24326B;
  box-shadow: 0 0 18px 0 var(--neon);
}
.cta:not(.primary):hover, .cta.primary:active {
  background: #fff;
  color: var(--primary);
  border: 2.5px solid var(--accent);
}
button:focus, .button:focus {
  outline: 2px solid var(--neon);
}

/* ==== NAVIGATION ==== */
header {
  width: 100%;
  background: linear-gradient(90deg, var(--bg-dark) 64%, #232759 100%);
  padding: 0 0 0 0;
  position: relative;
  z-index: 10;
  box-shadow: 0 2px 22px 0 rgba(36,50,107,0.17);
}
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  padding: 18px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.main-nav a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 8px;
  border-radius: 6.5px;
  position: relative;
  transition: background 0.1s, color 0.16s;
  z-index: 3;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--neon);
  color: var(--bg-dark);
}
.main-nav a.cta.primary {
  background: var(--accent);
  color: #24326B;
  margin-left: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.main-nav a.cta.primary:hover {
  background: var(--neon);
  color: #24326B;
}
.main-nav img {
  max-height: 38px;
  margin-right: 20px;
}

/* ==== MOBILE NAV MENU ==== */
.mobile-menu-toggle {
  display: none;
  background: var(--neon);
  border: none;
  font-size: 2rem;
  color: var(--bg-dark);
  border-radius: 9px;
  padding: 5px 17px 3px 17px;
  box-shadow: 0 2px 12px 0 rgba(59,214,233,0.20);
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 32;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(20, 22, 38, 0.96);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.56,.09,.84,.9);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 35px 24px 24px 24px;
  box-shadow: -10px 0 40px rgba(59,214,233,0.08);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--neon);
  position: absolute;
  right: 18px;
  top: 21px;
  z-index: 201;
  transition: color 0.12s;
}
.mobile-menu-close:hover { color: var(--accent); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 38px;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: var(--font-display);
  padding: 13px 0 13px 0;
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid #272A3F;
  transition: background 0.15s, color 0.15s;
  border-radius: 7px;
  touch-action: manipulation;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--neon);
  color: var(--bg-dark);
}

/* ==== FOOTER ==== */
footer {
  background: #1A1E36;
  padding: 56px 0 28px 0;
  margin-top: 56px;
  border-radius: 36px 36px 0 0;
  color: var(--secondary);
  box-shadow: 0 -2px 22px 0 rgba(36,50,107,0.07);
  width: 100%;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  justify-content: center;
}
footer nav a {
  color: var(--neon);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 7px;
  transition: background 0.12s, color 0.13s;
}
footer nav a:hover {
  background: var(--accent);
  color: #1A1E36;
}
.footer-contact {
  font-size: 1rem;
  color: var(--secondary);
  text-align: center;
  margin-top: 7px;
}
.footer-contact p:last-child { margin-bottom: 0; }

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #232759;
  color: #fff;
  z-index: 1070;
  box-shadow: 0 -2px 24px rgba(59,214,233,0.16);
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-radius: 24px 24px 0 0;
  animation: slideInBanner 0.7s cubic-bezier(.82,.03,.55,.94);
}
.cookie-banner__msg {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: #fafcfb;
  font-family: var(--font-body);
}
.cookie-banner__actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .button {
  padding: 11px 26px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #24326B;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(170,135,70,0.11);
  transition: background 0.15s, color 0.13s;
}
.cookie-banner button.accept {
  background: var(--neon);
  color: #232759;
}
.cookie-banner button.reject {
  background: #24326B;
  color: #fff;
  border: 2px solid var(--neon);
}
.cookie-banner button.settings {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.cookie-banner button:focus {
  outline: 2px solid var(--neon);
}
@keyframes slideInBanner {
  from { transform: translateY(100%); opacity: 0.3; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(24,27,47, 0.84);
  z-index: 5001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.25s;
}
.cookie-modal.inactive {
  opacity: 0; pointer-events: none;
}
.cookie-modal__content {
  background: #282a48;
  border-radius: 18px;
  padding: 38px 30px 36px 30px;
  box-shadow: 0 6px 50px 0 rgba(69,207,229,0.15);
  min-width: 340px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}
.cookie-modal__title {
  color: var(--accent);
  font-size: 1.45rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--neon);
  position: absolute;
  right: 16px;
  top: 13px;
  cursor: pointer;
}
.cookie-modal__desc {
  color: #E5E1DB;
  margin-bottom: 8px;
  font-size: 1.09rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  color: #fff;
  font-size: 1.03rem;
  font-family: var(--font-body);
  font-weight: 500;
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--neon);
  width: 20px; height: 20px;
  margin-right: 2px;
}
.cookie-category .always {
  color: var(--neon);
  font-size: 0.9rem;
  font-style: italic;
  margin-left: 3px;
}
.cookie-modal__actions {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}
.cookie-modal__actions button {
  min-width: 125px;
}

/* ==== FORMS ==== */
input, select, textarea {
  background: #232759;
  color: var(--secondary);
  border: 1.4px solid var(--neon);
  border-radius: 7px;
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 12px;
  font-family: var(--font-body);
  transition: border 0.14s;
}
input:focus, select:focus, textarea:focus {
  border: 2px solid var(--accent);
  outline: none;
}

/* ==== LISTS WITH ICONS ==== */
.text-section ul li img, .text-section ol li img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 7px;
  margin-top: -2px;
  filter: drop-shadow(0 0 5px var(--neon));
}

/* ==== TABLES ==== */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 22px 0;
}
th, td {
  border: 1.2px solid var(--primary);
  padding: 12px 18px;
  font-size: 1rem;
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .feature-grid > div, .content-wrapper, .cta {
  transition: box-shadow 0.21s cubic-bezier(.38,.93,.69,.92), transform 0.14s cubic-bezier(.51,.03,.69,.95);
}
.cta:focus, button:focus, .cookie-modal__close:focus, .mobile-menu-close:focus {
  outline: 2.5px solid var(--neon);
  outline-offset: 2.5px;
}

/* ==== SCROLLBAR ==== */
::-webkit-scrollbar {
  background: #181B2F;
  width: 9px;
}
::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 6px;
}

/* ==== UTILITY ==== */
.mt-4 { margin-top: 32px !important; }
.mb-4 { margin-bottom: 32px !important; }
.hide { display: none !important; }


/******************************************
 *           RESPONSIVENESS               *
 ******************************************/
@media (max-width: 1200px) {
  .container { max-width: 98vw; }
}
@media (max-width: 1000px) {
  .container { max-width: 98vw; }
  .main-nav { gap: 15px; }
  .feature-grid { gap: 18px; }
}
@media (max-width: 900px) {
  .content-grid, .feature-grid, .testimonial-grid {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 820px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.4rem; }
  .hero { padding: 44px 0 37px 0; }
  .feature-grid > div, .card {
    padding: 20px 12px;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero, .section {
    padding: 32px 0 28px 0;
  }
  .content-wrapper, .text-section { padding: 0 3px; }
  .content-grid, .feature-grid, .testimonial-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 8px;
  }
  .testimonial-card, .feature-grid > div, .card {
    min-width: 90%;
    padding: 18px 6vw 18px 6vw;
  }
  .cookie-modal__content {
    min-width: 90vw;
    padding: 21px 8vw 21px 8vw;
  }
}
@media (max-width: 520px) {
  h1, .h1 {
    font-size: 1.29rem;
  }
  .feature-grid > div, .card {
    min-width: 95vw;
    padding: 13px 10px;
  }
  footer {
    padding: 32px 2vw 15px 2vw;
  }
  .cookie-banner {
    padding: 15px 4vw;
    font-size: 0.97rem;
    gap: 8px;
  }
}
