/* ==================== CSS RESET & NORMALIZE ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
  background: #101929;
}

body {
  min-height: 100vh;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  background: linear-gradient(135deg, #101929 0%, #183059 60%, #23243c 100%);
  color: #F4F7FA;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  padding-left: 1.5em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', 'Source Sans Pro', Arial, sans-serif;
  font-weight: 700;
  color: #FFD700;
  line-height: 1.15;
  margin-bottom: 18px;
}

h1 { font-size: 2.75rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p, li, a, span, blockquote {
  font-family: 'Source Sans Pro', Arial, sans-serif;
  color: #F4F7FA;
  font-size: 1.12rem;
  line-height: 1.7;
}

strong, b { color: #FFD700; }

blockquote {
  border-left: 4px solid #00FFE7;
  margin: 0 0 12px 0;
  padding: 8px 0 8px 18px;
  font-style: italic;
  color: #101929;
  background: #F4F7FA;
}

hr {
  border: none;
  border-top: 1px solid #325397;
  margin: 32px 0;
}

/* ==================== BRAND COLORS & EFFECTS ==================== */
:root {
  --ww-primary: #183059;
  --ww-secondary: #FFD700;
  --ww-accent: #F4F7FA;
  --ww-bg-dark: #101929;
  --ww-contrast: #00FFE7;
  --ww-card: #16213c;
  --ww-card-alt: #23243c;
  --ww-error: #ff4466;
}

/* ==================== GENERAL LAYOUT ==================== */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.content-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 24px;
  background: rgba(17,29,47,0.76);
  box-shadow: 0 6px 44px 0 rgba(24,48,89,0.16);
}

/* ==================== HEADER ==================== */
header {
  width: 100%;
  position: relative;
  z-index: 10;
  padding-top: 20px;
  padding-bottom: 14px;
  background: transparent;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 44px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.desktop-nav a {
  color: var(--ww-accent);
  text-decoration: none;
  padding: 8px 6px;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.25s, color 0.2s;
  position: relative;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  color: var(--ww-secondary);
  border-bottom: 2px solid var(--ww-contrast);
  outline: none;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 26px;
  margin-left: 16px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  outline: none;
  box-shadow: 0 0 16px 0 rgba(0,255,231,0.13); 
  transition: background 0.22s, box-shadow 0.24s, transform 0.18s;
  position: relative;
  letter-spacing: 0.02em;
}
.cta-btn.primary {
  background: linear-gradient(90deg, #183059 10%, #003758 90%);
  color: #FFD700;
  border: 2px solid #FFD700;
  text-shadow: 0 0 4px #FFD70066, 0 0 2px #00FFE7bb;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: #FFD700;
  border-color: #00FFE7;
  color: #183059;
  box-shadow: 0 0 10px #FFD70066, 0 0 22px #00FFE755;
  transform: translateY(-2px) scale(1.045);
  outline: none;
}
.cta-btn.secondary {
  background: transparent;
  border: 2px solid #00FFE7;
  color: #00FFE7;
}
.cta-btn.secondary:hover, .cta-btn.secondary:focus {
  background: #00FFE7;
  color: #183059;
  text-shadow: none;
  box-shadow: 0 0 16px #00FFE755, 0 0 8px #FFD70044;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.3rem;
  background: none;
  color: var(--ww-accent);
  border: none;
  cursor: pointer;
  margin-left: 10px;
  z-index: 150;
  transition: color 0.21s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #FFD700;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 370px;
  height: 100vh;
  background: #161928;
  box-shadow: -4px 0 24px #00000066;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.47,1.64,.41,.8);
  z-index: 4000;
  padding: 32px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--ww-accent);
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 14px;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #FFD700;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 12px;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #00FFE7;
  font-family: 'Quicksand', sans-serif;
  text-decoration: none;
  padding: 10px 8px;
  border-radius: 6px;
  transition: background 0.19s, color 0.19s;
  outline: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #00FFE707;
  color: #FFD700;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: linear-gradient(115deg, #183059 78%, #FFD70015 100%);
  border-radius: 0 0 36px 36px;
  padding: 60px 0 48px 0;
  box-shadow: 0 0 54px 0 #183059bb;
  margin-bottom: 35px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 22px;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 44px 0 32px 0;
    border-radius: 0 0 22px 22px;
    margin-bottom: 22px;
  }
  .hero-section .content-wrapper { gap: 14px; }
}

