/* ============================================
   PRODUCTION CSS FOR QL SECURITY
   All layout and component styles
   Note: Prose colors now defined in theme.css using CSS variables
   ============================================ */

/* ============================================
   GLOBAL PROSE STRUCTURE (Layout only - colors in theme.css)
   ============================================ */

.prose h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  padding-left: 0.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose ul li::marker,
.prose ol li::marker {
  color: var(--ql-cyan);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose strong,
.prose b {
  font-weight: 600;
}

.prose em,
.prose i {
  font-style: italic;
}

.prose code {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Monaco', 'Courier New', monospace;
}

.prose pre {
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: none;
  padding: 0;
}

.prose blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  font-style: italic;
  margin: 1.5rem 0;
}

.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.prose th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.prose td {
  padding: 0.75rem;
}

.prose img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

.prose .not-prose img {
  border-radius: 0;
  margin: 0;
  max-width: none;
  height: auto;
}

.prose hr {
  border: none;
  margin: 2rem 0;
}

.prose-lg p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.prose-lg li {
  margin-bottom: 0.75rem;
}


.landing-template .feature-section {
  scroll-margin-top: 6rem;
}

.post-template .prose h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
}

.post-template .prose blockquote {
  font-size: 1.125rem;
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.post-content-card {
  background-color: var(--color-slate-30);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-accent-10);
}

[data-theme="light"] .post-content-card {
  background-color: var(--color-white-80);
  border-color: var(--color-accent-20);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 0.5rem;
  color: var(--color-input-text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder {
  color: var(--color-text-tertiary);
  opacity: 0.6;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-input-focus);
  background: var(--color-input-bg);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 0.5rem;
  color: var(--color-input-text);
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-textarea::placeholder {
  color: var(--color-text-tertiary);
  opacity: 0.6;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-input-focus);
  background: var(--color-input-bg);
}


@keyframes ticker-scroll {
  0% { 
    transform: translateX(0); 
  }
  100% { 
    transform: translateX(-50%); 
  }
}

.ticker-track {
  width: max-content;
  animation: ticker-scroll var(--ticker-speed, 30s) linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}


.gradient-text {
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-light), var(--ql-blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg-blue {
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-light), var(--color-accent-hover));
}

.gradient-bg-blue-reverse {
  background: linear-gradient(to right, var(--color-accent-dark), var(--color-accent), var(--color-accent-light));
}


@media (max-width: 768px) {
  .prose h1 {
    font-size: 2rem;
  }
  
  .prose h2 {
    font-size: 1.5rem;
  }
  
  .prose h3 {
    font-size: 1.25rem;
  }
}

.standards-badge {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  cursor: default;
  transition: transform 0.3s ease;
  user-select: none;
}

.standards-badge:hover {
  transform: scale(1.1);
}

.dark .standards-badge {
  color: var(--color-text-tertiary);
}

.dark .standards-badge:hover {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .standards-badge {
    transition: none;
  }
}


@media print {
  .prose a {
    text-decoration: none;
    color: var(--color-text-primary);
  }
  
  .prose a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}


.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-black-75);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-content {
  position: relative;
  background-color: var(--color-card-bg);
  box-shadow: 0 20px 60px var(--color-black-30);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: var(--color-button-secondary-bg);
  border: none;
  border-radius: 0.5rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--color-button-secondary-hover);
  transform: scale(1.1);
}

.modal-close-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .modal-container {
    max-height: 100vh;
  }
  
  .modal-content {
    border-radius: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-container,
  .modal-close-btn {
    transition: none;
  }
}

