:root {
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.hover-lift {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.22);
}

@keyframes pageEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.page-enter {
  animation: pageEnter 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.animate-in {
  opacity: 0;
  transform: translateY(10px);
  animation: slideUp 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.animate-fade {
  opacity: 0;
  animation: fadeIn 420ms ease both;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 140ms;
}

.delay-3 {
  animation-delay: 200ms;
}

.delay-4 {
  animation-delay: 260ms;
}

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

.role-showcase {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.role-showcase::before,
.role-showcase::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(28px);
  opacity: 0.55;
  z-index: 0;
}

.role-showcase::before {
  width: 15rem;
  height: 15rem;
  top: -5rem;
  right: -4rem;
}

.role-showcase::after {
  width: 12rem;
  height: 12rem;
  bottom: -4rem;
  left: -3rem;
}

.role-showcase > * {
  position: relative;
  z-index: 1;
}

.role-showcase--business::before {
  background: rgba(16, 185, 129, 0.16);
}

.role-showcase--business::after {
  background: rgba(45, 212, 191, 0.15);
}

.role-showcase--validator::before {
  background: rgba(14, 165, 233, 0.16);
}

.role-showcase--validator::after {
  background: rgba(34, 211, 238, 0.14);
}

.role-stage {
  position: relative;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.76));
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(10px);
}

.role-stage__panel {
  border-radius: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.84));
}

.role-stage__screen {
  position: relative;
  padding: 1.1rem;
}

.role-stage__grid {
  display: grid;
  gap: 0.85rem;
}

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

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.role-card--float {
  animation: floatCard 5.5s ease-in-out infinite;
}

.role-card--float-delayed {
  animation-delay: 1.4s;
}

.role-metric {
  border-radius: 1.15rem;
  padding: 1rem;
  color: #0f172a;
}

.role-bar {
  height: 0.6rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(226, 232, 240, 0.95);
}

.role-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.role-stack {
  display: grid;
  gap: 0.9rem;
}

.role-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.role-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.role-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.95rem;
  flex-shrink: 0;
  font-weight: 800;
  color: white;
}

.role-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.role-pill {
  border-radius: 1rem;
  padding: 0.9rem 0.75rem;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

.role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.95);
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}

@media (max-width: 768px) {
  .role-stage {
    padding: 1rem;
  }

  .role-stage__grid--split,
  .role-pill-grid {
    grid-template-columns: 1fr;
  }

  .role-card--float,
  .role-card--float-delayed {
    animation: none;
  }
}

/* Small helpers for Tailwind CDN usage */
.tw-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-partition {
  margin: 1.5rem auto;
  max-width: 80rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1.75rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.ad-partition--footer {
  background:
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.ad-partition__frame {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 1.25rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
}

.ad-slot {
  min-height: 96px;
  border-radius: 1rem;
}

.ad-slot:empty {
  display: none;
}

.ad-script,
.ad-image {
  overflow: hidden;
  border-radius: 0.9rem;
}

.ad-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .ad-partition {
    margin: 1rem auto;
    padding: 0.9rem;
    border-radius: 1.35rem;
  }
}
