/**
 * Shared premium service-page hero.
 * Display: Instrument Serif (hero titles). Body stays Sora.
 * Brand tokens: --blue #0f7bff, --gold #f4b942
 */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

.service-page > .dm-hero.svc-hero,
.service-page > .dm-hero.adm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  min-height: 0;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  overflow: hidden;
  /* First viewport must never start hidden behind .reveal opacity:0 */
  opacity: 1 !important;
  transform: none !important;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(15, 123, 255, 0.16), transparent 55%),
    linear-gradient(165deg, rgba(16, 22, 32, 0.98), rgba(9, 12, 18, 0.99));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.service-page > .dm-hero.svc-hero::before,
.service-page > .dm-hero.adm-hero::before {
  content: none;
}

.svc-hero__copy,
.adm-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  align-content: center;
  max-width: 36rem;
}

.service-page > .dm-hero.svc-hero .dm-eyebrow,
.service-page > .dm-hero.adm-hero .dm-eyebrow {
  margin: 0 0 1rem;
  color: #82b8ff;
  letter-spacing: 0.14em;
  font-family: "Sora", sans-serif;
}

.service-page > .dm-hero.svc-hero .dm-hero-title,
.service-page > .dm-hero.adm-hero .dm-hero-title {
  max-width: 14ch;
  margin: 0;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.35rem, 5.2vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #f5f8ff;
  text-wrap: balance;
}

.svc-hero__accent,
.adm-hero__accent {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(115deg, #9ec8ff 0%, #6ea8ff 45%, #8bb4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.svc-hero__lead,
.adm-hero__lead {
  margin: 1.15rem 0 0;
  max-width: 42ch;
  color: #aebccc;
  font-family: "Sora", sans-serif;
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.6;
}

.svc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.svc-hero__fineprint {
  margin: 1.15rem 0 0;
  max-width: 48ch;
  color: #7f91a8;
  font-size: 0.78rem;
  line-height: 1.5;
}

.svc-hero__visual {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 300px;
}

.svc-hero__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0.85rem;
  align-items: stretch;
  flex: 1;
  width: 100%;
  min-height: 300px;
  padding: 1.05rem;
  border: 1px solid rgba(125, 168, 224, 0.28);
  border-radius: 1.35rem;
  background: linear-gradient(165deg, rgba(14, 20, 30, 0.96), rgba(8, 11, 17, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.svc-hero__glow {
  position: absolute;
  right: -22%;
  top: -36%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 123, 255, 0.18), transparent 70%);
  animation: svcHeroGlow 7s ease-in-out infinite;
  pointer-events: none;
}

.svc-hero__browser {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 186, 236, 0.28);
  background: linear-gradient(180deg, #121925, #0a0f16);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
  animation: svcHeroFloat 5.5s ease-in-out infinite;
}

.svc-hero__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.15rem;
}

.svc-hero__chrome i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.svc-hero__chrome i:nth-child(1) { background: #ff6b6b; }
.svc-hero__chrome i:nth-child(2) { background: #f4b942; }
.svc-hero__chrome i:nth-child(3) { background: #19c37d; }

.svc-hero__chrome span {
  flex: 1;
  margin-left: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 210, 0.2);
  background: rgba(7, 11, 18, 0.85);
  color: #8fa3bb;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.svc-hero__screen {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem 0.75rem 1rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(160deg, rgba(15, 123, 255, 0.18), transparent 55%),
    #070b12;
  border: 1px solid rgba(87, 140, 210, 0.22);
}

.svc-hero__screen strong {
  color: #eef4ff;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}

.svc-hero__screen em {
  color: #8fa3bb;
  font-style: normal;
  font-size: 0.68rem;
}

.svc-hero__bars {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.svc-hero__bars span {
  display: block;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 123, 255, 0.7), rgba(120, 180, 255, 0.12));
  transform-origin: left center;
  animation: svcHeroBar 3.2s ease-in-out infinite;
}

.svc-hero__bars span:nth-child(2) {
  width: 78%;
  animation-delay: 0.25s;
  background: linear-gradient(90deg, rgba(15, 123, 255, 0.4), rgba(255, 255, 255, 0.06));
}

.svc-hero__bars span:nth-child(3) {
  width: 58%;
  animation-delay: 0.5s;
  background: linear-gradient(90deg, rgba(90, 150, 230, 0.35), rgba(255, 255, 255, 0.04));
}

.svc-hero__stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: center;
}

.svc-hero__stack li {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(130, 170, 220, 0.16);
  border-radius: 0.85rem;
  background: rgba(8, 13, 22, 0.72);
  backdrop-filter: blur(10px);
  animation: svcHeroCardIn 700ms ease both;
}

.svc-hero__stack li:nth-child(2) { animation-delay: 80ms; }
.svc-hero__stack li:nth-child(3) { animation-delay: 160ms; }
.svc-hero__stack li:nth-child(4) { animation-delay: 240ms; }

.svc-hero__stack span {
  color: #7f9aba;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.svc-hero__stack strong {
  color: #e8f0fc;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.svc-hero__btn,
.svc-hero__btn--quiet {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, filter 180ms ease;
}

.svc-hero__btn {
  color: #ffffff !important;
  border: 1px solid rgba(244, 185, 66, 0.35);
  background: linear-gradient(135deg, #1a8cff 0%, #0f7bff 42%, #0a5fd4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 32px rgba(15, 123, 255, 0.32);
}

.svc-hero__btn:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  filter: brightness(1.06);
  border-color: rgba(244, 185, 66, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 18px 36px rgba(15, 123, 255, 0.4);
}

.svc-hero__btn--quiet {
  color: #eaf2ff !important;
  border: 1px solid rgba(125, 165, 218, 0.42);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.svc-hero__btn--quiet:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  border-color: rgba(244, 185, 66, 0.45);
  background: rgba(15, 123, 255, 0.12);
}

.svc-hero__btn:focus-visible,
.svc-hero__btn--quiet:focus-visible {
  outline: 3px solid rgba(108, 190, 255, 0.55);
  outline-offset: 3px;
}

@keyframes svcHeroGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes svcHeroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes svcHeroBar {
  0%, 100% { transform: scaleX(1); opacity: 0.85; }
  50% { transform: scaleX(0.92); opacity: 1; }
}

@keyframes svcHeroCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .service-page > .dm-hero.svc-hero,
  .service-page > .dm-hero.adm-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-page > .dm-hero.svc-hero .dm-hero-title,
  .service-page > .dm-hero.adm-hero .dm-hero-title {
    max-width: 16ch;
  }

  .svc-hero__lead,
  .adm-hero__lead {
    max-width: 46ch;
  }

  .svc-hero__visual {
    min-height: 280px;
  }

  .svc-hero__stage {
    min-height: 280px;
  }
}

@media (max-width: 680px) {
  .svc-hero__actions,
  .svc-hero__btn,
  .svc-hero__btn--quiet {
    width: 100%;
  }

  .svc-hero__stage {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-hero__btn,
  .svc-hero__btn--quiet,
  .svc-hero__glow,
  .svc-hero__browser,
  .svc-hero__bars span,
  .svc-hero__stack li {
    transition: none;
    animation: none;
  }
}