.form-status {
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-status.success {
  background: var(--color-success-10);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.form-status.error {
  background: var(--color-error-10);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.form-status.warning {
  background: var(--color-warning-10);
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
}

.form-status.info {
  background: var(--color-info-10);
  border: 1px solid var(--color-info);
  color: var(--color-info);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.form-input.success,
.form-textarea.success {
  border-color: var(--color-success);
}

.contact-submit-btn {
  background: linear-gradient(to right, var(--color-accent-dark), var(--color-accent), var(--color-accent-light));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 var(--color-accent-4);
  color: var(--color-white-100);
}

.contact-submit-btn:hover {
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-light), var(--ql-cyan));
  transform: scale(1.05);
  box-shadow: 0 6px 20px 0 var(--color-accent-5);
  color: var(--color-white-100);
}

.contact-submit-btn:active {
  transform: scale(0.95);
}

button[type="submit"].loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

button[type="submit"].loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-loading-spinner 0.6s linear infinite;
  color: var(--color-white-100);
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

select.form-input {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%232C64B9" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--color-accent);
}
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
  box-shadow: 0 0 30px var(--color-accent-20);
  transition: all 0.3s ease;
}

.modern-header nav a,
.modern-header > div > div:first-child > a > span {
  opacity: 0.9;
}

[data-theme="light"] .modern-header nav a {
  opacity: 0.9;
}

[data-theme="light"] .modern-header > div > div:first-child > a > span {
  opacity: 0.9;
}

.modern-header button,
.modern-header button *,
.modern-header .modern-header-cta,
.modern-header .modern-header-cta *,
.modern-header .modern-header-contact-icon,
.modern-header .modern-header-contact-icon *,
.modern-header .modern-header-logo-icon,
.modern-header .modern-header-logo-icon *,
.modern-header svg:not(nav svg),
.modern-header .modern-header-logo-container {
  opacity: 1;
}

[data-theme="light"] .modern-header button,
[data-theme="light"] .modern-header button *,
[data-theme="light"] .modern-header .modern-header-cta,
[data-theme="light"] .modern-header .modern-header-cta *,
[data-theme="light"] .modern-header .modern-header-contact-icon,
[data-theme="light"] .modern-header .modern-header-contact-icon *,
[data-theme="light"] .modern-header .modern-header-logo-icon,
[data-theme="light"] .modern-header .modern-header-logo-icon *,
[data-theme="light"] .modern-header svg:not(nav svg),
[data-theme="light"] .modern-header .modern-header-logo-container {
  opacity: 1;
}

[data-theme="dark"] .modern-header {
  background: linear-gradient(135deg,
    var(--color-black-425) 0%,
    var(--color-slate-45) 25%,
    var(--color-black-425) 50%,
    var(--color-slate-45) 75%,
    var(--color-black-425) 100%
  );
  background-size: 200% 200%;
  animation: header-gradient-shift-dark 10s ease infinite;
  border-bottom: 1px solid var(--color-accent-3);
  box-shadow: 0 0 30px var(--color-accent-20);
}

@keyframes header-gradient-shift-dark {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

[data-theme="light"] .modern-header {
  box-shadow: 0 4px 24px var(--color-text-primary-15);
  background: linear-gradient(135deg, 
    var(--color-bg-light-blue-49) 0%, 
    var(--color-bg-light-blue-alt-49) 25%,
    var(--color-bg-light-blue-pale-49) 50%,
    var(--color-bg-light-blue-alt-49) 75%,
    var(--color-bg-light-blue-49) 100%
  );
  background-size: 200% 200%;
  animation: header-gradient-shift 8s ease infinite;
}

@keyframes header-gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.modern-header-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: all 0.3s ease;
}

.modern-header-logo-container:hover {
  transform: scale(1.05);
  box-shadow: none;
}

.modern-header-logo-icon {
  display: block;
  visibility: visible;
  opacity: 1;
  height: 1.5rem;
  width: auto;
  min-width: 140px;
  flex-shrink: 0;
  overflow: visible;
  max-width: 220px;
}

@media (min-width: 480px) {
  .modern-header-logo-icon {
    height: 1.75rem;
    min-width: 180px;
  }
}

@media (min-width: 768px) {
  .modern-header-logo-icon {
    height: 2rem;
    min-width: 200px;
    max-width: 250px;
  }
}

@media (min-width: 1024px) {
  .modern-header-logo-icon {
    height: 2.25rem;
    min-width: 220px;
  }
}

.modern-header-logo-icon path {
  opacity: 1;
  visibility: visible;
}

.modern-header-nav-link {
  position: relative;
  color: var(--color-header-text);
  transition: color 0.3s ease;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.modern-header-nav-link:hover {
  color: var(--color-header-text-hover);
}

.modern-header-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--ql-cyan));
  transition: width 0.3s ease;
}

