:root {
  --bg: #0b0318;
  --surface: rgba(255, 255, 255, 0.09);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --text: #fbf7ff;
  --muted: #c9bedf;
  --accent: #8b5cf6;
  --accent-strong: #5b21b6;
  --accent-alt: #f59e0b;
  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --max-width: 1540px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(124, 58, 237, 0.66), transparent 28%),
    radial-gradient(circle at 92% 10%, rgba(245, 158, 11, 0.16), transparent 20%),
    radial-gradient(circle at 72% 42%, rgba(236, 72, 153, 0.14), transparent 24%),
    linear-gradient(120deg, #2b0e67 0%, #13062f 42%, #211018 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(139, 92, 246, 0.32), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.16), transparent 18%),
    radial-gradient(circle at 58% 70%, rgba(76, 29, 149, 0.38), transparent 28%);
  filter: blur(18px);
  opacity: 0.92;
  animation: ambient-drift 15s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 72%);
  opacity: 0.36;
}

.service-header,
main,
.service-footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(var(--max-width), calc(100% - 8px));
  margin: 0 auto;
}

.service-header {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  padding: 0;
}

.brand-mark,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffd166;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 209, 102, 0.58);
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.3),
    0 0 34px rgba(245, 158, 11, 0.28),
    0 0 28px rgba(236, 72, 153, 0.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: #ffd166;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffd166);
}

.service-hero {
  padding: 60px 0 26px;
}

.service-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.service-hero-copy,
.service-summary,
.detail-card,
.graph-intro,
.graph-stage,
.cta-panel {
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-hero-copy {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background:
    radial-gradient(circle at 92% 4%, rgba(245, 158, 11, 0.18), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06) 52%, rgba(38, 16, 82, 0.74));
  backdrop-filter: blur(22px);
}

h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  max-width: 14ch;
}

.hero-text,
.summary-list li,
.section-heading p,
.detail-card p,
.detail-list li,
.graph-intro p,
.graph-stage p,
.cta-copy {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.01rem + 0.2vw, 1.14rem);
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-alt), #ec4899);
  color: #fff;
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.2), 0 0 34px rgba(236, 72, 153, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 22px 46px rgba(245, 158, 11, 0.28), 0 0 44px rgba(236, 72, 153, 0.22);
}

.btn-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.service-summary {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    rgba(25, 10, 45, 0.56);
  backdrop-filter: blur(22px);
}

.summary-label,
.detail-tag {
  color: #ffd166;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.summary-list,
.detail-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--accent-alt));
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.24);
}

.summary-list {
  gap: 10px;
}

.summary-list li {
  --summary-delay: 0ms;
  position: relative;
  overflow: hidden;
  min-height: 46px;
  padding: 12px 16px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)),
    rgba(18, 8, 42, 0.28);
  color: #f7f0ff;
  font-weight: 800;
  line-height: 1.35;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.12);
  animation: summary-bar-in 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--summary-delay);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.summary-list li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent-alt), #ec4899, var(--success));
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
}

.summary-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-alt), #ec4899, transparent);
  opacity: 0.78;
  transform: scaleX(0.2);
  transform-origin: left;
  animation: summary-bar-fill 900ms ease both;
  animation-delay: calc(var(--summary-delay) + 120ms);
}

.summary-list li:hover,
.summary-list li:focus-within {
  transform: translateX(3px);
  border-color: rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.08)),
    rgba(18, 8, 42, 0.34);
}

.summary-list li:nth-child(2) {
  --summary-delay: 80ms;
}

.summary-list li:nth-child(3) {
  --summary-delay: 160ms;
}

.summary-list li:nth-child(4) {
  --summary-delay: 240ms;
}

.summary-list li:nth-child(5) {
  --summary-delay: 320ms;
}

.summary-list li:nth-child(6) {
  --summary-delay: 400ms;
}

.summary-list li:nth-child(7) {
  --summary-delay: 480ms;
}

.detail-section,
.graph-section,
.cta-section {
  padding: 38px 0 82px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
  margin-inline: auto;
  text-align: center;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.detail-card {
  padding: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(18px);
}

.detail-card h3 {
  margin: 12px 0;
  font-size: 1.52rem;
  line-height: 1.14;
}

.timeline-graph {
  --graph-accent: var(--accent);
  --graph-accent-alt: var(--accent-alt);
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.14), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.timeline-graph::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 34%),
    repeating-linear-gradient(
      180deg,
      rgba(124, 58, 237, 0.035) 0,
      rgba(124, 58, 237, 0.035) 1px,
      transparent 1px,
      transparent 28px
    );
  opacity: 0.78;
  pointer-events: none;
}

