/* Futuristic public-site skin (opt-in via body.site-future) */

body.site-future {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(90rem 50rem at -8% -10%, rgba(8, 145, 178, 0.25), transparent 55%),
    radial-gradient(70rem 42rem at 108% 4%, rgba(37, 99, 235, 0.24), transparent 57%),
    radial-gradient(56rem 34rem at 50% 118%, rgba(20, 184, 166, 0.17), transparent 58%),
    linear-gradient(180deg, #e7f3ff 0%, #f1f8ff 42%, #e9f4ff 100%);
}

body.site-future::before,
body.site-future::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body.site-future::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 22%, transparent 86%);
  opacity: 0.33;
}

body.site-future::after {
  width: 18rem;
  height: 18rem;
  right: -3rem;
  top: 5.6rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(14, 165, 233, 0.45), rgba(37, 99, 235, 0));
  animation: futurePulseOrb 14s ease-in-out infinite;
}

body.site-future main {
  position: relative;
  z-index: 1;
}

body.site-future .public-nav {
  border-bottom: 1px solid rgba(29, 78, 216, 0.28);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(240, 249, 255, 0.8));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

body.site-future .public-nav-link,
body.site-future .public-nav-mobile-link {
  border: 1px solid transparent;
}

body.site-future .public-nav-link:hover,
body.site-future .public-nav-mobile-link:hover {
  border-color: rgba(29, 78, 216, 0.3);
  background: color-mix(in srgb, #0ea5e9 12%, white 88%);
}

body.site-future .public-nav-link.active,
body.site-future .public-nav-mobile-link.active {
  border: 1px solid rgba(2, 132, 199, 0.38);
  border-bottom: 2px solid #0369a1;
  background: color-mix(in srgb, #0ea5e9 15%, white 85%);
  color: #0f172a;
}

body.site-future .public-footer {
  background: linear-gradient(180deg, rgba(236, 248, 255, 0.88), rgba(231, 246, 255, 0.86));
  border-top: 1px solid rgba(30, 64, 175, 0.2);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
}

body.site-future .hero-section,
body.site-future .microapps-header,
body.site-future .page-content,
body.site-future .contact-form,
body.site-future .contact-info,
body.site-future .microapps-filters {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.84));
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(8px);
}

body.site-future .card:hover,
body.site-future .card:focus-within,
body.site-future .hero-section:hover,
body.site-future .hero-section:focus-within,
body.site-future .page-content:hover,
body.site-future .page-content:focus-within,
body.site-future .contact-form:hover,
body.site-future .contact-form:focus-within,
body.site-future .contact-info:hover,
body.site-future .contact-info:focus-within,
body.site-future .microapps-header:hover,
body.site-future .microapps-header:focus-within,
body.site-future .microapps-filters:hover,
body.site-future .microapps-filters:focus-within {
  transform: none;
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.09);
}