.modern-header-nav-link:hover::after {
  width: 100%;
}

.modern-header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, var(--color-accent), var(--ql-cyan));
  color: var(--color-white-100);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 45px var(--color-accent-5);
  margin-right: 20px;
}

.modern-header-theme-toggle {
  color: var(--color-header-text);
  opacity: 0.8;
}

.modern-header-theme-toggle:hover {
  color: var(--color-header-text-hover);
  opacity: 1;
}

[data-theme="dark"] #theme-icon-sun,
[data-theme="dark"] #theme-icon-sun-mobile {
  display: block;
}
[data-theme="dark"] #theme-icon-moon,
[data-theme="dark"] #theme-icon-moon-mobile {
  display: none;
}
[data-theme="light"] #theme-icon-sun,
[data-theme="light"] #theme-icon-sun-mobile {
  display: none;
}
[data-theme="light"] #theme-icon-moon,
[data-theme="light"] #theme-icon-moon-mobile {
  display: block;
}

[data-theme="light"] .modern-header span.text-white,
[data-theme="light"] .modern-header .text-white {
  color: var(--color-header-text);
}

[data-theme="light"] .modern-header button.text-white\/80,
[data-theme="light"] .modern-header button.text-white {
  color: var(--color-header-text);
}

[data-theme="light"] .modern-header button.text-white\/80:hover {
  color: var(--color-header-text-hover);
  opacity: 1;
}

[data-theme="light"] .modern-header .modern-header-contact-icon {
  color: var(--color-header-text);
}

[data-theme="light"] .modern-header .modern-header-contact-icon:hover {
  color: var(--color-header-text-hover);
}

.modern-header-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--color-accent-70);
  color: var(--color-white-100);
}

body.mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

#mobile-menu {
  display: none;
}

@media (max-width: 1023px) {
  #mobile-menu {
    display: block;
  }
}

.modern-header-mobile-menu {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0.2s;
  border-top: 1px solid var(--color-accent-3);
  background: var(--color-black-98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modern-header-mobile-menu.open {
  max-height: calc(100vh - 5rem);
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modern-header-mobile-link {
  display: block;
  color: var(--color-white-80);
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.modern-header-mobile-link:hover {
  color: var(--ql-blue-light-text);
}

[data-theme="light"] .modern-header-mobile-menu {
  background: var(--color-white-98);
  border-top-color: var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .modern-header-mobile-link {
  color: var(--color-text-primary);
}

[data-theme="light"] .modern-header-mobile-link:hover {
  color: var(--color-accent);
}

[data-theme="light"] .mobile-services-menu {
  border-left-color: var(--color-border);
}

[data-theme="light"] .mobile-menu-footer {
  border-color: var(--color-border);
}

.mobile-menu-footer {
  padding-bottom: 10px;
}

.mobile-menu-footer .modern-header-cta {
  background: var(--color-accent);
  color: var(--color-button-primary-text);
  margin-right: 0;
}

.mobile-menu-footer .modern-header-cta:hover {
  background: var(--color-accent-hover);
}

[data-theme="dark"] .mobile-menu-footer .modern-header-cta {
  background: var(--color-accent-light);
  color: var(--color-button-primary-text);
}

[data-theme="dark"] .mobile-menu-footer .modern-header-cta:hover {
  background: var(--ql-cyan);
}

[data-theme="light"] #theme-toggle-mobile:hover {
  background-color: var(--color-accent-10);
}

.services-dropdown {
  position: relative;
}

.services-dropdown:hover .services-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-dropdown:hover .modern-header-nav-link svg {
  transform: rotate(180deg);
}

.services-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.services-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 320px;
  background: var(--color-black-95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-accent-3);
  border-radius: 0.75rem;
  box-shadow: 0 12px 48px var(--color-black-30), 0 0 45px var(--color-accent-20);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

[data-theme="light"] .services-dropdown-menu {
  background: var(--color-white-75);
  border-color: var(--color-border);
  box-shadow: 0 12px 48px var(--color-black-10), 0 0 45px var(--color-accent-15);
}

.services-dropdown-item {
  display: block;
  padding: 0.875rem 1.25rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--color-accent-1);
}

[data-theme="light"] .services-dropdown-item {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-border);
}

[data-theme="light"] .services-dropdown-item:hover {
  color: var(--color-accent);
  background: var(--color-accent-10);
}

.services-dropdown-item:first-child {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.services-dropdown-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.services-dropdown-item:hover {
  color: var(--color-link);
  background: var(--color-accent-10);
  padding-left: 1.5rem;
  font-weight: 500;
}

[data-theme="light"] .services-dropdown-item:hover {
  color: var(--color-accent);
  background: var(--color-accent-10);
  text-shadow: none;
}

.mobile-services-container {
  position: relative;
}

#mobile-services-toggle,
#mobile-company-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#mobile-services-toggle svg,
#mobile-company-toggle svg {
  transition: transform 0.3s ease;
}

#mobile-services-toggle svg.rotate-180,
#mobile-company-toggle svg.rotate-180 {
  transform: rotate(180deg);
}

.mobile-services-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  margin-left: 0.5rem;
  border-left: 2px solid var(--color-accent-3);
}

