/* --- 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 {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #151C28;
  color: #FFFFFF;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  background-color: #1A2233;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #F8D347;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.23; }
h3 { font-size: 1.25rem; margin-bottom: 14px; color: #FFF; line-height: 1.2; }
h4, h5, h6 { font-size: 1.1rem; color: #FFF; }
p, li, span, a, small {
  color: #D7E2F2;
  font-size: 1rem;
  line-height: 1.6;
}
strong { color: #F8D347; font-weight: bold; }
a {
  color: #7AE7FF;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F8D347;
  text-decoration: underline;
}

small {
  color: #A2B3C8;
  font-size: 0.89rem;
}

/* --- GLOBAL CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* --- LAYOUT SECTIONS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #222A3A;
  border-radius: 18px;
  box-shadow: 0 6px 40px rgba(20,40,50,0.16);
}

/* --- HERO --- */
.hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(100deg, #1A2233 60%, #232940 100%);
  padding: 56px 0 52px 0;
  position: relative;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  text-shadow: 0 2px 12px #0E1A29;
  color: #F8D347;
}

/* --- BRAND ELEMENTS --- */
.logo img {
  display: block;
  height: 46px;
  width: auto;
}

/* --- MAIN NAV --- */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-left: 24px;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  color: #D7E2F2;
  font-weight: 600;
  position: relative;
  padding: 4px 2px;
  transition: color 0.18s;
  font-size: 1rem;
}
.main-nav a:hover, .main-nav a:focus {
  color: #F8D347;
  text-shadow: 0 0 6px #FFD90080;
}

/* --- CALL TO ACTION BUTTON --- */
.cta-btn {
  background: #F8D347;
  color: #1A2233;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 11px 32px;
  margin-left: 32px;
  cursor: pointer;
  box-shadow: 0 2px 18px #473d1a20;
  transition: background 0.17s, color 0.15s, box-shadow 0.23s, transform 0.18s;
  outline: none;
  letter-spacing: 0.02em;
  position: relative;
  text-shadow: none;
}
.cta-btn:after {
  content: '';
  display: block;
  position: absolute;
  left: 0;top: 0;width: 100%;height: 100%;
  box-shadow: 0 0 16px 3px #FFEA89AA;
  opacity: 0;
  border-radius: 8px;
  transition: opacity 0.18s;
  pointer-events: none;
  z-index: 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: #FFE76C;
  color: #183071;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 32px #E8FF93B0;
}
.cta-btn:hover:after, .cta-btn:focus:after {
  opacity: 1;
}


/* --- HEADER LAYOUT --- */
header {
  background: #191F2B;
  box-shadow: 0 4px 28px rgba(10,24,40,0.07);
  border-bottom: 2.5px solid #2E3651;
  position: relative;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0 16px;
  min-height: 82px;
}

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #F8D347;
  font-size: 2rem;
  cursor: pointer;
  padding: 5px 13px;
  margin-left: auto;
  z-index: 1200;
  border-radius: 6px;
  transition: background 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #2a313f;
  outline: 2px solid #F8D347;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 320px;
  height: 100vh;
  background: #151C28;
  box-shadow: -2px 0 31px 0 #101A27ec;
  transform: translateX(105%);
  transition: transform 0.37s cubic-bezier(.77,0,.18,1.2);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 40px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F8D347;
  font-size: 2rem;
  align-self: flex-end;
  margin: 22px 23px 18px 0;
  cursor: pointer;
  border-radius: 7px;
  padding: 2px 10px;
  transition: background 0.14s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #232A3C;
  outline: 2px solid #F8D347;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 30px;
  width: 100%;
  margin-top: 12px;
}
.mobile-nav a {
  color: #F8D347;
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 9px 3px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  margin: 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #323442;
  color: #FFFFFF;
}

/* --- BURGER MENU RESPONSIVENESS --- */
@media (max-width: 1020px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* --- FLEXBOX UTILITIES & MANDATORY PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.card {
  background: #232A3C;
  border-radius: 12px;
  box-shadow: 0 2px 14px #17223625;
  padding: 26px 22px 24px 22px;
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  flex: 1 1 285px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px #F8D34760, 0 1.5px 5px #222c3f91;
  transform: translateY(-4px) scale(1.015);
}
.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;
  background: #FFFFFF;
  color: #191F2B;
  border-radius: 16px;
  box-shadow: 0 3px 18px #111C2A18;
  margin-bottom: 20px;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  flex: 1 1 310px;
  max-width: 760px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.testimonial-card p {
  color: #232A3C;
  margin: 0 12px 0 0;
  font-size: 1.07rem;
  flex: 1 1 auto;
}
.testimonial-card span {
  color: #5A5D76;
  font-size: 1rem;
  min-width: 120px;
}
.testimonial-card:hover {
  box-shadow: 0 9px 29px #F8D34770, 0 4px 14px #28364E20;
  transform: scale(1.01) translateY(-1px);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 30px;
  margin-bottom: 8px;
}
.feature-grid > div {
  background: #232A3C;
  border-radius: 12px;
  box-shadow: 0 2px 14px #17223625;
  padding: 24px 22px 22px 22px;
  min-width: 210px;
  flex: 1 1 230px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  gap: 9px;
  transition: box-shadow 0.19s;
}
.feature-grid > div img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 5px #58F8C6C0);
}
.feature-grid > div h3 {
  color: #F8D347;
  font-size: 1.15rem;
  margin-bottom: 7px;
  margin-top: 6px;
}
.feature-grid > div p {
  color: #B5C2D9;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px #F8D34740, 0 2px 5px #57619530;
}