.subheadline {
  color: #00FFE7;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 12px;
  text-shadow: 0 1px 10px #101929;
}

/* ==================== FLEXBOX MANDATORY LAYOUTS ==================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--ww-card);
  border-radius: 16px;
  padding: 26px 20px;
  box-shadow: 0 6px 34px #00FFE71C;
  transition: box-shadow 0.18s, transform 0.16s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 40px #00FFE733, 0 0 14px #FFD7004C;
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F4F7FA;
  border-radius: 20px;
  box-shadow: 0 4px 26px 0 #FFD70044;
  margin-bottom: 24px;
  color: #101929;
  border-left: 5px solid #FFD700;
}
.testimonial-card blockquote {
  font-size: 1.13rem;
  color: #183059;
  background: none;
  border: none;
  margin-bottom: 0;
  padding: 0;
}
.testimonial-meta {
  color: #445180;
  font-size: 1em;
  font-style: italic;
  margin-left: 6px;
}
.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 {
  flex: 1 1 230px;
  min-width: 210px;
  background: var(--ww-card-alt);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 2px 24px #00FFE713;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature img {
  height: 38px;
  margin-bottom: 10px;
}
.feature:hover, .feature:focus {
  box-shadow: 0 16px 32px #FFD70022, 0 0 10px #00FFE748;
  transform: translateY(-3px) scale(1.017);
}

/* Spacing helpers and FAQ/Infoblock styles */
.section:not(:last-child) {
  margin-bottom: 60px;
}
.team-profiles, .timeline-of-inventions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.team-profiles > div, .timeline-of-inventions > div {
  flex: 1 1 200px;
  background: var(--ww-card);
  border-radius: 14px;
  padding: 22px 17px;
  min-width: 180px;
  box-shadow: 0 2px 14px #00ffe722;
  margin-bottom: 20px;
}

/* List/ul formats */
.benefits-list, .fact-list, .recommended-articles, .external-links, .further_reading_links, .inquiry-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}
.benefits-list li, .fact-list li, .inquiry-options li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 10px 0;
}
.benefits-list li img, .fact-list li img, .inquiry-options li img {
  height: 29px;
  width: auto;
}
.recommended-articles li, .external-links li, .further_reading_links li {
  padding: 8px 0;
}

.recommended-articles a, .external-links a, .further_reading_links a {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.17s;
}
.recommended-articles a:hover, .external-links a:hover, .further_reading_links a:hover {
  color: #00FFE7;
  text-decoration: none;
}

/* ==================== INFO/FUN BLOCKS ==================== */
.infographic-data,
.fun_facts,
.expert-tip-snippets,
.interesting-facts {
  background: #00FFE726;
  border-left: 5px solid #FFD700;
  color: #183059;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 18px 0 0 0;
}
.infographic-data strong,
.fun_facts strong,
.expert-tip-snippets strong,
.interesting-facts strong {
  color: #183059;
}

/* ==================== ABOUT/TEAM/VALUES ==================== */
.values-list ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.team-snippet {
  background: #FFD70021;
  color: #183059;
  border-left: 4px solid #FFD700;
  border-radius: 9px;
  padding: 11px 17px;
  margin: 18px 0 14px 0;
}

/* ==================== CONTACT INFO ==================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 18px;
}
.contact-info img {
  height: 22px;
  width: auto;
  margin-right: 6px;
}

.address-block, .opening-hours {
  margin-bottom: 8px;
  color: #FFD700;
}

/* ==================== FAQ & SNIPPETS ==================== */
.faq-snippets ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-snippets strong {
  color: #FFD700;
}