.mobile-services-menu.open {
  max-height: 320px;
  opacity: 1;
}

#theme-toggle:focus,
#theme-toggle-mobile:focus,
#mobile-menu-toggle:focus,
.modern-header-contact-icon:focus {
  outline: none;
  box-shadow: none;
}

#theme-toggle:focus-visible,
#theme-toggle-mobile:focus-visible,
#mobile-menu-toggle:focus-visible,
.modern-header-contact-icon:focus-visible {
  outline: 2px solid var(--color-white-50);
  outline-offset: 2px;
}

[data-theme="light"] .modern-header-contact-icon:focus-visible {
  outline-color: var(--color-header-text);
}

#mobile-menu-toggle {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 60;
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (min-width: 1024px) {
  #mobile-menu-toggle {
    display: none;
  }
}

@media (max-width: 1023px) {
  #mobile-menu-toggle {
    display: flex;
  }
}

#mobile-menu-toggle svg {
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  color: inherit;
  opacity: 1;
  visibility: visible;
  width: 2.25rem;
  height: 2.25rem;
  transition: stroke 0.2s ease, color 0.2s ease;
}

#mobile-menu-toggle:hover {
  color: var(--color-accent-hover);
}

#mobile-menu-toggle:hover svg {
  stroke: var(--color-accent-hover);
  color: var(--color-accent-hover);
}

#mobile-menu-toggle #menu-icon {
  display: block;
  opacity: 1;
  visibility: visible;
}

#mobile-menu-toggle #close-icon {
  display: none;
}

#mobile-menu-toggle #close-icon:not(.hidden) {
  display: block;
}

[data-theme="light"] #mobile-menu-toggle {
  color: var(--color-accent);
}

[data-theme="light"] #mobile-menu-toggle svg {
  stroke: var(--color-accent);
  stroke-width: 2;
  color: var(--color-accent);
  opacity: 1;
}

[data-theme="light"] #mobile-menu-toggle:hover {
  color: var(--color-accent-hover);
}

[data-theme="light"] #mobile-menu-toggle:hover svg {
  stroke: var(--color-accent-hover);
  color: var(--color-accent-hover);
}

[data-theme="dark"] #mobile-menu-toggle {
  color: var(--color-accent-light);
}

[data-theme="dark"] #mobile-menu-toggle svg {
  stroke: var(--color-accent-light);
  stroke-width: 2;
  color: var(--color-accent-light);
  opacity: 1;
}

[data-theme="dark"] #mobile-menu-toggle:hover {
  color: var(--ql-cyan);
}

[data-theme="dark"] #mobile-menu-toggle:hover svg {
  stroke: var(--ql-cyan);
  color: var(--ql-cyan);
}

