.ambient-layer {
  position: fixed;
  inset: -20% -10% -10% -10%;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 222, 31, 0.18), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(77, 85, 184, 0.44), transparent 48%),
    radial-gradient(circle at 40% 85%, rgba(61, 41, 156, 0.52), transparent 52%),
    linear-gradient(125deg, #0b0e1f 14%, #0d173b 56%, #231e6e 100%);
  transform: translateY(calc(var(--scroll-progress, 0) * 110px));
  transition: transform 220ms ease;
  pointer-events: none;
  animation: ambientPulse 16s ease-in-out infinite;
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, var(--content-width)) minmax(170px, 1fr);
  gap: 1.8rem;
  padding: 1.5rem 2rem 4rem;
  position: relative;
  isolation: isolate;
}

.page-shell--home {
  grid-template-columns: minmax(0, var(--content-width));
  justify-content: center;
  gap: 2.5rem;
  padding-top: 1.1rem;
}

.page-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.home-main {
  display: grid;
  gap: 2.4rem;
}

.ad-rail {
  position: sticky;
  top: 1.6rem;
  height: fit-content;
  display: flex;
  justify-content: center;
  z-index: 12;
}

.ad-pane {
  background: rgba(13, 23, 59, 0.84);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 0.9rem;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  box-shadow: var(--shadow-card);
}

.ad-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--color-muted);
}

.ad-slot,
.ad-fallback {
  width: 160px;
  min-height: 600px;
  border-radius: var(--radius-xs);
  border: 1px dashed var(--color-border-strong);
  display: block;
}

.ad-fallback {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.ad-slot[data-ad-loaded="true"] + .ad-fallback {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  background: rgba(11, 14, 31, 0.78);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 1rem;
  z-index: 16;
  box-shadow: var(--shadow-card);
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--color-muted);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: min(84vh, 760px);
  border-radius: 34px;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: end;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-soft);
  background-color: #0b0e1f;
  background-image:
    linear-gradient(
      to bottom,
      rgba(11, 14, 31, 0.2) 0%,
      rgba(13, 23, 59, 0.52) 50%,
      rgba(11, 14, 31, 0.92) 100%
    ),
    url("/design/wallpaper.png?v=ad56fcbc3e58129e7848a63c48c59d6531a193e3");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 28%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -18% -26% -18%;
  height: 44%;
  background: radial-gradient(circle at 50% 10%, rgba(249, 222, 31, 0.26), transparent 66%);
  pointer-events: none;
}

.hero-content {
  width: min(100%, 760px);
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 222, 31, 0.5);
  background: rgba(11, 14, 31, 0.56);
  color: #fff5a5;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.1rem, 5.8vw, 4.65rem);
  line-height: 1.06;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-subhead {
  color: rgba(244, 246, 251, 0.9);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.hero-highlights {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-highlights li {
  padding: 0.3rem 0.74rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(11, 14, 31, 0.62);
  font-size: 0.77rem;
  color: var(--color-muted);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.value-item {
  border: 1px solid var(--color-border);
  background: linear-gradient(165deg, rgba(35, 30, 110, 0.8), rgba(11, 14, 31, 0.88));
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-card);
}

.value-item h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  margin-bottom: 0.35rem;
  color: var(--color-accent);
}

.value-item p {
  color: var(--color-muted);
  line-height: 1.55;
}

.apps-grid,
.feature-grid,
.steps-grid {
  display: grid;
  gap: 1rem;
}

.apps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card,
.feature-card,
.step-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(35, 30, 110, 0.84), rgba(11, 14, 31, 0.9));
  box-shadow: var(--shadow-card);
  padding: 1.35rem;
  display: grid;
  gap: 0.82rem;
}

.app-card h3,
.feature-card h3,
.step-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.72rem);
}

.app-card p,
.feature-card p,
.step-card p {
  color: var(--color-muted);
  line-height: 1.65;
}

.app-tag {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(249, 222, 31, 0.55);
  background: rgba(249, 222, 31, 0.1);
  color: #fff5a5;
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.72rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.step-index {
  width: fit-content;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  background: rgba(77, 85, 184, 0.34);
  border: 1px solid rgba(160, 177, 184, 0.42);
  color: var(--color-text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: rgba(13, 23, 59, 0.72);
  box-shadow: var(--shadow-card);
  padding: 0.95rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.04rem;
}

.faq-list p {
  margin-top: 0.65rem;
  color: var(--color-muted);
}

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  padding: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(249, 222, 31, 0.2), transparent 42%),
    linear-gradient(150deg, rgba(61, 41, 156, 0.66), rgba(11, 14, 31, 0.92));
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.95rem;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.cta-band p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--color-muted);
}

.site-footer {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1.7rem;
  display: grid;
  gap: 0.68rem;
}

.footer-brand {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-meta {
  color: var(--color-muted);
  font-size: 0.84rem;
}

@keyframes ambientPulse {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-layer {
    animation: none;
  }
}

@media (max-width: 1120px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 1.3rem 1.1rem 2.8rem;
    gap: 1.2rem;
  }

  .page-shell--home {
    gap: 2.1rem;
  }

  .ad-rail {
    display: none;
  }

  .site-nav {
    position: static;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-nav {
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero {
    min-height: min(72vh, 620px);
    background-position: center 24%;
  }

  .hero-content {
    width: 100%;
  }

  .value-strip,
  .apps-grid,
  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