.timeline-graph > * {
  position: relative;
  z-index: 1;
}

.graph-intro {
  width: 100%;
  max-width: none;
  padding: 24px 26px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.1), transparent 64%),
    rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.graph-intro h3,
.graph-stage h3 {
  margin: 10px 0;
  line-height: 1.18;
}

.graph-intro h3 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.graph-flow {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 26px;
  padding: 8px 48px 10px;
}

.graph-flow::before,
.graph-flow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.graph-flow::before {
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.08),
    rgba(124, 58, 237, 0.56),
    rgba(245, 158, 11, 0.42),
    rgba(124, 58, 237, 0.08)
  );
}

.graph-flow::after {
  width: 24px;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.64) 18%,
      color-mix(in srgb, var(--graph-accent) 42%, transparent) 34%,
      transparent 58%,
      color-mix(in srgb, var(--graph-accent-alt) 44%, transparent) 74%,
      transparent 100%
    );
  background-size: 100% 180px;
  background-repeat: repeat-y;
  filter: blur(6px);
  opacity: 0.84;
  animation: graph-stream 4.2s linear infinite;
}

.graph-stage {
  position: relative;
  width: calc(50% - 46px);
  padding: 22px 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(16px);
}

.stage-left {
  margin-right: auto;
}

.stage-right {
  margin-left: auto;
}

.graph-stage::before,
.graph-stage::after {
  content: "";
  position: absolute;
}

.graph-stage::before {
  top: 26px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 10%, var(--graph-accent) 48%, var(--graph-accent-alt) 100%);
  box-shadow:
    0 0 0 8px rgba(124, 58, 237, 0.1),
    0 0 28px rgba(124, 58, 237, 0.28);
  animation: graph-pulse 2.8s ease-out infinite;
  animation-delay: calc(var(--stage-index, 0) * 220ms);
}

.graph-stage::after {
  top: 34px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.56), rgba(245, 158, 11, 0.3));
}

.stage-left::before {
  right: -42px;
}

.stage-left::after {
  right: -32px;
}

.stage-right::before {
  left: -42px;
}

.stage-right::after {
  left: -32px;
}

.graph-stage-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.graph-stage-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--graph-accent), color-mix(in srgb, var(--graph-accent-alt) 66%, var(--graph-accent)));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.18);
}

.graph-stage-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #ffd166;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(245, 158, 11, 0.15), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(18px);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.contact-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-helper {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.service-footer {
  padding: 0 0 30px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 1rem;
}

@keyframes graph-stream {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 180px;
  }
}

@keyframes graph-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 8px rgba(124, 58, 237, 0.1),
      0 0 28px rgba(124, 58, 237, 0.28);
  }

  50% {
    box-shadow:
      0 0 0 14px rgba(124, 58, 237, 0.04),
      0 0 34px rgba(245, 158, 11, 0.22);
  }
}

@keyframes summary-bar-in {
  0% {
    opacity: 0;
    transform: translate3d(-10px, 0, 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes summary-bar-fill {
  0% {
    transform: scaleX(0.2);
  }

  100% {
    transform: scaleX(1);
  }
}

@keyframes ambient-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 1.5%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(1%, -2%, 0) scale(1.02);
  }
}

@media (max-width: 980px) {
  .service-hero-layout,
  .detail-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .graph-stage {
    width: calc(100% - 56px);
  }
}

@media (max-width: 760px) {
  .graph-flow {
    padding: 6px 0 8px;
  }

  .graph-flow::before,
  .graph-flow::after {
    left: 22px;
    transform: none;
  }

  .graph-stage {
    width: calc(100% - 44px);
    margin-left: 44px;
    margin-right: 0;
  }

  .stage-left::before,
  .stage-right::before {
    left: -31px;
    right: auto;
  }

  .stage-left::after,
  .stage-right::after {
    left: -22px;
    right: auto;
    width: 22px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .service-hero-copy,
  .service-summary,
  .detail-card,
  .timeline-graph,
  .graph-intro,
  .graph-stage,
  .cta-panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .service-header {
    top: 12px;
    right: 12px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .contact-cta-group {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .graph-flow::after,
  .graph-stage::before,
  .summary-list li,
  .summary-list li::after {
    animation: none;
  }
}