@media (prefers-reduced-motion: reduce) {
  .modern-header,
  .modern-header-logo-container,
  .modern-header-nav-link,
  .modern-header-cta,
  .modern-header-mobile-menu,
  #mobile-menu-toggle,
  #mobile-menu-toggle svg {
    transition: none;
    animation: none;
  }
  
  [data-theme="light"] .modern-header,
  [data-theme="dark"] .modern-header {
    animation: none ;
    background-size: 100% 100% ;
  }
  
  .modern-header-cta:hover {
    transform: none;
  }
  
  .modern-header-logo-container:hover {
    transform: none;
  }
}
.hero-enhanced {
  background: radial-gradient(ellipse at top, var(--color-hero-bg-gradient-start) 0%, var(--color-hero-bg) 50%, var(--color-bg-primary) 100%);
  position: relative;
  min-height: calc(100vh - 5rem);
  margin-top: -5rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero-enhanced {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
}

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: hero-bg-fade-in 2s ease-out 0.5s forwards;
}

@keyframes hero-bg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0; /* Base state is hidden, animation handles the rest */
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: 25%;
  left: 25%;
  background: var(--color-accent);
  opacity: 0.2;
  transform: scale(1) translate(0, 0);
  animation: orb-1-animate 10s ease-in-out infinite both;
}

.hero-orb-2 {
  width: 600px;
  height: 600px;
  bottom: 25%;
  right: 25%;
  background: var(--ql-cyan);
  opacity: 0.3;
  transform: scale(1.3) translate(0, 0);
  animation: orb-2-animate 10s ease-in-out infinite both;
  animation-delay: 1s;
}

.hero-orb-3 {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 50%;
  background: var(--ql-purple);
  opacity: 0.15;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  animation: orb-3-animate 15s linear infinite both;
}

@keyframes orb-1-animate {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.3) translate(50px, -30px);
    opacity: 0.4;
  }
}

@keyframes orb-2-animate {
  0%, 100% {
    transform: scale(1.3) translate(0, 0);
    opacity: 0.3;
  }
  50% {
    transform: scale(1) translate(-50px, 30px);
    opacity: 0.15;
  }
}

@keyframes orb-3-animate {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0.15;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    opacity: 0.25;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
    opacity: 0.15;
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--color-accent-1) 2px, transparent 2px),
    linear-gradient(90deg, var(--color-accent-1) 2px, transparent 2px);
  background-size: 100px 100px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--ql-blue-light-text);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes particle-float {
  0%, 100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    transform: translateY(-100px) scale(1.5);
    opacity: 1;
  }
}


.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-badge-enhanced {
  background-color: var(--color-white-05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-accent-30);
  box-shadow: 0 0 30px var(--color-accent-30);
  animation: badge-scale-in 0.8s ease-out 0.2s both;
}

@keyframes badge-scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.hero-title {
  text-shadow: 0 0 30px var(--color-accent-3);
  letter-spacing: -0.02em;
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 5.5rem;
    line-height: 1.1;
  }
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--ql-cyan) 50%, var(--ql-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--color-accent-5));
}

.hero-cta-primary {
  box-shadow: 0 0 40px var(--color-accent-6), 0 0 80px var(--ql-cyan-30);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.hero-cta-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--color-accent-8), 0 0 100px var(--ql-cyan-40);
  color: var(--color-white-100);
}

.hero-cta-primary:active {
  transform: scale(0.95);
}

.hero-cta-secondary {
  background-color: var(--color-button-secondary-bg);
  color: var(--color-button-secondary-text);
  border: 1px solid var(--color-accent-30);
  box-shadow: 0 0 20px var(--color-accent-3);
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.hero-cta-secondary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--color-accent-5);
  border-color: var(--color-accent-light);
  background-color: var(--color-button-secondary-hover);
}

.hero-cta-secondary:active {
  transform: scale(0.95);
}
.hero-trust-badge {
  border: 1px solid var(--color-accent-30);
  box-shadow: 0 0 20px var(--color-accent-20);
  animation: trust-badge-fade-in 0.8s ease-out both;
  transition: border-color 0.3s ease;
}

.hero-trust-badge:hover {
  border-color: var(--color-accent-light);
}

.hero-trust-badge:nth-child(1) {
  animation-delay: 0.4s;
}