/* --- RANKING HIGHLIGHTS --- */
.ranking-highlights ul {
  margin-bottom: 14px;
}

/* --- REVIEW/NEWS/USER OPINIONS LISTS --- */
.review-list, .news-list, .ranking-list, .user-opinions-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 16px 0 20px 0;
  padding: 0;
}
.review-list li, .news-list li, .ranking-list li, .user-opinions-list li {
  background: #232A3C;
  border-radius: 9px;
  padding: 16px 20px;
  color: #E4EEF8;
  box-shadow: 0 2px 7px #18203322;
  font-size: 1.05rem;
  transition: box-shadow 0.19s, background 0.14s;
}
.review-list li:hover, .news-list li:hover, .ranking-list li:hover, .user-opinions-list li:hover {
  background: #293359;
  box-shadow: 0 6px 18px #F8D34730;
}

.user-opinions-list strong {
  display: block;
  margin-bottom: 7px;
  color: #F8D347;
  font-family: 'Montserrat', sans-serif;
}
.user-opinions-list p {
  color: #D7E2F2;
  font-size: 1.03rem;
}

/* --- ARTICLE/LEGAL DOCUMENTS --- */
article.legal-document {
  background: #222A3A;
  border-radius: 14px;
  box-shadow: 0 2px 15px #141B2920;
  padding: 24px 23px;
  margin-bottom: 18px;
  color: #E4EEF8;
  font-size: 1rem;
}
article.legal-document h3, article.legal-document h2 {
  color: #F8D347;
  margin-bottom: 14px;
}
article.legal-document ul {
  margin: 13px 0 8px 21px;
}
article.legal-document li {
  margin-bottom: 9px;
}

/* --- TEXT SECTION --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section strong {
  color: #F8D347;
  font-family: 'Montserrat', sans-serif;
}

/* --- FOOTER --- */
footer {
  background: #171E2B;
  padding: 44px 0 18px 0;
  font-size: 1rem;
  color: #B5C2D9;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 18px;
}
.footer-nav a {
  color: #F8D347;
  font-size: 1rem;
}
.footer-nav a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-details p {
  color: #B5C2D9;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-details img {
  width: 20px;
  height: 20px;
  filter: brightness(1.4) drop-shadow(0 0 3px #56F8D6CC);
}
.copyright {
  color: #37445C;
  font-size: 0.95rem;
  margin-top: 7px;
}

/* --- NEWSLETTER / FORM --- */
input[type="text"], input[type="email"], textarea {
  border: 2px solid #404D5C;
  background: #1A2233;
  color: #FFFFFF;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 1rem;
  transition: border 0.17s, background 0.16s;
  margin-bottom: 14px;
  box-shadow: none;
  outline: none;
  width: 100%;
  max-width: 400px;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 2px solid #F8D347;
  background: #232A3C;
}

/* --- BUTTONS --- */
button, .btn {
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.14s;
}
button:focus {
  outline: 2px solid #F8D347;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #232a3c;
  color: #E4EEF8;
  margin: 18px 0;
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #232A3C;
}
th { background: #272F44; color: #F8D347; }
tr:last-child td { border-bottom: none; }

/* --- ANIMATION, TRANSITIONS, MICRO-INTERACTIONS --- */
html {
  scroll-behavior: smooth;
}

.card, .feature-grid > div, .testimonial-card, .review-list li, .news-list li {
  transition: box-shadow 0.17s, transform 0.16s;
}
.card:hover, .feature-grid > div:hover {
  transform: translateY(-3px) scale(1.013);
  z-index: 2;
}
.cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.15s, color 0.14s, box-shadow 0.15s, transform 0.14s;
}

/* -- MODAL BACKDROP FOR COOKIE PREFERENCES -- */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 9998;
  top: 0; left: 0;width: 100vw; height: 100vh;
  background: rgba(22,30,45,0.79);
  display: none;
}
.cookie-modal-backdrop.open { display: block; }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3050;
  background: #1A2233;
  color: #F8D347;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 16px 20px 16px;
  font-size: 1rem;
  box-shadow: 0 -7px 23px #101925c0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.29s, transform 0.29s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-content {
  max-width: 600px;
  color: #F8D347;
  margin-right: 22px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  background: #232A3C;
  color: #F8D347;
  border: 2px solid #F8D347;
  border-radius: 8px;
  padding: 7px 18px;
  margin: 0;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}