body.site-future .microapps-content {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.site-future .hero-section,
body.site-future .microapps-header,
body.site-future .contact-info {
  border-radius: 24px;
}

body.site-future .hero-title,
body.site-future .microapps-title,
body.site-future .page-title {
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #0f172a 0%, #1d4ed8 52%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.site-future .hero-subtitle,
body.site-future .page-intro,
body.site-future .last-updated,
body.site-future .microapps-subtitle {
  color: #334155;
}

body.site-future .btn-primary,
body.site-future .form-submit {
  border: 1px solid rgba(14, 116, 255, 0.76);
  background: linear-gradient(112deg, #1d4ed8 0%, #2563eb 52%, #0891b2 100%);
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.34);
}

body.site-future .btn-primary:hover,
body.site-future .form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(29, 78, 216, 0.37);
}

body.site-future .btn-secondary,
body.site-future .related-link,
body.site-future .reviewer-fastpath-link,
body.site-future .view-all-link a,
body.site-future .policy-toc-list a,
body.site-future .terms-toc-link,
body.site-future .microapps-filter-btn,
body.site-future .microapps-filter-chip,
body.site-future .microapp-back-link,
body.site-future .microapp-card-share {
  border-color: rgba(29, 78, 216, 0.27);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.site-future .btn-secondary:hover,
body.site-future .btn-secondary:focus-visible,
body.site-future .related-link:hover,
body.site-future .related-link:focus-visible,
body.site-future .reviewer-fastpath-link:hover,
body.site-future .reviewer-fastpath-link:focus-visible,
body.site-future .view-all-link a:hover,
body.site-future .view-all-link a:focus-visible,
body.site-future .policy-toc-list a:hover,
body.site-future .policy-toc-list a:focus-visible,
body.site-future .terms-toc-link:hover,
body.site-future .terms-toc-link:focus-visible,
body.site-future .microapps-filter-btn:hover,
body.site-future .microapps-filter-btn:focus-visible,
body.site-future .microapps-filter-chip:hover,
body.site-future .microapps-filter-chip:focus-visible,
body.site-future .microapp-back-link:hover,
body.site-future .microapp-back-link:focus-visible,
body.site-future .microapp-card-share:hover,
body.site-future .microapp-card-share:focus-visible {
  outline: none;
  color: #ffffff;
  background: linear-gradient(130deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #06b6d4));
  border-color: color-mix(in srgb, var(--accent) 60%, #0ea5e9);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Standardize inline content hyperlinks as chips on static pages. */
body.site-future main p a:not(.btn-primary):not(.btn-secondary):not(.public-nav-link):not(.public-footer-link):not(.public-nav-mobile-link):not(.public-footer-more-link):not(.public-footer-more-btn):not(.public-nav-more-link):not(.public-nav-more-btn):not(.related-link):not(.reviewer-fastpath-link):not(.view-all-link a):not(.terms-toc-link):not(.back-to-top-link):not(.microapp-card):not(.microapp-card-share):not(.open-link):not(.ghost):not(.icon-btn):not(.microapp-back-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 1.7rem;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.27);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
}

body.site-future main p a:not(.btn-primary):not(.btn-secondary):not(.public-nav-link):not(.public-footer-link):not(.public-nav-mobile-link):not(.public-footer-more-link):not(.public-footer-more-btn):not(.public-nav-more-link):not(.public-nav-more-btn):not(.related-link):not(.reviewer-fastpath-link):not(.view-all-link a):not(.terms-toc-link):not(.back-to-top-link):not(.microapp-card):not(.microapp-card-share):not(.open-link):not(.ghost):not(.icon-btn):not(.microapp-back-link):hover,
body.site-future main p a:not(.btn-primary):not(.btn-secondary):not(.public-nav-link):not(.public-footer-link):not(.public-nav-mobile-link):not(.public-footer-more-link):not(.public-footer-more-btn):not(.public-nav-more-link):not(.public-nav-more-btn):not(.related-link):not(.reviewer-fastpath-link):not(.view-all-link a):not(.terms-toc-link):not(.back-to-top-link):not(.microapp-card):not(.microapp-card-share):not(.open-link):not(.ghost):not(.icon-btn):not(.microapp-back-link):focus-visible {
  outline: none;
  color: var(--on-accent);
  background: linear-gradient(130deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #06b6d4));
  border-color: color-mix(in srgb, var(--accent) 60%, #0ea5e9);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

body.site-future .back-to-top-link {
  color: #ffffff;
  border: 1px solid rgba(14, 116, 255, 0.78);
  background: linear-gradient(112deg, #1d4ed8 0%, #2563eb 52%, #0891b2 100%);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.32);
}

body.site-future .back-to-top-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.38);
}

body.site-future .microapp-card {
  border: 1px solid rgba(30, 64, 175, 0.23);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(241, 249, 255, 0.85));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.site-future .microapp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.16);
}

body.site-future .microapp-card-orbit {
  border-color: rgba(14, 165, 233, 0.36);
  animation: orbitDrift 7s linear infinite;
}

body.site-future .form-input,
body.site-future .form-textarea,
body.site-future .search-input,
body.site-future .microapps-search-input {
  border-color: rgba(29, 78, 216, 0.22);
  background: rgba(255, 255, 255, 0.86);
}

/* Contact form needs stronger resting contrast for input boundaries */
body.site-future .contact-form .form-input,
body.site-future .contact-form .form-textarea {
  border: 1px solid rgba(30, 64, 175, 0.38);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

body.site-future .form-input:focus,
body.site-future .form-textarea:focus,
body.site-future .search-input:focus,
body.site-future .microapps-search-input:focus {
  border-color: rgba(2, 132, 199, 0.6);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

body.site-future .contact-form .form-input:focus,
body.site-future .contact-form .form-textarea:focus {
  border-color: rgba(2, 132, 199, 0.75);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

@keyframes orbitDrift {
  0% {
    transform: rotate(0deg) translateX(1px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(1px) rotate(-360deg);
  }
}

@keyframes futurePulseOrb {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.58;
  }
  50% {
    transform: translateY(-10px) translateX(-8px) scale(1.06);
    opacity: 0.42;
  }
}

@media (max-width: 768px) {
  body.site-future .hero-section,
  body.site-future .microapps-header,
  body.site-future .page-content,
  body.site-future .contact-form {
    border-radius: 18px;
  }
}