.hero-trust-badge:nth-child(2) {
  animation-delay: 0.5s;
}

.hero-trust-badge:nth-child(3) {
  animation-delay: 0.6s;
}

.hero-trust-badge-icon {
  box-shadow: 0 0 10px var(--color-accent-6);
}

@keyframes trust-badge-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .hero-orb-1,
  .hero-orb-2 {
    width: 400px;
    height: 400px;
  }
  
  .hero-orb-3 {
    width: 300px;
    height: 300px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  .hero-description {
    font-size: 1.125rem;
  }
  
  .hero-cta-primary,
  .hero-cta-secondary {
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero-orb-1,
  .hero-orb-2,
  .hero-orb-3,
  .hero-particles::before,
  .hero-particles::after {
    animation: none;
  }
  
  .hero-content,
  .hero-badge-enhanced,
  .hero-trust-badge {
    animation: none;
  }
  
  .hero-cta-primary:hover,
  .hero-cta-secondary:hover {
    transform: none;
  }
}

/* Hero scroll indicator removed - no longer used */


/* ============================================
   SERVICE PAGE ALTERNATIVE LAYOUT
   Card-free design with distinct content blocks
   ============================================ */

.service-section-alt {
  position: relative;
  padding: 4rem 0;
  background: var(--color-bg-primary);
}

.service-alt-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Content blocks - alternating backgrounds */
.service-block {
  padding: 4rem 0;
  position: relative;
}

.service-block:first-child {
  padding-top: 2rem;
}

.service-block-content {
  margin: 0 auto;
}

.service-block-content.max-w-3xl {
  max-width: 48rem;
}

/* Intro block - clean, no background */
.service-block-intro {
  background: transparent;
}

.service-block-intro h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.service-block-intro p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* Features block - subtle background */
.service-block-features {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.service-block-features h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2.5rem;
  text-align: center;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 640px) {
  .service-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.service-feature {
  text-align: center;
  padding: 1.5rem;
}

.service-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--color-accent-10);
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.service-feature h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.service-feature p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Audience block */
.service-block-audience {
  background: transparent;
}

.service-block-audience h2,
.service-block-engagement h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.service-block-audience p,
.service-block-engagement p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

/* Engagement block */
.service-block-engagement {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* FAQ block */
.service-block-faq {
  background: transparent;
}

.service-block-faq h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

.service-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-faq-item {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.service-faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-faq-item summary::-webkit-details-marker {
  display: none;
}

.service-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.service-faq-item[open] summary::after {
  content: '−';
}

.service-faq-item p {
  padding: 0 1.25rem 1rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* CTA block */
.service-block-cta {
  background: linear-gradient(135deg, var(--color-accent-10) 0%, var(--color-bg-secondary) 100%);
  border-top: 1px solid var(--color-accent-20);
  padding: 5rem 0;
}

.service-block-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.service-block-cta p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}


/* ============================================
   UNBOUNDED SERVICE LAYOUT
   Card-free design with flexible content blocks
   ============================================ */

.service-unbounded-content {
  background: linear-gradient(to bottom, #020a0f, #04141c, #030e14);
  position: relative;
}

/* Prose-width block (readable text ~65 chars per line) */
.service-prose {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
  .service-prose {
    padding: 4rem 2rem;
  }
}

/* First prose block has less top padding (hero above) */
.service-unbounded-content > .service-prose:first-child {
  padding-top: 1.5rem;
}

@media (min-width: 640px) {
  .service-unbounded-content > .service-prose:first-child {
    padding-top: 2rem;
  }
}

/* Full-width block (images, heroes, wide content) */
.service-full {
  width: 100%;
  padding: 3rem 0;
}

.service-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* Boxed block (FAQ, highlighted sections) */
.service-boxed {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .service-boxed {
    padding: 3rem 2rem;
  }
}

.service-boxed-inner {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  padding: 2rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
  .service-boxed-inner {
    padding: 2.5rem;
  }
}

/* Typography within unbounded prose */
.service-unbounded-content .prose h2 {
  color: var(--color-text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.service-unbounded-content .prose h3 {
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.service-unbounded-content .prose p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.service-unbounded-content .prose strong {
  color: rgba(255, 255, 255, 0.95);
}

.service-unbounded-content .prose ul,
.service-unbounded-content .prose ol {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.service-unbounded-content .prose li {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

/* Prose with margin CTA (two-column layout) */
.service-prose-with-cta {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .service-prose-with-cta {
    grid-template-columns: 1fr 16rem;
    padding: 4rem 2rem;
  }
}

.service-margin-cta {
  position: sticky;
  top: 6rem;
  align-self: start;
}

/* CTA styling within unbounded content */
.service-unbounded-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.service-unbounded-content .btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-white-100);
  box-shadow: 0 4px 14px var(--color-accent-30);
}

.service-unbounded-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-40);
}

/* Alternating section backgrounds (optional) */
.service-prose-alt {
  max-width: 48rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .service-prose-alt {
    padding: 4rem 2rem;
  }
}

/* ============================================
   UNBOUNDED POST LAYOUT
   Card-free design for blog posts, mirroring
   the service-unbounded pattern
   ============================================ */

.post-unbounded-content {
  background: linear-gradient(to bottom, #020a0f, #04141c, #030e14);
  position: relative;
}

/* First prose block has less top padding (hero above) */
.post-unbounded-content > .service-prose:first-child {
  padding-top: 1.5rem;
}

@media (min-width: 640px) {
  .post-unbounded-content > .service-prose:first-child {
    padding-top: 2rem;
  }
}

/* Typography within unbounded blog prose */
.post-unbounded-content .prose h2 {
  color: var(--color-text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.post-unbounded-content .prose h3 {
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-unbounded-content .prose p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.post-unbounded-content .prose strong {
  color: rgba(255, 255, 255, 0.95);
}

.post-unbounded-content .prose em {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.post-unbounded-content .prose ul,
.post-unbounded-content .prose ol {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
}

.post-unbounded-content .prose li {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.post-unbounded-content .prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

.post-unbounded-content .prose a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.post-unbounded-content .prose a:hover {
  color: var(--color-accent-light);
}

/* CTA styling within unbounded post content */
.post-unbounded-content .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.post-unbounded-content .btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-white-100);
  box-shadow: 0 4px 14px var(--color-accent-30);
}

.post-unbounded-content .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-40);
}


/* Wide prose block (for content that needs more breathing room) */
.service-prose-wide {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

@media (min-width: 640px) {
  .service-prose-wide {
    padding: 4rem 2rem;
  }
}

/* ============================================
   CONTENT PULLQUOTES
   Editorial-style callouts for highlighting
   key statements within blog content
   ============================================ */

.content-pullquote {
  float: right;
  clear: right;
  width: 100%;
  margin: 0 0 1.5rem 0;
  padding: 1.5rem;
  background: rgba(4, 108, 255, 0.05);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-text-primary);
  font-style: normal;
}

@media (min-width: 768px) {
  .content-pullquote {
    width: 45%;
    margin: 0.5rem 0 1rem 2rem;
  }
}

@media (min-width: 1024px) {
  .content-pullquote {
    width: 40%;
  }
}

/* Centre alignment variant */
.content-pullquote--centre {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ============================================
   FULL-WIDTH BREAKOUT SECTIONS
   Allows specific components to break out of
   the narrow prose container for visual impact
   ============================================ */

/* AI Scope Matrix - break out to full width */
.post-unbounded-content .scope-matrix-section-v3,
.service-unbounded-content .scope-matrix-section-v3 {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Stakeholder hero - background full-width, content 90vw on desktop */
.post-unbounded-content .stakeholder-hero-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .stakeholder-hero-section > .container {
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Services table - sits within prose flow */
.scope-table-wide {
  padding: 1rem 0;
}

/* ============================================
   SCOPE MATRIX
   Minimal overrides for phased-journey.html
   when used as the AWS scope matrix in the blog.
   The base component handles layout generically.
   ============================================ */

/* Example boxes must not shrink — they anchor
   to card bottoms via flex-grow on description
   and mt-auto on the example div (both in HTML). */
#ai-scope-matrix .ai-journey-example {
  flex-shrink: 0;
}

