:root {
  --home-gold: #f2c75a;
  --home-text: #f4f8fc;
  --home-font: "Manrope", system-ui, sans-serif;
  --home-display: "Spectral", Georgia, serif;
}

body.page-home {
  color: var(--home-text);
  font-family: var(--home-font);
  background:
    linear-gradient(
      to bottom,
      #9fe4f8 0%,
      #5ec4e6 12%,
      #2a8fc4 28%,
      #156394 46%,
      #0b3a68 62%,
      #071e40 78%,
      #030d1c 90%,
      #010308 100%
    );
  background-attachment: fixed;
}

body.page-home a {
  color: var(--home-gold);
}

body.page-home a:hover {
  color: #ffe08a;
}

#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: transparent;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 12%, rgba(180, 230, 255, 0.18), transparent 42%),
    radial-gradient(ellipse at center, transparent 48%, rgba(0, 8, 22, 0.38) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 22%, transparent 58%, rgba(0, 2, 10, 0.42));
}

body.page-home header {
  position: relative;
  z-index: 20;
}

body.page-home main,
body.page-home .site-footer {
  position: relative;
  z-index: 2;
}

body.page-home .navbar.bg-dark {
  background-color: rgba(6, 18, 36, 0.62) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

body.page-home .navbar .form-control {
  background: rgba(6, 18, 36, 0.45);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--home-text);
}

body.page-home .navbar .form-control::placeholder {
  color: rgba(230, 240, 255, 0.55);
}

body.page-home .navbar .btn-outline-success {
  color: var(--home-gold);
  border-color: rgba(242, 199, 90, 0.75);
}

body.page-home .navbar .btn-outline-success:hover {
  background: rgba(242, 199, 90, 0.18);
  color: #fff8e0;
}

body.page-home .dropdown-menu {
  background: rgba(6, 18, 36, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

body.page-home .dropdown-item {
  color: rgba(230, 240, 255, 0.92);
}

body.page-home .dropdown-item:hover,
body.page-home .dropdown-item:focus {
  background: rgba(242, 199, 90, 0.16);
  color: var(--home-gold);
}

.home-banner {
  margin: 0 0 2.25rem;
  padding: 0.45rem 1.25rem;
  font-family: var(--home-display);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.8vw, 1.15rem);
  line-height: 1.35;
  text-align: center;
  color: var(--home-text);
  background: rgba(6, 18, 36, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.home-services {
  margin-bottom: 5.5rem;
}

.home-services .home-grid {
  margin-bottom: 0;
}

.home-panel--service {
  display: flex;
  flex-direction: column;
}

.home-panel--service .btn {
  margin-top: 0.15rem;
}

.service-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.28rem;
  margin: auto 0 0.85rem;
  padding: 0.9rem 0 0;
  list-style: none;
}

.service-logos li {
  flex: 1 1 0;
  min-width: 0;
  max-width: 1.45rem;
  margin: 0;
}

.service-logos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  cursor: default;
}

.home-grid {
  row-gap: 5.5rem;
  margin-bottom: 2.5rem;
}

.home-panel {
  height: 100%;
  margin: 0;
  padding: 1.35rem 1.4rem 1.45rem;
  background: rgba(6, 18, 36, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.15rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.home-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--home-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.home-panel p,
.home-panel li,
.home-panel small {
  color: rgba(230, 240, 255, 0.9);
}

.home-panel ul {
  padding-left: 1.1rem;
}

body.page-home .home-panel .btn-secondary {
  background: transparent;
  border-color: rgba(242, 199, 90, 0.7);
  color: var(--home-gold);
}

body.page-home .home-panel .btn-secondary:hover {
  background: rgba(242, 199, 90, 0.16);
  border-color: var(--home-gold);
  color: #fff8e0;
}

.home-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.65rem;
}

.home-panel__head h2 {
  margin: 0;
}

.home-refresh {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  color: var(--home-gold);
  background: transparent;
  border: 1px solid rgba(242, 199, 90, 0.7);
  border-radius: 999px;
  cursor: pointer;
}

.home-refresh:hover {
  background: rgba(242, 199, 90, 0.16);
  border-color: var(--home-gold);
  color: #fff8e0;
}

.home-refresh:focus-visible {
  outline: 2px solid var(--home-gold);
  outline-offset: 2px;
}

.home-refresh svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.home-refresh.is-spinning svg {
  animation: home-refresh-spin 0.45s ease;
}

@keyframes home-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
  margin-bottom: 2.5rem;
}

.home-stack .home-panel {
  height: auto;
}

.stack-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stack-heading__logo {
  display: block;
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: rgba(230, 240, 255, 0.92);
  text-decoration: none;
}

body.page-home .cert-card:hover {
  color: var(--home-gold);
  text-decoration: none;
}

.cert-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.cert-card span {
  font-size: 0.78rem;
  line-height: 1.25;
  text-shadow: none;
}

.tech-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
  margin: 1rem 0 1.4rem;
}

.tech-groups h3 {
  margin: 0 0 0.75rem;
  font-family: var(--home-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.tech-main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-main li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--home-text);
}

.tech-main img {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tech-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
  gap: 1rem;
  background:
    linear-gradient(
      to bottom,
      #9fe4f8 0%,
      #5ec4e6 12%,
      #2a8fc4 28%,
      #156394 46%,
      #0b3a68 62%,
      #071e40 78%,
      #030d1c 90%,
      #010308 100%
    );
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.home-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-loader__ring {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(242, 199, 90, 0.22);
  border-top-color: var(--home-gold);
  border-radius: 50%;
  animation: home-loader-spin 0.75s linear infinite;
}

.home-loader__text {
  margin: 0;
  color: rgba(230, 240, 255, 0.88);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

@keyframes home-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767.98px) {
  #stage,
  .vignette,
  .home-loader {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-loader__ring {
    animation: none;
    border-top-color: rgba(242, 199, 90, 0.22);
    border-color: var(--home-gold);
  }
}