/* ==================== FOOTER ==================== */
footer {
  padding: 35px 0 32px 0;
  background: linear-gradient(90deg, #183059 90%, #FFD70022 130%);
  box-shadow: 0 -6px 22px #10192988;
  border-radius: 24px 24px 0 0;
  margin-top: 80px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 1.02rem;
  color: #FFD700;
}
footer a {
  color: #FFD700;
  transition: color 0.18s;
}
footer a:hover, footer a:focus {
  color: #00FFE7;
}
.footer-credits {
  color: #F4F7FA;
  font-size: 0.98rem;
  text-align: right;
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 6000;
  background: rgba(16,30,52,0.96);
  box-shadow: 0 -3px 28px 0 #10192999;
  color: #F4F7FA;
  padding: 26px 20px 20px 20px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: fadeInUpBanner 0.46s cubic-bezier(.13,.89,.38,1.14);
}
@keyframes fadeInUpBanner {
  0% { opacity: 0; transform: translateY(110px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  font-family: 'Quicksand', Arial, sans-serif;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  font-size: 1.03rem;
  cursor: pointer;
  margin-top: 7px;
  transition: background 0.23s, color 0.19s, box-shadow 0.22s;
}
.cookie-banner .accept {
  background: #FFD700;
  color: #101929;
  box-shadow: 0 2px 16px #ffd70055;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #ffe877;
  box-shadow: 0 2px 22px #FFD700aa;
}
.cookie-banner .reject {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #FFD70033;
}
.cookie-banner .settings {
  background: #00FFE7;
  color: #101929;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #049c88;
  color: #FFD700;
}

/* Cookie settings modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 8000;
  inset: 0;
  background: rgba(17,24,41,0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInBackdrop 0.34s cubic-bezier(.13,.89,.38,1.14);
}
@keyframes fadeInBackdrop {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #101929;
  border-radius: 22px;
  width: 94vw; max-width: 420px;
  padding: 38px 30px 34px 30px;
  box-shadow: 0 8px 56px #00FFE799, 0 0 0 2px #FFD70028;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: slideInModal 0.4s cubic-bezier(.13,.89,.38,1.14);
}
@keyframes slideInModal {
  0% { opacity: 0; transform: translateY(64px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 15px;
  font-size: 1.9rem;
  background: none;
  border: none;
  color: #FFD700;
  cursor: pointer;
  z-index: 10;
  transition: color 0.19s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #00FFE7;
}
.cookie-modal h3 {
  color: #FFD700;
  font-size: 1.45rem;
}
.cookie-cats-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-cats-list label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.08rem;
  color: #F4F7FA;
}
.cookie-cats-list input[type='checkbox'] {
  accent-color: #FFD700;
  width: 22px;
  height: 22px;
}
.cookie-cats-list .always {
  color: #FFD700;
  font-weight: bold;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .feature-grid, .content-grid {
    flex-direction: column;
    gap: 22px;
  }
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .content-wrapper { max-width: 98vw; }
  .section { padding: 30px 8px; }
  footer { padding: 30px 0 25px 0; }
}
@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  .footer-credits { text-align: left; margin-top: 12px; }
  .section { padding: 24px 5px; margin-bottom: 36px; }
  .content-wrapper { gap: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .team-profiles > div, .timeline-of-inventions > div, .feature, .card {
    min-width: 0;
    width: 100%;
    padding: 17px 9px;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 520px) {
  .section { padding: 10px 1px; }
  .cookie-banner { padding: 16px 6px 9px 7px; gap: 8px; }
  .cookie-banner .cookie-btn { font-size: 0.95rem; padding: 7px 10px; }
  .mobile-menu { padding: 34px 7px 20px 13px; }
}

/* ==================== ANIMATIONS & HOVER EFFECTS ==================== */
.cta-btn, .card, .feature {
  will-change: box-shadow, transform;
}
.cta-btn:active, .feature:active, .card:active {
  transform: scale(0.98);
}

/* =========== Z-INDEX SAFEGUARD FOR MENUS/BANNERS/MODALS =========== */
header, .mobile-menu { z-index: 3000; }

/* ==================== MISC TYPOGRAPHY & SPACING ==================== */
.next-steps-info {
  color: #00FFE7;
  margin: 9px 0 7px 0;
  font-size: 1.03rem;
}

/* ==================== LEGAL PAGE LAYOUTS ==================== */
.legal-section {
  background: var(--ww-card-alt);
  border-radius: 24px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 6px 25px #18305925,0 0 1px #FFD70022;
}
.legal-section h1, .legal-section h2 {
  color: #FFD700;
}
.legal-section p, .legal-section li, .legal-section a {
  color: #F4F7FA;
}
.legal-section ul {
  margin-bottom: 18px;
}

/* ==================== ACCESSIBILITY FOCUS STYLES ==================== */
a:focus, button:focus, .cta-btn:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2px solid #00FFE7;
  outline-offset: 2px;
}

/* ==================== SCROLLBAR STYLES ==================== */
body::-webkit-scrollbar {
  width: 12px;
  background: #101929;
}
body::-webkit-scrollbar-thumb {
  background: #183059;
  border-radius: 8px;
}

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