.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 5.5rem clamp(1rem, 4vw, 5%) 5rem;
  overflow: hidden;
  background: #0f172a;
}

/* Full-bleed background image */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Dark gradient overlay — dense left, transparent right */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 16, 46, 0.90) 0%,
    rgba(8, 16, 46, 0.68) 42%,
    rgba(8, 16, 46, 0.22) 100%
  );
}

/* Text on top of image */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  animation: rise-in 600ms ease;
}

.hero-content h1 {
  margin-top: 0.15rem;
  color: #ffffff;
}

.hero-copy {
  max-width: 540px;
  margin-top: 1.15rem;
  font-size: 1.04rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

/* Eyebrow on dark background */
.hero .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #bae6fd;
}

/* Secondary CTA ghost white on dark */
.hero .button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 680px) {
  .hero {
    min-height: 520px;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .hero-media::after {
    background: rgba(8, 16, 46, 0.75);
  }
}

.band-light {
  background: var(--color-surface);
}

.workflow-grid,
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card,
.role-item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.55rem 1.2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.feature-card:hover,
.feature-card:focus-within,
.role-item:hover,
.role-item:focus-within {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.workspace-section {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(79, 70, 229, 0.13) 1px, transparent 1px);
  background-size: 28px 28px;
  background-color: #f8fafc;
}

.workspace-shell {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.workspace-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.8rem 1rem;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  font-size: 0.92rem;
}

.workspace-topbar strong {
  font-size: 0.95rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.6rem;
  color: #0f172a;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 500px;
}

.project-panel {
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-right: 1px solid var(--color-border);
}

.assignment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.7rem;
  min-height: 52px;
  padding: 0.7rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 0.65rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.assignment-row:hover {
  transform: translateX(3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.document-panel {
  padding: 1.2rem;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.document-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.document-toolbar span,
.attachment-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.65rem;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.document-page {
  width: min(700px, 100%);
  min-height: 360px;
  margin: 0 auto;
  padding: 1.8rem;
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.document-page h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

.document-page p + p {
  margin-top: 0.8rem;
}

.attachment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Workspace status badges */
.ws-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ws-badge--blue  { background: #eef2ff; color: #4f46e5; }
.ws-badge--amber { background: #fffbeb; color: #d97706; }
.ws-badge--green { background: #f0fdf4; color: #16a34a; }
.ws-badge--gray  { background: #f1f5f9; color: #64748b; }

.band-ink {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 42%, #eef2ff 100%);
}

.cta-section {
  background: linear-gradient(140deg, rgba(79, 70, 229, 0.08), rgba(139, 92, 246, 0.1));
}

.cta-content {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.cta-content p:last-child {
  margin-top: 0.9rem;
  font-size: 1.02rem;
}

.section-heading,
.workflow-grid .feature-card,
.roles-grid .role-item,
.workspace-shell,
.cta-content {
  animation: rise-in 520ms ease;
}

.workflow-grid .feature-card:nth-child(2),
.roles-grid .role-item:nth-child(2) {
  animation-delay: 80ms;
}

.workflow-grid .feature-card:nth-child(3),
.roles-grid .role-item:nth-child(3) {
  animation-delay: 140ms;
}

.workflow-grid .feature-card:nth-child(4) {
  animation-delay: 200ms;
}

@media (max-width: 1080px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 1.6rem;
  }

  .hero-content,
  .hero-media {
    order: initial;
    max-width: 100%;
  }

  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .project-panel {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
}

@media (max-width: 720px) {
  .workflow-grid,
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .workspace-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-panel,
  .project-panel {
    padding: 1rem;
  }

  .document-page {
    min-height: 320px;
    padding: 1.1rem;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