.cookie-banner button.accept {
  background: #F8D347;
  color: #232A3C;
  border-color: #F8D347;
  font-weight: 700;
}
.cookie-banner button.reject {
  background: #232A3C;
  color: #F8D347;
  font-weight: 600;
  border: 2px solid #F8D347;
}
.cookie-banner button.settings {
  background: #1A2233;
  color: #7AE7FF;
  border: 2px solid #7AE7FF;
  font-weight: 500;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  transform: scale(1.06);
  outline: none;
  background: #222A3A;
  color: #F8D347;
}
.cookie-banner button.accept:hover {
  background: #FFE76C;
  color: #1A2233;
  border-color: #FFE76C;
}

/* --- COOKIE PREFERENCES MODAL --- */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(0.95);
  background: #232A3C;
  color: #F8D347;
  border-radius: 18px;
  box-shadow: 0 10px 44px #191F2Bd0;
  z-index: 9999;
  padding: 40px 30px 28px 30px;
  min-width: 340px;
  max-width: 90vw;
  max-height: 98vh;
  display: none;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalOpen 0.39s cubic-bezier(.37,1.5,.37,1.01);
}
.cookie-modal.open { display: flex; }
@keyframes cookieModalOpen {
  from { opacity: 0; transform: translate(-50%,-50%) scale(0.85); }
  to { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}
.cookie-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.cookie-modal .modal-header h3 {
  color: #F8D347;
  font-size: 1.20rem;
  margin: 0;
}
.cookie-modal .modal-close {
  background: none;
  border: none;
  color: #F8D347;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 6px;
  margin-left: 11px;
  padding: 2px 14px;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 12px 0 9px 0;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #F8D347;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #F8D347;
  width: 21px;
  height: 21px;
  margin-right: 7px;
}
.cookie-modal .essential {
  opacity: 0.7;
  font-style: italic;
  letter-spacing: 0.2px;
}
.cookie-modal .modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal .modal-buttons button {
  background: #232A3C;
  color: #F8D347;
  border: 2px solid #F8D347;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 1rem;
}
.cookie-modal .modal-buttons button.save {
  background: #F8D347;
  color: #232A3C;
  border-color: #F8D347;
  font-weight: 700;
}
.cookie-modal .modal-buttons button.save:hover {
  background: #FFE76C;
  color: #1A2233;
  border-color: #FFE76C;
}

/* --- RESPONSIVE DESIGN (Mobile-first, scaling up) --- */
@media (max-width: 992px) {
  .hero h1 { font-size: 2rem; }
  .feature-grid > div { min-width: 190px; flex-basis: 46%; }
  .card-container, .content-grid { gap: 16px; }
}
@media (max-width: 768px) {
  .hero { padding: 32px 0 32px 0; }
  .container { padding-left: 5px; padding-right: 5px; }
  .footer-nav {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 7px;
  }
  .feature-grid { gap: 18px; }
  .feature-grid > div { min-width: 160px; flex-basis: 100%; }
  .testimonial-card { flex-direction: column; gap: 9px; padding: 18px 12px; }
  .card-container, .content-grid { flex-direction: column; gap: 12px; }
  .section { margin-bottom: 32px; padding: 20px 5px; }
  header .container { min-height: 65px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.27rem; }
  .footer-nav { font-size: 0.97rem; }
  .content-wrapper { gap: 10px; }
  .testimonial-card { font-size: 0.97rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.1rem; }
  .footer-nav { font-size: 0.92rem; }
  .contact-details p, .copyright { font-size: 0.85rem; }
}

/* --- VISUAL NEON & FUTURISTIC DETAILS --- */
.hero {
  border-bottom: 3px solid #58F8C6;
}
.section {
  position: relative;
  isolation: isolate;
}
.section:before {
  content: '';
  position: absolute;
  left: 5%; top: 6%; right: 5%; bottom: 6%;
  border-radius: 21px;
  pointer-events: none;
  border: 2.5px solid #43c9ff2d;
  z-index: 0;
  filter: blur(3.4px);
  opacity: 0.08;
}
.cta-btn, .testimonial-card, .feature-grid > div, .card {
  box-shadow: 0 0 8px 1px #58F8C6A0, 0 6px 14px #181d2541;
}
.cta-btn:hover, .cta-btn:focus {
  box-shadow: 0 0 18px 4px #7AE7FF90, 0 12px 34px #22304334;
}


/* --- CUSTOM NEON BORDER FOR ACTIVE STATES --- */
.cta-btn:active, .card:active, .feature-grid > div:active {
  outline: 2.5px solid #7AE7FF;
}

/* --- ACCESSIBILITY: SELECTION, FOCUS, CONTRAST --- */
::selection {
  background: #F8D347;
  color: #1A2233;
}
:focus-visible {
  outline: 3px solid #7AE7FF;
  outline-offset: 1.4px;
}

/* --- Z-INDEX LAYERS --- */
header { z-index: 1000; }
.mobile-menu { z-index: 3000; }
.cookie-banner { z-index: 3050; }
.cookie-modal { z-index: 9999; }
.cookie-modal-backdrop { z-index: 9998; }

/* --- PRINT SUPPORT --- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #FFF; color: #000; }
}
